Class AbstractPdcSubscriptionUserNotification<T>
- java.lang.Object
-
- org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
- org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<T>
-
- org.silverpeas.core.pdc.subscription.service.AbstractPdcSubscriptionUserNotification<T>
-
- All Implemented Interfaces:
UserNotificationBuilder
- Direct Known Subclasses:
PdcResourceClassificationUserNotification
,PdcSubscriptionDeletionUserNotification
public abstract class AbstractPdcSubscriptionUserNotification<T> extends AbstractResourceUserNotificationBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractPdcSubscriptionUserNotification(PdcSubscription pdcSubscription, T resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getLocalizationBundlePath()
Gets the path of the localization bundle to load.PdcSubscription
getPdcSubscription()
protected Collection<String>
getUserIdsToNotify()
A collection of user identifiers.protected String
getUserLanguage(int userID)
-
Methods inherited from class org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder
createNotification, getResource, getResourceURL, initialize, initializeNotificationResourceData, isGroupCanBeNotified, isSendImmediately, isUserCanBeNotified, performBuild, performBuild, performNotificationResource, performNotificationResource, setResource
-
Methods inherited from class org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
build, getAction, getBundle, getBundle, getComponentInstanceId, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getSender, getTitle, getUserIdsToExcludeFromNotifying, stop, stopWhenNoUserToNotify
-
-
-
-
Constructor Detail
-
AbstractPdcSubscriptionUserNotification
public AbstractPdcSubscriptionUserNotification(PdcSubscription pdcSubscription, T resource)
-
-
Method Detail
-
getLocalizationBundlePath
protected String getLocalizationBundlePath()
Description copied from class:AbstractUserNotificationBuilder
Gets the path of the localization bundle to load. By default, returns the general translations. For more specific localized text to use in the notification, override this method.- Overrides:
getLocalizationBundlePath
in classAbstractUserNotificationBuilder
- Returns:
- the path of the localization bundle.
-
getUserIdsToNotify
protected Collection<String> getUserIdsToNotify()
Description copied from class:AbstractUserNotificationBuilder
A collection of user identifiers. All the users in this collection will be notified. This method requires to be implemented.- Specified by:
getUserIdsToNotify
in classAbstractUserNotificationBuilder
- Returns:
-
getUserLanguage
protected String getUserLanguage(int userID)
- Parameters:
userID
-- Returns:
- user preferred language by userid provided
-
getPdcSubscription
public PdcSubscription getPdcSubscription()
-
-