OSID Logo
OSID Specifications
contact package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.ContactSmartAddressBookSession
Implementsosid.OsidSession
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.Idthe AddressBook Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBookthe AddressBook associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetContactQuery
Description

Gets a contact query.

Returnosid.contact.ContactQuerythe contact query
CompliancemandatoryThis method must be implemented.
MethodgetContactSearchOrder
Description

Gets a contact search order.

Returnosid.contact.ContactSearchOrderthe contact search order
CompliancemandatoryThis method must be implemented.
MethodapplyContactQuery
Description

Applies a contact query to this address book.

Parametersosid.contact.ContactQuerycontactQuerythe contact query
ErrorsNULL_ARGUMENT contactQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED contactQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectContactQuery
Description

Gets a contact query inspector for this address book.

Returnosid.contact.ContactQueryInspectorthe contact query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyContactSequencing
Description

Applies a contact search order to this address book.

Parametersosid.contact.ContactSearchOrdercontactSearchOrderthe contact search order
ErrorsNULL_ARGUMENT contactSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED contactSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetContactQueryFromInspector
Description

Gets a contact query from an inspector.

Parametersosid.contact.ContactQueryInspectorcontactQueryInspectora query inspector
Returnosid.contact.ContactQuerythe contact query
ErrorsNULL_ARGUMENT contactQueryInspector is null
UNSUPPORTED contactQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.