Interface AssessmentPartLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving assessment parts.
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 part methods in this session operate, retrieve and pertain to assessment parts defined explicitly in the current bank.
- federated bank view: All assessment part lookup methods in this session operate, retrieve and pertain to all assessment part defined in this bank and any other assessment parts implicitly available in this bank through bank inheritence.
- active assessment part view: All assessment part lookup methods return active assessment parts.
- any status assessment part view: Assessment parts of any active or inactive status are returned from methods.
- sequestered assessment part viiew: All assessment part methods suppress sequestered assessment parts.
- unsequestered assessment part view: All assessment part methods return all assessment parts.
The methods useFederatedBankView() and
useIsolatedBankView() behave as a radio group and one should be selected
before invoking any lookup methods.
Assessment parts may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the AssessmentPart .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performAssessmentPartlookups.getAssessmentPart(Id assessmentPartId) Gets theAssessmentPartspecified by itsId.Gets allAssessmentParts.getAssessmentPartsByGenusType(Type assessmentPartGenusType) Gets anAssessmentPartListcorresponding to the given assessment part genusTypewhich does not include assessment parts of types derived from the specifiedType.getAssessmentPartsByIds(IdList assessmentPartIds) Gets anAssessmentPartListcorresponding to the givenIdList.getAssessmentPartsByParentGenusType(Type assessmentGenusType) Gets anAssessmentPartListcorresponding to the given assessment part genusTypeand include any additional assessment parts with genus types derived from the specifiedType.getAssessmentPartsByRecordType(Type assessmentPartRecordType) Gets anAssessmentPartcontaining the given assessment part recordType.getAssessmentPartsForAssessment(Id assessmentId) Gets anAssessmentPartfor the given assessment.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.voidOnly active assessment parts are returned by methods in this session.voidAll active and inactive assessment parts 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 theAssessmentPartreturns is desired.voidThe methods in this session omit sequestered assessment parts.voidThe methods in this session return all assessment parts, including sequestered assessment parts.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.
-
canLookupAssessmentParts
boolean canLookupAssessmentParts()Tests if this user can performAssessmentPartlookups. 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 not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeAssessmentPartView
void useComparativeAssessmentPartView()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.
-
usePlenaryAssessmentPartView
void usePlenaryAssessmentPartView()A complete view of theAssessmentPartreturns 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 assessment parts in catalogs which are children of this catalog 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 retrievals to this bank only.- Compliance:
mandatory- This method is must be implemented.
-
useActiveAssessmentPartView
void useActiveAssessmentPartView()Only active assessment parts are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyStatusAssessmentPartView
void useAnyStatusAssessmentPartView()All active and inactive assessment parts are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useSequesteredAssessmentPartView
void useSequesteredAssessmentPartView()The methods in this session omit sequestered assessment parts.- Compliance:
mandatory- This method is must be implemented.
-
useUnsequesteredAssessmentPartView
void useUnsequesteredAssessmentPartView()The methods in this session return all assessment parts, including sequestered assessment parts.- Compliance:
mandatory- This method is must be implemented.
-
getAssessmentPart
AssessmentPart getAssessmentPart(Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theAssessmentPartspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedAssessmentPartmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to anAssessmentPartand retained for compatibility. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentPartId- theIdof theAssessmentPartto retrieve- Returns:
- the returned
AssessmentPart - Throws:
NotFoundException- noAssessmentPartfound with the givenIdNullArgumentException-assessmentPartIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsByIds
AssessmentPartList getAssessmentPartsByIds(IdList assessmentPartIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets anAssessmentPartListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the assessment parts 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, inaccessibleAssessmentPartsmay be omitted from the list and may present the elements in any order including returning a unique set. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentPartIds- the list ofIdsto retrieve- Returns:
- the returned
AssessmentPartlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-assessmentPartIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsByGenusType
AssessmentPartList getAssessmentPartsByGenusType(Type assessmentPartGenusType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentPartListcorresponding to the given assessment part genusTypewhich does not include assessment parts of types derived from the specifiedType. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentPartGenusType- an assessment part genus type- Returns:
- the returned
AssessmentPartlist - Throws:
NullArgumentException-assessmentPartGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsByParentGenusType
AssessmentPartList getAssessmentPartsByParentGenusType(Type assessmentGenusType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentPartListcorresponding to the given assessment part genusTypeand include any additional assessment parts with genus types derived from the specifiedType. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentGenusType- an assessment part genus type- Returns:
- the returned
AssessmentPartlist - Throws:
NullArgumentException-assessmentPartGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsByRecordType
AssessmentPartList getAssessmentPartsByRecordType(Type assessmentPartRecordType) throws OperationFailedException, PermissionDeniedException Gets anAssessmentPartcontaining the given assessment part recordType. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentPartRecordType- an assessment part record type- Returns:
- the returned
AssessmentPartlist - Throws:
NullArgumentException-assessmentPartRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsForAssessment
AssessmentPartList getAssessmentPartsForAssessment(Id assessmentId) throws OperationFailedException, PermissionDeniedException Gets anAssessmentPartfor the given assessment. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Parameters:
assessmentId- an assessmentId- Returns:
- the returned
AssessmentPartlist - Throws:
NullArgumentException-assessmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentParts
Gets allAssessmentParts. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session. In active mode, assessment parts are returned that are currently active. In any effective mode, active and inactive assessment parts are returned. In sequestered mode, no sequestered assessment parts are returned. In unsequestered mode, all assessment parts are returned.- Returns:
- a list of
AssessmentParts - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-