fr.paris.lutece.plugins.newsletter.business
Class NewsLetter

java.lang.Object
  extended by 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
static String RESOURCE_TYPE
          Name of the resource type
 
Constructor Summary
NewsLetter()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final String RESOURCE_TYPE
Name of the resource type

See Also:
Constant Field Values
Constructor Detail

NewsLetter

public NewsLetter()
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 String getTestSubject()
Returns the subject of the newsletter

Returns:
the newsletter identifier

setTestSubject

public void setTestSubject(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 String getName()
Returns the name of the newsletter

Returns:
the newsletter name

setName

public void setName(String strName)
Sets the name of the newsletter

Parameters:
strName - the newsletter name

getDescription

public String getDescription()
Returns the name of the newsletter

Returns:
the newsletter name

setDescription

public void setDescription(String strDescription)
Sets the description of the newsletter

Parameters:
strDescription - the description

getUnsubscribe

public String getUnsubscribe()
Returns the unsubscription of the newsletter

Returns:
the newsletter unsubscrition value

setUnsubscribe

public void setUnsubscribe(String strUnsubscribe)
Sets the value of the unsubscription to the newsletter

Parameters:
strUnsubscribe - the newsletter name

setDateLastSending

public void setDateLastSending(Timestamp dateLastSending)
Sets the date of the last newsletter sending

Parameters:
dateLastSending - the last date of sending

getDateLastSending

public Timestamp getDateLastSending()
Returns the date of the last sending

Returns:
the last sending date

getHtml

public String getHtml()
Returns the html content of the newsletter

Returns:
the html content of the newsletter

setHtml

public void setHtml(String strHtml)
Sets the html content of the newsletter

Parameters:
strHtml - the html content of the newsletter

getTOS

public String getTOS()
Returns the tos content of the newsletter

Returns:
the tos content of the newsletter

setTOS

public void setTOS(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 String getWorkgroup()
Returns the workgroup

Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
Returns:
The workgroup

setWorkgroup

public void setWorkgroup(String strWorkgroup)
Sets the workgroup

Parameters:
strWorkgroup - The workgroup

getTestRecipients

public String getTestRecipients()
Returns the test recipients

Returns:
The test recipients

setTestRecipients

public void setTestRecipients(String strTestRecipients)
Sets the test recipients

Parameters:
strTestRecipients - The Test recipients

getNewsletterSenderMail

public String getNewsletterSenderMail()
Returns the Newsletter sender mail

Returns:
The Newsletter sender mail

setNewsletterSenderMail

public void setNewsletterSenderMail(String strNewsletterSenderMail)
Sets the Newsletter sender mail

Parameters:
strNewsletterSenderMail - The NewsletterSenderMail

getNewsletterSenderName

public String getNewsletterSenderName()
Returns the Newsletter sender name

Returns:
The Newsletter sender name

setNewsletterSenderName

public void setNewsletterSenderName(String strNewsletterSenderName)
Sets the Newsletter sender name

Parameters:
strNewsletterSenderName - The NewsletterSenderName

getResourceId

public String getResourceId()
Returns the Resource Type Code that identify the resource type

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The Resource Type Code

getResourceTypeCode

public String getResourceTypeCode()
Returns the resource Id of the current object

Specified by:
getResourceTypeCode in interface fr.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


Copyright © 2013 Mairie de Paris. All Rights Reserved.