public interface GradebookColumnLookupSession extends OsidSession
This session provides methods for retrieving GradebookColumns
.
This session defines views that offer differing behaviors when retrieving multiple objects.
GradebookColumnAdminSession. Gradebook columns may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the GradebookColumn.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupGradebookColumns()
Tests if this user can perform
GradebookColumn lookups. |
Gradebook |
getGradebook()
Gets the
Gradebook associated with this session. |
GradebookColumn |
getGradebookColumn(Id gradebookColumnId)
Gets the
GradebookColumn specified by its Id. |
GradebookColumnList |
getGradebookColumns()
Gets all gradebook columns.
|
GradebookColumnList |
getGradebookColumnsByGenusType(Type gradebookColumnGenusType)
Gets a
GradebookColumnList corresponding to the given
gradebook column genus Type which does not include
gradebook columns of genus types derived from the specified
Type. |
GradebookColumnList |
getGradebookColumnsByIds(IdList gradebookColumnIds)
Gets a
GradebookColumnList corresponding to the given
IdList. |
GradebookColumnList |
getGradebookColumnsByParentGenusType(Type gradebookColumnGenusType)
Gets a
GradebookColumnList corresponding to the given
gradebook column genus Type and include any additional
columns with genus types derived from the specified Type. |
GradebookColumnList |
getGradebookColumnsByRecordType(Type gradebookColumnRecordType)
Gets a
GradebookColumnList containing the given
gradebook column record Type. |
GradebookColumnSummary |
getGradebookColumnSummary(Id gradebookColumnId)
Gets the
GradebookColumnSummary for summary results. |
Id |
getGradebookId()
Gets the
Gradebook Id associated with
this session. |
boolean |
supportsSummary()
Tests if a summary entry is available.
|
void |
useComparativeGradebookColumnView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedGradebookView()
Federates the view for methods in this session.
|
void |
useIsolatedGradebookView()
Isolates the view for methods in this session.
|
void |
usePlenaryGradebookColumnView()
A complete view of the
GradebookColumn returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getGradebookId()
Gradebook Id associated with
this session. Gradebook Id associated with this sessionmandatory - This method must be implemented. Gradebook getGradebook() throws OperationFailedException, PermissionDeniedException
Gradebook associated with this session. Gradebook associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupGradebookColumns()
GradebookColumn lookups.
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 a PERMISSION_DENIED. This is intended as a
hint to an application that may opt not to offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeGradebookColumnView()
mandatory - This method is must be implemented. void usePlenaryGradebookColumnView()
GradebookColumn returns is
desired. Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the expense of
interoperability.mandatory - This method is must be implemented. void useFederatedGradebookView()
mandatory - This method is must be implemented. void useIsolatedGradebookView()
mandatory - This method is must be implemented. GradebookColumn getGradebookColumn(Id gradebookColumnId) throws NotFoundException, OperationFailedException, PermissionDeniedException
GradebookColumn specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned
GradebookColumn may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a GradebookColumn and retained for
compatibility.gradebookColumnId - Id of the
GradebookColumn NotFoundException - gradebookColumnId
not foundNullArgumentException - gradebookColumnId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. GradebookColumnList getGradebookColumnsByIds(IdList gradebookColumnIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
GradebookColumnList corresponding to the given
IdList. In plenary mode, the returned list contains all
of the gradebook columns specified in the Id list, in
the order of the list, including duplicates, or an error results if a
Id in the supplied list is not found or inaccessible.
Otherwise, inaccessible gradeboook columns may be omitted from the
list.gradebookColumnIds - the list of Ids to retrieve GradebookColumn listNotFoundException - an Id was not foundNullArgumentException - gradeBookColumnIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. GradebookColumnList getGradebookColumnsByGenusType(Type gradebookColumnGenusType) throws OperationFailedException, PermissionDeniedException
GradebookColumnList corresponding to the given
gradebook column genus Type which does not include
gradebook columns of genus types derived from the specified
Type. In plenary mode, the returned list contains all known
gradebook columns or an error results. Otherwise, the returned list
may contain only those gradebook columns that are accessible through
this session.gradebookColumnGenusType - a gradebook column genus type GradebookColumn listNullArgumentException - gradebookColumnGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. GradebookColumnList getGradebookColumnsByParentGenusType(Type gradebookColumnGenusType) throws OperationFailedException, PermissionDeniedException
GradebookColumnList corresponding to the given
gradebook column genus Type and include any additional
columns with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
gradebook columns or an error results. Otherwise, the returned list
may contain only those gradebook columns that are accessible through
this session.gradebookColumnGenusType - a gradebook column genus type GradebookColumn listNullArgumentException - gradebookColumnGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. GradebookColumnList getGradebookColumnsByRecordType(Type gradebookColumnRecordType) throws OperationFailedException, PermissionDeniedException
GradebookColumnList containing the given
gradebook column record Type. In plenary mode, the
returned list contains all known gradebook columns or an error
results. Otherwise, the returned list may contain only those gradebook
columns that are accessible through this session.gradebookColumnRecordType - a gradebook column record type GradebookColumn listNullArgumentException -
gradebookColumnRecordType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. GradebookColumnList getGradebookColumns() throws OperationFailedException, PermissionDeniedException
GradebookColumn OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean supportsSummary()
true if a summary entry is available,
false otherwisemandatory - This method must be implemented. GradebookColumnSummary getGradebookColumnSummary(Id gradebookColumnId) throws NotFoundException, OperationFailedException, PermissionDeniedException
GradebookColumnSummary for summary results.gradebookColumnId - Id of the
GradebookColumn NotFoundException - gradebookColumnId is
not foundNullArgumentException - gradebookColumnId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnimplementedException - hasSummary() is
false mandatory - This method is must be implemented.