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

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.domain.ServiceModel

public class ServiceModel
extends java.lang.Object

Class provides functionality to access service supporting data in enrole data store. This includes finding and adding supporting data. For removing supporting data, DirectoryObjectEntity should be used.

Author:
AAmies

Constructor Summary
ServiceModel(DistinguishedName serviceDN)
          Creates new ServiceModel for the given service instance
 
Method Summary
 DirectoryObjectEntity addSupportingData(AttributeValues rdn, DirectoryObject directoryObject)
          Add a supporting data entry to the enrole data store.
 SearchResults getByFilter(java.lang.String filter)
          Gets all supporting data for the service matching the given filter.
 void removeSupportingData()
          Remove supporting data entries of the service in the enrole data store
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceModel

public ServiceModel(DistinguishedName serviceDN)
Creates new ServiceModel for the given service instance
Method Detail

addSupportingData

public DirectoryObjectEntity addSupportingData(AttributeValues rdn,
                                               DirectoryObject directoryObject)
                                        throws ModelCommunicationException,
                                               ModelCreationException
Add a supporting data entry to the enrole data store. The given rdn name component should be free of any special escaping.
Parameters:
rdn - The attributes that the relative distinguished name is formed from
directoryObject - Contains the data
Returns:
The newly created entity
Throws:
ModelCommunicationException - if the data store is inaccessible
ModelCreationException - if the entity could not be added to the data store due to data or naming consistency problems

getByFilter

public SearchResults getByFilter(java.lang.String filter)
                          throws ModelCommunicationException,
                                 ObjectNotFoundException
Gets all supporting data for the service matching the given filter.
Parameters:
The - filter to match supporting data by
Returns:
A SearchResults of DirectoryObjectEntity's

removeSupportingData

public void removeSupportingData()
                          throws ModelCommunicationException,
                                 ObjectNotFoundException
Remove supporting data entries of the service in the enrole data store