public class SubscribeAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected CategoryProviderExtensionPoint |
_categoryProviderEP
The category providers manager
|
protected PageHelper |
_pageHelper
Page helper
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected SiteConfigurationExtensionPoint |
_siteConfiguration
The site configuration
|
protected SubscribersDAO |
_subscribersDao
The subscribers DAO
|
static Pattern |
EMAIL_PATTERN
The email pattern
|
manager
EMPTY_MAP
Constructor and Description |
---|
SubscribeAction() |
Modifier and Type | Method and Description |
---|---|
protected Category |
_getCategory(String categoryID)
Get the category
|
protected boolean |
_validCategory(String[] categories)
Determines if the categories are valid
|
protected boolean |
_validEmail(String email)
Determines if the email address is valid
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final Pattern EMAIL_PATTERN
protected SubscribersDAO _subscribersDao
protected CategoryProviderExtensionPoint _categoryProviderEP
protected SiteConfigurationExtensionPoint _siteConfiguration
protected AmetysObjectResolver _resolver
protected PageHelper _pageHelper
public SubscribeAction()
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 boolean _validEmail(String email)
email
- The email addressprotected boolean _validCategory(String[] categories)
categories
- The categories idprotected Category _getCategory(String categoryID)
categoryID
- The category id