lumis.portal.sendmail
Interface IBaseMail

Package class diagram package IBaseMail
All Superinterfaces:
IMailSendStatus
All Known Subinterfaces:
IMultipleMail, ISingleMail

@StableMinor(version="5.5",
             sinceVersion="4.0")
public interface IBaseMail
extends IMailSendStatus

Superinterface with common methods of mails interfaces.

Since:
4.0.4
See Also:
ISingleMail, IMultipleMail, ISendMailManager

Field Summary
static int MAIL_TYPE_MULTIPLE
          Indicates the mail is a multiple mail, i.e.
static int MAIL_TYPE_SINGLE
          Indicates the mail is a single mail.
 
Fields inherited from interface lumis.portal.sendmail.IMailSendStatus
STATUS_SEND_PENDING, STATUS_SENDING, STATUS_SENT_ERROR, STATUS_SENT_OK
 
Method Summary
 IMailBody getBody()
          Returns the body of this mail.
 String getCharset()
          Returns the charset of this mail.
 String getFrom()
          Returns the from field of this mail.
 String getId()
          Returns the id of this mail.
 String getMailLoggingString()
          Returns a String used for logging this mail.
 int getMailType()
          Returns the type of this mail.
 String getReplyTo()
          Returns the reply to field of this mail.
 Date getRequestDateTime()
          Returns the date this mail has been requested to be sent.
 String getSourceComponent()
          Returns the string describing the source component for this mail request.
 String getSourceComponentStringsUrl()
          Returns the strings url prefix for translating getSourceComponent().
 String getSubject()
          Returns the subject of this mail.
 void setCharset(String charset)
          Sets the chartset of this mail.
 void setFrom(String from)
          Sets the from field of this mail.
 void setReplyTo(String replyTo)
          Sets the reply to field of this mail.
 void setSourceComponent(String sourceComponent)
          Sets the string describing the source component for this mail request.
 void setSourceComponentStringsUrl(String sourceComponentStrings)
          Sets the strings url prefix for translating getSourceComponent().
 void setSubject(String subject)
          Sets the subject of this mail.
 
Methods inherited from interface lumis.portal.sendmail.IMailSendStatus
getErrorMessage, getSentDateTime, getStatus, setErrorMessage, setSentDateTime, setStatus
 

Field Detail

MAIL_TYPE_SINGLE

static final int MAIL_TYPE_SINGLE
Indicates the mail is a single mail.

See Also:
Constant Field Values

MAIL_TYPE_MULTIPLE

static final int MAIL_TYPE_MULTIPLE
Indicates the mail is a multiple mail, i.e. will span several other mails when sending.

See Also:
Constant Field Values
Method Detail

getRequestDateTime

Date getRequestDateTime()
Returns the date this mail has been requested to be sent. May be null, if the send request was not made yet.

Returns:
the date this mail has been requested to be sent.
Since:
4.0.4

getBody

IMailBody getBody()
Returns the body of this mail.

Returns:
the body of this mail.
Since:
4.0.4

getCharset

String getCharset()
Returns the charset of this mail.

Returns:
the charset of this mail.
Since:
4.0.4

setCharset

void setCharset(String charset)
Sets the chartset of this mail.

Parameters:
charset - the charset.
Since:
4.0.4

getFrom

String getFrom()
Returns the from field of this mail.

Returns:
the from field of this mail.
Since:
4.0.4

setFrom

void setFrom(String from)
Sets the from field of this mail.

Parameters:
from - the from field value.
Since:
4.0.4

getId

String getId()
Returns the id of this mail. This id is a unique identifier for this mail.

Returns:
the id of this mail.
Since:
4.0.4

getReplyTo

String getReplyTo()
Returns the reply to field of this mail. May contain a list of email addresses separated by comma.

Returns:
the reply to field of this mail.
Since:
4.0.4

setReplyTo

void setReplyTo(String replyTo)
Sets the reply to field of this mail. May contain a list of email addresses separated by comma.

Parameters:
replyTo - the reply to field value.
Since:
4.0.4

getSubject

String getSubject()
Returns the subject of this mail.

Returns:
the subject of this mail.
Since:
4.0.4

setSubject

void setSubject(String subject)
Sets the subject of this mail.

Parameters:
subject - the subject value.
Since:
4.0.4

getSourceComponent

String getSourceComponent()
Returns the string describing the source component for this mail request.

Returns:
the string describing the source component for this mail request.
Since:
4.0.4
See Also:
getSourceComponentStringsUrl()

setSourceComponent

void setSourceComponent(String sourceComponent)
Sets the string describing the source component for this mail request.

Parameters:
sourceComponent - the string value.
Since:
4.0.4
See Also:
setSourceComponentStringsUrl(String)

getSourceComponentStringsUrl

String getSourceComponentStringsUrl()
Returns the strings url prefix for translating getSourceComponent().

Returns:
the strings url prefix for translating getSourceComponent().
Since:
4.0.4

setSourceComponentStringsUrl

void setSourceComponentStringsUrl(String sourceComponentStrings)
Sets the strings url prefix for translating getSourceComponent().

Parameters:
sourceComponentStrings - the value to set.
Since:
4.0.4
See Also:
setSourceComponent(String)

getMailType

int getMailType()
Returns the type of this mail.

Returns:
the type of this mail.
Since:
4.0.4
See Also:
MAIL_TYPE_SINGLE, MAIL_TYPE_MULTIPLE

getMailLoggingString

String getMailLoggingString()
Returns a String used for logging this mail.

Returns:
the string for logging this mail.
Since:
4.0.4


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.