Class GenericStreamFilter
java.lang.Object
com.adobe.granite.activitystreams.utils.GenericStreamFilter
- All Implemented Interfaces:
ActivityStreamFilter
GenericStreamFilter- Since:
- 0.0.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the access control mode to include in the filter -
Field Summary
Fields inherited from interface com.adobe.granite.activitystreams.ActivityStreamFilter
ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()Returns the defined mode.booleanincludes(ActivityStream stream) Checks if the given activity stream is to be included.Sets the access control mode for this filter.
-
Constructor Details
-
GenericStreamFilter
public GenericStreamFilter()
-
-
Method Details
-
includes
Checks if the given activity stream is to be included.- Specified by:
includesin interfaceActivityStreamFilter- Parameters:
stream- the activity stream to check- Returns:
trueto allow the activity stream
-
getMode
Returns the defined mode.- Returns:
- the mode.
-
setMode
Sets the access control mode for this filter. seeGenericStreamFilter.MODEfor details.- Parameters:
mode- the mode- Returns:
- this filter for chaining.
-