Interface AssessmentResultsSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session is used to access the tested assessment items and their associated responses. Assessment results may also be available and is expressed as a rubric through another assessment.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanareResultsAvailable(Id assessmentTakenId) Tests if the results are available for this assessment.booleanTests if this user can take this assessment.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.getGradeEntries(Id assessmentTakenId) Gets a list of grade entries for this assessment.Gets the items questioned in an assessment.getResponses(Id assessmentTakenId) Gets the submitted responses.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
-
getBankId
Id getBankId()Gets theBankIdassociated with this session.- Returns:
- the
Bank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBank
Gets theBankassociated with this session.- Returns:
- the
Bankassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAccessAssessmentResults
boolean canAccessAssessmentResults()Tests if this user can take this assessment. 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 assessment operations to unauthorized users.- Returns:
falseif assessment methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getItems
ItemList getItems(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the items questioned in an assessment.- Parameters:
assessmentTakenId-Idof theAssessmentTaken- Returns:
- the list of assessment questions
- Throws:
NotFoundException-assessmentTakenIdis not foundNullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getResponses
ResponseList getResponses(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the submitted responses.- Parameters:
assessmentTakenId-Idof theAssessmentTaken- Returns:
- the submitted answers
- Throws:
NotFoundException-assessmentTakenIdis not foundNullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
areResultsAvailable
boolean areResultsAvailable(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException Tests if the results are available for this assessment.- Parameters:
assessmentTakenId-Idof theAssessmentTaken- Returns:
trueif results are available,falseotherwise- Throws:
NotFoundException-assessmentTakenIdis not foundNullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getGradeEntries
GradeEntryList getGradeEntries(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a list of grade entries for this assessment. Each grade entry may indicate a grade or score input by multiple graders.- Parameters:
assessmentTakenId-Idof theAssessmentTaken- Returns:
- a list of grade entries
- Throws:
IllegalStateException-areResultsAvailable()isfalseNotFoundException-assessmentTakenIdis not foundNullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-