|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.media.type.MediaWatchInfoProvider
public abstract class MediaWatchInfoProvider
Default behavior for the watch subsystem to determine which media items are watched and by whom
| Constructor Summary | |
|---|---|
MediaWatchInfoProvider()
|
|
| Method Summary | ||
|---|---|---|
boolean |
eventsHandledExclusivelyByCustomListener()
This method should return true if a listener has been registered to handle events exclusively, bypassing the generic activity event listener in the core code. |
|
List<User> |
getAuthorsToWatchFor(JiveObject object,
Map<String,Object> objectProperties)
Returns a list of authors of the jive object for which watches may be retrieved and converted into mails. |
|
Map<String,Object> |
getEmailTemplateContextParams(JiveObject object)
This method returns a map of objects with which to populate the email template context. |
|
String |
getExpirationDatesQuery()
A SQL select statement which must return objectID,expirationDate in the SELECT clause. |
|
protected
|
getMediaObject(ContentEvent ev)
|
|
NotificationTargetStrategy |
getNotificationTargetStrategy()
Returns a strategy for computing which object is the target of notification on a watch event. |
|
WatchCreationStrategy |
getWatchCreationStrategy()
Returns a strategy for deciding whether or not a watch should be created for a given event. |
|
boolean |
isEnabledByDefault()
If true, watch preferences for this type are always set to true for all users. |
|
boolean |
isNotifyOnEvent(ContentEvent event)
Returns true if the event triggers a notify. |
|
boolean |
isUserProfileConfigurable()
If true, watch preferences for this type may be configured per user. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jivesoftware.community.WatchInfoProvider |
|---|
canUserWatchObject |
| Constructor Detail |
|---|
public MediaWatchInfoProvider()
| Method Detail |
|---|
public boolean isUserProfileConfigurable()
WatchInfoProvider
isUserProfileConfigurable in interface WatchInfoProviderpublic boolean isEnabledByDefault()
WatchInfoProvider
isEnabledByDefault in interface WatchInfoProvider
public List<User> getAuthorsToWatchFor(JiveObject object,
Map<String,Object> objectProperties)
WatchInfoProvider
getAuthorsToWatchFor in interface WatchInfoProviderobject - the jive object to get authors of.objectProperties - hash of properties that may be used to provide more context, if needed.
public String getExpirationDatesQuery()
WatchInfoProvider
getExpirationDatesQuery in interface WatchInfoProviderpublic WatchCreationStrategy getWatchCreationStrategy()
WatchInfoProvider
getWatchCreationStrategy in interface WatchInfoProviderpublic NotificationTargetStrategy getNotificationTargetStrategy()
WatchInfoProvider
getNotificationTargetStrategy in interface WatchInfoProviderpublic Map<String,Object> getEmailTemplateContextParams(JiveObject object)
WatchInfoProvidercom.jivesoftware.community.impl.EmailWatchUpdateTask.
May return null or empty map if no objects are required.
getEmailTemplateContextParams in interface WatchInfoProviderobject - the jive object
public boolean isNotifyOnEvent(ContentEvent event)
WatchInfoProvider
isNotifyOnEvent in interface WatchInfoProviderevent - the content-event.
protected <T extends Media> T getMediaObject(ContentEvent ev)
public boolean eventsHandledExclusivelyByCustomListener()
eventsHandledExclusivelyByCustomListener in interface WatchInfoProvider
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||