|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.greetingscard.business.GreetingsCard
public class GreetingsCard
This class represents a GreetingsCardTemplate object.
Field Summary | |
---|---|
static int |
STATUS_RED
|
static int |
STATUS_RED_NOTIFIED
|
static int |
STATUS_SENT
|
Constructor Summary | |
---|---|
GreetingsCard()
Creates a new GreetingsCardTemplate object. |
Method Summary | |
---|---|
java.sql.Date |
getDate()
Returns the date of the greetings card sending |
java.lang.String |
getDomainName()
|
java.lang.String |
getId()
Returns the identifier of the greetings card |
int |
getIdGCT()
Returns the identifier of the greetings card template |
java.lang.String |
getMessage()
Returns the message string |
java.lang.String |
getMessage2()
Returns the message2 string |
boolean |
getNotifySender()
Check if the sender should be notified when the card is red. |
java.lang.String |
getRecipientEmail()
Returns the recipient email string |
java.lang.String |
getSenderEmail()
Returns the sender email string |
java.lang.String |
getSenderIp()
Returns the sender name string |
java.lang.String |
getSenderName()
Returns the sender name string |
int |
getStatus()
Get the status of the card. |
java.lang.StringBuffer |
getXml()
Return a xml string with the data of the GreetingsCard. |
java.lang.StringBuffer |
getXmlWithoutHeaderForStats()
Return a xml string with the data of the GreetingsCard, but without any XML header. |
boolean |
isCopy()
Return 1 if the card is a copy or 0 if not |
boolean |
isInternal()
Test if the greeting card was sent to an internal person. |
boolean |
isRead()
Return the state of read of the card |
void |
setCopy(boolean copy)
Sets the copy state |
void |
setDate(java.sql.Date date)
- |
void |
setId(java.lang.String strIdGC)
Sets the identifier of the greetings card to the specified value |
void |
setIdGCT(int nIdGCT)
Sets the identifier of the greetings card template to the specified value |
void |
setMessage(java.lang.String strMessage)
Sets the message string to the specified value |
void |
setMessage2(java.lang.String message2)
Sets the message2 string to the specified value |
void |
setNotifySender(boolean bNotifySender)
Set the notify sender boolean |
void |
setRecipientEmail(java.lang.String strRecipientEmail)
Sets the recipient email string to the specified value |
void |
setSenderEmail(java.lang.String strSenderEmail)
Sets the sender email string to the specified value |
void |
setSenderIp(java.lang.String strSenderIp)
Sets the sender Ip string to the specified value |
void |
setSenderName(java.lang.String strSenderName)
Sets the sender name string to the specified value |
void |
setStatus(int nStatus)
Set the status of the card. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_SENT
public static final int STATUS_RED
public static final int STATUS_RED_NOTIFIED
Constructor Detail |
---|
public GreetingsCard()
Method Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String strIdGC)
strIdGC
- The new valuepublic java.lang.String getSenderName()
public void setSenderName(java.lang.String strSenderName)
strSenderName
- The new valuepublic java.lang.String getSenderIp()
public void setSenderIp(java.lang.String strSenderIp)
strSenderIp
- The new valuepublic java.lang.String getSenderEmail()
public void setSenderEmail(java.lang.String strSenderEmail)
strSenderEmail
- The new valuepublic java.lang.String getRecipientEmail()
public void setRecipientEmail(java.lang.String strRecipientEmail)
strRecipientEmail
- The new valuepublic java.lang.String getMessage()
public void setMessage(java.lang.String strMessage)
strMessage
- The new valuepublic java.lang.String getMessage2()
public void setMessage2(java.lang.String message2)
message2
- The new valuepublic void setDate(java.sql.Date date)
date
- The new valuepublic java.sql.Date getDate()
public int getIdGCT()
public void setIdGCT(int nIdGCT)
nIdGCT
- The new valuepublic boolean isRead()
public int getStatus()
public void setStatus(int nStatus)
nStatus
- The status of the card. Valid status are STATUS_SENT if the card is send, STATUS_RED if it has been red or STATUS_RED_NOTIFIED if it has been red and the sender has been
notified.public boolean isCopy()
public void setCopy(boolean copy)
read
- 1 if copy, 0 if not copypublic boolean getNotifySender()
public void setNotifySender(boolean bNotifySender)
bNotifySender
- True if the sender should be notified when the card is red, false otherwisepublic boolean isInternal()
public java.lang.String getDomainName()
public java.lang.StringBuffer getXml()
public java.lang.StringBuffer getXmlWithoutHeaderForStats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |