|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Recipients are objects, where messages can be sent to via a channel.
A recipient represents an (addressable) person or a distribution list. A
recipient has adresses, one for each of the several channels it can receive
messages from. For example, recipient A has an email address for the email
channel and a mobile phone number for the sms-channel.
For the moment, a recipient is a simple mapping of users, groups and roles to
recipients and distrubtion lists.
RecipientFactory,
IChannel| Method Summary | |
boolean |
contains(IRecipient recipient)
Test if a given recipient is a member of a group. |
IChannel |
getChannel(java.lang.String id)
Get the recipient's channel for a given channel id. |
IChannelList |
getChannels()
Get all available channels. |
IChannel |
getDefaultChannel()
Get the default channel. |
java.lang.String |
getDescription()
Get the recipient's displayable name. |
java.lang.String |
getDescription(java.util.Locale locale)
Get the recipient's displayable name for a specific locale. |
IRecipientList |
getGroupMembers()
Get all the members of a group or role. |
java.lang.String |
getID()
Get the recipient's unique system id. |
java.util.Locale |
getLocale()
Get the recipient's locale. |
int |
getType()
Get the recipient's type. |
com.sapportals.portal.security.usermanagement.IUMPrincipal |
getUserManagementObject()
Get the associated user object ( IUser , IGroup or
IRole ). |
boolean |
isGroup()
Test if the recipient is a group and contains other recipients. |
void |
sendTo(IChannel channel,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
Send a mime message via the specified channel. |
void |
sendTo(IChannel channel,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
Send a message text via the specified channel. |
| Method Detail |
public int getType()
int with the recipient's type (for example
IUMPrincipal.IUSER ).RecipientFactory.getRecipient(String, int)public java.lang.String getID()
String with the recipient's unique system id.public java.lang.String getDescription()
String with a displayable name.public java.lang.String getDescription(java.util.Locale locale)
locale - a Locale defining the language to get the name
for.String with a displayable name for the given locale.
public java.util.Locale getLocale()
throws WcmException
Locale with the recipient's locale.WcmException - if the locale data cannot be retrieved.
public com.sapportals.portal.security.usermanagement.IUMPrincipal getUserManagementObject()
throws WcmException
IUser , IGroup or
IRole ).IUMPrincipal as the user-/group-/role-object
associated to this recipient, or null if this recipient
has no user/group/role associated.WcmException - if the operation failed (if there was an
error while obtaining the recipient's userobject).
public boolean isGroup()
throws WcmException
boolean true , if the recipient is a
distribution list (user group or user role), false if
it's a single person (user).WcmException - if the type for this recipient can not
be resolved.
public IRecipientList getGroupMembers()
throws WcmException
IRecipientList with the members for this group,
null if this recipient is not a group or role.WcmException - if the members can not be retrieved.
public boolean contains(IRecipient recipient)
throws WcmException
recipient - TBD: Description of the incoming method parameterboolean true if the given recipient is
a member of this group or role, false if this recipient
is not a group, the given recipient is a role or the given recipient
is not a member of this group or role.WcmException - if the members can not be checked.
public IChannel getChannel(java.lang.String id)
throws WcmException
id - a String with the desired channel's system id.IChannel for the recipient with the given id,
null if the channel is not available for this recipient.WcmException - if the operation failed (if there was an
error while resolving the recipients address).
public IChannelList getChannels()
throws WcmException
IChannelList with all available channels (may be
empty) for this recipient.WcmException - if the list cannot be retrieved.
public IChannel getDefaultChannel()
throws WcmException
IChannel with the default channel, null
if there is no default channel defined for this recipient.WcmException - if the operation failed (an error
occured while obtaining the recipients data).
public void sendTo(IChannel channel,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
throws WcmException
channel - an IChannel with the channel to use.from - a String with the sender's address in the proper
format for the channel.title - a String with the title for the message.messagetext - a String with the messagetext to send.type - a String with the type of message, for example
text/plain .WcmException - if the message cannot be sent.
public void sendTo(IChannel channel,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
throws WcmException
channel - an IChannel with the channel to use.from - a String with the sender's address in the
appropiate format for the channel.mimemessage - a MimeMessage with the mimemessage to send.WcmException - if the message cannot be sent.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||