com.sapportals.wcm.util.channels
Class RecipientFactory
[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
|
+--com.sapportals.wcm.util.factories.AbstractObjectFactory
|
+--com.sapportals.wcm.util.channels.RecipientFactory
- public class RecipientFactory
- extends AbstractObjectFactory
A factory to retrieve IRecipient s.
- See Also:
IRecipient
|
Constructor Summary |
RecipientFactory(java.lang.String id)
Create a RecipientFactory with a given id.
Note : This constructor has to be public (although it should be
protected), to allow dynamic creation via AbstractClassFactory()
. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecipientFactory
public RecipientFactory(java.lang.String id)
throws WcmException
- Create a
RecipientFactory with a given id.
Note : This constructor has to be public (although it should be
protected), to allow dynamic creation via AbstractClassFactory()
.
- Parameters:
id - a String with the unique id for the factory.- Throws:
WcmException - Exception raised in failure situation
getInstance
public static RecipientFactory getInstance()
throws WcmException
- Get an instance of the
RecipientFactory .
- Returns:
- an instance of the
RecipientFactory . - Throws:
WcmException - if no factory instance is available.
getRecipient
public IRecipient getRecipient(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
throws WcmException
- Get an
IRecipient for the given user-management object.
- Parameters:
principal - a IUMPrincipal with user-management object
(an IUser , IGroup or IRole ).- Returns:
- an
IRecipient for the given user-management object,
null if the recipient does not exist. - Throws:
WcmException - if the recipient could not be retrieved.
getRecipient
public IRecipient getRecipient(java.lang.String id,
int type)
throws WcmException
- Get a
IRecipient for the given id and type.
- Parameters:
id - a String with the IRecipient 's system
id.type - an int with the type of the recipient (IUSER
, IGROUP or IROLE , see
com.sap.wp.security.IUMPrincipal ).- Returns:
- an
IRecipient for the given id and type, null
if the recipient does not exist. - Throws:
WcmException - if the recipient could not be retrieved.
createRecipientList
public IRecipientList createRecipientList()
throws WcmException
- Create an empty
IRecipientList .
- Returns:
- an empty
IRecipientList . - Throws:
WcmException - if the list could not be created.
Copyright © 2004 by
SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein
as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other
countries all over the world. All other product and service names mentioned are the trademarks of their respective companies.
Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies
("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are
those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein
should be construed as constituting an additional warranty.