public interface AssessmentTakenBankAssignmentSession extends OsidSession
This session provides methods to re-assign AssessmentTaken
objects to Banks. An AssessmentTaken
may map to multiple Banks and removing the last reference
to an AssessmentTaken is the equivalent of deleting it.
Each Bank may have its own authorizations governing who is
allowed to operate on it.
Moving or adding a reference of an AssessmentTaken to
another Bank is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignAssessmentTakenToBank(Id assessmentTakenId,
Id bankId)
Adds an existing
AssessmentTaken to a Bank. |
boolean |
canAssignAssessmentsTaken()
Tests if this user can alter assessment taken/bank mappings.
|
boolean |
canAssignAssessmentsTakenToBank(Id bankId)
Tests if this user can alter assessment taken/bank mappings.
|
IdList |
getAssignableBankIds(Id bankId)
Gets a list of banks including and under the given banks node in which
any assessment taken can be assigned.
|
IdList |
getAssignableBankIdsForAssessmentTaken(Id bankId,
Id assessmentTakenId)
Gets a list of bank including and under the given bank node in which a
specific assessment taken can be assigned.
|
void |
reassignAssessmentTakenToBilling(Id assessmentTakenId,
Id fromBankId,
Id toBankId)
Moves an
AssessmentTaken from one Bank
to another. |
void |
unassignAssessmentTakenFromBank(Id assessmentTakenId,
Id bankId)
Removes an
AssessmentTaken from a Bank. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignAssessmentsTaken()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignAssessmentsTakenToBank(Id bankId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users.bankId - the Id of the Bank false if mapping is not authorized, true
otherwiseNullArgumentException - bankId is
null mandatory - This method must be implemented. IdList getAssignableBankIds(Id bankId) throws OperationFailedException
bankId - the Id of the Bank Ids NullArgumentException - bankId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableBankIdsForAssessmentTaken(Id bankId, Id assessmentTakenId) throws OperationFailedException
bankId - the Id of the Bank assessmentTakenId - the Id of the
AssessmentTaken Ids NullArgumentException - bankId or
assessmentTakenId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignAssessmentTakenToBank(Id assessmentTakenId, Id bankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentTaken to a Bank.
assessmentTakenId - the Id of the
AssessmentTaken bankId - the Id of the Bank AlreadyExistsException - assessmentTakenId
is already assigned to bankId NotFoundException - assessmentTakenId or
bankId not foundNullArgumentException - assessmentTakenId
or bankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void unassignAssessmentTakenFromBank(Id assessmentTakenId, Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentTaken from a Bank. assessmentTakenId - the Id of the
AssessmentTaken bankId - the Id of the Bank NotFoundException - assessmentTakenId or
bankId not found or assessmentTakenId
not assigned to bankId NullArgumentException - assessmentTakenId
or bankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void reassignAssessmentTakenToBilling(Id assessmentTakenId, Id fromBankId, Id toBankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentTaken from one Bank
to another. Mappings to other Banks are unaffected.assessmentTakenId - the Id of the
AssessmentTaken fromBankId - the Id of the current Bank
toBankId - the Id of the destination Bank
NotFoundException - assessmentTakenId,
fromBankId, or toBankId not found or
assessmentTakenId not mapped to
fromBankId NullArgumentException - assessmentTakenId,
fromBankId, or toBankId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.