|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.dataservices.model.DirectoryObjectEntity | +--com.ibm.itim.dataservices.model.domain.AccountEntity | +--com.ibm.itim.dataservices.model.system.SystemUserEntity
Represents a usr of the system (platform) in the data model. Although this class name indicates it represents a user, it is really just a specialization of an account hosted on the provisioning platform.
Field Summary |
---|
Fields inherited from class com.ibm.itim.dataservices.model.domain.AccountEntity |
---|
OWNER |
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
---|
ORGANIZATION, PARENT |
Constructor Summary | |
---|---|
SystemUserEntity(SystemUser systemUser)
Constructs with a value object. |
Method Summary | |
---|---|
void |
addDelegate(Delegate newDelegate)
Adds a delegation for the user. |
void |
addRole(SystemRoleEntity role)
Adds the given role to the SystemUser's role (group) memberships. |
java.util.Collection |
getDelegates()
Returns the delegations the user has defined. |
java.util.Collection |
getRoles()
Returns the system roles (groups) the user is a member of (if any). |
boolean |
isSystemAdmin()
Returns true if the SystemUser has a SystemRole in the SystemAdmin Category. |
boolean |
removeDelegate(Delegate removeDelegate)
Removes a delegation for the user. |
void |
removeRole(SystemRoleEntity role)
Removes the given role from the user's role (group) memberships. |
void |
setIsDelegated(boolean isDelegated)
Changes the current delegation flag. |
void |
updateDelegate(Delegate oldVersion,
Delegate newVersion)
Replaces the old delegation with the new delegation. |
Methods inherited from class com.ibm.itim.dataservices.model.domain.AccountEntity |
---|
addComplianceIssue, adopt, getComplianceIssues, getOwner, getService, isOrphan, orphan, remove, removeAllIssues, removeComplianceIssue, update, update |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
---|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, setLifecycle, toString, update |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SystemUserEntity(SystemUser systemUser)
systemUser
- SystemUser object holding the attributes of the
system user.Method Detail |
public java.util.Collection getRoles() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException
- Thrown if unable communicate with
the data store.
ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.public void addRole(SystemRoleEntity role) throws ModelCommunicationException, ObjectNotFoundException
role
- RoleEntity representing the role (group) to add.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public void removeRole(SystemRoleEntity role) throws ModelCommunicationException, ObjectNotFoundException
role
- SystemRoleEntity representing the role (group) to remove.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public java.util.Collection getDelegates()
public void addDelegate(Delegate newDelegate) throws ModelCommunicationException, ObjectNotFoundException
newDelegate
- Delegate representing the delegation.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public boolean removeDelegate(Delegate removeDelegate) throws ModelCommunicationException, ObjectNotFoundException
removeDelegate
- Delegate representing the delegation to remove.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public void updateDelegate(Delegate oldVersion, Delegate newVersion) throws ModelCommunicationException, ObjectNotFoundException
oldVersion
- Delegate to be replaced.newVersion
- Delegate to replace oldVersion.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public void setIsDelegated(boolean isDelegated) throws ModelCommunicationException, ObjectNotFoundException
isDelegated
- True if the user's responsibilities
are currently delegated, false if not.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ObjectNotFoundException
- Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public boolean isSystemAdmin() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the SystemUser's roles.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |