public class PageSubscribeAction extends AbstractNotifierAction
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The ametys resolver
|
protected static Pattern |
EMAIL_VALIDATOR
The pattern to check emails
|
static String |
SUBSCRIBERS_PROPERTY_NAME
Constant for the attachment node name.
|
protected static Pattern |
TEXT_VALIDATOR
The pattern to check text input
|
_observationManager
manager
EMPTY_MAP
Constructor and Description |
---|
PageSubscribeAction() |
Modifier and Type | Method and Description |
---|---|
private Set<String> |
_getSubscribers(JCRAmetysObject page) |
private void |
_setSubscribers(DefaultPage page,
Set<String> subscribers) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String SUBSCRIBERS_PROPERTY_NAME
protected static final Pattern EMAIL_VALIDATOR
protected static final Pattern TEXT_VALIDATOR
protected AmetysObjectResolver _resolver
public PageSubscribeAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractNotifierAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private Set<String> _getSubscribers(JCRAmetysObject page)
private void _setSubscribers(DefaultPage page, Set<String> subscribers)