public interface StepProcessorRuleApplicationSession extends OsidSession
This session provides methods to apply StepProcessors to
Steps.
| Modifier and Type | Method and Description |
|---|---|
void |
assignStepProcessorToStep(Id stepProcessorId,
Id stepId)
Adds an existing
StepProcessor to a Step. |
boolean |
canAssignStepProcessors()
Tests if this user can alter step processor/step mappings.
|
boolean |
canSequenceStepProcessors()
Tests if this user can order
StepProcessors. |
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
void |
moveStepProcessorAhead(Id stepProcessorId,
Id stepId,
Id referenceId)
Reorders step processors for a step by moving the specified step
processors in front of a reference step processors.
|
void |
moveStepProcessorBehind(Id stepProcessorId,
Id stepId,
Id referenceId)
Reorders step processors for a step by moving the specified step
processors behind a reference step processors.
|
void |
orderStepProcessors(Id[] stepProcessorIds,
Id stepId)
Reorders a set of step processors for a step.
|
void |
unassignStepProcessorFromStep(Id stepProcessorId,
Id stepId)
Removes a
StepProcessor from a Step. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOfficeId()
Office Id associated with this
session. Office Id associated with this sessionmandatory - This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignStepProcessors()
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. void assignStepProcessorToStep(Id stepProcessorId, Id stepId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
StepProcessor to a Step.
stepProcessorId - the Id of the
StepProcessor stepId - the Id of the Step AlreadyExistsException - stepProcessorId
is already applied to stepId NotFoundException - stepProcessorId or
stepId not foundNullArgumentException - stepProcessorId
or stepId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignStepProcessorFromStep(Id stepProcessorId, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException
StepProcessor from a Step. stepProcessorId - the Id of the
StepProcessor stepId - the Id of the Step NotFoundException - stepProcessorId or
stepId not found or stepProcessorId
not applied to stepId NullArgumentException - stepProcessorId
or stepId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceStepProcessors()
StepProcessors. A return
of true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false if StepProcessor ordering
is not authorized, true otherwisemandatory - This method must be implemented. void moveStepProcessorAhead(Id stepProcessorId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
stepProcessorId - the Id of a
StepProcessor stepId - the Id of a Step referenceId - the reference step processor Id NotFoundException - stepProcessorId, stepId,
or referenceId not found or,
stepProcessorId or referenceId not
related to stepId NullArgumentException - stepProcessorId, stepId,
or referenceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveStepProcessorBehind(Id stepProcessorId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
stepProcessorId - the Id of a
StepProcessor stepId - the Id of a Step referenceId - the reference step processor Id NotFoundException - stepProcessorId, stepId,
or referenceId not found or,
stepProcessorId or referenceId not
related to stepId NullArgumentException - stepProcessorId, stepId,
or referenceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderStepProcessors(Id[] stepProcessorIds, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException
stepProcessorIds - the Ids for a set of
StepProcessors stepId - the Id of a Step NotFoundException - stepId not found or,
an stepProcessorId not related to stepId
NullArgumentException - stepProcessorIds
or stepId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.