|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityEventHandlingStrategy
A strategy for the general Activity event listener to handle events in a manner specific to the object type of the event payload. For example, not all object types have the same strategy for retrieving the Activity's actor from the event payload. Where most strategies would get the actor from JiveContentObject.getUser() (the default way in DefaultContentActivityEventHandlingStrategy), the DocumentRecentActivityInfoProvider's strategy may want to override DefaultContentActivityEventHandlingStrategy.getActivityActor(...) so that it returns the DocumentVersion.getAuthor() result.
DefaultContentActivityEventHandlingStrategy,
com.jivesoftware.community.impl.activity.ContentEventListener| Method Summary | |
|---|---|
EntityDescriptor |
getActivityActor(BaseJiveEvent event)
Returns an entity descriptor for the actor in the activity (eg. a user). |
EntityDescriptor |
getActivityTargetContainer(BaseJiveEvent event)
Returns an entity descriptor for the container of the object that the activity in the event payload targets. |
EntityDescriptor |
getActivityTargetObject(BaseJiveEvent event)
Returns an entity descriptor for the object that the activity in the event payload targets. |
Activity.Type |
getActivityTypeFrom(BaseJiveEvent event)
Maps content event types to an activity type. |
boolean |
isActivityRecordable(BaseJiveEvent event)
Returns true if the payload is in a recordable state. |
boolean |
shouldDeleteActivities(BaseJiveEvent event)
Returns whether or not the event constitutes activity removals for the content object in the payload. |
| Method Detail |
|---|
boolean isActivityRecordable(BaseJiveEvent event)
ContentEvent events are supported, and for payloads which are
JiveContentObjects.
event - the content event
Activity.Type getActivityTypeFrom(BaseJiveEvent event)
ContentEvent events are supported.
event - the content event
EntityDescriptor getActivityTargetObject(BaseJiveEvent event)
ContentEvent events are supported.
event - the content event
EntityDescriptor getActivityTargetContainer(BaseJiveEvent event)
ContentEvent events are supported.
event - the content event
EntityDescriptor getActivityActor(BaseJiveEvent event)
ContentEvent events are supported.
event - the content event
boolean shouldDeleteActivities(BaseJiveEvent event)
ContentEvent events are supported.
event - the content event
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||