public class InfoSubscriberGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected UserManager |
_foUserManager
FO user manager
|
protected AmetysObjectResolver |
_resolver
Repository content
|
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
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
InfoSubscriberGenerator() |
Modifier and Type | Method and Description |
---|---|
private Set<String> |
_getSubscribers(JCRAmetysObject page) |
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public static final String SUBSCRIBERS_PROPERTY_NAME
protected static final Pattern EMAIL_VALIDATOR
protected static final Pattern TEXT_VALIDATOR
protected AmetysObjectResolver _resolver
protected UserManager _foUserManager
protected CurrentUserProvider _currentUserProvider
public InfoSubscriberGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private Set<String> _getSubscribers(JCRAmetysObject page)