Class MemberAddedActivityNotifier
java.lang.Object
org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityNotifier
org.ametys.plugins.workspaces.activities.projects.MemberAddedActivityNotifier
- All Implemented Interfaces:
PluginAware,ActivityNotifier,Contextualizable,Serviceable
Class representing a activity notifier for member added in workspaces
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GroupManagerThe group managerprotected ProjectMemberManagerThe project member managerFields inherited from class org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityNotifier
_context, _i18nUtils, _notificationPreferenceHelper, _pluginName, _projectManager, _renderingContextHandler, _resolver, _rightManager, _srcResolver, _userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMailBodyURI(Activity activity) Get the URI to resolve to get the mail bodygetTargetAmetysObject(Activity activity) Retrieve the ametys object targeted by this activity.getUsersEmailToNotify(Activity activity) Get the list of user email to notify for a given activityvoidservice(ServiceManager manager) booleansupport(ActivityType activityType) trueif the notifier support the activity typeMethods inherited from class org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityNotifier
_getSubjectI18nKey, contextualize, getMailHtmlBody, getMailSubject, getMailTextBody, getSubjectI18nParams, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.activities.notify.ActivityNotifier
isAsync
-
Field Details
-
_groupManager
The group manager -
_projectMemberManager
The project member manager
-
-
Constructor Details
-
MemberAddedActivityNotifier
public MemberAddedActivityNotifier()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkspacesActivityNotifier- Throws:
ServiceException
-
support
Description copied from interface:ActivityNotifiertrueif the notifier support the activity type- Parameters:
activityType- the activity type- Returns:
trueif the notifier support the activity type
-
getUsersEmailToNotify
Description copied from interface:ActivityNotifierGet the list of user email to notify for a given activity- Specified by:
getUsersEmailToNotifyin interfaceActivityNotifier- Overrides:
getUsersEmailToNotifyin classAbstractWorkspacesActivityNotifier- Parameters:
activity- the activity- Returns:
- the list of user email to notify
-
getMailBodyURI
Description copied from class:AbstractWorkspacesActivityNotifierGet the URI to resolve to get the mail body- Specified by:
getMailBodyURIin classAbstractWorkspacesActivityNotifier- Parameters:
activity- the activity- Returns:
- the uri
-
getTargetAmetysObject
Description copied from class:AbstractWorkspacesActivityNotifierRetrieve the ametys object targeted by this activity. This method is intended for right computation purposes.- Specified by:
getTargetAmetysObjectin classAbstractWorkspacesActivityNotifier- Parameters:
activity- the activity- Returns:
- the target
-