Class AbstractKmeliaPublicationUserNotification
java.lang.Object
org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<T>
org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<T>
org.silverpeas.components.kmelia.notification.AbstractKmeliaUserNotification<org.silverpeas.core.contribution.publication.model.PublicationDetail>
org.silverpeas.components.kmelia.notification.AbstractKmeliaPublicationUserNotification
- All Implemented Interfaces:
org.silverpeas.core.notification.user.builder.UserNotificationBuilder
- Direct Known Subclasses:
AbstractKmeliaActionPublicationUserNotification,KmeliaNotifyPublicationDocumentUserNotification,KmeliaNotifyPublicationUserNotification,KmeliaSubscriptionPublicationUserNotification,KmeliaSupervisorPublicationUserNotification
public abstract class AbstractKmeliaPublicationUserNotification
extends AbstractKmeliaUserNotification<org.silverpeas.core.contribution.publication.model.PublicationDetail>
- Author:
- Yohann Chastagnier
-
Nested Class Summary
Nested classes/interfaces inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder.NotificationTemporal -
Field Summary
Fields inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
CUSTOM_NOTIFICATION_SUBJECT, DEFAULT_NOTIFICATION_SUBJECT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractKmeliaPublicationUserNotification(org.silverpeas.core.node.model.NodePK nodePK, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.notification.user.client.constant.NotifAction action) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.silverpeas.core.notification.user.client.constant.NotifActionprotected Stringprotected Stringprotected org.silverpeas.core.node.model.NodePKprotected final Stringprotected StringgetResourceURL(org.silverpeas.core.contribution.publication.model.PublicationDetail resource) protected Stringprotected booleanisGroupCanBeNotified(String groupId) protected booleanisUserCanBeNotified(String userId) protected voidperformNotificationResource(String language, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.notification.user.model.NotificationResourceData notificationResourceData) protected voidperformTemplateData(String language, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.template.SilverpeasTemplate template) protected booleanMethods inherited from class org.silverpeas.components.kmelia.notification.AbstractKmeliaUserNotification
getHTMLNodePath, getLocalizationBundlePath, getNodeHeader, getNodeService, getOrganisationController, getTemplatePathMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
createNotification, getBundleSubjectKey, getTemplateFileName, getTitle, getTitle, perform, performBuild, performNotificationResource, performNotificationResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder
getResource, initialize, initializeNotificationResourceData, isSendImmediately, performBuild, setResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
build, getBundle, getBundle, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, getUserIdsToNotify, stop
-
Constructor Details
-
AbstractKmeliaPublicationUserNotification
protected AbstractKmeliaPublicationUserNotification(org.silverpeas.core.node.model.NodePK nodePK, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.notification.user.client.constant.NotifAction action)
-
-
Method Details
-
isUserCanBeNotified
- Overrides:
isUserCanBeNotifiedin classorg.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-
isGroupCanBeNotified
- Overrides:
isGroupCanBeNotifiedin classorg.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-
performTemplateData
protected void performTemplateData(String language, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.template.SilverpeasTemplate template) - Specified by:
performTemplateDatain classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-
performNotificationResource
protected void performNotificationResource(String language, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.notification.user.model.NotificationResourceData notificationResourceData) - Specified by:
performNotificationResourcein classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-
stopWhenNoUserToNotify
protected boolean stopWhenNoUserToNotify()- Overrides:
stopWhenNoUserToNotifyin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getResourceURL
protected String getResourceURL(org.silverpeas.core.contribution.publication.model.PublicationDetail resource) - Overrides:
getResourceURLin classorg.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-
getNodePK
protected org.silverpeas.core.node.model.NodePK getNodePK() -
getPath
-
getAction
protected org.silverpeas.core.notification.user.client.constant.NotifAction getAction()- Specified by:
getActionin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getComponentInstanceId
- Specified by:
getComponentInstanceIdin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getSender
- Specified by:
getSenderin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getContributionAccessLinkLabelBundleKey
- Overrides:
getContributionAccessLinkLabelBundleKeyin classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
-