OSID Logo
OSID Specifications
contact package
Version 3.1.0
Interfaceosid.contact.AddressBookSearchSession
Implementsosid.contact.AddressBookQuerySession
Used Byosid.contact.ContactManager
osid.contact.ContactProxyManager
Description

This session provides methods for searching AddressBooks. The search query is constructed using the AddressBookQuery. The address book record Type also specifies the record for the address book query.

getAddressBooksByQuery() is the basic search method and returns a list of AddressBook elements. A more advanced search may be performed with getAddressBooksBySearch(). It accepts an AddressBookSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getAddressBooksBySearch() returns an AddressBookSearchResults that can be used to access the resulting AddressBookList or be used to perform a search within the result set through AddressBookSearch.

AddressBooks may have a query record indicated by their respective record types. The query record is accessed via the AddressBookQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetAddressBookSearch
Description

Gets an address book search.

Returnosid.contact.AddressBookSearch the address book search
Compliancemandatory This method must be implemented.
MethodgetAddressBookSearchOrder
Description

Gets an address book search order. The AddressBookSearchOrder is supplied to an AddressBookSearch to specify the ordering of results.

Returnosid.contact.AddressBookSearchOrder the address book search order
Compliancemandatory This method must be implemented.
MethodgetAddressBooksBySearch
Description

Gets the search results matching the given search.

Parametersosid.contact.AddressBookQueryaddressBookQuery the address book query
osid.contact.AddressBookSearchaddressBookSearch the address book search
Returnosid.contact.AddressBookSearchResults the address book search results
ErrorsNULL_ARGUMENT addressBookQuery or address books earch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED addressBookQuery or address books earch is not of this service
Compliancemandatory This method must be implemented.
MethodgetAddressBookQueryFromInspector
Description

Gets an address book query from an inspector. The inspector is available from an AddressBookSearchResults.

Parametersosid.contact.AddressBookQueryInspectoraddressBookQueryInspector an address book query inspector
Returnosid.contact.AddressBookQuery the address book query
ErrorsNULL_ARGUMENT addressBookQueryInspector is null
UNSUPPORTED addressBookQueryInspector is not of this service
Compliancemandatory This method must be implemented.