public class NewsLetter extends Object implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResource
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE
Name of the resource type
|
Constructor and Description |
---|
NewsLetter() |
Modifier and Type | Method and Description |
---|---|
Timestamp |
getDateLastSending()
Returns the date of the last sending
|
String |
getDescription()
Returns the name of the newsletter
|
String |
getHtml()
Returns the html content of the newsletter
|
int |
getId()
Returns the identifier of the newsletter
|
String |
getName()
Returns the name of the newsletter
|
int |
getNbSections()
Get the number of sections of this newsletter
|
String |
getNewsletterSenderMail()
Returns the Newsletter sender mail
|
String |
getNewsletterSenderName()
Returns the Newsletter sender name
|
int |
getNewsLetterTemplateId()
Returns the identifier of the newsletter template
|
String |
getResourceId()
Returns the Resource Type Code that identify the resource type
|
String |
getResourceTypeCode()
Returns the resource Id of the current object
|
String |
getTestRecipients()
Returns the test recipients
|
String |
getTestSubject()
Returns the subject of the newsletter
|
String |
getTOS()
Returns the tos content of the newsletter
|
String |
getUnsubscribe()
Returns the unsubscription of the newsletter
|
String |
getWorkgroup()
Returns the workgroup
|
static void |
init()
Initialize the Newsletter
|
boolean |
isCaptchaActive()
return if the user must enter a captcha to subscribe
|
boolean |
isValidationActive()
return if the validation by mail is active
|
void |
setCaptchaActive(boolean bIsCaptchaActive)
Set if the user must enter a captcha to subscribe
|
void |
setDateLastSending(Timestamp dateLastSending)
Sets the date of the last newsletter sending
|
void |
setDescription(String strDescription)
Sets the description of the newsletter
|
void |
setHtml(String strHtml)
Sets the html content of the newsletter
|
void |
setId(int nId)
Sets the identifier of the newsletter
|
void |
setName(String strName)
Sets the name of the newsletter
|
void |
setNbSections(int nNbSections)
Set the number of sections of this newsletter
|
void |
setNewsletterSenderMail(String strNewsletterSenderMail)
Sets the Newsletter sender mail
|
void |
setNewsletterSenderName(String strNewsletterSenderName)
Sets the Newsletter sender name
|
void |
setNewsLetterTemplateId(int nNewsLetterTemplateId)
Sets the identifier of the newsletter template
|
void |
setTestRecipients(String strTestRecipients)
Sets the test recipients
|
void |
setTestSubject(String strTestSubject)
Sets the test subject of the newsletter
|
void |
setTOS(String strTermOfService)
Sets the tos content of the newsletter
|
void |
setUnsubscribe(String strUnsubscribe)
Sets the value of the unsubscription to the newsletter
|
void |
setValidationActive(boolean bIsValidationActive)
Set if the user must validate by mail
|
void |
setWorkgroup(String strWorkgroup)
Sets the workgroup
|
public static final String RESOURCE_TYPE
public static void init()
public int getId()
public void setId(int nId)
nId
- the newsletter identifierpublic String getTestSubject()
public void setTestSubject(String strTestSubject)
strTestSubject
- the newsletter test subjectpublic void setValidationActive(boolean bIsValidationActive)
bIsValidationActive
- the booleanpublic boolean isValidationActive()
public void setCaptchaActive(boolean bIsCaptchaActive)
bIsCaptchaActive
- the booleanpublic boolean isCaptchaActive()
public String getName()
public void setName(String strName)
strName
- the newsletter namepublic String getDescription()
public void setDescription(String strDescription)
strDescription
- the descriptionpublic String getUnsubscribe()
public void setUnsubscribe(String strUnsubscribe)
strUnsubscribe
- the newsletter namepublic void setDateLastSending(Timestamp dateLastSending)
dateLastSending
- the last date of sendingpublic Timestamp getDateLastSending()
public String getHtml()
public void setHtml(String strHtml)
strHtml
- the html content of the newsletterpublic String getTOS()
public void setTOS(String strTermOfService)
strTermOfService
- the tos content of the newsletterpublic int getNewsLetterTemplateId()
public void setNewsLetterTemplateId(int nNewsLetterTemplateId)
nNewsLetterTemplateId
- the newsletter template identifierpublic String getWorkgroup()
getWorkgroup
in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public void setWorkgroup(String strWorkgroup)
strWorkgroup
- The workgrouppublic String getTestRecipients()
public void setTestRecipients(String strTestRecipients)
strTestRecipients
- The Test recipientspublic String getNewsletterSenderMail()
public void setNewsletterSenderMail(String strNewsletterSenderMail)
strNewsletterSenderMail
- The NewsletterSenderMailpublic String getNewsletterSenderName()
public void setNewsletterSenderName(String strNewsletterSenderName)
strNewsletterSenderName
- The NewsletterSenderNamepublic String getResourceId()
getResourceId
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public String getResourceTypeCode()
getResourceTypeCode
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public int getNbSections()
public void setNbSections(int nNbSections)
nNbSections
- The number of sections of this newsletterCopyright © 2019 City of Paris. All rights reserved.