public interface MyAssessmentTakenSession extends OsidSession
This session defines methods for retrieving assessments taken by the
authenticated agent. An AssessmentTaken
is created using
the AssessmentTakenAdminSession.
Assessments taken may have an additional records indicated by their
respective record types. The record is accessed via the
AssessmentTaken.
The returns may not be cast directly from the
returns in the lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canGetMyTakenAssessments()
Tests if this user can perform
AssessmentOffered
lookups. |
AssessmentTakenList |
getAssessmentsCompleted()
Gets all the assessments completed by this agent.
|
AssessmentTakenList |
getAssessmentsInProgress()
Gets all the assessments started but not completed by this agent.
|
AssessmentTakenList |
getAssessmentsInProgressDuring(DateTime start,
DateTime end)
Gets all the assessments in progress by this agent overlapping with
the given period of time inclusive.
|
AssessmentTakenList |
getAssessmentsStarted()
Gets all the assessments started by this agent.
|
AssessmentTakenList |
getAssessmentsStartedDuring(DateTime start,
DateTime end)
Gets all the assessments started by this agent during the given period
of time inclusive.
|
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBankId()
Bank
Id
associated with this
session. Bank Id
associated with this sessionmandatory
- This method must be implemented. Bank getBank() throws OperationFailedException, PermissionDeniedException
Bank
associated with this session. Bank
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canGetMyTakenAssessments()
AssessmentOffered
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. AssessmentTakenList getAssessmentsStartedDuring(DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
start
- start timeend
- end timeInvalidArgumentException
- end
is less
than start
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. AssessmentTakenList getAssessmentsStarted() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. AssessmentTakenList getAssessmentsInProgressDuring(DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
start
- start timeend
- end timeInvalidArgumentException
- end
is less
than start
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. AssessmentTakenList getAssessmentsInProgress() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. AssessmentTakenList getAssessmentsCompleted() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented.