|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.notification.builder.AbstractUserNotificationBuilder
com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder<T>
com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<SilverpeasContent>
com.silverpeas.comment.service.CommentUserNotification
public class CommentUserNotification
Field Summary | |
---|---|
static String |
DEFAULT_SUBJECT_COMMENT_ADDING
If no property with the subject of the notification message is defined in a Silverpeas component, then the below default property is taken. |
static String |
NOTIFICATION_COMMENT_ATTRIBUTE
The name of the attribute in a notification message that refers the comment responsable of the triggering of this service. |
static String |
NOTIFICATION_CONTENT_ATTRIBUTE
The name of the attribute in a notification message that refers the content commented by the comment responsable of the triggering of this service. |
Constructor Summary | |
---|---|
CommentUserNotification(CommentService commentService,
Comment comment,
SilverpeasContent commentedContent,
String subjectKey,
ResourceLocator componentMessages,
Set<String> recipients)
|
Method Summary | |
---|---|
protected SilverpeasTemplate |
createTemplate()
Creates the template bases |
protected NotifAction |
getAction()
Gets the type of action on a resource |
protected String |
getBundleSubjectKey()
|
protected String |
getComponentInstanceId()
Gets the component instance id |
protected String |
getContributionAccessLinkLabelBundleKey()
Gets the string bundle key for contribution access link |
protected String |
getMultilangPropertyFile()
Gets the resource locator path |
protected String |
getSender()
Gets the sender (the user id usually) |
protected String |
getTemplatePath()
Gets the string template path |
protected String |
getTitle()
|
protected Collection<String> |
getUserIdsToNotify()
|
protected boolean |
isSendImmediatly()
Forces the sending immediatly if true |
protected void |
perform(SilverpeasContent resource)
Performing notification data from a given language |
protected void |
performNotificationResource(String language,
SilverpeasContent resource,
NotificationResourceData notificationResourceData)
Builds the notification resource data container from a given language. |
protected void |
performTemplateData(String language,
SilverpeasContent resource,
SilverpeasTemplate template)
Performing notification data from a given language |
Methods inherited from class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder |
---|
createNotification, getFileName, performBuild, performNotificationResource, performNotificationResource |
Methods inherited from class com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder |
---|
getResource, getResourceURL, initialize, initializeNotificationResourceData, performBuild, setResource |
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder |
---|
build, getBundle, getBundle, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, performUsersToBeNotified, stop, stopWhenNoUserToNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SUBJECT_COMMENT_ADDING
public static final String NOTIFICATION_COMMENT_ATTRIBUTE
public static final String NOTIFICATION_CONTENT_ATTRIBUTE
Constructor Detail |
---|
public CommentUserNotification(CommentService commentService, Comment comment, SilverpeasContent commentedContent, String subjectKey, ResourceLocator componentMessages, Set<String> recipients)
Method Detail |
---|
protected String getBundleSubjectKey()
getBundleSubjectKey
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected String getTitle()
getTitle
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected Collection<String> getUserIdsToNotify()
getUserIdsToNotify
in class AbstractUserNotificationBuilder
protected void perform(SilverpeasContent resource)
AbstractTemplateUserNotificationBuilder
perform
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected void performTemplateData(String language, SilverpeasContent resource, SilverpeasTemplate template)
AbstractTemplateUserNotificationBuilder
performTemplateData
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected void performNotificationResource(String language, SilverpeasContent resource, NotificationResourceData notificationResourceData)
AbstractTemplateUserNotificationBuilder
performNotificationResource
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected SilverpeasTemplate createTemplate()
AbstractTemplateUserNotificationBuilder
createTemplate
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected String getTemplatePath()
AbstractTemplateUserNotificationBuilder
getTemplatePath
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
protected NotifAction getAction()
AbstractUserNotificationBuilder
getAction
in class AbstractUserNotificationBuilder
protected String getComponentInstanceId()
AbstractUserNotificationBuilder
getComponentInstanceId
in class AbstractUserNotificationBuilder
protected String getSender()
AbstractUserNotificationBuilder
getSender
in class AbstractUserNotificationBuilder
protected boolean isSendImmediatly()
AbstractUserNotificationBuilder
isSendImmediatly
in class AbstractResourceUserNotificationBuilder<SilverpeasContent>
protected String getMultilangPropertyFile()
AbstractUserNotificationBuilder
getMultilangPropertyFile
in class AbstractUserNotificationBuilder
protected String getContributionAccessLinkLabelBundleKey()
AbstractTemplateUserNotificationBuilder
getContributionAccessLinkLabelBundleKey
in class AbstractTemplateUserNotificationBuilder<SilverpeasContent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |