Interface GradebookColumnSmartGradebookSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A GradebookColumnQuery can be retrieved from this
session and mapped to this Gradebook to create a virtual
collection of GradebookColumns . The entries may be sequenced
using the GradebookColumnSearchOrder from this session.
This Gradebook has a default query that matches any gradebook
column and a default search order that specifies no sequencing. The
queries may be examined using a GradebookColumnQueryInspector .
The query may be modified by converting the inspector back to a
GradebookColumnQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGradebookColumnQuery(GradebookColumnQuery gradebookColumnQuery) Applies a gradebook column query to this gradebook.voidapplyGradebookColumnSequencing(GradebookColumnSearchOrder gradebookColumnSearchOrder) Applies a gradebook column search order to this gradebook.booleanTests if this user can manage smart gradebooks.Gets theGradebookassociated with this session.Gets a gradebook column query.getGradebookColumnQueryFromInspector(GradebookColumnQuery gradebookColumnQueryInspector) Gets a gradebook column query from an inspector.Gets a gradebook column search order.Gets theGradebookIdassociated with this session.Gets a gradebook column query inspector for this gradebook.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
-
getGradebookId
Id getGradebookId()Gets theGradebookIdassociated with this session.- Returns:
- the
Gradebook Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getGradebook
Gets theGradebookassociated with this session.- Returns:
- the
Gradebookassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartGradebooks
boolean canManageSmartGradebooks()Tests if this user can manage smart gradebooks. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer smart operations.- Returns:
falseif smart gradebook methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnQuery
GradebookColumnQuery getGradebookColumnQuery()Gets a gradebook column query.- Returns:
- the gradebook column query
- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnSearchOrder
GradebookColumnSearchOrder getGradebookColumnSearchOrder()Gets a gradebook column search order.- Returns:
- the gradebook column search order
- Compliance:
mandatory- This method must be implemented.
-
applyGradebookColumnQuery
void applyGradebookColumnQuery(GradebookColumnQuery gradebookColumnQuery) throws OperationFailedException, PermissionDeniedException Applies a gradebook column query to this gradebook.- Parameters:
gradebookColumnQuery- the gradebook column query- Throws:
NullArgumentException-gradebookColumnQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradebookColumnQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectGradebookColumnQuery
GradebookColumnQueryInspector inspectGradebookColumnQuery() throws OperationFailedException, PermissionDeniedExceptionGets a gradebook column query inspector for this gradebook.- Returns:
- the gradebook column query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyGradebookColumnSequencing
void applyGradebookColumnSequencing(GradebookColumnSearchOrder gradebookColumnSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a gradebook column search order to this gradebook.- Parameters:
gradebookColumnSearchOrder- the gradebook column search order- Throws:
NullArgumentException-gradebookColumnSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradebookColumnSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnQueryFromInspector
GradebookColumnQuery getGradebookColumnQueryFromInspector(GradebookColumnQuery gradebookColumnQueryInspector) Gets a gradebook column query from an inspector.- Parameters:
gradebookColumnQueryInspector- a gradebook column query inspector- Returns:
- the gradebook column query
- Throws:
NullArgumentException-gradebookColumnQueryInspectorisnullUnsupportedException-gradebookColumnQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-