Interface GradeSmartGradebookSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A GradeQuery can be retrieved from this session and
mapped to this Gradebook to create a virtual collection of
Grades . The grades may be sequenced using the GradeSearchOrder
from this session.
This Gradebook has a default query that matches any grade and
a default search order that specifies no sequencing. The queries may be
examined using a GradeQueryInspector . The query may be modified
by converting the inspector back to a GradeQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGradeQuery(GradeQuery gradeQuery) Applies a grade query to this gradebook.voidapplyGradeSequencing(GradeSearchOrder gradeSearchOrder) Applies a grade search order to this gradebook.booleanTests if this user can manage smart gradebooks.Gets theGradebookassociated with this session.Gets theGradebookIdassociated with this session.Gets a grade query.getGradeQueryFromInspector(GradeQueryInspector gradeQueryInspector) Gets a grade query from an inspector.Gets a grade search order.Gets a grade 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 gradebook
- 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 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 gradebook management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeQuery
GradeQuery getGradeQuery()Gets a grade query.- Returns:
- the grade query
- Compliance:
mandatory- This method must be implemented.
-
getGradeSearchOrder
GradeSearchOrder getGradeSearchOrder()Gets a grade search order.- Returns:
- the grade search order
- Compliance:
mandatory- This method must be implemented.
-
applyGradeQuery
void applyGradeQuery(GradeQuery gradeQuery) throws OperationFailedException, PermissionDeniedException Applies a grade query to this gradebook.- Parameters:
gradeQuery- the grade query- Throws:
NullArgumentException-gradeQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectGradeQuery
Gets a grade query inspector for this gradebook.- Returns:
- the grade query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyGradeSequencing
void applyGradeSequencing(GradeSearchOrder gradeSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a grade search order to this gradebook.- Parameters:
gradeSearchOrder- the grade search order- Throws:
NullArgumentException-gradeSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getGradeQueryFromInspector
Gets a grade query from an inspector.- Parameters:
gradeQueryInspector- a grade query inspector- Returns:
- the grade query
- Throws:
NullArgumentException-gradeQueryInspectorisnullUnsupportedException-gradeQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-