public class COSManager extends Object
Modifier | Constructor and Description |
---|---|
protected |
COSManager(Principal principal,
Guid guid)
This constructor sets the parent Directory entry which identifies the
location of COS definitions which will be managed.
|
protected |
COSManager(SSOToken token,
Guid guid)
This constructor sets the parent Directory entry which identifies the
location of COS definitions which will be managed.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefinition(ICOSDefinition cosDef)
This method adds a COS definition to the persistent store.
|
void |
assignCOSDef(PersistentObject pObject,
ICOSDefinition cosDef,
COSTemplate cosTemplate)
Assigns a COS (as defined by a COS definition) to the persistent object.
|
static COSManager |
getCOSManager(Principal principal,
Guid guid)
This method returns an instance of a COS Manager.
|
static COSManager |
getCOSManager(SSOToken token,
Guid guid)
This method returns an instance of a COS Manager.
|
ICOSDefinition |
getDefinition(String name)
Returns COS definition given the name.
|
Collection |
getDefinitions()
Retrieves all COS definitions for the current organization.
|
void |
removeCOSAssignment(PersistentObject pObject,
ICOSDefinition cosDef,
COSTemplate cosTemplate)
Removes COS assignment from the persistent object.
|
void |
removeDefinition(String name)
Removes the COS definition.
|
void |
updateDefinition(ICOSDefinition cosDef)
Updates the contents of a COS definition with the new contents.
|
protected COSManager(SSOToken token, Guid guid) throws UMSException
token
- Authenticated principal's single sign on token.guid
- The unique identifier specifying where COS definitions will
be managed.UMSException
- if the token authentication fails, or if
the guid for the parent entry is not valid.protected COSManager(Principal principal, Guid guid) throws UMSException
principal
- Authenticated principalguid
- The unique identifier specifying where COS definitions will be
managed.UMSException
- The exception thrown if there is a problem determining the
parent entry, or getting the SchemaManager instance.public static COSManager getCOSManager(SSOToken token, Guid guid) throws UMSException
token
- Authenticated principal's single sign on token.guid
- COS definitions will be managed under the level identified by
this guid.UMSException
- The exception thrown from the COSManager constructor.public static COSManager getCOSManager(Principal principal, Guid guid) throws UMSException
principal
- Authenticated principal.guid
- COS definitions will be managed under the level identified by
this guid.UMSException
- The exception thrown from the data layer.public void addDefinition(ICOSDefinition cosDef) throws UMSException
cosDef
- The COS definition to be added.UMSException
- The exception thrown from the data layer.public void removeDefinition(String name) throws UMSException
name
- The name of the definition to be removed.UMSException
- The exception thrown from the data layer.public void updateDefinition(ICOSDefinition cosDef) throws UMSException
cosDef
- The COS definition containing new contents, which will replace
the same definition in the persistent layer.UMSException
- The exception thrown from the data layer.public ICOSDefinition getDefinition(String name) throws UMSException, COSNotFoundException
name
- Name of the COS definition.UMSException
- if exception occurred at the data layer.COSNotFoundException
- if the COS object is not found.public Collection getDefinitions() throws UMSException
UMSException
- The exception thrown from the data layer.public void assignCOSDef(PersistentObject pObject, ICOSDefinition cosDef, COSTemplate cosTemplate) throws UMSException
pObject
- The COS target persistent object.cosDef
- A COS definition.cosTemplate
- A COS template. This only applies for COS and Indirect COS
definitions. For pointer COS definitions, this parameter can
be null.UMSException
- If a data layer exception occurs.public void removeCOSAssignment(PersistentObject pObject, ICOSDefinition cosDef, COSTemplate cosTemplate) throws UMSException
pObject
- The COS target persistent object.cosDef
- A COS definition.cosTemplate
- A COS template.UMSException
- The exception thrown if any of the following occur: o the
target persistent object or COS definition parameter is null.
o the target object is not persistent. o the COS definition
is not one of the valid COS definitions. o an exception is
propagated from any of the "remove" methods.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.