com.ibm.itim.dataservices.model.domain
Class AccountParent
java.lang.Object
|
+--com.ibm.itim.dataservices.model.domain.AccountParent
- All Implemented Interfaces:
- Relationship
- public class AccountParent
- extends java.lang.Object
- implements Relationship
The AccountParent class implements the parent
relationship to an AccountEntity. The subject of this relationship
is an AccountEntity and the participant is either a ServiceEntity
or PersonEntity that act as the entity's parent.
- Author:
- TNguyen
Method Summary |
boolean |
doesParticipate(DirectoryObjectEntity participant)
Determines if the given entity is a parent of the subject directory object. |
java.util.Collection |
evaluate()
Evaluates the relationship returning one ServiceEntity or PersonEntity object that
represents the parent of the subject directory object. |
java.util.Collection |
evaluateReferences()
Evaluates the relationship returning 0 to many entity DNs that
participate opposite the subject entity. |
void |
setSubject(DirectoryObjectEntity entity)
Sets the subject entity for the relationship. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountParent
public AccountParent()
setSubject
public void setSubject(DirectoryObjectEntity entity)
- Sets the subject entity for the relationship.
- Specified by:
setSubject
in interface Relationship
- Parameters:
entity
- DirectoryObjectEntity acting as the subject of this
relationship.
evaluateReferences
public java.util.Collection evaluateReferences()
throws ModelIntegrityException,
ModelCommunicationException
- Evaluates the relationship returning 0 to many entity DNs that
participate opposite the subject entity.
- Specified by:
evaluateReferences
in interface Relationship
- Returns:
- Collection of DistinguishedName instances that participate.
- Throws:
ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
relationship from being evaluated properly.ModelCommunicationException
- Thrown if unable to communicate
with the data store.
evaluate
public java.util.Collection evaluate()
throws ModelIntegrityException,
ModelCommunicationException
- Evaluates the relationship returning one ServiceEntity or PersonEntity object that
represents the parent of the subject directory object.
- Specified by:
evaluate
in interface Relationship
- Returns:
- Collection of one ServiceEntity or PersonEntity object.
- Throws:
ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
relationship from being evaluated properly.ModelCommunicationException
- Thrown if unable to communicate
with the data store.
doesParticipate
public boolean doesParticipate(DirectoryObjectEntity participant)
throws ModelIntegrityException,
ModelCommunicationException
- Determines if the given entity is a parent of the subject directory object.
The given entity must be either a ServiceEntity or PersonEntity
to even be considered as a parent.
- Specified by:
doesParticipate
in interface Relationship
- Parameters:
participant
- Proposed service or person (DirectoryObjectEntity).- Returns:
- True if participant is a parent, false if not.
- Throws:
ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
relationship from being evaluated properly.ModelCommunicationException
- Thrown if unable to communicate
with the data store.