com.ibm.itim.dataservices.model.domain
Class GroupService

java.lang.Object
  extended by com.ibm.itim.dataservices.model.domain.GroupService
All Implemented Interfaces:
Relationship

public class GroupService
extends java.lang.Object
implements Relationship

Represents the service on which a group is defined.

Since:
Tivoli Identity Manager 5.1

Constructor Summary
GroupService()
           
 
Method Summary
 boolean doesParticipate(DirectoryObjectEntity participant)
          Determines if the given entity is a service of the subject directory object.
 java.util.Collection<ServiceEntity> evaluate()
          Evaluates the relationship and returns a service entity that represents the service of the subject directory object.
 java.util.Collection<DistinguishedName> evaluateReferences()
          Evaluates the relationship returning 0 to many entity distinguished names 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
 

Constructor Detail

GroupService

public GroupService()
Method Detail

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<ServiceEntity> evaluate()
                                             throws ModelIntegrityException,
                                                    ModelCommunicationException
Evaluates the relationship and returns a service entity that represents the service of the subject directory object.

Specified by:
evaluate in interface Relationship
Returns:
Collection of one ServiceEntity 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.

evaluateReferences

public java.util.Collection<DistinguishedName> evaluateReferences()
                                                           throws ModelIntegrityException,
                                                                  ModelCommunicationException
Evaluates the relationship returning 0 to many entity distinguished names 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 a service of the subject directory object. The given entity must be a ServiceEntity to even be considered as a service.

Specified by:
doesParticipate in interface Relationship
Parameters:
participant - Proposed service (DirectoryObjectEntity).
Returns:
True if participant is a service, 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.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.