public interface StepConstrainerEnablerOfficeAssignmentSession extends OsidSession
This session provides methods to re-assign
StepConstrainerEnabler to Office mappings. a
StepConstrainerEnabler may appear in multiple Office
objects and removing the last reference to a
StepConstrainerEnabler is the equivalent of deleting it. Each
Office may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of a StepConstrainerEnabler to
another Office is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId,
Id officeId)
Adds an existing
StepConstrainerEnabler to an
Office. |
boolean |
canAssignStepConstrainerEnablers()
Tests if this user can alter step constrainer enabler/office mappings.
|
boolean |
canAssignStepConstrainerEnablersToOffice(Id officeId)
Tests if this user can alter step constrainer enabler/office mappings.
|
IdList |
getAssignableOfficeIds(Id officeId)
Gets a list of office including and under the given office node in
which any step constrainer enabler can be assigned.
|
IdList |
getAssignableOfficeIdsForStepConstrainerEnabler(Id officeId,
Id stepConstrainerEnablerId)
Gets a list of office including and under the given office node in
which a specific step constrainer enabler can be assigned.
|
void |
unassignStepConstrainerEnablerFromOffice(Id stepConstrainerEnablerId,
Id officeId)
Removes a
StepConstrainerEnabler from an Office. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignStepConstrainerEnablers()
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 canAssignStepConstrainerEnablersToOffice(Id officeId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.officeId - the Id of the Office false if mapping is not authorized, true
otherwiseNullArgumentException - officeId is
null mandatory - This method must be implemented. IdList getAssignableOfficeIds(Id officeId) throws OperationFailedException
officeId - the Id of the Office Ids NullArgumentException - officeId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableOfficeIdsForStepConstrainerEnabler(Id officeId, Id stepConstrainerEnablerId) throws OperationFailedException
officeId - the Id of the Office stepConstrainerEnablerId - the Id of the
StepConstrainerEnabler Ids NullArgumentException - officeId or
stepConstrainerEnablerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId, Id officeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
StepConstrainerEnabler to an
Office. stepConstrainerEnablerId - the Id of the
StepConstrainerEnabler officeId - the Id of the Office AlreadyExistsException -
stepConstrainerEnablerId is already assigned to
officeId NotFoundException - stepConstrainerEnablerId
or officeId not foundNullArgumentException - stepConstrainerEnablerId
or officeId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignStepConstrainerEnablerFromOffice(Id stepConstrainerEnablerId, Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
StepConstrainerEnabler from an Office.
stepConstrainerEnablerId - the Id of the
StepConstrainerEnabler officeId - the Id of the Office NotFoundException - stepConstrainerEnablerId
or officeId not found or
stepConstrainerEnablerId not assigned to
officeId NullArgumentException - stepConstrainerEnablerId
or officeId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.