com.ibm.itim.dataservices.model.domain
Class DirectoryObjectOrganization
java.lang.Object
|
+--com.ibm.itim.dataservices.model.domain.DirectoryObjectOrganization
- All Implemented Interfaces:
- Relationship
- public class DirectoryObjectOrganization
- extends java.lang.Object
- implements Relationship
The DirectoryObjectOrganization class implements the administrator
relationship to a DirectoryObjectEntity. The subject of this relationship
is an DirectoryObjectEntity and the participant is 0 or 1 OrganizationEntities that
act as the entity's organization.
Method Summary |
boolean |
doesParticipate(DirectoryObjectEntity participant)
Determines if the given entity is an organization of the subject
entity. |
java.util.Collection |
evaluate()
Evaluates the relationship returning 0 or one OrganizationEntity objects that
represents the organization of the subject entity. |
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 |
DirectoryObjectOrganization
public DirectoryObjectOrganization()
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.
evaluate
public java.util.Collection evaluate()
throws ModelIntegrityException,
ModelCommunicationException
- Evaluates the relationship returning 0 or one OrganizationEntity objects that
represents the organization of the subject entity.
- Specified by:
evaluate
in interface Relationship
- Returns:
- Collection of 0 or one OrganizationEntity objects.
- 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.
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.
doesParticipate
public boolean doesParticipate(DirectoryObjectEntity participant)
throws ModelIntegrityException,
ModelCommunicationException
- Determines if the given entity is an organization of the subject
entity.
- Specified by:
doesParticipate
in interface Relationship
- Parameters:
participant
- Proposed organization (DirectoryObjectEntity).- Returns:
- True if the participant is organization, 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.