public class NewsletterDAO extends Object implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_resolver |
static String |
ROLE
The Avalon role
|
Constructor and Description |
---|
NewsletterDAO() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getNewsletterProperties(Content newsletter)
Gets newsletter's properties to JSON format
|
boolean |
isSent(String newsletterId)
Determines if the newsletter was already sent
|
void |
service(ServiceManager smanager) |
private AmetysObjectResolver _resolver
public NewsletterDAO()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isSent(String newsletterId)
newsletterId
- the id of newsletterpublic Map<String,Object> getNewsletterProperties(Content newsletter)
newsletter
- The newsletter