public interface AssessmentPartItemDesignSession extends 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.
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Id itemId,
Id assessmentPartId)
Appends an item to an assessment part.
|
boolean |
canDesignAssessmentParts()
Tests if this user can manage mapping of
Items to
AssessmentParts. |
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
void |
moveItemAhead(Id itemId,
Id assessmentPartId,
Id referenceId)
Reorders items in an assessment part by moving the specified item in
front of a reference item.
|
void |
moveItemBehind(Id itemId,
Id assessmentPartId,
Id referenceId)
Reorders items in an assessment part by moving the specified item
behind of a reference item.
|
void |
orderItems(Id[] itemIds,
Id assessmentPartId)
Reorders a set of items in an assessment part.
|
void |
removeItem(Id itemId,
Id assessmentPartId)
Removes an
Item from an AssessmentPartId. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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 canDesignAssessmentParts()
Items to
AssessmentParts. 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 an application hint that may opt not to
offer composition operations. false if assessment part composition is not
authorized, true otherwisemandatory - This method must be implemented. void addItem(Id itemId, Id assessmentPartId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
itemId - Id of the Item assessmentPartId - Id of the
AssessmentPart AlreadyExistsException - itemId already
part of assessmentPartId NotFoundException - itemId or
assessmentPartId not foundNullArgumentException - itemId or
assessmentPartId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization fauiluremandatory - This method must be implemented. void moveItemAhead(Id itemId, Id assessmentPartId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
itemId - Id of the Item assessmentPartId - Id of the
AssessmentPartId referenceId - Id of the reference Item
NotFoundException - itemId or
referenceId not found in assessmentPartId
NullArgumentException - itemId, referenceId
or assessmentPartId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization fauiluremandatory - This method must be implemented. void moveItemBehind(Id itemId, Id assessmentPartId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
itemId - Id of the Item assessmentPartId - Id of the AssessmentPartId referenceId - Id of the reference Item
NotFoundException - itemId or
referenceId not found in assessmentPartId
NullArgumentException - itemId, referenceId
or assessmentPartId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization fauiluremandatory - This method must be implemented. void orderItems(Id[] itemIds, Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException
itemIds - Ids for a set of Items assessmentPartId - Id of the
AssessmentPartId NotFoundException - assessmentPartId not
found or, an itemId not related to
assessmentPartId NullArgumentException - itemIds or
agendaId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeItem(Id itemId, Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Item from an AssessmentPartId.
itemId - Id of the Item assessmentPartId - Id of the
AssessmentPartId NotFoundException - itemId not
found in assessmentPartId NullArgumentException - itemId or
assessmentPartId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization fauiluremandatory - This method must be implemented.