Interface GradebookColumnCalculationLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving
GradebookColumnCalculationss .
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 calculation methods in this session operate, retrieve and pertain to gradebook column calculations defined explicitly in the current gradebook.
- federated gradebook view: All gradebook column calculation methods in this session operate, retrieve and pertain to all gradebook column calculations defined in this gradebook and any other gradebooks implicitly available in this gradebook through gradebook inheritence.
- active gradebook calculation view: All gradebook column calculation lookup methods return active gradebook column calculations.
- any status gradebook column calculation view: Gradebook column calculations of any active or inactive status are returned from methods.
Gradebook column calculations may have an additional records indicated
by their respective record types. The record may not be accessed through a
cast of the GradebookColumnCalculation .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performGradebookColumnCalculationlookups.Gets theGradebookassociated with this session.getGradebookColumnCalculation(Id gradebookColumnCalculationId) Gets theGradebookColumnCalculationspecified by itsId.getGradebookColumnCalculationForGradebookColumn(Id gradebookColumnId) Gets theGradebookColumnCalculationmapped to aGradebookColumnto which this calculation is applied.Gets all gradebook column calculations.getGradebookColumnCalculationsByGenusType(Type gradebookColumnCalculationGenusType) Gets aGradebookColumnCalculationListcorresponding to the given gradebook column calculation genusTypewhich does not include gradebook column calculations of genus types derived from the specifiedType.getGradebookColumnCalculationsByIds(IdList gradebookColumnCalculationIds) Gets aGradebookColumnCalculationListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the gradebook column calculations 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.getGradebookColumnCalculationsByParentGenusType(Type gradebookColumnCalculationGenusType) Gets aGradebookColumnCalculationListcorresponding to the given gradebook column calculation genusTypeand include any additional column calculations with genus types derived from the specifiedType.getGradebookColumnCalculationsByRecordType(Type gradebookColumnCalculationRecordType) Gets aGradebookColumnCalculationListcontaining the given gradebook column calculation recordType.getGradebookColumnCalculationsForGradebookColumns(IdList gradebookColumnIds) Gets aGradebookColumnCalculationListcorresponding to the given gradebook columnIdsto which this calculation is applied.Gets theGradebookIdassociated with this session.voidOnly active gradebook column calculations are returned by methods in this session.voidAll active and inactive gradebook column calculations 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 theGradebookColumnCalculationreturns 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.
-
canLookupGradebookColumnCalculations
boolean canLookupGradebookColumnCalculations()Tests if this user can performGradebookColumnCalculationlookups. 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.
-
useComparativeGradebookColumnCalculationView
void useComparativeGradebookColumnCalculationView()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.
-
usePlenaryGradebookColumnCalculationView
void usePlenaryGradebookColumnCalculationView()A complete view of theGradebookColumnCalculationreturns 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 column calculations 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.
-
useActiveGradebookColumnCalculationView
void useActiveGradebookColumnCalculationView()Only active gradebook column calculations are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyStatusGradebookColumnCalculationView
void useAnyStatusGradebookColumnCalculationView()All active and inactive gradebook column calculations are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getGradebookColumnCalculation
GradebookColumnCalculation getGradebookColumnCalculation(Id gradebookColumnCalculationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGradebookColumnCalculationspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedGradebookColumnCalculationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradebookColumnCalculationand retained for compatibility.- Parameters:
gradebookColumnCalculationId-Idof theGradebookColumnCalculation- Returns:
- the gradebook column calculation
- Throws:
NotFoundException-gradebookColumnCalculationIdnot foundNullArgumentException-gradebookColumnCalculationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getGradebookColumnCalculationsByIds
GradebookColumnCalculationList getGradebookColumnCalculationsByIds(IdList gradebookColumnCalculationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aGradebookColumnCalculationListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the gradebook column calculations 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 column calculations may be omitted from the list.- Parameters:
gradebookColumnCalculationIds- the list ofIdsto retrieve- Returns:
- the returned
GradebookColumnCalculationlist - Throws:
NotFoundException- anIdwas not foundNullArgumentException-gradeBookColumnCalculationIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnCalculationsByGenusType
GradebookColumnCalculationList getGradebookColumnCalculationsByGenusType(Type gradebookColumnCalculationGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnCalculationListcorresponding to the given gradebook column calculation genusTypewhich does not include gradebook column calculations of genus types derived from the specifiedType. In plenary mode, the returned list contains all known gradebook column calculations or an error results. Otherwise, the returned list may contain only those gradebook column calculations that are accessible through this session.- Parameters:
gradebookColumnCalculationGenusType- a gradebook column calculation genus type- Returns:
- the returned
GradebookColumnCalculationlist - Throws:
NullArgumentException-gradebookColumnCalculationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnCalculationsByParentGenusType
GradebookColumnCalculationList getGradebookColumnCalculationsByParentGenusType(Type gradebookColumnCalculationGenusType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnCalculationListcorresponding to the given gradebook column calculation genusTypeand include any additional column calculations with genus types derived from the specifiedType. In plenary mode, the returned list contains all known gradebook column calculations or an error results. Otherwise, the returned list may contain only those gradebook column calculations that are accessible through this session.- Parameters:
gradebookColumnCalculationGenusType- a gradebook column calculation genus type- Returns:
- the returned
GradebookColumnCalculationlist - Throws:
NullArgumentException-gradebookColumnCalculationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnCalculationsByRecordType
GradebookColumnCalculationList getGradebookColumnCalculationsByRecordType(Type gradebookColumnCalculationRecordType) throws OperationFailedException, PermissionDeniedException Gets aGradebookColumnCalculationListcontaining the given gradebook column calculation recordType. In plenary mode, the returned list contains all known gradebook column calculations or an error results. Otherwise, the returned list may contain only those gradebook column calculations that are accessible through this session.- Parameters:
gradebookColumnCalculationRecordType- a gradebook column calculation record type- Returns:
- the returned
GradebookColumnCalculationlist - Throws:
NullArgumentException-gradebookColumnCalculationRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnCalculationForGradebookColumn
GradebookColumnCalculation getGradebookColumnCalculationForGradebookColumn(Id gradebookColumnId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theGradebookColumnCalculationmapped to aGradebookColumnto which this calculation is applied. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedGradebookColumnCalculationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradebookColumnCalculationand retained for compatibility.- Parameters:
gradebookColumnId-Idof aGradebookColumn- Returns:
- the gradebook column calculation
- Throws:
NotFoundException-gradebookColumnIdnot foundNullArgumentException-gradebookColumnIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getGradebookColumnCalculationsForGradebookColumns
GradebookColumnCalculationList getGradebookColumnCalculationsForGradebookColumns(IdList gradebookColumnIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aGradebookColumnCalculationListcorresponding to the given gradebook columnIdsto which this calculation is applied. In plenary mode, the returned list contains all of the gradebook column calculations 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 column calculations may be omitted from the list.- Parameters:
gradebookColumnIds- a list of gradebook columnIds- Returns:
- the returned
GradebookColumnCalculationlist - Throws:
NotFoundException- anIdwas not foundNullArgumentException-gradeBookColumnIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnCalculations
GradebookColumnCalculationList getGradebookColumnCalculations() throws OperationFailedException, PermissionDeniedExceptionGets all gradebook column calculations. In plenary mode, the returned list contains all known gradebook column calculations or an error results. Otherwise, the returned list may contain only those gradebook column calculations that are accessible through this session.- Returns:
- a
GradebookColumnCalculationList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-