Interface StepProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply StepProcessors to
Steps .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepProcessorToStep(Id stepProcessorId, Id stepId) Adds an existingStepProcessorto aStep.booleanTests if this user can alter step processor/step mappings.booleanTests if this user can orderStepProcessors.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveStepProcessorAhead(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.voidmoveStepProcessorBehind(Id stepProcessorId, Id stepId, Id referenceId) Reorders step processors for a step by moving the specified step processors behind a reference step processors.voidorderStepProcessors(Id[] stepProcessorIds, Id stepId) Reorders a set of step processors for a step.voidunassignStepProcessorFromStep(Id stepProcessorId, Id stepId) Removes aStepProcessorfrom aStep.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getOfficeId
Id getOfficeId()Gets theOfficeIdassociated with this session.- Returns:
- the
Office Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOffice
Gets theOfficeassociated with this session.- Returns:
- the office
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignStepProcessors
boolean canAssignStepProcessors()Tests if this user can alter step processor/step mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignStepProcessorToStep
void assignStepProcessorToStep(Id stepProcessorId, Id stepId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepProcessorto aStep.- Parameters:
stepProcessorId- theIdof theStepProcessorstepId- theIdof theStep- Throws:
AlreadyExistsException-stepProcessorIdis already applied tostepIdNotFoundException-stepProcessorIdorstepIdnot foundNullArgumentException-stepProcessorIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepProcessorFromStep
void unassignStepProcessorFromStep(Id stepProcessorId, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aStepProcessorfrom aStep.- Parameters:
stepProcessorId- theIdof theStepProcessorstepId- theIdof theStep- Throws:
NotFoundException-stepProcessorIdorstepIdnot found orstepProcessorIdnot applied tostepIdNullArgumentException-stepProcessorIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStepProcessors
boolean canSequenceStepProcessors()Tests if this user can orderStepProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifStepProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveStepProcessorAhead
void moveStepProcessorAhead(Id stepProcessorId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step processors for a step by moving the specified step processors in front of a reference step processors.- Parameters:
stepProcessorId- theIdof aStepProcessorstepId- theIdof aStepreferenceId- the reference step processorId- Throws:
NotFoundException-stepProcessorId, stepId, orreferenceIdnot found or,stepProcessorIdorreferenceIdnot related tostepIdNullArgumentException-stepProcessorId, stepId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveStepProcessorBehind
void moveStepProcessorBehind(Id stepProcessorId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step processors for a step by moving the specified step processors behind a reference step processors.- Parameters:
stepProcessorId- theIdof aStepProcessorstepId- theIdof aStepreferenceId- the reference step processorId- Throws:
NotFoundException-stepProcessorId, stepId, orreferenceIdnot found or,stepProcessorIdorreferenceIdnot related tostepIdNullArgumentException-stepProcessorId, stepId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderStepProcessors
void orderStepProcessors(Id[] stepProcessorIds, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of step processors for a step.- Parameters:
stepProcessorIds- theIdsfor a set ofStepProcessorsstepId- theIdof aStep- Throws:
NotFoundException-stepIdnot found or, anstepProcessorIdnot related tostepIdNullArgumentException-stepProcessorIdsorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-