Package org.ametys.plugins.sms.action
Class GetSmsListsAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.sms.action.GetSmsListsAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetSmsListsAction extends ServiceableAction
SAX events for SMS lists
-
-
Field Summary
Fields Modifier and Type Field Description protected SubscriberDAO
_subscriberDAO
The subscriber DAOprotected SmsListDAO
_subscriberListDAO
Subscriber list DAO-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetSmsListsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected Map<String,Object>
listToJSON(JCRSubscribersList subscribersList)
Gets SMS list's properties to JSON formatvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_subscriberListDAO
protected SmsListDAO _subscriberListDAO
Subscriber list DAO
-
_subscriberDAO
protected SubscriberDAO _subscriberDAO
The subscriber DAO
-
-
Constructor Detail
-
GetSmsListsAction
public GetSmsListsAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
listToJSON
protected Map<String,Object> listToJSON(JCRSubscribersList subscribersList)
Gets SMS list's properties to JSON format- Parameters:
subscribersList
- The SMS list of subscribers- Returns:
- The SMS list properties
-
-