|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentUserNotificationService
It is a service dedicated to notify the concerning users about the adding or the removal of the comments on a resource managed by a given Silverpeas component instance. This service is managed by the IoC container. All Silverpeas components interested to provide this feature should register themselves with this service. The registration is done by specifying the name of the component and by passing a ResourceInfoGetter object dedicated to the registered component. So, each time an event about a comment is received, from the component instance within which the comment is added or removed, the name of the Silverpeas component can be get and then the ResourceInfoGetter object can be retrieved amoung which enough information about the commented resource can be get to send a notification to the interested users.
Field Summary | |
---|---|
static String |
SUBJECT_COMMENT_ADDING
The suffix of the property valued with the subject of the notification message to send to the users. |
Method Summary | |
---|---|
void |
commentAdded(Comment newComment)
Sends a notification to the users that are concerned by the specified new comment on a given resource (publication, blog article, ...). |
void |
commentRemoved(Comment removedComment)
No notifications are sent to the users when a comment is removed. |
void |
register(String component,
SilverpeasComponentService<? extends SilverpeasContent> service)
Registers the specified Silverpeas component so that the comments created or removed in an instance of the component will be treated by this service. |
void |
unregister(String component)
Unregisters the specified component. |
Field Detail |
---|
static final String SUBJECT_COMMENT_ADDING
Method Detail |
---|
void commentAdded(Comment newComment)
newComment
- the new comment.void commentRemoved(Comment removedComment)
removedComment
- the comment that is removed.void register(String component, SilverpeasComponentService<? extends SilverpeasContent> service)
component
- the name of the Silverpeas component (it must be unique).getter
- the ResourceInfoGetter object specific to the registered Silverpeas Componentvoid unregister(String component)
component
- the name of the Silverpeas component to unregister (it must be unique).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |