public interface AssessmentPartSmartBankSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
bank. An AssessmentPartQuery
can be retrieved from this
session and mapped to this Bank
to create a virtual
collection of assessment parts. The assessment part may be sequenced using
the AssessmentPartSearchOrder
from this session.
This Bank
has a default query that matches any
assessment part and a default search order that specifies no sequencing.
The queries may be examined using an AssessmentPartQueryInspector.
The query may be modified by converting the inspector back to an
AssessmentPartQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyAssessmentPartQuery(AssessmentPartQuery assessmentPartQuery)
Applies an assessment part query to this bank.
|
void |
applyAssessmentPartSequencing(AssessmentPartSearchOrder assessmentPartSearchOrder)
Applies an assessment part search order to this bank.
|
boolean |
canManageSmartBanks()
Tests if this user can manage smart bank.
|
AssessmentPartQuery |
getAssessmentPartQuery()
Gets an assessment part query.
|
AssessmentPartQuery |
getAssessmentPartQueryFromInspector(AssessmentPartQueryInspector assessmentPartQueryInspector)
Gets an assessment part query from an inspector.
|
AssessmentPartSearchOrder |
getAssessmentPartSearchOrder()
Gets an assessment part search order.
|
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
AssessmentPartQueryInspector |
inspectAssessmentPartQuery()
Gets an assessment part query inspector for this bank.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBankId()
Bank
Id
associated with this
session. Bank Id
associated with this sessionmandatory
- This method must be implemented. Bank getBank() throws OperationFailedException, PermissionDeniedException
Bank
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartBanks()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart bank management is not
authorized, true
otherwisemandatory
- This method must be implemented. AssessmentPartQuery getAssessmentPartQuery()
mandatory
- This method must be implemented. AssessmentPartSearchOrder getAssessmentPartSearchOrder()
mandatory
- This method must be implemented. void applyAssessmentPartQuery(AssessmentPartQuery assessmentPartQuery) throws OperationFailedException, PermissionDeniedException
assessmentPartQuery
- the assessment part queryNullArgumentException
- assessmentPartQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- assessmentPartQuery
not of this servicemandatory
- This method must be implemented. AssessmentPartQueryInspector inspectAssessmentPartQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyAssessmentPartSequencing(AssessmentPartSearchOrder assessmentPartSearchOrder) throws OperationFailedException, PermissionDeniedException
assessmentPartSearchOrder
- the assessment part search orderNullArgumentException
-
assessmentPartSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- assessmentPartSearchOrder
not of this servicemandatory
- This method must be implemented. AssessmentPartQuery getAssessmentPartQueryFromInspector(AssessmentPartQueryInspector assessmentPartQueryInspector)
assessmentPartQueryInspector
- an assessment part query
inspectorNullArgumentException
-
assessmentPartQueryInspector
is null
UnsupportedException
-
assessmentPartQueryInspector
is not of this servicemandatory
- This method must be implemented.