public interface ConvocationAcademyAssignmentSession extends OsidSession
This session provides methods to re-assign Convocations
to Academies. A Convocation may map to
multiple Academies and removing the last reference to a
Convocation 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 a Convocation to another
Academy is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignConvocationToAcademy(Id convocationId,
Id academyId)
Adds an existing
Convocation to an Academy. |
boolean |
canAssignConvocations()
Tests if this user can alter convocation/academy mappings.
|
boolean |
canAssignConvocationsToAcademy(Id academyId)
Tests if this user can alter convocation/academy mappings.
|
IdList |
getAssignableAcademyIds(Id academyId)
Gets a list of academies including and under the given academy node in
which any convocation can be assigned.
|
IdList |
getAssignableAcademyIdsForConvocation(Id academyId,
Id convocationId)
Gets a list of academies including and under the given academy node in
which a specific convocation can be assigned.
|
void |
unassignConvocationFromAcademy(Id convocationId,
Id academyId)
Removes a
Convocation from an Academy. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignConvocations()
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 canAssignConvocationsToAcademy(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 getAssignableAcademyIdsForConvocation(Id academyId, Id convocationId) throws OperationFailedException
academyId - the Id of the Academy convocationId - the Id of the Convocation
Ids NullArgumentException - academyId or
convocationId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignConvocationToAcademy(Id convocationId, Id academyId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Convocation to an Academy.
convocationId - the Id of the Convocation
academyId - the Id of the Academy AlreadyExistsException - convocationId
is already assigned to academyId NotFoundException - convocationId or
academyId not foundNullArgumentException - convocationId or
academyId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignConvocationFromAcademy(Id convocationId, Id academyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Convocation from an Academy. convocationId - the Id of the Convocation
academyId - the Id of the Academy NotFoundException - convocationId or
academyId not found or convocationId
not assigned to academyId NullArgumentException - convocationId or
academyId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.