Class MembershipRequestValidationUserNotificationBuilder
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.MembershipRequestValidationUserNotificationBuilder
- All Implemented Interfaces:
org.silverpeas.core.notification.user.builder.UserNotificationBuilder
public class MembershipRequestValidationUserNotificationBuilder
extends AbstractCommunityUserNotificationBuilder
User notification dedicated to the management of the validation of member request to join a
community.
- 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.protected Stringprotected Stringprotected Collection<String>protected voidperform(CommunityOfUsers resource) protected voidperformTemplateData(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template) validating(org.silverpeas.core.admin.user.model.User requester, boolean accept) Indicating the requester for which the join request validation has been performed and if the request has been accepted or refused.withMessage(String message) Sets an additional message if any.Methods inherited from class org.silverpeas.components.community.notification.user.AbstractCommunityUserNotificationBuilder
getAction, getComponentInstanceId, getContributionAccessLinkLabelBundleKey, getLocalizationBundlePath, getResourceURL, getSender, getSpace, getSpaceManagerProfile, getTemplatePath, isSendImmediately, performNotificationResourceMethods inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
createNotification, getTitle, 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, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, stop, stopWhenNoUserToNotify
-
Constructor Details
-
MembershipRequestValidationUserNotificationBuilder
-
-
Method Details
-
about
Initializing the user notification builder with given community.- Parameters:
community- aCommunityOfUsersinstance.- Returns:
- the builder instance itself.
-
validating
public MembershipRequestValidationUserNotificationBuilder validating(org.silverpeas.core.admin.user.model.User requester, boolean accept) Indicating the requester for which the join request validation has been performed and if the request has been accepted or refused.- Parameters:
requester- aUserinstance if the join requester.accept- the result of the validation. true if accepted, false otherwise.- Returns:
- the builder instance itself.
-
withMessage
Sets an additional message if any.- Parameters:
message- a string.- 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>
-
getUserIdsToNotify
- Specified by:
getUserIdsToNotifyin classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
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
-