public interface AuthorizationSmartVaultSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A AuthorizationQuery can be retrieved from this
session and mapped to this Vault to create a virtual
collection of Authorizations. The authorizations may be
sequenced using the AuthorizationSearchOrder from this
session.
This Vault has a default query that matches any
authorization and a default search order that specifies no sequencing. The
queries may be examined using a AuthorizationQueryInspector.
The query may be modified by converting the inspector back to a
AuthorizationQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyAuthorizationQuery(AuthorizationQuery authorizationQuery)
Applies a authorization query to this vault.
|
void |
applyAuthorizationSequencing(AuthorizationSearchOrder authorizationSearchOrder)
Applies a authorization search order to this vault.
|
boolean |
canManageSmartVault()
Tests if this user can manage smart vault.
|
AuthorizationQuery |
getAuthorizationQuery()
Gets a authorization query.
|
AuthorizationQuery |
getAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector)
Gets a authorization query from an inspector.
|
AuthorizationSearchOrder |
getAuthorizationSearchOrder()
Gets a authorization search order.
|
Vault |
getVault()
Gets the
Vault associated with this session. |
Id |
getVaultId()
Gets the
Vault Id associated with this
session. |
AuthorizationQueryInspector |
inspectAuthorizationQuery()
Gets a authorization query inspector for this vault.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getVaultId()
Vault Id associated with this
session. Vault Id associated with this sessionmandatory - This method must be implemented. Vault getVault() throws OperationFailedException, PermissionDeniedException
Vault associated with this session. Vault associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartVault()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart vault management is not
authorized, true otherwisemandatory - This method must be implemented. AuthorizationQuery getAuthorizationQuery()
mandatory - This method must be implemented. AuthorizationSearchOrder getAuthorizationSearchOrder()
mandatory - This method must be implemented. void applyAuthorizationQuery(AuthorizationQuery authorizationQuery) throws OperationFailedException, PermissionDeniedException
authorizationQuery - the authorization queryNullArgumentException - authorizationQuery
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - authorizationQuery
not of this servicemandatory - This method must be implemented. AuthorizationQueryInspector inspectAuthorizationQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyAuthorizationSequencing(AuthorizationSearchOrder authorizationSearchOrder) throws OperationFailedException, PermissionDeniedException
authorizationSearchOrder - the authorization search orderNullArgumentException - authorizationSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - authorizationSearchOrder
not of this servicemandatory - This method must be implemented. AuthorizationQuery getAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector)
authorizationQueryInspector - a resorce relationship query
inspectorNullArgumentException -
authorizationQueryInspector is null UnsupportedException -
authorizationQueryInspector is not of this servicemandatory - This method must be implemented.