public interface IRecipient
RecipientFactory,
IChannel| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(IRecipient recipient)
Test if a given recipient is a member of a group.
|
IChannel |
getChannel(String id)
Get the recipient's channel for a given channel id.
|
IChannelList |
getChannels()
Get all available channels.
|
IChannel |
getDefaultChannel()
Get the default channel.
|
String |
getDescription()
Get the recipient's displayable name.
|
String |
getDescription(Locale locale)
Get the recipient's displayable name for a specific locale.
|
IRecipientList |
getGroupMembers()
Get all the members of a group or role.
|
String |
getID()
Get the recipient's unique system id.
|
Locale |
getLocale()
Get the recipient's locale.
|
int |
getType()
Get the recipient's type.
|
com.sapportals.portal.security.usermanagement.IUMPrincipal |
getUserManagementObject()
Deprecated.
As of NetWeaver 7.1, replaced by
getUserManagementObjectUME() |
IPrincipal |
getUserManagementObjectUME()
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,
String from,
MimeMessage mimemessage)
Send a mime message via the specified channel.
|
void |
sendTo(IChannel channel,
String from,
String title,
String messagetext,
String type)
Send a message text via the specified channel.
|
int getType()
int with the recipient's type (for example
IUMPrincipal.IUSER ).RecipientFactory.getRecipient(String, int)String getID()
String with the recipient's unique system id.String getDescription()
String with a displayable name.String getDescription(Locale locale)
locale - a Locale defining the language to get the name
for.String with a displayable name for the given locale.Locale getLocale() throws WcmException
Locale with the recipient's locale.WcmException - if the locale data cannot be retrieved.com.sapportals.portal.security.usermanagement.IUMPrincipal getUserManagementObject()
throws WcmException
getUserManagementObjectUME()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).IPrincipal getUserManagementObjectUME() 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).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.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.boolean contains(IRecipient recipient) throws WcmException
recipient - a IRecipient representing an (addressable) person or a distribution listboolean 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.IChannel getChannel(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).IChannelList getChannels() throws WcmException
IChannelList with all available channels (may be
empty) for this recipient.WcmException - if the list cannot be retrieved.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).void sendTo(IChannel channel, String from, String title, String messagetext, 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 message text to send.type - a String with the type of message, for example
text/plain .WcmException - if the message cannot be sent.void sendTo(IChannel channel, String from, MimeMessage mimemessage) throws WcmException
channel - an IChannel with the channel to use.from - a String with the sender's address in the
appropriate format for the channel.mimemessage - a MimeMessage with the mime message to send.WcmException - if the message cannot be sent.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice