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 java.lang.Object implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResourceThis class represents business NewsLetter Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_TYPEName of the resource type
-
Constructor Summary
Constructors Constructor Description NewsLetter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.TimestampgetDateLastSending()Returns the date of the last sendingjava.lang.StringgetDescription()Returns the name of the newsletterjava.lang.StringgetHtml()Returns the html content of the newsletterintgetId()Returns the identifier of the newsletterjava.lang.StringgetName()Returns the name of the newsletterintgetNbSections()Get the number of sections of this newsletterjava.lang.StringgetNewsletterSenderMail()Returns the Newsletter sender mailjava.lang.StringgetNewsletterSenderName()Returns the Newsletter sender nameintgetNewsLetterTemplateId()Returns the identifier of the newsletter templatejava.lang.StringgetResourceId()Returns the Resource Type Code that identify the resource typejava.lang.StringgetResourceTypeCode()Returns the resource Id of the current objectjava.lang.StringgetTestRecipients()Returns the test recipientsjava.lang.StringgetTestSubject()Returns the subject of the newsletterjava.lang.StringgetTOS()Returns the tos content of the newsletterjava.lang.StringgetUnsubscribe()Returns the unsubscription of the newsletterjava.lang.StringgetWorkgroup()Returns the workgroupstatic voidinit()Initialize the NewsletterbooleanisCaptchaActive()return if the user must enter a captcha to subscribebooleanisValidationActive()return if the validation by mail is activevoidsetCaptchaActive(boolean bIsCaptchaActive)Set if the user must enter a captcha to subscribevoidsetDateLastSending(java.sql.Timestamp dateLastSending)Sets the date of the last newsletter sendingvoidsetDescription(java.lang.String strDescription)Sets the description of the newslettervoidsetHtml(java.lang.String strHtml)Sets the html content of the newslettervoidsetId(int nId)Sets the identifier of the newslettervoidsetName(java.lang.String strName)Sets the name of the newslettervoidsetNbSections(int nNbSections)Set the number of sections of this newslettervoidsetNewsletterSenderMail(java.lang.String strNewsletterSenderMail)Sets the Newsletter sender mailvoidsetNewsletterSenderName(java.lang.String strNewsletterSenderName)Sets the Newsletter sender namevoidsetNewsLetterTemplateId(int nNewsLetterTemplateId)Sets the identifier of the newsletter templatevoidsetTestRecipients(java.lang.String strTestRecipients)Sets the test recipientsvoidsetTestSubject(java.lang.String strTestSubject)Sets the test subject of the newslettervoidsetTOS(java.lang.String strTermOfService)Sets the tos content of the newslettervoidsetUnsubscribe(java.lang.String strUnsubscribe)Sets the value of the unsubscription to the newslettervoidsetValidationActive(boolean bIsValidationActive)Set if the user must validate by mailvoidsetWorkgroup(java.lang.String strWorkgroup)Sets the workgroup
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final java.lang.String RESOURCE_TYPE
Name of the resource type- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public java.lang.String getTestSubject()
Returns the subject of the newsletter- Returns:
- the newsletter identifier
-
setTestSubject
public void setTestSubject(java.lang.String strTestSubject)
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
public java.lang.String getName()
Returns the name of the newsletter- Returns:
- the newsletter name
-
setName
public void setName(java.lang.String strName)
Sets the name of the newsletter- Parameters:
strName- the newsletter name
-
getDescription
public java.lang.String getDescription()
Returns the name of the newsletter- Returns:
- the newsletter name
-
setDescription
public void setDescription(java.lang.String strDescription)
Sets the description of the newsletter- Parameters:
strDescription- the description
-
getUnsubscribe
public java.lang.String getUnsubscribe()
Returns the unsubscription of the newsletter- Returns:
- the newsletter unsubscrition value
-
setUnsubscribe
public void setUnsubscribe(java.lang.String strUnsubscribe)
Sets the value of the unsubscription to the newsletter- Parameters:
strUnsubscribe- the newsletter name
-
setDateLastSending
public void setDateLastSending(java.sql.Timestamp dateLastSending)
Sets the date of the last newsletter sending- Parameters:
dateLastSending- the last date of sending
-
getDateLastSending
public java.sql.Timestamp getDateLastSending()
Returns the date of the last sending- Returns:
- the last sending date
-
getHtml
public java.lang.String getHtml()
Returns the html content of the newsletter- Returns:
- the html content of the newsletter
-
setHtml
public void setHtml(java.lang.String strHtml)
Sets the html content of the newsletter- Parameters:
strHtml- the html content of the newsletter
-
getTOS
public java.lang.String getTOS()
Returns the tos content of the newsletter- Returns:
- the tos content of the newsletter
-
setTOS
public void setTOS(java.lang.String strTermOfService)
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
public java.lang.String getWorkgroup()
Returns the workgroup- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- The workgroup
-
setWorkgroup
public void setWorkgroup(java.lang.String strWorkgroup)
Sets the workgroup- Parameters:
strWorkgroup- The workgroup
-
getTestRecipients
public java.lang.String getTestRecipients()
Returns the test recipients- Returns:
- The test recipients
-
setTestRecipients
public void setTestRecipients(java.lang.String strTestRecipients)
Sets the test recipients- Parameters:
strTestRecipients- The Test recipients
-
getNewsletterSenderMail
public java.lang.String getNewsletterSenderMail()
Returns the Newsletter sender mail- Returns:
- The Newsletter sender mail
-
setNewsletterSenderMail
public void setNewsletterSenderMail(java.lang.String strNewsletterSenderMail)
Sets the Newsletter sender mail- Parameters:
strNewsletterSenderMail- The NewsletterSenderMail
-
getNewsletterSenderName
public java.lang.String getNewsletterSenderName()
Returns the Newsletter sender name- Returns:
- The Newsletter sender name
-
setNewsletterSenderName
public void setNewsletterSenderName(java.lang.String strNewsletterSenderName)
Sets the Newsletter sender name- Parameters:
strNewsletterSenderName- The NewsletterSenderName
-
getResourceId
public java.lang.String 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
public java.lang.String 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
-
-