public class SendOnlineNotificationAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
private GroupManager |
_groupManager |
private I18nUtils |
_i18nUtils |
private AmetysObjectResolver |
_resolver |
private UserHelper |
_userHelper |
private UserManager |
_userManager |
private CurrentUserProvider |
_userProvider |
manager
EMPTY_MAP
Constructor and Description |
---|
SendOnlineNotificationAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
_getBody(User sender,
User user,
Page page)
Get the email body
|
private Set<User> |
_getDistinctUsers(List<UserIdentity> userIdentities,
List<GroupIdentity> groupIdentities) |
protected String |
_getSender(User sender,
Page page)
Get the email sender
|
protected String |
_getSubject(User sender,
Page page)
Get the email subject
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private UserManager _userManager
private GroupManager _groupManager
private AmetysObjectResolver _resolver
private I18nUtils _i18nUtils
private CurrentUserProvider _userProvider
private UserHelper _userHelper
public SendOnlineNotificationAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected String _getSender(User sender, Page page)
sender
- The user responsible for the actionpage
- The published pageprotected String _getSubject(User sender, Page page)
sender
- The user responsible for the notificationpage
- The published pageprotected String _getBody(User sender, User user, Page page)
sender
- The user responsible for the notificationuser
- The recipient of the notificationpage
- The published pageprivate Set<User> _getDistinctUsers(List<UserIdentity> userIdentities, List<GroupIdentity> groupIdentities)