public class AutomaticNewsletterDAO extends Object implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
private AutomaticNewsletterExtensionPoint |
_autoNewsletterEP |
private CategoryProviderExtensionPoint |
_categoryProviderEP |
Constructor and Description |
---|
AutomaticNewsletterDAO() |
Modifier and Type | Method and Description |
---|---|
List<Map<String,Object>> |
getAutomaticNewsletters()
Get the automatic newsletters
|
void |
service(ServiceManager manager) |
void |
setAutomaticNewsletters(String categoryId,
List<String> autoNewslettersIds)
Set the automatic newsletters property on a newsletter category.
|
private CategoryProviderExtensionPoint _categoryProviderEP
private AutomaticNewsletterExtensionPoint _autoNewsletterEP
public AutomaticNewsletterDAO()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setAutomaticNewsletters(String categoryId, List<String> autoNewslettersIds) throws ProcessingException
categoryId
- The id of categoryautoNewslettersIds
- the list of automatic newsletter idsProcessingException
- if an error occurred when setting up the automatic newsletterspublic List<Map<String,Object>> getAutomaticNewsletters()