Class GenericAggregateOptions
- java.lang.Object
-
- com.adobe.granite.activitystreams.utils.GenericAggregateOptions
-
- All Implemented Interfaces:
AggregateOptions
public class GenericAggregateOptions extends java.lang.Object implements AggregateOptions
GenericAggregateOptions
- Since:
- 0.0.10
-
-
Field Summary
-
Fields inherited from interface com.adobe.granite.activitystreams.AggregateOptions
DEFAULT, DIRECT
-
-
Constructor Summary
Constructors Constructor Description GenericAggregateOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityStreamFilter
getActivityStreamFilter()
Returns the activity stream filterjava.lang.String[]
relationshipTypes()
Returns the list of relationship types to follow while aggregating.GenericAggregateOptions
setActivityStreamFilter(ActivityStreamFilter filter)
Sets the stream filterGenericAggregateOptions
setRelationshipTypes(java.lang.String[] types)
Sets the array of relationship types
-
-
-
Method Detail
-
getActivityStreamFilter
public ActivityStreamFilter getActivityStreamFilter()
Returns the activity stream filter- Specified by:
getActivityStreamFilter
in interfaceAggregateOptions
- Returns:
- the activity stream filter
-
setActivityStreamFilter
public GenericAggregateOptions setActivityStreamFilter(ActivityStreamFilter filter)
Sets the stream filter- Parameters:
filter
- the filter- Returns:
- this aggregate options for chaining.
-
relationshipTypes
public java.lang.String[] relationshipTypes()
Returns the list of relationship types to follow while aggregating. Anull
return value specifies to use the configured default, and empty array specifies not to follow any relationships.- Specified by:
relationshipTypes
in interfaceAggregateOptions
- Returns:
- the list of relationship types
-
setRelationshipTypes
public GenericAggregateOptions setRelationshipTypes(java.lang.String[] types)
Sets the array of relationship types- Parameters:
types
- the types- Returns:
- this aggregate options for chaining.
-
-