com.ibm.itim.dataservices.model

Class DirectoryObjectSearch

  • java.lang.Object
    • com.ibm.itim.dataservices.model.DirectoryObjectSearch


  • public class DirectoryObjectSearch
    extends java.lang.Object
    Class that provides searching capabilities for DirectoryObjects. This interface is supplied to clients so that they can search in a more direct manner without having to traverse data model relationships to retrieve objects.
    See Also:
    DirectoryObjectEntity
    • Constructor Detail

      • DirectoryObjectSearch

        public DirectoryObjectSearch()
        Default constructor.
    • Method Detail

      • search

        public java.util.Collection search(DistinguishedName base,
                                           java.lang.String filter,
                                           SearchParameters params)
                                    throws ModelCommunicationException,
                                           ObjectNotFoundException
        Deprecated. Replaced by fetch(base, filter, params).
        Searches for DirectoryObjects that meet the criteria defined within the given filter. This search is performed as a raw search against the data store without any semantic mapping or logical hierarchy taking place.
        Parameters:
        base - DistinguishedName of the data store entry to be used as the base of any search.
        filter - Filter that defines the criteria for returned DirectoryObects to meet. The filter must be in the format defined by RFC2254.
        params - SearchParameters that provide additional context for how the search should be performed. Search scope set in params is not honored, it is always set to subtree scope. Use searchByFilter(base, filter, params) to perform one level scoped search.
        Returns:
        Collection of DirectoryObjectEntities that meet the search criteria.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the specified search base. This may be due to a data integrity problem or the base entry may have been removed by another client.
      • searchByClass

        public SearchResults searchByClass(DistinguishedName base,
                                           java.lang.String className,
                                           SearchParameters params)
                                    throws ModelCommunicationException,
                                           ObjectNotFoundException
        Searches for DirectoryObjects of the given class. This search is performed as a raw search against the data store without any semantic mapping or logical hierarchy taking place.
        Parameters:
        base - DistinguishedName of the data store entry to be used as the base of any search.
        className - Name of the class to search for.
        params - SearchParameters that provide additional context for how the search should be performed.
        Returns:
        SearchResults holding DiretoryObjectEntities of the given class.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the specified search base. This may be due to a data integrity problem or the base entry may have been removed by another client.
      • fetch

        public SearchResults fetch(DistinguishedName base,
                                   java.lang.String filter,
                                   SearchParameters params)
                            throws ModelCommunicationException,
                                   ObjectNotFoundException
        Searches for DirectoryObjects that meet the criteria defined within the given filter. This search is performed as a raw search against the data store without any semantic mapping or logical hierarchy taking place.
        Parameters:
        base - DistinguishedName of the data store entry to be used as the base of any search.
        filter - Filter that defines the criteria for returned DirectoryObects to meet. The filter must be in the format defined by RFC2254.
        params - SearchParameters that provide additional context for how the search should be performed. Search scope set in params is not honored, it is always set to subtree scope. Use searchByFilter(base, filter, params) to perform one level scoped search.
        Returns:
        SearchResults holding DiretoryObjectEntities for all objects that meet the search criteria.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the specified search base. This may be due to a data integrity problem or the base entry may have been removed by another client.
      • searchByFilter

        public SearchResults searchByFilter(DistinguishedName base,
                                            java.lang.String filter,
                                            SearchParameters params)
                                     throws ModelCommunicationException,
                                            ObjectNotFoundException
        Searches for DirectoryObjects that meet the criteria defined within the given filter. This search is performed as a raw search against the data store without any semantic mapping or logical hierarchy taking place.
        Parameters:
        base - DistinguishedName of the data store entry to be used as the base of any search.
        filter - Filter that defines the criteria for returned DirectoryObects to meet. The filter must be in the format defined by RFC2254.
        params - SearchParameters that provide additional context for how the search should be performed.
        Returns:
        SearchResults holding DiretoryObjectEntities for all objects that meet the search criteria.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ObjectNotFoundException - Thrown if unable to locate the specified search base. This may be due to a data integrity problem or the base entry may have been removed by another client.