public interface AwardAcademyAssignmentSession extends OsidSession
This session provides methods to re-assign Awards to
Academies. An Award may map to multiple
Academies and removing the last reference to an
Award is the equivalent of deleting it. Each Academy
may have its own authorizations governing who is allowed to
operate on it.
Adding a reference of an Award to another
Academy is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignAwardToAcademy(Id awardId,
Id academyId)
Adds an existing
Award to an Academy. |
boolean |
canAssignAwards()
Tests if this user can alter award/academy mappings.
|
boolean |
canAssignAwardsToAcademy(Id academyId)
Tests if this user can alter award/academy mappings.
|
IdList |
getAssignableAcademyIds(Id academyId)
Gets a list of academies including and under the given academy node in
which any award can be assigned.
|
IdList |
getAssignableAcademyIdsForAward(Id academyId,
Id awardId)
Gets a list of academies including and under the given academy node in
which a specific award can be assigned.
|
void |
unassignAwardFromAcademy(Id awardId,
Id academyId)
Removes an
Award from an Academy. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignAwards()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignAwardsToAcademy(Id academyId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.academyId - the Id of the Academy false if mapping is not authorized, true
otherwiseNullArgumentException - academyId is
null mandatory - This method must be implemented. IdList getAssignableAcademyIds(Id academyId) throws OperationFailedException
academyId - the Id of the Academy Ids NullArgumentException - academyId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableAcademyIdsForAward(Id academyId, Id awardId) throws OperationFailedException
academyId - the Id of the Academy awardId - the Id of the Award Ids NullArgumentException - academyId or
awardId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignAwardToAcademy(Id awardId, Id academyId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Award to an Academy. awardId - the Id of the Award academyId - the Id of the Academy AlreadyExistsException - awardId is
already assigned to academyId NotFoundException - awardId or
academyId not foundNullArgumentException - awardId or
academyId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignAwardFromAcademy(Id awardId, Id academyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Award from an Academy. awardId - the Id of the Award academyId - the Id of the Academy NotFoundException - awardId or
academyId not found or awardId not
asigned to academyId NullArgumentException - awardId or
academyId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.