Class AutomaticNewsletterDAO
java.lang.Object
org.ametys.plugins.newsletter.auto.AutomaticNewsletterDAO
- All Implemented Interfaces:
Component
,Serviceable
DAO for manipulating automatic newsletter categories.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the automatic newslettersvoid
service
(ServiceManager manager) void
setAutomaticNewsletters
(String categoryId, List<String> autoNewslettersIds) Set the automatic newsletters property on a newsletter category.
-
Constructor Details
-
AutomaticNewsletterDAO
public AutomaticNewsletterDAO()
-
-
Method Details
-
service
- 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
Get the automatic newsletters- Returns:
- the automatic newsletters
-