Interface GradebookColumnLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving GradebookColumns .
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated gradebook view: All gradebook column methods in this
session operate, retrieve and pertain to gradebook columns defined
explicitly in the current gradebook. Using an isolated view is useful
for managing gradebook columns with the
GradebookColumnAdminSession. - federated gradebook view: All gradebook column methods in this session operate, retrieve and pertain to all gradebook columns defined in this gradebook and any other gradebooks implicitly available in this gradebook through gradebook inheritence.
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 .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performGradebookColumnlookups.Gets theGradebookassociated with this session.getGradebookColumn(Id gradebookColumnId) Gets theGradebookColumnspecified by itsId.Gets all gradebook columns.getGradebookColumnsByGenusType(Type gradebookColumnGenusType) Gets aGradebookColumnListcorresponding to the given gradebook column genusTypewhich does not include gradebook columns of genus types derived from the specifiedType.getGradebookColumnsByIds(IdList gradebookColumnIds) Gets aGradebookColumnListcorresponding to the givenIdList.getGradebookColumnsByParentGenusType(Type gradebookColumnGenusType) Gets aGradebookColumnListcorresponding to the given gradebook column genusTypeand include any additional columns with genus types derived from the specifiedType.getGradebookColumnsByRecordType(Type gradebookColumnRecordType) Gets aGradebookColumnListcontaining the given gradebook column recordType.getGradebookColumnSummary(Id gradebookColumnId) Gets theGradebookColumnSummaryfor summary results.Gets theGradebookIdassociated with this session.booleanTests if a summary entry is available.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theGradebookColumnreturns is desired.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.
-
canLookupGradebookColumns
boolean canLookupGradebookColumns()Tests if this user can performGradebookColumnlookups. 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 lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeGradebookColumnView
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. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryGradebookColumnView
void usePlenaryGradebookColumnView()A complete view of theGradebookColumnreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedGradebookView
void useFederatedGradebookView()Federates the view for methods in this session. A federated view will include gradebook columns in gradebooks which are children of this gradebook in the gradebook hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedGradebookView
void useIsolatedGradebookView()Isolates the view for methods in this session. An isolated view restricts lookups to this gradebook only.- Compliance:
mandatory- This method is must be implemented.
-
getGradebookColumn
GradebookColumn getGradebookColumn(Id gradebookColumnId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGradebookColumnspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedGradebookColumnmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradebookColumnand retained for compatibility.- Parameters:
gradebookColumnId-Idof theGradebookColumn- Returns:
- the gradebook column
- Throws:
NotFoundException-gradebookColumnIdnot foundNullArgumentException-gradebookColumnIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getGradebookColumnsByIds
GradebookColumnList getGradebookColumnsByIds(IdList gradebookColumnIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aGradebookColumnListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the gradebook columns specified in theIdlist, in the order of the list, including duplicates, or an error results if aIdin the supplied list is not found or inaccessible. Otherwise, inaccessible gradeboook columns may be omitted from the list.- Parameters:
gradebookColumnIds- the list ofIdsto retrieve- Returns:
- the returned
GradebookColumnlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-gradeBookColumnIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnsByGenusType
GradebookColumnList getGradebookColumnsByGenusType(Type gradebookColumnGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnListcorresponding to the given gradebook column genusTypewhich does not include gradebook columns of genus types derived from the specifiedType. 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.- Parameters:
gradebookColumnGenusType- a gradebook column genus type- Returns:
- the returned
GradebookColumnlist - Throws:
NullArgumentException-gradebookColumnGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnsByParentGenusType
GradebookColumnList getGradebookColumnsByParentGenusType(Type gradebookColumnGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnListcorresponding to the given gradebook column genusTypeand include any additional columns with genus types derived from the specifiedType. 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.- Parameters:
gradebookColumnGenusType- a gradebook column genus type- Returns:
- the returned
GradebookColumnlist - Throws:
NullArgumentException-gradebookColumnGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnsByRecordType
GradebookColumnList getGradebookColumnsByRecordType(Type gradebookColumnRecordType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnListcontaining the given gradebook column recordType. 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.- Parameters:
gradebookColumnRecordType- a gradebook column record type- Returns:
- the returned
GradebookColumnlist - Throws:
NullArgumentException-gradebookColumnRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumns
GradebookColumnList getGradebookColumns() throws OperationFailedException, PermissionDeniedExceptionGets all gradebook columns. 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.- Returns:
- a
GradebookColumn - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
supportsSummary
boolean supportsSummary()Tests if a summary entry is available.- Returns:
trueif a summary entry is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnSummary
GradebookColumnSummary getGradebookColumnSummary(Id gradebookColumnId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGradebookColumnSummaryfor summary results.- Parameters:
gradebookColumnId-Idof theGradebookColumn- Returns:
- the gradebook column summary
- Throws:
NotFoundException-gradebookColumnIdis not foundNullArgumentException-gradebookColumnIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnimplementedException-hasSummary()isfalse- Compliance:
mandatory- This method is must be implemented.
-