public class Filters extends Object
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
static void |
filterCommentsPerContext(List<org.gcube.portal.databook.shared.Comment> comments,
String context)
Filter comments per context
|
static void |
filterFeedsPerContext(List<org.gcube.portal.databook.shared.Feed> feeds,
String context)
Given a list of not filtered feeds, the methods remove feeds unaccessible in this scope.
|
static void |
filterFeedsPerContextById(List<String> feedsIds,
String context)
Given a list of not filtered feeds, the methods remove feeds unaccessible in this scope.
|
static <T> void |
hideSensitiveInformation(List<T> toClear,
String usernameCaller)
Depending on the type of object provided (e.g.
|
public static void filterFeedsPerContextById(List<String> feedsIds, String context) throws Exception
feedsIds - context - Exceptionpublic static void filterFeedsPerContext(List<org.gcube.portal.databook.shared.Feed> feeds, String context) throws Exception
retrievedLikedFeeds - context - Exceptionpublic static void filterCommentsPerContext(List<org.gcube.portal.databook.shared.Comment> comments, String context) throws Exception
comments - context - ExceptionCopyright © 2019. All rights reserved.