OSID Logo
OSID Specifications
contact rules package
Version 3.0.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.ContactEnablerSearchthe contact enabler search
CompliancemandatoryThis 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.ContactEnablerSearchOrderthe contact enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetContactEnablersBySearch
Description

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

Parametersosid.contact.rules.ContactEnablerQuerycontactEnablerQuerythe contact enabler query
osid.contact.rules.ContactEnablerSearchcontactEnablerSearchthe contact enabler search
Returnosid.contact.rules.ContactEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENTcontactEnablerQuery or contactEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDcontactEnablerQuery or contactEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetContactEnablerQueryFromInspector
Description

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

Parametersosid.contact.rules.ContactEnablerQueryInspectorcontactEnablerQueryInspectora contact enabler query inspector
Returnosid.contact.rules.ContactEnablerQuerythe contact enabler query
ErrorsNULL_ARGUMENTcontactEnablerQueryInspector is null
UNSUPPORTEDcontactEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.