|
||||||||||
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<T>
T
- the type of resource concerned by the notification.public abstract class AbstractTemplateUserNotificationBuilder<T>
Constructor Summary | |
---|---|
AbstractTemplateUserNotificationBuilder(T resource)
Default constructor |
|
AbstractTemplateUserNotificationBuilder(T resource,
String fileName)
Default constructor |
|
AbstractTemplateUserNotificationBuilder(T resource,
String title,
String fileName)
Default constructor |
Method Summary | |
---|---|
protected UserNotification |
createNotification()
Create the user notification container |
protected SilverpeasTemplate |
createTemplate()
Creates the template bases |
protected abstract String |
getBundleSubjectKey()
|
protected String |
getContributionAccessLinkLabelBundleKey()
Gets the string bundle key for contribution access link |
protected String |
getFileName()
Gets the fileName of StringTemplate |
protected abstract String |
getTemplatePath()
Gets the string template path |
protected String |
getTitle()
|
protected void |
perform(T resource)
Performing notification data from a given language |
protected void |
performBuild(T resource)
Builds the notification data container |
protected abstract void |
performNotificationResource(String language,
T resource,
NotificationResourceData notificationResourceData)
Builds the notification resource data container from a given language. |
protected void |
performNotificationResource(T resource)
Handling notification resource data (Used by delayed notifications for example) |
protected void |
performNotificationResource(T resource,
NotificationResourceData notificationResourceData)
Builds the notification resource data container. |
protected abstract void |
performTemplateData(String language,
T resource,
SilverpeasTemplate template)
Performing notification data from a given language |
Methods inherited from class com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder |
---|
getResource, getResourceURL, initialize, initializeNotificationResourceData, isSendImmediatly, performBuild, setResource |
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder |
---|
build, getAction, getBundle, getBundle, getComponentInstanceId, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getMultilangPropertyFile, getNotificationMetaData, getSender, getUserIdsToExcludeFromNotifying, getUserIdsToNotify, performUsersToBeNotified, stop, stopWhenNoUserToNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTemplateUserNotificationBuilder(T resource)
resource
- public AbstractTemplateUserNotificationBuilder(T resource, String fileName)
resource
- fileName
- public AbstractTemplateUserNotificationBuilder(T resource, String title, String fileName)
resource
- title
- fileName
- Method Detail |
---|
protected abstract String getBundleSubjectKey()
protected String getTitle()
getTitle
in class AbstractUserNotificationBuilder
protected String getFileName()
protected UserNotification createNotification()
AbstractUserNotificationBuilder
createNotification
in class AbstractUserNotificationBuilder
protected final void performBuild(T resource)
AbstractResourceUserNotificationBuilder
performBuild
in class AbstractResourceUserNotificationBuilder<T>
protected final void performNotificationResource(T resource)
AbstractResourceUserNotificationBuilder
performNotificationResource
in class AbstractResourceUserNotificationBuilder<T>
protected final void performNotificationResource(T resource, NotificationResourceData notificationResourceData)
AbstractResourceUserNotificationBuilder
performNotificationResource
in class AbstractResourceUserNotificationBuilder<T>
protected SilverpeasTemplate createTemplate()
protected void perform(T resource)
resource
- protected abstract void performTemplateData(String language, T resource, SilverpeasTemplate template)
language
- resource
- template
- protected abstract void performNotificationResource(String language, T resource, NotificationResourceData notificationResourceData)
language
- resource
- notificationResourceData
- protected abstract String getTemplatePath()
protected String getContributionAccessLinkLabelBundleKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |