OSID Logo
OSID Specifications
contact rules package
Version 3.1.0
Interfaceosid.contact.rules.ContactEnablerSearchSession
Implementsosid.contact.rules.ContactEnablerQuerySession
Used Byosid.contact.rules.ContactRulesManager
osid.contact.rules.ContactRulesProxyManager
Description

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.
MethodgetContactEnablerSearch
Description

Gets a contact enabler search.

Returnosid.contact.rules.ContactEnablerSearch the contact enabler search
Compliancemandatory This method must be implemented.
MethodgetContactEnablerSearchOrder
Description

Gets a contact enabler search order. The ContactEnablerSearchOrder is supplied to a ContactEnablerSearch to specify the ordering of results.

Returnosid.contact.rules.ContactEnablerSearchOrder the contact enabler search order
Compliancemandatory This method must be implemented.
MethodgetContactEnablersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.contact.rules.ContactEnablerQuerycontactEnablerQuery the contact enabler query
osid.contact.rules.ContactEnablerSearchcontactEnablerSearch the contact enabler search
Returnosid.contact.rules.ContactEnablerSearchResults the returned search results
ErrorsNULL_ARGUMENT contactEnablerQuery or contactEnablerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED contactEnablerQuery or contactEnablerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetContactEnablerQueryFromInspector
Description

Gets a contact enabler query from an inspector. The inspector is available from a ContactEnablerSearchResults.

Parametersosid.contact.rules.ContactEnablerQueryInspectorcontactEnablerQueryInspector a contact enabler query inspector
Returnosid.contact.rules.ContactEnablerQuery the contact enabler query
ErrorsNULL_ARGUMENT contactEnablerQueryInspector is null
UNSUPPORTED contactEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.