public interface ContactEnablerSmartAddressBookSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
address books. A ContactEnablerQuery
can be retrieved from
this session and mapped to this AddressBook
to create a
virtual collection of contact enablers. The contact enablers may be
sequenced using the ContactEnablerSearchOrder
from this
session.
This AddressBook
has a default query that matches any
contact enabler and a default search order that specifies no sequencing.
The queries may be examined using a ContactEnablerQueryInspector.
The query may be modified by converting the inspector back to a
ContactEnablerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyContactEnablerQuery(ContactEnablerQuery contactEnablerQuery)
Applies a contact enabler query to this address book.
|
void |
applyContactEnablerSequencing(ContactEnablerSearchOrder contactEnablerSearchOrder)
Applies a contact enabler search order to this address book.
|
boolean |
canManageSmartAddressBooks()
Tests if this user can manage smart address books.
|
AddressBook |
getAddressBook()
Gets the
AddressBook associated with this session. |
Id |
getAddressBookId()
Gets the
AddressBook Id associated with
this session. |
ContactEnablerQuery |
getContactEnablerQuery()
Gets a contact enabler query.
|
ContactEnablerQuery |
getContactEnablerQueryFromInspector(ContactEnablerQueryInspector contactEnablerQueryInspector)
Gets a contact enabler query from an inspector.
|
ContactEnablerSearchOrder |
getContactEnablerSearchOrder()
Gets a contact enabler search order.
|
ContactEnablerQueryInspector |
inspectContactEnablerQuery()
Gets a contact enabler query inspector for this address book.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getAddressBookId()
AddressBook
Id
associated with
this session. AddressBook Id
associated with this sessionmandatory
- This method must be implemented. AddressBook getAddressBook() throws OperationFailedException, PermissionDeniedException
AddressBook
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartAddressBooks()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart address book management is not
authorized, true
otherwisemandatory
- This method must be implemented. ContactEnablerQuery getContactEnablerQuery()
mandatory
- This method must be implemented. ContactEnablerSearchOrder getContactEnablerSearchOrder()
mandatory
- This method must be implemented. void applyContactEnablerQuery(ContactEnablerQuery contactEnablerQuery) throws OperationFailedException, PermissionDeniedException
contactEnablerQuery
- the contact enabler queryNullArgumentException
- contactEnablerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- contactEnablerQuery
not of this servicemandatory
- This method must be implemented. ContactEnablerQueryInspector inspectContactEnablerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyContactEnablerSequencing(ContactEnablerSearchOrder contactEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException
contactEnablerSearchOrder
- the contact enabler search orderNullArgumentException
-
contactEnablerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- contactEnablerSearchOrder
not of this servicemandatory
- This method must be implemented. ContactEnablerQuery getContactEnablerQueryFromInspector(ContactEnablerQueryInspector contactEnablerQueryInspector)
contactEnablerQueryInspector
- a contact enabler query inspectorNullArgumentException
-
contactEnablerQueryInspector
is null
UnsupportedException
-
contactEnablerQueryInspector
is not of this servicemandatory
- This method must be implemented.