Interface SequenceRuleSmartBankSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
bank. a SequenceRuleQuery can be retrieved from this session and
mapped to this Bank to create a virtual collection of sequence
rules. The sequence rule may be sequenced using the
SequenceRuleSearchOrder from this session.
This Bank has a default query that matches any sequence rule
and a default search order that specifies no sequencing. The queries may
be examined using a SequenceRuleQueryInspector. The query may be
modified by converting the inspector back to a SequenceRuleQuery.
Like all OsidSessions, SequenceRuleSmartBankSessions
are dedicated to single processing threads and a single authenticated
user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplySequenceRuleQuery(SequenceRuleQuery sequenceRuleQuery) Applies a sequence rule query to this bank.voidapplySequenceRuleSequencing(SequenceRuleSearchOrder sequenceRuleSearchOrder) Applies a sequence rule search order to this bank.booleanTests if this user can manage smart bank.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.Gets a sequence rule query.getSequenceRuleQueryFromInspector(SequenceRuleQueryInspector sequenceRuleQueryInspector) Gets a sequence rule query from an inspector.Gets a sequence rule search order.Gets a sequence rule query inspector for this bank.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
getBankId
Id getBankId()Gets theBankIdassociated with this session.- Returns:
- the
Bank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBank
Gets theBankassociated with this session.- Returns:
- the bank
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartBanks
boolean canManageSmartBanks()Tests if this user can manage smart bank. 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 bank management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleQuery
SequenceRuleQuery getSequenceRuleQuery()Gets a sequence rule query.- Returns:
- the sequence rule query
- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleSearchOrder
SequenceRuleSearchOrder getSequenceRuleSearchOrder()Gets a sequence rule search order.- Returns:
- the sequence rule search order
- Compliance:
mandatory- This method must be implemented.
-
applySequenceRuleQuery
void applySequenceRuleQuery(SequenceRuleQuery sequenceRuleQuery) throws OperationFailedException, PermissionDeniedException Applies a sequence rule query to this bank.- Parameters:
sequenceRuleQuery- the sequence rule query- Throws:
NullArgumentException-sequenceRuleQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-sequenceRuleQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectSequenceRuleQuery
SequenceRuleQueryInspector inspectSequenceRuleQuery() throws OperationFailedException, PermissionDeniedExceptionGets a sequence rule query inspector for this bank.- Returns:
- the sequence rule query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applySequenceRuleSequencing
void applySequenceRuleSequencing(SequenceRuleSearchOrder sequenceRuleSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a sequence rule search order to this bank.- Parameters:
sequenceRuleSearchOrder- the sequence rule search order- Throws:
NullArgumentException-sequenceRuleSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-sequenceRuleSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleQueryFromInspector
SequenceRuleQuery getSequenceRuleQueryFromInspector(SequenceRuleQueryInspector sequenceRuleQueryInspector) Gets a sequence rule query from an inspector.- Parameters:
sequenceRuleQueryInspector- a sequence rule query inspector- Returns:
- the sequence rule query
- Throws:
NullArgumentException-sequenceRuleQueryInspectorisnullUnsupportedException-sequenceRuleQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-