|
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 RecentContentEventHandlingStrategy
A strategy for the general Recent Content 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 determining if the recent content in the event payload is recordable. Where most strategies would use JiveContentObject.getStatus().isVisible() to determine this, (the way done in the default strategy), the VideoRecentContentInfoProvider's strategy may want to override DefaultRecentContentEventHandlingStrategy.isRecordable(...) so that it excludes embedded videos from being recordable.
com.jivesoftware.community.impl.recentcontent.DefaultRecentContentEventHandlingStrategy,
com.jivesoftware.community.impl.recentcontent.ContentEventListener| Method Summary | |
|---|---|
JiveContentObject |
getContentObject(BaseJiveEvent event)
Returns the content object from the event payload. |
JiveObject |
getObject(BaseJiveEvent event)
Returns the event payload as a JiveObject. |
EntityDescriptor |
getOldContainerDescriptor(BaseJiveEvent event)
Returns an entity descriptor for the event payload's "old" container. |
JiveContainer |
getTargetContainer(BaseJiveEvent event)
If the event payload is a JiveContentObject, this method tries to return that
object's container. |
EntityDescriptor |
getTargetContainerDescriptor(BaseJiveEvent event)
Returns an entity descriptor for the event payload's container. |
User |
getUser(BaseJiveEvent event)
If the event payload is a JiveContentObject, this method tries to return that
object's user. |
boolean |
isRecordable(BaseJiveEvent event)
Returns true if the payload is in a recordable state. |
boolean |
shouldDeleteRecentContent(BaseJiveEvent event)
Returns whether or not the event constitutes a recent content removal for the content object in the payload. |
| Method Detail |
|---|
boolean isRecordable(BaseJiveEvent event)
com.jivesoftware.base.event.ContentEvent events are supported, and for payloads which are
JiveContentObjects.
event - the content event
JiveContentObject getContentObject(BaseJiveEvent event)
com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
JiveObject getObject(BaseJiveEvent event)
com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
JiveContainer getTargetContainer(BaseJiveEvent event)
JiveContentObject, this method tries to return that
object's container.
Only com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
User getUser(BaseJiveEvent event)
JiveContentObject, this method tries to return that
object's user.
Only com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
EntityDescriptor getTargetContainerDescriptor(BaseJiveEvent event)
com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
EntityDescriptor getOldContainerDescriptor(BaseJiveEvent event)
com.jivesoftware.base.event.ContentEvent events are supported.
event - the content event
boolean shouldDeleteRecentContent(BaseJiveEvent event)
com.jivesoftware.base.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 | |||||||||