Class RemoveMemberMailManagersNotifierObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.workspaces.project.notification.AbstractMemberMailNotifierObserver
-
- org.ametys.plugins.workspaces.project.notification.AbstractRemoveMemberMailNotifierObserver
-
- org.ametys.plugins.workspaces.project.notification.RemoveMemberMailManagersNotifierObserver
-
- All Implemented Interfaces:
AsyncObserver,Observer,LogEnabled,PluginAware,Serviceable
public class RemoveMemberMailManagersNotifierObserver extends AbstractRemoveMemberMailNotifierObserver
Observer to send mail notifications on workspace member removal
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.workspaces.project.notification.AbstractMemberMailNotifierObserver
_groupManager, _i18nUtils, _pluginName, _populationContextHelper, _projectManager, _projectMemberManager, _resolver, _siteManager, _userManager
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RemoveMemberMailManagersNotifierObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<String>_getProjectManagerEmails(Project project)protected I18nizableTextgetBodyI18nizableText(Project project, List<User> removedUsers)Gets theI18nizableTextfor body of the mailprotected StringgetBodyI18nKey()Gets the i18n body keyprotected List<String>getBodyParams(Project project, List<User> removedUsers)Gets the i18n parameters for body keyprotected I18nizableTextgetSubjectI18nizableText(Project project, List<User> removedUsers)Gets theI18nizableTextfor subject of the mailprotected StringgetSubjectI18nKey()Gets the i18n subject keyprotected List<String>getSubjectParams(Project project, List<User> removedUsers)Gets the i18n parameters for subject keyprotected voidsendMail(Project project, List<User> removedUsers)Send mail about removed users from project-
Methods inherited from class org.ametys.plugins.workspaces.project.notification.AbstractRemoveMemberMailNotifierObserver
observe, supports
-
Methods inherited from class org.ametys.plugins.workspaces.project.notification.AbstractMemberMailNotifierObserver
getI18nParams, getPriority, getProjectsCatalogUrl, getProjectUrl, getUsersEmail, service, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
-
-
-
-
Constructor Detail
-
RemoveMemberMailManagersNotifierObserver
public RemoveMemberMailManagersNotifierObserver()
-
-
Method Detail
-
sendMail
protected void sendMail(Project project, List<User> removedUsers)
Description copied from class:AbstractRemoveMemberMailNotifierObserverSend mail about removed users from project- Specified by:
sendMailin classAbstractRemoveMemberMailNotifierObserver- Parameters:
project- The projectremovedUsers- The removed users
-
_getProjectManagerEmails
private List<String> _getProjectManagerEmails(Project project)
-
getSubjectI18nizableText
protected I18nizableText getSubjectI18nizableText(Project project, List<User> removedUsers)
Gets theI18nizableTextfor subject of the mail- Parameters:
project- the projectremovedUsers- the users removed- Returns:
- the subject
-
getSubjectI18nKey
protected String getSubjectI18nKey()
Gets the i18n subject key- Returns:
- the i18n subject key
-
getSubjectParams
protected List<String> getSubjectParams(Project project, List<User> removedUsers)
Gets the i18n parameters for subject key- Parameters:
project- the projectremovedUsers- the users removed- Returns:
- the i18n parameters
-
getBodyI18nizableText
protected I18nizableText getBodyI18nizableText(Project project, List<User> removedUsers)
Gets theI18nizableTextfor body of the mail- Parameters:
project- the projectremovedUsers- the users removed- Returns:
- the body
-
getBodyI18nKey
protected String getBodyI18nKey()
Gets the i18n body key- Returns:
- the i18n body key
-
-