public interface FunctionSmartVaultSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A FunctionQuery
can be retrieved from this
session and mapped to this Vault
to create a virtual
collection of Functions.
The functions may be sequenced
using the FunctionSearchOrder
from this session.
This Vault
has a default query that matches any
function and a default search order that specifies no sequencing. The
queries may be examined using a FunctionQueryInspector.
The
query may be modified by converting the inspector back to a
FunctionQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyFunctionQuery(FunctionQuery functionQuery)
Applies a function query to this vault.
|
void |
applyFunctionSequencing(FunctionSearchOrder functionSearchOrder)
Applies a function search order to this vault.
|
boolean |
canManageSmartVaults()
Tests if this user can manage smart vaults.
|
FunctionQuery |
getFunctionQuery()
Gets a function query.
|
FunctionQuery |
getFunctionQueryFromInspector(FunctionQueryInspector functionQueryInspector)
Gets a function query from an inspector.
|
FunctionSearchOrder |
getFunctionSearchOrder()
Gets a function search order.
|
Vault |
getVault()
Gets the
Vault associated with this session. |
Id |
getVaultId()
Gets the
Vault Id associated with this
session. |
FunctionQueryInspector |
inspectFunctionQuery()
Gets a function query inspector for this vault.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canManageSmartVaults()
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. FunctionQuery getFunctionQuery()
mandatory
- This method must be implemented. FunctionSearchOrder getFunctionSearchOrder()
mandatory
- This method must be implemented. void applyFunctionQuery(FunctionQuery functionQuery) throws OperationFailedException, PermissionDeniedException
functionQuery
- the function queryNullArgumentException
- functionQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- functionQuery
not
of this servicemandatory
- This method must be implemented. FunctionQueryInspector inspectFunctionQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyFunctionSequencing(FunctionSearchOrder functionSearchOrder) throws OperationFailedException, PermissionDeniedException
functionSearchOrder
- the function search orderNullArgumentException
- functionSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- functionSearchOrder
not of this servicemandatory
- This method must be implemented. FunctionQuery getFunctionQueryFromInspector(FunctionQueryInspector functionQueryInspector)
functionQueryInspector
- a function query inspectorNullArgumentException
- functionQueryInspector
is null
UnsupportedException
- functionQueryInspector
is not of this servicemandatory
- This method must be implemented.