com.ibm.itim.dataservices.model.domain
Class DynamicRoleFactory
java.lang.Object
|
+--com.ibm.itim.dataservices.model.domain.DynamicRoleFactory
- public class DynamicRoleFactory
- extends java.lang.Object
Factory class for creating dynamic roles in the data store.
- See Also:
DynamicRoleEntity
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicRoleFactory
public DynamicRoleFactory()
- Default constructor.
create
public DynamicRoleEntity create(OrganizationalContainerEntity logicalContext,
DynamicRole role)
throws ModelCommunicationException,
ModelCreationException
- Creates a dynamic role in the data store with the given value object to
define the dynamic role's attributes.
- Parameters:
logicalContext
- OrganizationalContainerEntity under which this
entity should logically be placed.role
- DynamicRole value object to use for creation.- Throws:
ModelCommunicationException
- Thrown if unable to communicate
with the data store.ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.
create
public DynamicRoleEntity create(CompoundDN logicalContext,
DynamicRole role)
throws ModelCommunicationException,
ModelCreationException
- Creates a dynamic role in the data store with the given value object to
define the dynamic role's attributes.
- Parameters:
logicalContext
- CompoundDN that defines the placement of the dynamic role.
At least one (1) element and at most two (2)
are expected:
- logicalContext.elements[1] must contain
the organization DN
- logicalContext.elements[2] may contain
the parent DN (optional)
An element cannot be skipped. For example, you can not pass the
parent DN without passing the organization DN.role
- DynamicRole value object to use for creation.- Returns:
- DynamicRoleEntity representing the stored dynamic role.
- Throws:
ModelCommunicationException
- Thrown if unable to communicate
with the data store.ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.