Interface StepProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply StepProcessorEnablers to
StepProcessors . a StepProcessor with multiple
StepProcessorEnablers means any positive rule evaluation across the
enablers result in an effective StepProcessor .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepProcessorEnablerToStepProcessor(Id stepProcessorEnablerId, Id stepProcessorId) Adds an existingStepProcessorEnablerto aStepProcessor.booleanTests if this user can alter step processor enabler/step processor mappings.booleanTests if this user can orderStepProcessorEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveStepProcessorEnablerAhead(Id stepProcessorEnablerId, Id stepProcessorId, Id referenceId) Reorders step processor enablers for a step processor by moving the specified step processor enabler in front of a reference step processor enabler.voidmoveStepProcessorEnablerBehind(Id stepProcessorEnablerId, Id stepProcessorId, Id referenceId) Reorders step processor enablers for a step processor by moving the specified step processor enabler behind a reference step processor enabler.voidorderStepProcessorEnablers(Id[] stepProcessorEnablerIds, Id stepProcessorId) Reorders a set of step processor enablers for a step processor.voidunassignStepProcessorEnablerFromStepProcessor(Id stepProcessorEnablerId, Id stepProcessorId) Removes aStepProcessorEnablerfrom aStepProcessor.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.
-
canAssignStepProcessorEnablers
boolean canAssignStepProcessorEnablers()Tests if this user can alter step processor enabler/step processor 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.
-
assignStepProcessorEnablerToStepProcessor
void assignStepProcessorEnablerToStepProcessor(Id stepProcessorEnablerId, Id stepProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepProcessorEnablerto aStepProcessor.- Parameters:
stepProcessorEnablerId- theIdof theStepProcessorEnablerstepProcessorId- theIdof theStepProcessor- Throws:
AlreadyExistsException-stepProcessorEnablerIdis already applied tostepProcessorIdNotFoundException-stepProcessorEnablerIdorstepProcessorIdnot foundNullArgumentException-stepProcessorEnablerIdorstepProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepProcessorEnablerFromStepProcessor
void unassignStepProcessorEnablerFromStepProcessor(Id stepProcessorEnablerId, Id stepProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aStepProcessorEnablerfrom aStepProcessor.- Parameters:
stepProcessorEnablerId- theIdof theStepProcessorEnablerstepProcessorId- theIdof theStepProcessor- Throws:
NotFoundException-stepProcessorEnablerIdorstepProcessorIdnot found orstepProcessorEnablerIdnot applied tostepProcessorIdNullArgumentException-stepProcessorEnablerIdorstepProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStepProcessorEnablers
boolean canSequenceStepProcessorEnablers()Tests if this user can orderStepProcessorEnablers. 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:
falseifStepProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveStepProcessorEnablerAhead
void moveStepProcessorEnablerAhead(Id stepProcessorEnablerId, Id stepProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step processor enablers for a step processor by moving the specified step processor enabler in front of a reference step processor enabler.- Parameters:
stepProcessorEnablerId- theIdof aStepProcessorEnablerstepProcessorId- theIdof aStepProcessorreferenceId- the reference step processor enablerId- Throws:
NotFoundException-stepProcessorEnablerId, stepProcessorId, orreferenceIdnot found or,stepProcessorEnablerIdorreferenceIdnot related tostepProcessorIdNullArgumentException-stepProcessorEnablerId, stepProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveStepProcessorEnablerBehind
void moveStepProcessorEnablerBehind(Id stepProcessorEnablerId, Id stepProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step processor enablers for a step processor by moving the specified step processor enabler behind a reference step processor enabler.- Parameters:
stepProcessorEnablerId- theIdof aStepProcessorEnablerstepProcessorId- theIdof aStepProcessorreferenceId- the reference step processor enablerId- Throws:
NotFoundException-stepProcessorEnablerId, stepProcessorId, orreferenceIdnot found or,stepProcessorEnablerIdorreferenceIdnot related tostepProcessorIdNullArgumentException-stepProcessorEnablerId, stepProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderStepProcessorEnablers
void orderStepProcessorEnablers(Id[] stepProcessorEnablerIds, Id stepProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of step processor enablers for a step processor.- Parameters:
stepProcessorEnablerIds- theIdsfor a set ofStepProcessorEnablersstepProcessorId- theIdof aStepProcessor- Throws:
NotFoundException-stepProcessorIdnot found or, anstepProcessorEnablerIdnot related tostepProcessorIdNullArgumentException-stepProcessorEnablerIdsorstepProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-