Class NewsLetter
java.lang.Object
fr.paris.lutece.plugins.newsletter.business.NewsLetter
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public class NewsLetter
extends Object
implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResource
This class represents business NewsLetter Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date of the last sendingReturns the name of the newslettergetHtml()Returns the html content of the newsletterintgetId()Returns the identifier of the newslettergetName()Returns the name of the newsletterintGet the number of sections of this newsletterReturns the Newsletter sender mailReturns the Newsletter sender nameintReturns the identifier of the newsletter templateReturns the Resource Type Code that identify the resource typeReturns the resource Id of the current objectReturns the test recipientsReturns the subject of the newslettergetTOS()Returns the tos content of the newsletterReturns the unsubscription of the newsletterReturns the workgroupstatic voidinit()Initialize the Newsletterbooleanreturn if the user must enter a captcha to subscribebooleanreturn if the validation by mail is activevoidsetCaptchaActive(boolean bIsCaptchaActive) Set if the user must enter a captcha to subscribevoidsetDateLastSending(Timestamp dateLastSending) Sets the date of the last newsletter sendingvoidsetDescription(String strDescription) Sets the description of the newslettervoidSets the html content of the newslettervoidsetId(int nId) Sets the identifier of the newslettervoidSets the name of the newslettervoidsetNbSections(int nNbSections) Set the number of sections of this newslettervoidsetNewsletterSenderMail(String strNewsletterSenderMail) Sets the Newsletter sender mailvoidsetNewsletterSenderName(String strNewsletterSenderName) Sets the Newsletter sender namevoidsetNewsLetterTemplateId(int nNewsLetterTemplateId) Sets the identifier of the newsletter templatevoidsetTestRecipients(String strTestRecipients) Sets the test recipientsvoidsetTestSubject(String strTestSubject) Sets the test subject of the newslettervoidSets the tos content of the newslettervoidsetUnsubscribe(String strUnsubscribe) Sets the value of the unsubscription to the newslettervoidsetValidationActive(boolean bIsValidationActive) Set if the user must validate by mailvoidsetWorkgroup(String strWorkgroup) Sets the workgroup
-
Field Details
-
RESOURCE_TYPE
Name of the resource type- See Also:
-
-
Constructor Details
-
NewsLetter
public NewsLetter()
-
-
Method Details
-
init
public static void init()Initialize the Newsletter -
getId
public int getId()Returns the identifier of the newsletter- Returns:
- the newsletter identifier
-
setId
public void setId(int nId) Sets the identifier of the newsletter- Parameters:
nId- the newsletter identifier
-
getTestSubject
Returns the subject of the newsletter- Returns:
- the newsletter identifier
-
setTestSubject
Sets the test subject of the newsletter- Parameters:
strTestSubject- the newsletter test subject
-
setValidationActive
public void setValidationActive(boolean bIsValidationActive) Set if the user must validate by mail- Parameters:
bIsValidationActive- the boolean
-
isValidationActive
public boolean isValidationActive()return if the validation by mail is active- Returns:
- _bIsValidationActive the boolean
-
setCaptchaActive
public void setCaptchaActive(boolean bIsCaptchaActive) Set if the user must enter a captcha to subscribe- Parameters:
bIsCaptchaActive- the boolean
-
isCaptchaActive
public boolean isCaptchaActive()return if the user must enter a captcha to subscribe- Returns:
- bIsCaptchaActive the boolean
-
getName
Returns the name of the newsletter- Returns:
- the newsletter name
-
setName
Sets the name of the newsletter- Parameters:
strName- the newsletter name
-
getDescription
Returns the name of the newsletter- Returns:
- the newsletter name
-
setDescription
Sets the description of the newsletter- Parameters:
strDescription- the description
-
getUnsubscribe
Returns the unsubscription of the newsletter- Returns:
- the newsletter unsubscrition value
-
setUnsubscribe
Sets the value of the unsubscription to the newsletter- Parameters:
strUnsubscribe- the newsletter name
-
setDateLastSending
Sets the date of the last newsletter sending- Parameters:
dateLastSending- the last date of sending
-
getDateLastSending
Returns the date of the last sending- Returns:
- the last sending date
-
getHtml
Returns the html content of the newsletter- Returns:
- the html content of the newsletter
-
setHtml
Sets the html content of the newsletter- Parameters:
strHtml- the html content of the newsletter
-
getTOS
Returns the tos content of the newsletter- Returns:
- the tos content of the newsletter
-
setTOS
Sets the tos content of the newsletter- Parameters:
strTermOfService- the tos content of the newsletter
-
getNewsLetterTemplateId
public int getNewsLetterTemplateId()Returns the identifier of the newsletter template- Returns:
- the newsletter template identifier
-
setNewsLetterTemplateId
public void setNewsLetterTemplateId(int nNewsLetterTemplateId) Sets the identifier of the newsletter template- Parameters:
nNewsLetterTemplateId- the newsletter template identifier
-
getWorkgroup
Returns the workgroup- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- The workgroup
-
setWorkgroup
Sets the workgroup- Parameters:
strWorkgroup- The workgroup
-
getTestRecipients
Returns the test recipients- Returns:
- The test recipients
-
setTestRecipients
Sets the test recipients- Parameters:
strTestRecipients- The Test recipients
-
getNewsletterSenderMail
Returns the Newsletter sender mail- Returns:
- The Newsletter sender mail
-
setNewsletterSenderMail
Sets the Newsletter sender mail- Parameters:
strNewsletterSenderMail- The NewsletterSenderMail
-
getNewsletterSenderName
Returns the Newsletter sender name- Returns:
- The Newsletter sender name
-
setNewsletterSenderName
Sets the Newsletter sender name- Parameters:
strNewsletterSenderName- The NewsletterSenderName
-
getResourceId
Returns the Resource Type Code that identify the resource type- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The Resource Type Code
-
getResourceTypeCode
Returns the resource Id of the current object- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resource Id of the current object
-
getNbSections
public int getNbSections()Get the number of sections of this newsletter- Returns:
- The number of sections of this newsletter
-
setNbSections
public void setNbSections(int nNbSections) Set the number of sections of this newsletter- Parameters:
nNbSections- The number of sections of this newsletter
-