Class AutomaticNewsletterDAO
- java.lang.Object
-
- org.ametys.plugins.newsletter.auto.AutomaticNewsletterDAO
-
- All Implemented Interfaces:
Component
,Serviceable
public class AutomaticNewsletterDAO extends Object implements Serviceable, Component
DAO for manipulating automatic newsletter categories.
-
-
Constructor Summary
Constructors Constructor Description AutomaticNewsletterDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>
getAutomaticNewsletters()
Get the automatic newslettersvoid
service(ServiceManager manager)
void
setAutomaticNewsletters(String categoryId, List<String> autoNewslettersIds)
Set the automatic newsletters property on a newsletter category.
-
-
-
Constructor Detail
-
AutomaticNewsletterDAO
public AutomaticNewsletterDAO()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setAutomaticNewsletters
public void setAutomaticNewsletters(String categoryId, List<String> autoNewslettersIds) throws ProcessingException
Set the automatic newsletters property on a newsletter category.- Parameters:
categoryId
- The id of categoryautoNewslettersIds
- the list of automatic newsletter ids- Throws:
ProcessingException
- if an error occurred when setting up the automatic newsletters
-
getAutomaticNewsletters
public List<Map<String,Object>> getAutomaticNewsletters()
Get the automatic newsletters- Returns:
- the automatic newsletters
-
-