Interface AssessmentTakenLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving assessments taken.
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
- isolated bank view: All assessment methods in this session operate, retrieve and pertain to assessments defined explicitly in the current bank.
- federated bank view: All assessment methods in this session operate, retrieve and pertain to all assessments defined in this bank and any other assessments implicitly available in this bank through bank inheritence.
The methods useFederatedBankView() and
useIsolatedBankView() behave as a radio group and one should be selected
before invoking any lookup methods.
Assessments taken may have a record 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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performAssessmentTakenlookups.Gets allAssessmentTakenelements.getAssessmentsTakenByDate(DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive.getAssessmentsTakenByDateForAssessment(Id assessmentId, DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive for the given assessment.getAssessmentsTakenByDateForAssessmentOffered(Id assessmentOfferedId, DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive for the given assessment offered.getAssessmentsTakenByDateForTaker(Id resourceId, DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource.getAssessmentsTakenByDateForTakerAndAssessment(Id resourceId, Id assessmentId, DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource and assessment.getAssessmentsTakenByDateForTakerAndAssessmentOffered(Id resourceId, Id assessmentOfferedId, DateTime from, DateTime to) Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource and assessment offered.getAssessmentsTakenByGenusType(Type assessmentTakenGenusType) Gets anAssessmentTakenListcorresponding to the given assessment taken genusTypewhich does not include assessments of types derived from the specifiedType.getAssessmentsTakenByIds(IdList assessmentTakenIds) Gets anAssessmentTakenListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the assessments 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.getAssessmentsTakenByParentGenusType(Type assessmentTakenGenusType) Gets anAssessmentTakenListcorresponding to the given assessment taken genusTypeand include any additional assessments with genus types derived from the specifiedType.getAssessmentsTakenByRecordType(Type assessmentTakenRecordType) Gets anAssessmentTakenListcorresponding to the given assessment taken recordType.getAssessmentsTakenForAssessment(Id assessmentId) Gets anAssessmentTakenListfor the given assessment.getAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) Gets anAssessmentTakenListby the given assessment offered.getAssessmentsTakenForTaker(Id resourceId) Gets anAssessmentTakenListfor the given resource.getAssessmentsTakenForTakerAndAssessment(Id resourceId, Id assessmentId) Gets anAssessmentTakenListfor the given resource and assessment.getAssessmentsTakenForTakerAndAssessmentOffered(Id resourceId, Id assessmentOfferedId) Gets anAssessmentTakenListfor the given resource and assessment offered.getAssessmentTaken(Id assessmentTakenId) Gets theAssessmentTakenspecified by itsId.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as assessment, 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 theAssessmentTakenreturns 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
-
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.
-
canLookupAssessmentsTaken
boolean canLookupAssessmentsTaken()Tests if this user can performAssessmentTakenlookups. 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.
-
useComparativeAssessmentTakenView
void useComparativeAssessmentTakenView()The returns from the lookup methods may omit or translate elements based on this session, such as assessment, 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.
-
usePlenaryAssessmentTakenView
void usePlenaryAssessmentTakenView()A complete view of theAssessmentTakenreturns 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.
-
useFederatedBankView
void useFederatedBankView()Federates the view for methods in this session. A federated view will include assessments in banks which are children of this bank in the bank hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedBankView
void useIsolatedBankView()Isolates the view for methods in this session. An isolated view restricts lookups to this bank only.- Compliance:
mandatory- This method is must be implemented.
-
getAssessmentTaken
AssessmentTaken getAssessmentTaken(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theAssessmentTakenspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedAssessmentTakenmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to anAssessmentTakenand retained for compatibility.- Parameters:
assessmentTakenId-Idof theAssessmentTaken- Returns:
- the assessment taken
- Throws:
NotFoundException-assessmentTakenIdnot foundNullArgumentException-assessmentTakenIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method is must be implemented.
-
getAssessmentsTakenByIds
AssessmentTakenList getAssessmentsTakenByIds(IdList assessmentTakenIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the assessments 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, inaccessibleAssessmentTakenobjects may be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
assessmentTakenIds- the list ofIdsto retrieve- Returns:
- the returned
AssessmentTaken list - Throws:
NotFoundException- anId wasnot foundNullArgumentException-assessmentTakenIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- assessment failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByGenusType
AssessmentTakenList getAssessmentsTakenByGenusType(Type assessmentTakenGenusType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListcorresponding to the given assessment taken genusTypewhich does not include assessments of types derived from the specifiedType. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentTakenGenusType- an assessment taken genus type- Returns:
- the returned
AssessmentTaken list - Throws:
NullArgumentException-assessmentTakenGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByParentGenusType
AssessmentTakenList getAssessmentsTakenByParentGenusType(Type assessmentTakenGenusType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListcorresponding to the given assessment taken genusTypeand include any additional assessments with genus types derived from the specifiedType. In plenary mode, the returned list contains all known assessments or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentTakenGenusType- an assessment taken genus type- Returns:
- the returned
AssessmentTaken list - Throws:
NullArgumentException-assessmentTakenGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByRecordType
AssessmentTakenList getAssessmentsTakenByRecordType(Type assessmentTakenRecordType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListcorresponding to the given assessment taken recordType. The set of assessments implementing the given record type is returned. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session. In both cases, the order of the set is not specified.- Parameters:
assessmentTakenRecordType- an assessment taken record type- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-assessmentTakenRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDate
AssessmentTakenList getAssessmentsTakenByDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session. In both cases, the order of the set is not specified.- Parameters:
from- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenForTaker
AssessmentTakenList getAssessmentsTakenForTaker(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListfor the given resource. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResource- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDateForTaker
AssessmentTakenList getAssessmentsTakenByDateForTaker(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResourcefrom- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenForAssessment
AssessmentTakenList getAssessmentsTakenForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListfor the given assessment. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentId-Idof anAssessment- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-assessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDateForAssessment
AssessmentTakenList getAssessmentsTakenByDateForAssessment(Id assessmentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive for the given assessment. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentId-Idof anAssessmentfrom- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-assessmentId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenForTakerAndAssessment
AssessmentTakenList getAssessmentsTakenForTakerAndAssessment(Id resourceId, Id assessmentId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListfor the given resource and assessment. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResourceassessmentId-Idof anAssessment- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-resourceIdorassessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDateForTakerAndAssessment
AssessmentTakenList getAssessmentsTakenByDateForTakerAndAssessment(Id resourceId, Id assessmentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource and assessment. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResourceassessmentId-Idof anAssessmentfrom- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, assessmentId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenForAssessmentOffered
AssessmentTakenList getAssessmentsTakenForAssessmentOffered(Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListby the given assessment offered. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentOfferedId-Idof anAssessmentOffered- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-assessmentOfferedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDateForAssessmentOffered
AssessmentTakenList getAssessmentsTakenByDateForAssessmentOffered(Id assessmentOfferedId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive for the given assessment offered. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
assessmentOfferedId-Idof anAssessmentOfferedfrom- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-assessmentOfferedId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenForTakerAndAssessmentOffered
AssessmentTakenList getAssessmentsTakenForTakerAndAssessmentOffered(Id resourceId, Id assessmentOfferedId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListfor the given resource and assessment offered. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResourceassessmentOfferedId-Idof anAssessmentOffered- Returns:
- the returned
AssessmentTakenlist - Throws:
NullArgumentException-resourceIdorassessmenOfferedtIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTakenByDateForTakerAndAssessmentOffered
AssessmentTakenList getAssessmentsTakenByDateForTakerAndAssessmentOffered(Id resourceId, Id assessmentOfferedId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAssessmentTakenListstarted in the given date range inclusive for the given resource and assessment offered. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Parameters:
resourceId-Idof aResourceassessmentOfferedId-Idof anAssessmentOfferedfrom- start dateto- end date- Returns:
- the returned
AssessmentTakenlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, assessmentOfferedId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAssessmentsTaken
AssessmentTakenList getAssessmentsTaken() throws OperationFailedException, PermissionDeniedExceptionGets allAssessmentTakenelements. In plenary mode, the returned list contains all known assessments taken or an error results. Otherwise, the returned list may contain only those assessments taken that are accessible through this session.- Returns:
- a list of
AssessmentTakenelements - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-