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

This session manages queries and sequencing to create "smart" dynamic catalogs. A ContactQuery can be retrieved from this session and mapped to this AddressBook to create a virtual collection of Contacts. The addresses may be sequenced using the ContactSearchOrder from this session.

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

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

Gets a contact query.

Returnosid.contact.ContactQuery the contact query
Compliancemandatory This method must be implemented.
MethodgetContactSearchOrder
Description

Gets a contact search order.

Returnosid.contact.ContactSearchOrder the contact search order
Compliancemandatory This method must be implemented.
MethodapplyContactQuery
Description

Applies a contact query to this address book.

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

Gets a contact query inspector for this address book.

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

Applies a contact search order to this address book.

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

Gets a contact query from an inspector.

Parametersosid.contact.ContactQueryInspectorcontactQueryInspector a query inspector
Returnosid.contact.ContactQuery the contact query
ErrorsNULL_ARGUMENT contactQueryInspector is null
UNSUPPORTED contactQueryInspector is not of this service
Compliancemandatory This method must be implemented.