Interface StepEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply StepEnablers to
Steps . Multiple StepEnablers applied to an Step may be
sequenced such that the first positive evaluation results in the
StepEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepEnablerToStep(Id stepEnablerId, Id stepId) Adds an existingStepEnablerto aStep.booleanTests if this user can alter step enabler/step mappings.booleanTests if this user can orderStepEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveStepEnablerAhead(Id stepEnablerId, Id stepId, Id referenceId) Reorders step enablers for a step by moving the specified step enabler in front of a reference step enabler.voidmoveStepEnablerBehind(Id stepEnablerId, Id stepId, Id referenceId) Reorders step enablers for a step by moving the specified step enabler behind a reference step enabler.voidorderStepEnablers(Id[] stepEnablerIds, Id stepId) Reorders a set of step enablers for a step.voidunassignStepEnablerFromStep(Id stepEnablerId, Id stepId) Removes an existingStepEnablerfrom 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.
-
canAssignStepEnablers
boolean canAssignStepEnablers()Tests if this user can alter step enabler/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.
-
assignStepEnablerToStep
void assignStepEnablerToStep(Id stepEnablerId, Id stepId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepEnablerto aStep.- Parameters:
stepEnablerId- theIdof theStepEnablerstepId- theIdof theStep- Throws:
AlreadyExistsException-stepEnablerIdalready applied tostepIdNotFoundException-stepEnablerIdorstepIdnot foundNullArgumentException-stepEnablerIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepEnablerFromStep
void unassignStepEnablerFromStep(Id stepEnablerId, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingStepEnablerfrom aStep.- Parameters:
stepEnablerId- theIdof theStepEnablerstepId- theIdof theStep- Throws:
NotFoundException-stepEnablerIdorstepIdnot found orstepEnablerIdalready applied tostepIdNullArgumentException-stepEnablerIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStepEnablers
boolean canSequenceStepEnablers()Tests if this user can orderStepEnablers. 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:
falseifStepEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveStepEnablerAhead
void moveStepEnablerAhead(Id stepEnablerId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step enablers for a step by moving the specified step enabler in front of a reference step enabler.- Parameters:
stepEnablerId- theIdof theStepEnablerstepId- theIdof theStepreferenceId- the reference step enablerId- Throws:
NotFoundException-stepEnablerId, stepId, orreferenceIdnot found or,stepEnablerIdorreferenceIdnot related tostepIdNullArgumentException-stepEnablerId, stepId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveStepEnablerBehind
void moveStepEnablerBehind(Id stepEnablerId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step enablers for a step by moving the specified step enabler behind a reference step enabler.- Parameters:
stepEnablerId- theIdof theStepEnablerstepId- theIdof theStepreferenceId- the reference step enablerId- Throws:
NotFoundException-stepEnablerId, stepId, orreferenceIdnot found or,stepEnablerIdorreferenceIdnot related tostepIdNullArgumentException-stepEnablerId, stepId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderStepEnablers
void orderStepEnablers(Id[] stepEnablerIds, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of step enablers for a step.- Parameters:
stepEnablerIds- theIdsfor a set ofStepEnablersstepId- theIdof theStep- Throws:
NotFoundException-stepEnablerId, stepId, orreferenceIdnot found or,stepEnablerIdorreferenceIdnot related tostepIdNullArgumentException-stepEnablerIds, stepId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-