com.ibm.itim.dataservices.model.domain

Class SearchUtils

  • java.lang.Object
    • com.ibm.itim.dataservices.model.domain.SearchUtils


  • public class SearchUtils
    extends java.lang.Object
    This class is added to implement account and service lookup methods that uses shared LdapContext.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SERVER_NOT_AVAILABLE 
    • Constructor Summary

      Constructors 
      Constructor and Description
      SearchUtils() 
    • Field Detail

      • SERVER_NOT_AVAILABLE

        public static final java.lang.String SERVER_NOT_AVAILABLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SearchUtils

        public SearchUtils()
    • Method Detail

      • lookupAccount

        public AccountEntity lookupAccount(DistinguishedName dn,
                                           javax.naming.ldap.LdapContext ctx)
                                    throws ModelCommunicationException,
                                           ObjectNotFoundException
        Retrieves the account from the data store with the given distinguished name and ldapcontext. This method is same as in AccountSearch.lookup() except is accepts ldapcontext.
        Parameters:
        dn - DistinguishedName of the account.
        ctx - LdapContext connection to Ldap.
        Returns:
        AccountEntity with the corresponding distinguished name.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the entity in the data store. This may be due to an invalid distinguished name, or the entity may have been removed by another client.
      • lookupService

        public ServiceEntity lookupService(DistinguishedName dn,
                                           javax.naming.ldap.LdapContext ctx)
                                    throws ObjectNotFoundException,
                                           ModelCommunicationException
        Retrieves the service from the data store with the given distinguished name and ldapcontext. This method is same as in ServiceSearch.lookup() except is accepts ldapcontext.
        Parameters:
        dn - DistinguishedName of the service.
        ctx - LdapContext connection to Ldap.
        Returns:
        ServiceEntity with the corresponding distinguished name.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the entity in the data store. This may be due to an invalid distinguished name, or the entity may have been removed by another client.