com.ibm.itim.dataservices.model
Class ProfileLocator

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

public class ProfileLocator
extends java.lang.Object

Provides an interface for retrieving profiles (object and service) registered with the provisioning platform. In addition to profiles saved in the data store, profiles that are registered at runtime, including platform default profiles, can be found through this interface.

See Also:
ObjectProfile, ServiceProfile

Constructor Summary
ProfileLocator()
           
 
Method Summary
static void create()
          Initializes the locator.
static java.util.Collection getAllProfiles(DistinguishedName tenantDN)
          Returns all object profiles in the cache.
static java.util.Collection getDefaultProfileNames(java.lang.String category)
          Returns the profiles registered at runtime including the platform defaults for the given category.
static java.util.Collection getProfileByCategory(DistinguishedName tenantDN, java.lang.String cat)
          Returns all object profiles based on an object category.
static ObjectProfile getProfileByClass(DistinguishedName tenantDN, java.lang.String customClass)
          Returns the profile based on the category of the object and its defining classes.
static ObjectProfile getProfileByClass(DistinguishedName tenantDN, java.lang.String cat, java.util.Collection objClasses)
          Returns the profile based on the category of the object and its defining classes.
static ObjectProfile getProfileByName(DistinguishedName tenantDN, java.lang.String name)
          Returns the object profile with the given name.
static java.lang.String getServiceProfileName(DistinguishedName tenantDN, java.lang.String customClass)
          This method returns the name of the service profile for which either eraccountclass (Account custom class) or ercustomclass (Service custom class) matches to custom class passed in else null.
static ObjectProfile loadProfile(ObjectProfile profile)
          Returns the object profile with the given name.
static void registerProfile(ObjectProfile profile)
          Registers an object profile with the locator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileLocator

public ProfileLocator()
Method Detail

create

public static void create()
                   throws ModelIntegrityException,
                          ModelCommunicationException
Initializes the locator.

Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store or the platform.
ModelIntegrityException - Thrown if a problem exists with the consistency of the data model preventing the initialization.

registerProfile

public static void registerProfile(ObjectProfile profile)
Registers an object profile with the locator. This registration is not persistent and must be re-executed at system re-start. Only one profile is allowed per category.

Parameters:
profile - ObjectProfile to register.

getProfileByClass

public static ObjectProfile getProfileByClass(DistinguishedName tenantDN,
                                              java.lang.String cat,
                                              java.util.Collection objClasses)
Returns the profile based on the category of the object and its defining classes.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
cat - Object category (i.e., person, account, etc.).
objClasses - Collection of class names (Strings).
Returns:
ObjectProfile matching the category and classes, null if none found.

getProfileByClass

public static ObjectProfile getProfileByClass(DistinguishedName tenantDN,
                                              java.lang.String customClass)
Returns the profile based on the category of the object and its defining classes.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
customClass - custom class name of the profile.
Returns:
ObjectProfile matching the custom class, null if none found.

getProfileByCategory

public static java.util.Collection getProfileByCategory(DistinguishedName tenantDN,
                                                        java.lang.String cat)
Returns all object profiles based on an object category.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
cat - Object category (i.e., person, account, etc.).
Returns:
Collection of ObjectProfiles for the category.

getProfileByName

public static ObjectProfile getProfileByName(DistinguishedName tenantDN,
                                             java.lang.String name)
Returns the object profile with the given name.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
name - Name of the profile.
Returns:
ObjectProfile with the given name.

loadProfile

public static ObjectProfile loadProfile(ObjectProfile profile)
Returns the object profile with the given name.

Parameters:
profile - Name of the profile.
Returns:
ObjectProfile with the given name.

getAllProfiles

public static java.util.Collection getAllProfiles(DistinguishedName tenantDN)
Returns all object profiles in the cache.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
Returns:
Collection of object profiles (ObjectProfile).

getDefaultProfileNames

public static java.util.Collection getDefaultProfileNames(java.lang.String category)
Returns the profiles registered at runtime including the platform defaults for the given category. return Collection of object profile names (Strings).


getServiceProfileName

public static java.lang.String getServiceProfileName(DistinguishedName tenantDN,
                                                     java.lang.String customClass)
This method returns the name of the service profile for which either eraccountclass (Account custom class) or ercustomclass (Service custom class) matches to custom class passed in else null.

Parameters:
tenantDN - DistinguishedName of the tenant (system root).
customClass - Name of Account/Service custom class
Returns:
Returns the name of the service profile


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.