Interface AuthorizationSmartVaultSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An 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
.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAuthorizationQuery(AuthorizationQuery authorizationQuery) Applies an authorization query to this vault.voidapplyAuthorizationSequencing(AuthorizationSearchOrder authorizationSearchOrder) Applies an authorization search order to this vault.booleanTests if this user can manage smart vault.Gets an authorization query.getAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector) Gets an authorization query from an inspector.Gets an authorization search order.getVault()Gets theVaultassociated with this session.Gets theVaultIdassociated with this session.Gets an authorization query inspector for this vault.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getVaultId
Id getVaultId()Gets theVaultIdassociated with this session.- Returns:
- the
Vault Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getVault
Gets theVaultassociated with this session.- Returns:
- the
Vaultassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartVault
boolean canManageSmartVault()Tests if this user can manage smart vault. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart vault management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationQuery
AuthorizationQuery getAuthorizationQuery()Gets an authorization query.- Returns:
- the authorization query
- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationSearchOrder
AuthorizationSearchOrder getAuthorizationSearchOrder()Gets an authorization search order.- Returns:
- the authorization search order.
- Compliance:
mandatory- This method must be implemented.
-
applyAuthorizationQuery
void applyAuthorizationQuery(AuthorizationQuery authorizationQuery) throws OperationFailedException, PermissionDeniedException Applies an authorization query to this vault.- Parameters:
authorizationQuery- the authorization query- Throws:
NullArgumentException-authorizationQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-authorizationQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectAuthorizationQuery
AuthorizationQueryInspector inspectAuthorizationQuery() throws OperationFailedException, PermissionDeniedExceptionGets an authorization query inspector for this vault.- Returns:
- the authorization query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyAuthorizationSequencing
void applyAuthorizationSequencing(AuthorizationSearchOrder authorizationSearchOrder) throws OperationFailedException, PermissionDeniedException Applies an authorization search order to this vault.- Parameters:
authorizationSearchOrder- the authorization search order- Throws:
NullArgumentException-authorizationSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-authorizationSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationQueryFromInspector
AuthorizationQuery getAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector) Gets an authorization query from an inspector.- Parameters:
authorizationQueryInspector- a resorce relationship query inspector- Returns:
- the authorization query
- Throws:
NullArgumentException-authorizationQueryInspectorisnullUnsupportedException-authorizationQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-