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

This session provides methods for searching Addresses. The search query is constructed using the AddressQuery. The address record Type also specifies the record for the address query.

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

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

MethodgetAddressSearch
Description

Gets an address search.

Returnosid.contact.AddressSearch the address search
Compliancemandatory This method must be implemented.
MethodgetAddressSearchOrder
Description

Gets an address search order. The AddressSearchOrder is supplied to an AddressSearch to specify the ordering of results.

Returnosid.contact.AddressSearchOrder the address search order
Compliancemandatory This method must be implemented.
MethodgetAddressesBySearch
Description

Gets the search results matching the given search.

Parametersosid.contact.AddressQueryaddressQuery the address query
osid.contact.AddressSearchaddressSearch the address search
Returnosid.contact.AddressSearchResults the address search results
ErrorsNULL_ARGUMENT addressQuery or addressSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED addressQuery or addressSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetAddressQueryFromInspector
Description

Gets an address query from an inspector. The inspector is available from an AddressSearchResults.

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