|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.uwyn.rife.site.Validation<ConstrainedBean,ConstrainedProperty>
com.uwyn.rife.mail.Email
public class Email
Contains the details of an email message that will be sent through the mail queue.
Constructor Summary | |
---|---|
Email()
Creates a new instance. |
Method Summary | |
---|---|
protected void |
activateValidation()
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used. |
void |
addBcc(String bccAddress)
Adds a bcc email address. |
void |
addCc(String ccAddress)
Adds a cc email address. |
void |
addTo(String toAddress)
Adds a to email address. |
Email |
bcc(String bccAddress)
Adds a bcc email address. |
Email |
bccAddresses(String bccAddresses)
Sets the bcc email addresses. |
Email |
body(String body)
Sets the body. |
Email |
cc(String ccAddress)
Adds a cc email address. |
Email |
ccAddresses(String ccAddresses)
Sets the cc email addresses. |
boolean |
equals(Object other)
|
Email |
from(String from)
Sets the from email address. |
String |
getBccAddresses()
Retrieves the bcc email addresses. |
String |
getBody()
Retrieves the body. |
String |
getCcAddresses()
Retrieves the cc email addresses. |
String |
getFromAddress()
Retrieves the from email address. |
int |
getId()
Retrieves the id of this instance. |
boolean |
getQueueFlag()
Retrieves the queue flag, this is only for internal use. |
String |
getSubject()
Retrieves the subject. |
String |
getToAddresses()
Retrieves the to email addresses. |
int |
hashCode()
|
Email |
id(int id)
Sets the id. |
void |
setBccAddresses(String bccAddresses)
Sets the bcc email addresses. |
void |
setBody(String body)
Sets the body. |
void |
setCcAddresses(String ccAddresses)
Sets the cc email addresses. |
void |
setFromAddress(String from)
Sets the from email address. |
void |
setId(int id)
Sets the id of this instance. |
void |
setQueueFlag(boolean queueFlag)
Sets the queue flag, this is only for internal use. |
void |
setSubject(String subject)
Sets the subject . |
void |
setToAddresses(String toAddresses)
Sets the to email addresses. |
Email |
subject(String subject)
Sets the subject. |
Email |
to(String toAddress)
Adds a to email address. |
Email |
toAddresses(String toAddresses)
Sets the to email addresses. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Email()
Method Detail |
---|
protected void activateValidation()
Validation
By overriding this method, you can thus isolate all the validation setup code code and don't enforce a performance penalty at each object construction when doing it in the default constructor.
activateValidation
in class Validation<ConstrainedBean,ConstrainedProperty>
public Email id(int id)
id
- the id
Email
instancepublic void setId(int id)
id
- the idpublic int getId()
public Email from(String from)
from
email address.
from
- an email address
Email
instancepublic void setFromAddress(String from)
from
email address.
from
- an email addresspublic String getFromAddress()
from
email address.
public Email to(String toAddress)
to
email address.
toAddress
- an email address
Email
instancepublic void addTo(String toAddress)
to
email address.
toAddress
- an email addresspublic Email toAddresses(String toAddresses)
to
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
toAddresses
- the email addresses, separated by commas
Email
instancepublic void setToAddresses(String toAddresses)
to
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
toAddresses
- the email addresses, separated by commaspublic String getToAddresses()
to
email addresses.
to
email addresses, separated by commaspublic Email subject(String subject)
subject
- the subject
Email
instancepublic void setSubject(String subject)
subject
- the subjectpublic String getSubject()
public Email body(String body)
body
- the body
Email
instancepublic void setBody(String body)
body
- the bodypublic String getBody()
public Email cc(String ccAddress)
cc
email address.
ccAddress
- an email address
Email
instancepublic void addCc(String ccAddress)
cc
email address.
ccAddress
- an email addresspublic Email ccAddresses(String ccAddresses)
cc
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
ccAddresses
- the email addresses, separated by commas
Email
instancepublic void setCcAddresses(String ccAddresses)
cc
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
ccAddresses
- the email addresses, separated by commaspublic String getCcAddresses()
cc
email addresses.
cc
email addresses, separated by commaspublic Email bcc(String bccAddress)
bcc
email address.
bccAddress
- an email address
Email
instancepublic void addBcc(String bccAddress)
bcc
email address.
bccAddress
- an email addresspublic Email bccAddresses(String bccAddresses)
bcc
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
bccAddresses
- the email addresses, separated by commas
Email
instancepublic void setBccAddresses(String bccAddresses)
bcc
email addresses. This replaces all
previous ones.
The email addresses need to be separated by commas.
bccAddresses
- the email addresses, separated by commaspublic String getBccAddresses()
bcc
email addresses.
public boolean getQueueFlag()
true
if the message is queued; and
false
otherwise
public void setQueueFlag(boolean queueFlag)
queueFlag
- the queue flagpublic int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |