Interface GradeSystemSmartGradebookSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A GradeSystemQuery can be retrieved from this session
and mapped to this Gradebook to create a virtual collection of
GradeSystems . The entries may be sequenced using the
GradeSystemSearchOrder from this session.
This Gradebook has a default query that matches any grade
system and a default search order that specifies no sequencing. The
queries may be examined using a GradeSystemQueryInspector . The
query may be modified by converting the inspector back to a
GradeSystemQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGradeSystemQuery(GradeSystemQuery gradeSystemQuery) Applies a grade system query to this gradebook.voidapplyGradeSystemSequencing(GradeSystemSearchOrder gradeSystemSearchOrder) Applies a grade system 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 system query.getGradeSystemQueryFromInspector(GradeSystemQueryInspector gradeSystemQueryInspector) Gets a grade system query from an inspector.Gets a grade system search order.Gets a grade system 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.
-
getGradeSystemQuery
GradeSystemQuery getGradeSystemQuery()Gets a grade system query.- Returns:
- the grade system query
- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemSearchOrder
GradeSystemSearchOrder getGradeSystemSearchOrder()Gets a grade system search order.- Returns:
- the grade system search order
- Compliance:
mandatory- This method must be implemented.
-
applyGradeSystemQuery
void applyGradeSystemQuery(GradeSystemQuery gradeSystemQuery) throws OperationFailedException, PermissionDeniedException Applies a grade system query to this gradebook.- Parameters:
gradeSystemQuery- the grade system query- Throws:
NullArgumentException-gradeSystemQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeSystemQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectGradeSystemQuery
GradeSystemQueryInspector inspectGradeSystemQuery() throws OperationFailedException, PermissionDeniedExceptionGets a grade system query inspector for this gradebook.- Returns:
- the grade system query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyGradeSystemSequencing
void applyGradeSystemSequencing(GradeSystemSearchOrder gradeSystemSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a grade system search order to this gradebook.- Parameters:
gradeSystemSearchOrder- the grade system search order- Throws:
NullArgumentException-gradeSystemSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeSystemSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemQueryFromInspector
GradeSystemQuery getGradeSystemQueryFromInspector(GradeSystemQueryInspector gradeSystemQueryInspector) Gets a grade system query from an inspector.- Parameters:
gradeSystemQueryInspector- a grade system query inspector- Returns:
- the grade system query
- Throws:
NullArgumentException-gradeSystemQueryInspectorisnullUnsupportedException-gradeSystemQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-