Interface GradeSystemTransformLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
The session defines methods for retrieving
GradeSystemTransformations .
Two views are defined in this session:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- federated gradebook view: lookups include grade system transformations from this gradebook and other gradebooks which are children of this gradebook in the gradebook hierarchy
- isolated gradebook view: lookups include only those grade system transformations defined in this gradebook
- active grade system transormations view: All grade system transormation lookup methods return active grade system transormations.
- any status grade system transormations view: Grade system transormations of any active or inactive status are returned from methods.
Grades system transformations may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the object.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can lookup grade articulations.Gets theGradebookassociated with this session.Gets theGradebookIdassociated with this session.getGradeSystemTransform(Id gradeSystemTransformId) Gets theGradeSystemTransformspecified by itsId.getGradeSystemTransformBySystems(Id sourceGradeSystemId, Id targetGradeSystemId) Gets a grade system transform by its source and target grade systems.Gets allGradeSystemTransforms.getGradeSystemTransformsByGenusType(Type gradeSystemTransformGenusType) Gets aGradeSystemTransformListcorresponding to the given grade system transform genusTypewhich does not include transforms of genus types derived from the specifiedType.getGradeSystemTransformsByIds(IdList gradeSystemTransformIdList) Gets aGradeSystemTransformListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the transforms specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible.getGradeSystemTransformsByParentGenusType(Type gradeSystemTransformGenusType) Gets aGradeSystemTransformListcorresponding to the given grade system transform genusTypeand include any additional transforms with genus types derived from the specifiedType.getGradeSystemTransformsByRecordType(Type gradeSystemTransformRecordType) Gets aGradeSystemTransformListcontaining the given grade recordType.In plenary mode, the returned list contains all known transforms or an error results.getGradeSystemTransformsBySource(Id sourceGradeSystemId) Gets the grade system transforms from the source grade system.voidOnly active grade system transformations are returned by methods in this session.voidAll active and inactive grade system transformations are returned by methods in this session.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 theGradeSystemTransformreturns 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.
-
canLookupGradeSystemTransforms
boolean canLookupGradeSystemTransforms()Tests if this user can lookup grade articulations. 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 articulation lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useFederatedGradebookView
void useFederatedGradebookView()Federates the view for methods in this session. A federated view will include notifications for grade system transformations 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 grade system transformations to this gradebook only.- Compliance:
mandatory- This method is must be implemented.
-
useComparativeGradeSystemTransformView
void useComparativeGradeSystemTransformView()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.
-
usePlenaryGradeSystemTransformView
void usePlenaryGradeSystemTransformView()A complete view of theGradeSystemTransformreturns 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.
-
useActiveGradeSystemTransformView
void useActiveGradeSystemTransformView()Only active grade system transformations are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyStatusGradeSystemTransformView
void useAnyStatusGradeSystemTransformView()All active and inactive grade system transformations are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getGradeSystemTransform
GradeSystemTransform getGradeSystemTransform(Id gradeSystemTransformId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGradeSystemTransformspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedGradeSystemTransformmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradeSystemTransformand retained for compatibility.- Parameters:
gradeSystemTransformId-Idof theGradeSystemTransform- Returns:
- the grade system transorm
- Throws:
NotFoundException-gradeSystemTransformIdnot foundNullArgumentException-gradeSystemTransformIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getGradeSystemTransformsByIds
GradeSystemTransformList getGradeSystemTransformsByIds(IdList gradeSystemTransformIdList) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aGradeSystemTransformListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the transforms specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleGradeSystemTransformsmay be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
gradeSystemTransformIdList- the list ofIdsto retrieve- Returns:
- the returned
GradeSystemTransformlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-gradeSystemTransformIdListisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransformsByGenusType
GradeSystemTransformList getGradeSystemTransformsByGenusType(Type gradeSystemTransformGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradeSystemTransformListcorresponding to the given grade system transform genusTypewhich does not include transforms of genus types derived from the specifiedType. In plenary mode, the returned list contains all known transforms or an error results. Otherwise, the returned list may contain only those transforms that are accessible through this session.- Parameters:
gradeSystemTransformGenusType- a grade system transform genus type- Returns:
- the returned
GradeSystemTransformlist - Throws:
NullArgumentException-gradeSystemTransformGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransformsByParentGenusType
GradeSystemTransformList getGradeSystemTransformsByParentGenusType(Type gradeSystemTransformGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradeSystemTransformListcorresponding to the given grade system transform genusTypeand include any additional transforms with genus types derived from the specifiedType. In plenary mode, the returned list contains all known transforms or an error results. Otherwise, the returned list may contain only those transforms that are accessible through this session.- Parameters:
gradeSystemTransformGenusType- a grade system transform genus type- Returns:
- the returned
GradeSystemTransformlist - Throws:
NullArgumentException-gradeSystemTransformGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransformsByRecordType
GradeSystemTransformList getGradeSystemTransformsByRecordType(Type gradeSystemTransformRecordType) throws OperationFailedException, PermissionDeniedException Gets aGradeSystemTransformListcontaining the given grade recordType.In plenary mode, the returned list contains all known transforms or an error results. Otherwise, the returned list may contain only those transforms that are accessible through this session.- Parameters:
gradeSystemTransformRecordType- a grade system transform record type- Returns:
- the returned
GradeSystemTransformlist - Throws:
NullArgumentException-gradeSystemTransformGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransformsBySource
GradeSystemTransformList getGradeSystemTransformsBySource(Id sourceGradeSystemId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the grade system transforms from the source grade system. In plenary mode, the returned list contains all known grade system transforms or an error results. Otherwise, the returned list may contain only those grade system transforms that are accessible through this session.- Parameters:
sourceGradeSystemId- the source grade system- Returns:
- the returned
GradeSystemTransformlist - Throws:
NotFoundException-sourceGradeSystemIdnot foundNullArgumentException-sourceGradeSystemIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransformBySystems
GradeSystemTransform getGradeSystemTransformBySystems(Id sourceGradeSystemId, Id targetGradeSystemId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a grade system transform by its source and target grade systems. In plenary mode, the returned list contains all known grade system transforms or an error results. Otherwise, the returned list may contain only those grade system transforms that are accessible through this session.- Parameters:
sourceGradeSystemId- the source grade systemtargetGradeSystemId- the target grade system- Returns:
- the returned
GradeSystemTransform - Throws:
NotFoundException- transform not foundNullArgumentException-sourceGradeSystemIdortargetGradeSystemIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemTransforms
GradeSystemTransformList getGradeSystemTransforms() throws OperationFailedException, PermissionDeniedExceptionGets allGradeSystemTransforms. In plenary mode, the returned list contains all known grade system transforms or an error results. Otherwise, the returned list may contain only those grade system transforms that are accessible through this session.- Returns:
- a
GradeSystemTransformList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-