public interface RenovationCampusAssignmentSession extends OsidSession
This session provides methods to re-assign Renovations
to Campuses.
A Renovation
may map to
multiple Campuses
and removing the last reference to a
Renovation
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 Renovation
to another
Campus
is not a copy operation (eg: does not change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignRenovationToCampus(Id renovationId,
Id campusId)
Adds an existing
Renovation to a Campus. |
boolean |
canAssignRenovations()
Tests if this user can alter renovation/campus mappings.
|
boolean |
canAssignRenovationsToCampus(Id campusId)
Tests if this user can alter renovation/campus mappings.
|
IdList |
getAssignableCampusIds(Id campusId)
Gets a list of campuses including and under the given campus node in
which any renovation can be assigned.
|
IdList |
getAssignableCampusIdsForRenovation(Id campusId,
Id renovationId)
Gets a list of campuses including and under the given campus node in
which a specific renovation can be assigned.
|
void |
unassignRenovationFromCampus(Id renovationId,
Id campusId)
Removes a
Renovation from a Campus. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignRenovations()
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 canAssignRenovationsToCampus(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 getAssignableCampusIdsForRenovation(Id campusId, Id renovationId) throws OperationFailedException
campusId
- the Id
of the Campus
renovationId
- the Id
of the Renovation
Ids
NullArgumentException
- campusId
or
renovationId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignRenovationToCampus(Id renovationId, Id campusId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Renovation
to a Campus.
renovationId
- the Id
of the Renovation
campusId
- the Id
of the Campus
AlreadyExistsException
- renovationId
is
already assigned to campusId
NotFoundException
- renovationId
or
campusId
not foundNullArgumentException
- renovationId
or
campusId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignRenovationFromCampus(Id renovationId, Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Renovation
from a Campus.
renovationId
- the Id
of the Renovation
campusId
- the Id
of the Campus
NotFoundException
- renovationId
or
campusId
not found or renovationId
not assigned to campusId
NullArgumentException
- renovationId
or
campusId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.