com.ibm.itim.dataservices.model
Class ProfileLocatorBridge

java.lang.Object
  extended by com.ibm.itim.dataservices.model.ProfileLocatorBridge
All Implemented Interfaces:
IProfileLocator, java.io.Serializable

public class ProfileLocatorBridge
extends java.lang.Object
implements IProfileLocator, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ibm.itim.dataservices.model.IProfileLocator
NAME
 
Constructor Summary
ProfileLocatorBridge()
           
 
Method Summary
 java.util.Collection<ObjectProfile> getAllProfiles(DistinguishedName tenantDN)
          Returns all object profiles in the cache.
 java.util.Collection<java.lang.String> getDefaultProfileNames(java.lang.String category)
          Returns the profiles registered at runtime including the platform defaults for the given category.
 java.util.Collection getProfileByCategory(DistinguishedName tenantDN, java.lang.String cat)
          Returns all object profiles based on an object category.
 ObjectProfile getProfileByClass(DistinguishedName tenantDN, java.lang.String customClass)
          Returns the profile based on the category of the object and its defining classes.
 ObjectProfile getProfileByClass(DistinguishedName tenantDN, java.lang.String cat, java.util.Collection<java.lang.String> objClasses)
          Returns the profile based on the category of the object and its defining classes.
 ObjectProfile getProfileByName(DistinguishedName tenantDN, java.lang.String name)
          Returns the object profile with the given name.
 ObjectProfile loadProfile(ObjectProfile profile)
          Returns the object profile with the given name.
 void refresh(DistinguishedName tenantDN)
          This method refreshes ProfileTable and ModelProfile.
 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

ProfileLocatorBridge

public ProfileLocatorBridge()
Method Detail

getAllProfiles

public java.util.Collection<ObjectProfile> getAllProfiles(DistinguishedName tenantDN)
Description copied from interface: IProfileLocator
Returns all object profiles in the cache.

Specified by:
getAllProfiles in interface IProfileLocator
Parameters:
tenantDN - DistinguishedName of the tenant (system root).
Returns:
Collection of object profiles (ObjectProfile).

getDefaultProfileNames

public java.util.Collection<java.lang.String> getDefaultProfileNames(java.lang.String category)
Description copied from interface: IProfileLocator
Returns the profiles registered at runtime including the platform defaults for the given category.

Specified by:
getDefaultProfileNames in interface IProfileLocator
Returns:
Collection of object profile names (Strings).

getProfileByCategory

public java.util.Collection getProfileByCategory(DistinguishedName tenantDN,
                                                 java.lang.String cat)
Description copied from interface: IProfileLocator
Returns all object profiles based on an object category.

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

getProfileByClass

public ObjectProfile getProfileByClass(DistinguishedName tenantDN,
                                       java.lang.String cat,
                                       java.util.Collection<java.lang.String> objClasses)
Description copied from interface: IProfileLocator
Returns the profile based on the category of the object and its defining classes.

Specified by:
getProfileByClass in interface IProfileLocator
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 ObjectProfile getProfileByClass(DistinguishedName tenantDN,
                                       java.lang.String customClass)
Description copied from interface: IProfileLocator
Returns the profile based on the category of the object and its defining classes.

Specified by:
getProfileByClass in interface IProfileLocator
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.

getProfileByName

public ObjectProfile getProfileByName(DistinguishedName tenantDN,
                                      java.lang.String name)
Description copied from interface: IProfileLocator
Returns the object profile with the given name.

Specified by:
getProfileByName in interface IProfileLocator
Parameters:
tenantDN - DistinguishedName of the tenant (system root).
name - Name of the profile.
Returns:
ObjectProfile with the given name.

loadProfile

public ObjectProfile loadProfile(ObjectProfile profile)
Description copied from interface: IProfileLocator
Returns the object profile with the given name. This method is used to reload the profile after refresh() is called.

Specified by:
loadProfile in interface IProfileLocator
Parameters:
profile - The profile that will be reloaded after all profiles are refreshed.
Returns:
ObjectProfile with the given name.

refresh

public void refresh(DistinguishedName tenantDN)
Description copied from interface: IProfileLocator
This method refreshes ProfileTable and ModelProfile.

Specified by:
refresh in interface IProfileLocator

registerProfile

public void registerProfile(ObjectProfile profile)
Description copied from interface: IProfileLocator
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.

Specified by:
registerProfile in interface IProfileLocator
Parameters:
profile - ObjectProfile to register.


IBM Tivoli Identity Manager 5.1
© Copyright International Business Machines Corporation 2007, 2009. All rightsreserved. US Government Users Restricited RightsUse, duplication or disclosure restricted by GSA ADP ScheduleContract with IBM Corp.