public class SmsListDAO extends Object implements Serviceable, Component
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The object resolver
|
protected RightManager |
_rightManager
The right manager
|
private SiteManager |
_siteManager
The site manager
|
protected SubscriberDAO |
_subscriberDAO
The subscriber DAO
|
protected CurrentUserProvider |
_userProvider
The user provider
|
static String |
ROLE
The Avalon role
|
| Constructor and Description |
|---|
SmsListDAO() |
| Modifier and Type | Method and Description |
|---|---|
private TraversableAmetysObject |
_getRootNode(String sitename,
String lang) |
Map<String,String> |
createList(String title,
String description,
String siteName,
String language)
Creates a new SMS subscribers list.
|
Map<String,String> |
deleteLists(ArrayList<String> ids)
Deletes the given SMS subscribers lists.
|
Map<String,String> |
editList(String id,
String title,
String description,
String language)
Edits a given SMS subscribers list.
|
Map<String,Object> |
getListsProperties(List<String> listIds)
Get the properties of given subscribers lists
|
List<JCRSubscribersList> |
getSubscribersLists(String siteName,
String lang)
Get all the sms list
|
void |
service(ServiceManager manager) |
protected AmetysObjectResolver _resolver
protected RightManager _rightManager
protected CurrentUserProvider _userProvider
protected SubscriberDAO _subscriberDAO
private SiteManager _siteManager
public SmsListDAO()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic Map<String,String> createList(String title, String description, String siteName, String language) throws Exception
title - The title of the new list.description - The description of the new list.siteName - The site name.language - The language.Exception - if an error occurs during the list creation processpublic Map<String,String> editList(String id, String title, String description, String language)
id - the id of the list to edit.title - The new title of the list.description - The new description of the list.language - The language.public Map<String,String> deleteLists(ArrayList<String> ids)
ids - the ids of the lists to delete.public Map<String,Object> getListsProperties(List<String> listIds)
listIds - The ids of listspublic List<JCRSubscribersList> getSubscribersLists(String siteName, String lang) throws RepositoryException
siteName - the name of the sitelang - the languageRepositoryException - if an error occurs while manipulating the repositoryprivate TraversableAmetysObject _getRootNode(String sitename, String lang) throws RepositoryException
RepositoryException