public interface ActivitySmartObjectiveBankSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An ActivityQuery
can be retrieved from this
session and mapped to this ObjectiveBank
to create a
virtual collection of activities. The activities may be sequenced using
the ActivitySearchOrder
from this session.
This ObjectiveBank
has a default query that matches any
activity and a default search order that specifies no sequencing. The
queries may be examined using an ActivityQueryInspector.
The query may be modified by converting the inspector back to an
ActivityQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyActivityQuery(ActivityQuery activityQuery)
Applies an activity query to this bank.
|
void |
applyActivitySequencing(ActivitySearchOrder activitySearchOrder)
Applies an activity search order to this objective bank.
|
boolean |
canManageSmartObjectiveBanks()
Tests if this user can manage smart objective banks.
|
ActivityQuery |
getActivityQuery()
Gets an activity query.
|
ActivityQuery |
getActivityQueryFromInspector(ActivityQueryInspector activityQueryInspector)
Gets an activity query from an inspector.
|
ActivitySearchOrder |
getActivitySearchOrder()
Gets an activity search order.
|
ObjectiveBank |
getObjectiveBank()
Gets the
ObjectiveBank associated with this session. |
Id |
getObjectiveBankId()
Gets the
ObjectiveBank Id associated
with this session. |
ActivityQueryInspector |
inspectActivityQuery()
Gets an activity query inspector for this objective bank.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getObjectiveBankId()
ObjectiveBank
Id
associated
with this session. ObjectiveBank Id
associated with this
sessionmandatory
- This method must be implemented. ObjectiveBank getObjectiveBank() throws OperationFailedException, PermissionDeniedException
ObjectiveBank
associated with this session. ObjectiveBank
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartObjectiveBanks()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart objective bank management is not
authorized, true
otherwisemandatory
- This method must be implemented. ActivityQuery getActivityQuery()
mandatory
- This method must be implemented. ActivitySearchOrder getActivitySearchOrder()
mandatory
- This method must be implemented. void applyActivityQuery(ActivityQuery activityQuery) throws OperationFailedException, PermissionDeniedException
activityQuery
- the activity queryNullArgumentException
- activityQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- activityQuery
not
of this servicemandatory
- This method must be implemented. ActivityQueryInspector inspectActivityQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyActivitySequencing(ActivitySearchOrder activitySearchOrder) throws OperationFailedException, PermissionDeniedException
activitySearchOrder
- the activity search orderNullArgumentException
- activitySearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- activitySearchOrder
not of this servicemandatory
- This method must be implemented. ActivityQuery getActivityQueryFromInspector(ActivityQueryInspector activityQueryInspector)
activityQueryInspector
- an activity query inspectorNullArgumentException
- activityQueryInspector
is null
UnsupportedException
- activityQueryInspector
is not of this servicemandatory
- This method must be implemented.