public interface FloorCampusAssignmentSession extends OsidSession
This session provides methods to re-assign Floors to
Campuses. A Floor may map to multiple
Campuses and removing the last reference to a Floor
is the equivalent of deleting it. Each Campus may have its
own authorizations governing who is allowed to operate on it.
Adding a reference of a Floor to another Campus
is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignFloorToCampus(Id floorId,
Id campusId)
Adds an existing
Floor to a Campus. |
boolean |
canAssignFloors()
Tests if this user can alter floor/campus mappings.
|
boolean |
canAssignFloorsToCampus(Id campusId)
Tests if this user can alter floor/campus mappings.
|
IdList |
getAssignableCampusIds(Id campusId)
Gets a list of campuses including and under the given campus node in
which any floor can be assigned.
|
IdList |
getAssignableCampusIdsForFloor(Id campusId,
Id floorId)
Gets a list of campuses including and under the given campus node in
which a specific floor can be assigned.
|
void |
unassignFloorFromCampus(Id floorId,
Id campusId)
Removes a
Floor from a Campus. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignFloors()
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 canAssignFloorsToCampus(Id campusId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.campusId - the Id of the Campus false if mapping is not authorized, true
otherwiseNullArgumentException - campusId is
null mandatory - This method must be implemented. IdList getAssignableCampusIds(Id campusId) throws OperationFailedException
campusId - the Id of the Campus Ids NullArgumentException - campusId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableCampusIdsForFloor(Id campusId, Id floorId) throws OperationFailedException
campusId - the Id of the Campus floorId - the Id of the Floor Ids NullArgumentException - campusId or
floorId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignFloorToCampus(Id floorId, Id campusId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Floor to a Campus. floorId - the Id of the Floor campusId - the Id of the Campus AlreadyExistsException - floorId is
already assigned to campusId NotFoundException - floorId or
campusId not foundNullArgumentException - floorId or
campusId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignFloorFromCampus(Id floorId, Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Floor from a Campus. floorId - the Id of the Floor campusId - the Id of the Campus NotFoundException - floorId or
campusId not found or floorId not
assigned to campusId NullArgumentException - floorId or
campusId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.