Interface ContactEnablerSearchSession

All Superinterfaces:
AutoCloseable, Closeable, ContactEnablerQuerySession, OsidSession, OsidSession

public interface ContactEnablerSearchSession extends ContactEnablerQuerySession

This session provides methods for searching among ContactEnabler objects. The search query is constructed using the ContactEnableryQuery .

getContactEnablersByQuery() is the basic search method and returns a list of ContactEnablers . A more advanced search may be performed with getContactEnablersBySearch() . It accepts a ContactEnablerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getContactEnablersBySearch() returns a ContactEnablerSearchResults that can be used to access the resulting ContactEnablerList or be used to perform a search within the result set through ContactEnablerSearch .

This session defines views that offer differing behaviors for searching.

  • federated address book view: searches include contact enablers in address books of which this address book is an ancestor in the address book hierarchy
  • isolated address book view: searches are restricted to contact enablers in this address book
ContactEnablers may have a query record indicated by their respective record types. The query record is accessed via the ContactEnablerQuery .
  • Method Details

    • getContactEnablerSearch

      ContactEnablerSearch getContactEnablerSearch()
      Gets a contact enabler search.
      Returns:
      the contact enabler search
      Compliance:
      mandatory - This method must be implemented.
    • getContactEnablerSearchOrder

      ContactEnablerSearchOrder getContactEnablerSearchOrder()
      Gets a contact enabler search order. The ContactEnablerSearchOrder is supplied to a ContactEnablerSearch to specify the ordering of results.
      Returns:
      the contact enabler search order
      Compliance:
      mandatory - This method must be implemented.
    • getContactEnablersBySearch

      ContactEnablerSearchResults getContactEnablersBySearch(ContactEnablerQuery contactEnablerQuery, ContactEnablerSearch contactEnablerSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      contactEnablerQuery - the contact enabler query
      contactEnablerSearch - the contact enabler search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - contactEnablerQuery or contactEnablerSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - contactEnablerQuery or contactEnablerSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getContactEnablerQueryFromInspector

      ContactEnablerQuery getContactEnablerQueryFromInspector(ContactEnablerQueryInspector contactEnablerQueryInspector)
      Gets a contact enabler query from an inspector. The inspector is available from a ContactEnablerSearchResults .
      Parameters:
      contactEnablerQueryInspector - a contact enabler query inspector
      Returns:
      the contact enabler query
      Throws:
      NullArgumentException - contactEnablerQueryInspector is null
      UnsupportedException - contactEnablerQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.