|
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 WatchInfoProvider
Exposes methods allowing the watch subsystem to decide what objects are watched, and by whom.
| Method Summary | |
|---|---|
boolean |
canUserWatchObject(JiveObject objectToWatch,
User user,
Map<String,Object> objectProperties)
Returns true if the user is authorized to watch the object. |
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. |
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. |
| Method Detail |
|---|
boolean isUserProfileConfigurable()
boolean isEnabledByDefault()
boolean canUserWatchObject(JiveObject objectToWatch,
User user,
Map<String,Object> objectProperties)
throws Exception
objectToWatch - the jive object in question.user - the user in question.objectProperties - hash of properties that may be used to provide more context around the decision, if needed.
Exception - a general exception.
List<User> getAuthorsToWatchFor(JiveObject object,
Map<String,Object> objectProperties)
object - the jive object to get authors of.objectProperties - hash of properties that may be used to provide more context, if needed.
String getExpirationDatesQuery()
Map<String,Object> getEmailTemplateContextParams(JiveObject object)
com.jivesoftware.community.impl.EmailWatchUpdateTask.
May return null or empty map if no objects are required.
object - the jive object
boolean eventsHandledExclusivelyByCustomListener()
boolean isNotifyOnEvent(ContentEvent event)
event - the content-event.
WatchCreationStrategy getWatchCreationStrategy()
NotificationTargetStrategy getNotificationTargetStrategy()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||