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

This session manages queries and sequencing to create "smart" dynamic catalogs. An AddressQuery can be retrieved from this session and mapped to this AddressBook to create a virtual collection of Addresses. The addresses may be sequenced using the AddressSearchOrder from this session.

This AddressBook has a default query that matches any address and a default search order that specifies no sequencing. The queries may be examined using an AddressQueryInspector. The query may be modified by converting the inspector back to an AddressQuery.

MethodgetAddressBookId
Description

Gets the AddressBook Id associated with this session.

Returnosid.id.Id the AddressBook Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBook the AddressBook associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartAddressBooks
Description

Tests if this user can manage smart address books. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart address book management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetAddressQuery
Description

Gets an address query.

Returnosid.contact.AddressQuery the address query
Compliancemandatory This method must be implemented.
MethodgetAddressSearchOrder
Description

Gets an address search order.

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

Applies an address query to this address book.

Parametersosid.contact.AddressQueryaddressQuery the address query
ErrorsNULL_ARGUMENT addressQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED addressQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectAddressQuery
Description

Gets an address query inspector for this address book.

Returnosid.contact.AddressQueryInspector the address query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyAddressSequencing
Description

Applies an address search order to this address book.

Parametersosid.contact.AddressSearchOrderaddressSearchOrder the address search order
ErrorsNULL_ARGUMENT addressSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED addressSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetAddressQueryFromInspector
Description

Gets an address query from an inspector.

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