Interface GradeEntrySmartGradebookSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A GradeEntryQuery can be retrieved from this session and
mapped to this Gradebook to create a virtual collection of
GradeEntries . The entries may be sequenced using the
GradeEntrySearchOrder from this session.
This Gradebook has a default query that matches any grade
entry and a default search order that specifies no sequencing. The queries
may be examined using a GradeEntryQueryInspector . The query may
be modified by converting the inspector back to a GradeEntryQuery
.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGradeEntryQuery(GradeEntryQuery gradeEntryQuery) Applies a grade entry query to this gradebook.voidapplyGradeEntrySequencing(GradeEntrySearchOrder gradeEntrySearchOrder) Applies a grade entry 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 entry query.getGradeEntryQueryFromInspector(GradeEntryQueryInspector gradeEntryQueryInspector) Gets a grade entry query from an inspector.Gets a grade entry search order.Gets a grade entry 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.
-
getGradeEntryQuery
GradeEntryQuery getGradeEntryQuery()Gets a grade entry query.- Returns:
- the grade entry query
- Compliance:
mandatory- This method must be implemented.
-
getGradeEntrySearchOrder
GradeEntrySearchOrder getGradeEntrySearchOrder()Gets a grade entry search order.- Returns:
- the grade entry search order
- Compliance:
mandatory- This method must be implemented.
-
applyGradeEntryQuery
void applyGradeEntryQuery(GradeEntryQuery gradeEntryQuery) throws OperationFailedException, PermissionDeniedException Applies a grade entry query to this gradebook.- Parameters:
gradeEntryQuery- the grade entry query- Throws:
NullArgumentException-gradeEntryQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeEntryQuerydidi not originate fromgetGradeEntryQuery()- Compliance:
mandatory- This method must be implemented.
-
inspectGradeEntryQuery
GradeEntryQueryInspector inspectGradeEntryQuery() throws OperationFailedException, PermissionDeniedExceptionGets a grade entry query inspector for this gradebook.- Returns:
- the grade entry query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyGradeEntrySequencing
void applyGradeEntrySequencing(GradeEntrySearchOrder gradeEntrySearchOrder) throws OperationFailedException, PermissionDeniedException Applies a grade entry search order to this gradebook.- Parameters:
gradeEntrySearchOrder- the grade entry search order- Throws:
NullArgumentException-gradeEntrySearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-gradeEntrySearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getGradeEntryQueryFromInspector
Gets a grade entry query from an inspector.- Parameters:
gradeEntryQueryInspector- a grade entry query inspector- Returns:
- the grade entry query
- Throws:
NullArgumentException-gradeEntryQueryInspectorisnullUnsupportedException-gradeEntryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-