Class MembershipRequestUserNotificationBuilder
- 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.MembershipRequestUserNotificationBuilder
-
- All Implemented Interfaces:
org.silverpeas.core.notification.user.builder.UserNotificationBuilder
public class MembershipRequestUserNotificationBuilder extends AbstractCommunityUserNotificationBuilder
User notification dedicated to notify validators about a new member request to join a community.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MembershipRequestUserNotificationBuilder(CommunityOfUsers resource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MembershipRequestUserNotificationBuilder
about(CommunityOfUsers community)
Initializing the user notification builder with given community.protected String
getBundleSubjectKey()
protected Collection<String>
getGroupIdsToNotify()
protected String
getResourceURL(CommunityOfUsers resource)
protected String
getSender()
protected String
getTemplateFileName()
protected String
getTitle(String language)
protected Collection<String>
getUserIdsToNotify()
MembershipRequestUserNotificationBuilder
newRequestFrom(org.silverpeas.core.admin.user.model.User requester)
Indicating the requester for which the join request validation has been performed and if the request has been accepted or refused.protected void
performTemplateData(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)
-
Methods inherited from class org.silverpeas.components.community.notification.user.AbstractCommunityUserNotificationBuilder
getAction, getComponentInstanceId, getContributionAccessLinkLabelBundleKey, getLocalizationBundlePath, getSpace, getSpaceManagerProfile, getTemplatePath, isSendImmediately, performNotificationResource
-
Methods inherited from class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder
createNotification, getTitle, perform, performBuild, performNotificationResource, performNotificationResource
-
Methods inherited from class org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder
getResource, initialize, initializeNotificationResourceData, isGroupCanBeNotified, isUserCanBeNotified, performBuild, setResource
-
-
-
-
Constructor Detail
-
MembershipRequestUserNotificationBuilder
protected MembershipRequestUserNotificationBuilder(CommunityOfUsers resource)
-
-
Method Detail
-
about
public static MembershipRequestUserNotificationBuilder about(CommunityOfUsers community)
Initializing the user notification builder with given community.- Parameters:
community
- aCommunityOfUsers
instance.- Returns:
- the builder instance itself.
-
newRequestFrom
public MembershipRequestUserNotificationBuilder newRequestFrom(org.silverpeas.core.admin.user.model.User requester)
Indicating the requester for which the join request validation has been performed and if the request has been accepted or refused.- Parameters:
requester
- aUser
instance if the join requester.- Returns:
- the builder instance itself.
-
getBundleSubjectKey
protected String getBundleSubjectKey()
- Overrides:
getBundleSubjectKey
in classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getTemplateFileName
protected String getTemplateFileName()
- Specified by:
getTemplateFileName
in classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getTitle
protected String getTitle(String language)
- Overrides:
getTitle
in classorg.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<CommunityOfUsers>
-
getUserIdsToNotify
protected Collection<String> getUserIdsToNotify()
- Specified by:
getUserIdsToNotify
in classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getGroupIdsToNotify
protected Collection<String> getGroupIdsToNotify()
- Overrides:
getGroupIdsToNotify
in classorg.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
-
getSender
protected String getSender()
- Overrides:
getSender
in classAbstractCommunityUserNotificationBuilder
-
getResourceURL
protected String getResourceURL(CommunityOfUsers resource)
- Overrides:
getResourceURL
in classAbstractCommunityUserNotificationBuilder
-
performTemplateData
protected void performTemplateData(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)
- Overrides:
performTemplateData
in classAbstractCommunityUserNotificationBuilder
-
-