Interface AssessmentPartItemDesignSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides the means for adding items to an assessment part.
The item is identified inside an assesment part using its own Id. To add
the same item to the assessment part, multiple assessment parts should be
used and placed at the same level in the AssessmentPart hierarchy.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends an item to an assessment part.booleanTests if this user can manage mapping ofItemstoAssessmentParts.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.voidmoveItemAhead(Id itemId, Id assessmentPartId, Id referenceId) Reorders items in an assessment part by moving the specified item in front of a reference item.voidmoveItemBehind(Id itemId, Id assessmentPartId, Id referenceId) Reorders items in an assessment part by moving the specified item behind of a reference item.voidorderItems(Id[] itemIds, Id assessmentPartId) Reorders a set of items in an assessment part.voidremoveItem(Id itemId, Id assessmentPartId) Removes anItemfrom anAssessmentPartId.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.
-
canDesignAssessmentParts
boolean canDesignAssessmentParts()Tests if this user can manage mapping ofItemstoAssessmentParts. 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 an application hint that may opt not to offer composition operations.- Returns:
falseif assessment part composition is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
addItem
void addItem(Id itemId, Id assessmentPartId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Appends an item to an assessment part.- Parameters:
itemId-Idof theItemassessmentPartId-Idof theAssessmentPart- Throws:
AlreadyExistsException-itemIdalready part ofassessmentPartIdNotFoundException-itemIdorassessmentPartIdnot foundNullArgumentException-itemIdorassessmentPartIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization fauilure- Compliance:
mandatory- This method must be implemented.
-
moveItemAhead
void moveItemAhead(Id itemId, Id assessmentPartId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders items in an assessment part by moving the specified item in front of a reference item.- Parameters:
itemId-Idof theItemassessmentPartId-Idof theAssessmentPartIdreferenceId-Idof the referenceItem- Throws:
NotFoundException-itemIdorreferenceIdnot found in assessmentPartIdNullArgumentException-itemId, referenceIdorassessmentPartIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization fauilure- Compliance:
mandatory- This method must be implemented.
-
moveItemBehind
void moveItemBehind(Id itemId, Id assessmentPartId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders items in an assessment part by moving the specified item behind of a reference item.- Parameters:
itemId-Idof theItemassessmentPartId-Id of the AssessmentPartIdreferenceId-Idof the referenceItem- Throws:
NotFoundException-itemIdorreferenceIdnot found in assessmentPartIdNullArgumentException-itemId, referenceIdorassessmentPartIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization fauilure- Compliance:
mandatory- This method must be implemented.
-
orderItems
void orderItems(Id[] itemIds, Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of items in an assessment part.- Parameters:
itemIds-Idsfor a set ofItemsassessmentPartId-Idof theAssessmentPartId- Throws:
NotFoundException-assessmentPartIdnot found or, anitemIdnot related toassessmentPartIdNullArgumentException-itemIdsoragendaIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
removeItem
void removeItem(Id itemId, Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anItemfrom anAssessmentPartId.- Parameters:
itemId-Idof theItemassessmentPartId-Idof theAssessmentPartId- Throws:
NotFoundException-itemIdnot found in assessmentPartIdNullArgumentException-itemIdorassessmentPartIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization fauilure- Compliance:
mandatory- This method must be implemented.
-