Class MembershipLeaveUserNotificationBuilder
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<CommunityOfUsers>
org.silverpeas.components.community.notification.user.AbstractCommunityUserNotificationBuilder
org.silverpeas.components.community.notification.user.MembershipLeaveUserNotificationBuilder
- All Implemented Interfaces:
org.silverpeas.core.notification.user.builder.UserNotificationBuilder
public class MembershipLeaveUserNotificationBuilder
extends AbstractCommunityUserNotificationBuilder
User notification dedicated to the membership leave.
- Author:
- silveryocha
-
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
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionabout(CommunityOfUsers community) Initializing the user notification builder with given community.andContactInFuture(boolean contactInFuture) Indicates that the member accepts or not to be contacted in the future about its leaving.andMessage(String message) Sets an additional message that allows the member to explain more precisely the reason of its leaving.protected Stringprotected Collection<String>protected Stringprotected Stringprotected Stringprotected Collection<String>memberLeavingIs(org.silverpeas.core.admin.user.model.User leavingMember) Indicating the member which is leaving the community.protected voidperform(CommunityOfUsers resource) protected voidperformTemplateData(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template) withReason(int reason) Sets the leaving reason that the member has indicated.Methods inherited from class org.silverpeas.components.community.notification.user.AbstractCommunityUserNotificationBuilder
getAction, getComponentInstanceId, getContributionAccessLinkLabelBundleKey, getLocalizationBundlePath, getResourceURL, getSpace, getSpaceManagerProfile, getTemplatePath, isSendImmediately, performNotificationResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
createNotification, getTitle, performBuild, performNotificationResource, performNotificationResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder
getResource, initialize, initializeNotificationResourceData, isGroupCanBeNotified, isUserCanBeNotified, performBuild, setResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
build, getBundle, getBundle, getContent, getExternalAddressesToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, stop, stopWhenNoUserToNotify
-
Constructor Details
-
MembershipLeaveUserNotificationBuilder
-
-
Method Details
-
about
Initializing the user notification builder with given community.- Parameters:
community- aCommunityOfUsersinstance.- Returns:
- the builder instance itself.
-
memberLeavingIs
public MembershipLeaveUserNotificationBuilder memberLeavingIs(org.silverpeas.core.admin.user.model.User leavingMember) Indicating the member which is leaving the community.- Parameters:
leavingMember- aUserinstance representing the member leaving the community.- Returns:
- the builder instance itself.
-
withReason
Sets the leaving reason that the member has indicated.- Parameters:
reason- an integer representing the index to retrieve the reason label intoCommunityComponentSettings.getLeaveReasons(String)list.- Returns:
- the builder instance itself.
-
andMessage
Sets an additional message that allows the member to explain more precisely the reason of its leaving.- Parameters:
message- a string.- Returns:
- the builder instance itself.
-
andContactInFuture
Indicates that the member accepts or not to be contacted in the future about its leaving.- Parameters:
contactInFuture- a boolean.- Returns:
- the builder instance itself.
-
getBundleSubjectKey
- Overrides:
getBundleSubjectKeyin classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getTemplateFileName
- Specified by:
getTemplateFileNamein classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getTitle
- Overrides:
getTitlein classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getUserIdsToNotify
- Specified by:
getUserIdsToNotifyin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getGroupIdsToNotify
- Overrides:
getGroupIdsToNotifyin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getSender
- Overrides:
getSenderin classAbstractCommunityUserNotificationBuilder
-
perform
- Overrides:
performin classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
performTemplateData
protected void performTemplateData(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template) - Overrides:
performTemplateDatain classAbstractCommunityUserNotificationBuilder
-