public interface AddressSmartAddressBookSession extends OsidSession
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.
| Modifier and Type | Method and Description |
|---|---|
void |
applyAddressQuery(AddressQuery addressQuery)
Applies an address query to this address book.
|
void |
applyAddressSequencing(AddressSearchOrder addressSearchOrder)
Applies an address 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. |
AddressQuery |
getAddressQuery()
Gets an address query.
|
AddressQuery |
getAddressQueryFromInspector(AddressQueryInspector addressQueryInspector)
Gets an address query from an inspector.
|
AddressSearchOrder |
getAddressSearchOrder()
Gets an address search order.
|
AddressQueryInspector |
inspectAddressQuery()
Gets an address query inspector for this address book.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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. AddressBook associated with this sessionOperationFailedException - 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. AddressQuery getAddressQuery()
mandatory - This method must be implemented. AddressSearchOrder getAddressSearchOrder()
mandatory - This method must be implemented. void applyAddressQuery(AddressQuery addressQuery) throws OperationFailedException, PermissionDeniedException
addressQuery - the address queryNullArgumentException - addressQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - addressQuery not
of this servicemandatory - This method must be implemented. AddressQueryInspector inspectAddressQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyAddressSequencing(AddressSearchOrder addressSearchOrder) throws OperationFailedException, PermissionDeniedException
addressSearchOrder - the address search orderNullArgumentException - addressSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - addressSearchOrder
not of this servicemandatory - This method must be implemented. AddressQuery getAddressQueryFromInspector(AddressQueryInspector addressQueryInspector)
addressQueryInspector - a query inspectorNullArgumentException - addressQueryInspector
is null UnsupportedException - addressQueryInspector
is not of this servicemandatory - This method must be implemented.