|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectportlets.compoze.groupware.RecipientInfo
public class RecipientInfo
This class represents information about recipients.
Nested Class Summary | |
---|---|
static class |
RecipientInfo.Recipient
This class represents a recipient. |
static class |
RecipientInfo.UnresolvedRecipient
This class represents an unresolved recipient. |
Field Summary | |
---|---|
protected RecipientInfo.Recipient[] |
m_bccRecipients
|
protected RecipientInfo.Recipient[] |
m_ccRecipients
|
protected RecipientInfo.Recipient[] |
m_resourceRecipients
|
protected RecipientInfo.Recipient[] |
m_roomRecipients
|
protected RecipientInfo.Recipient[] |
m_toRecipients
|
static java.lang.String |
RECIPIENT_NAME_SEPARATOR
This value represents the deliminter for separating recipients. |
Constructor Summary | |
---|---|
RecipientInfo()
Constructor. |
|
RecipientInfo(RecipientInfo.Recipient[] toRecipients,
RecipientInfo.Recipient[] ccRecipients,
RecipientInfo.Recipient[] bccRecipients)
Constructor. |
|
RecipientInfo(RecipientInfo.Recipient[] toRecipients,
RecipientInfo.Recipient[] ccRecipients,
RecipientInfo.Recipient[] bccRecipients,
RecipientInfo.Recipient[] roomRecipients,
RecipientInfo.Recipient[] resourceRecipients)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
appendRecipient(java.lang.String sRecipientList,
java.lang.String sRecipient)
Appends the recipient to the separated sequence of recipient addresses using the delimiter. |
static RecipientInfo |
create(java.lang.String sTo,
java.lang.String sCc,
java.lang.String sBcc)
Creates the recipient info from the to, cc and bcc strings. |
static RecipientInfo |
create(java.lang.String sTo,
java.lang.String sCc,
java.lang.String sBcc,
boolean bCommaSeperated)
Creates the recipient info from the to, cc and bcc strings. |
static RecipientInfo |
create(java.lang.String sTo,
java.lang.String sCc,
java.lang.String sBcc,
java.lang.String sRoom,
java.lang.String sResource,
boolean bCommaSeperated)
Creates the recipient info from the to, cc and bcc strings. |
RecipientInfo.Recipient[] |
getBccRecipients()
Gets the 'bcc' recipients. |
RecipientInfo.Recipient[] |
getCcRecipients()
Gets the 'cc' recipients. |
static java.lang.String |
getRecipientList(RecipientInfo.Recipient[] recipients)
Gets a separated sequence of recipient display names from the specified recipient info array using the delimiter. |
static java.lang.String |
getRecipientList(RecipientInfo.Recipient[] recipients,
java.lang.String sPostfix,
int iMaxLength)
Gets a pretty-truncated, separated sequence of recipient display names from the specified recipient info array using the delimiter. |
static java.lang.String |
getRecipientListEmails(RecipientInfo.Recipient[] recipients)
Gets a separated sequence of recipient e-mail addresses from the specified recipient info array using the delimiter. |
RecipientInfo.Recipient[] |
getResourceRecipients()
Gets the 'resource' recipients. |
RecipientInfo.Recipient[] |
getRoomRecipients()
Gets the 'room' recipients. |
RecipientInfo.Recipient[] |
getToRecipients()
Gets the 'to' recipients. |
boolean |
hasRecipients()
Checks if the recipient info has any recipients. |
boolean |
hasUnresolvedRecipients()
Checks if the recipient info has unresolved recipients. |
boolean |
isBccRecipient(int iIndex)
Checks if the specified recipient index is a 'bcc' recipient. |
boolean |
isCcRecipient(int iIndex)
Checks if the specified recipient index is a 'cc' recipient. |
boolean |
isToRecipient(int iIndex)
Checks if the specified recipient index is a 'to' recipient. |
protected static java.lang.String |
prettyTruncate(java.lang.String sStr,
java.lang.String sPostfix,
int iLength)
Truncates a string after a certain number of characters and append the specified string to it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RECIPIENT_NAME_SEPARATOR
protected RecipientInfo.Recipient[] m_toRecipients
protected RecipientInfo.Recipient[] m_ccRecipients
protected RecipientInfo.Recipient[] m_bccRecipients
protected RecipientInfo.Recipient[] m_roomRecipients
protected RecipientInfo.Recipient[] m_resourceRecipients
Constructor Detail |
---|
public RecipientInfo()
public RecipientInfo(RecipientInfo.Recipient[] toRecipients, RecipientInfo.Recipient[] ccRecipients, RecipientInfo.Recipient[] bccRecipients)
toRecipients
- the 'to' recipients (may not be null
)ccRecipients
- the 'cc' recipients (may not be null
)bccRecipients
- the 'bcc' recipients (may not be null
)public RecipientInfo(RecipientInfo.Recipient[] toRecipients, RecipientInfo.Recipient[] ccRecipients, RecipientInfo.Recipient[] bccRecipients, RecipientInfo.Recipient[] roomRecipients, RecipientInfo.Recipient[] resourceRecipients)
toRecipients
- the 'to' recipients (may not be null
)ccRecipients
- the 'cc' recipients (may not be null
)bccRecipients
- the 'bcc' recipients (may not be null
)roomRecipients
- the 'room' recipients (may not be null
)resourceRecipients
- the 'resource' recipients (may not be null
)Method Detail |
---|
public boolean isToRecipient(int iIndex)
iIndex
- the recipient index
true
if the specified recipient index is a 'to' recipient; false
otherwisepublic boolean isCcRecipient(int iIndex)
iIndex
- the recipient index
true
if the specified recipient index is a 'cc' recipient; false
otherwisepublic boolean isBccRecipient(int iIndex)
iIndex
- the recipient index
true
if the specified recipient index is a 'bcc' recipient; false
otherwisepublic RecipientInfo.Recipient[] getToRecipients()
public RecipientInfo.Recipient[] getRoomRecipients()
public RecipientInfo.Recipient[] getResourceRecipients()
public static java.lang.String appendRecipient(java.lang.String sRecipientList, java.lang.String sRecipient)
sRecipientList
- a separated sequence of recipient addressessRecipient
- the recipient to append
RECIPIENT_NAME_SEPARATOR
public static java.lang.String getRecipientList(RecipientInfo.Recipient[] recipients)
recipients
- the recipient info to build the list from (may not be null
)
RECIPIENT_NAME_SEPARATOR
public static java.lang.String getRecipientListEmails(RecipientInfo.Recipient[] recipients)
recipients
- the recipient info to build the list from (may not be null
)
RECIPIENT_NAME_SEPARATOR
public static java.lang.String getRecipientList(RecipientInfo.Recipient[] recipients, java.lang.String sPostfix, int iMaxLength)
recipients
- the recipient info to build the list from (may not be null
)sPostfix
- the string to put at the end of the original recipient stringiLength
- the maximum length of the result recipient string(string plus postfix)
RECIPIENT_NAME_SEPARATOR
public RecipientInfo.Recipient[] getCcRecipients()
public RecipientInfo.Recipient[] getBccRecipients()
public static RecipientInfo create(java.lang.String sTo, java.lang.String sCc, java.lang.String sBcc)
sTo
- the to recipient strings to parsesCc
- the cc recipient strings to parsesBcc
- the bcc recipient strings to parsepublic static RecipientInfo create(java.lang.String sTo, java.lang.String sCc, java.lang.String sBcc, boolean bCommaSeperated)
sTo
- the to recipient strings to parsesCc
- the cc recipient strings to parsesBcc
- the bcc recipient strings to parsebCommaSeperated
- true
if using comma as separator, or false
otherwise
public boolean hasUnresolvedRecipients()
true
if the recipient info has unresolved recipients; false
otherwisepublic boolean hasRecipients()
true
if the recipient info has any recipients; false
otherwiseprotected static java.lang.String prettyTruncate(java.lang.String sStr, java.lang.String sPostfix, int iLength)
sStr
- the original stringsPostfix
- the string to put at the end of the original stringiLength
- the maximum length of the result (string plus postfix)public static RecipientInfo create(java.lang.String sTo, java.lang.String sCc, java.lang.String sBcc, java.lang.String sRoom, java.lang.String sResource, boolean bCommaSeperated)
sTo
- the to recipient strings to parsesCc
- the cc recipient strings to parsesBcc
- the bcc recipient strings to parsesRoom
- the room recipient strings to parsesResource
- the resource recipient strings to parsebCommaSeperated
- true
if using comma as separator, or false
otherwise
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |