Interface StepConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply StepConstrainers to
Steps . A Step with multiple StepConstrainers
means any positive rule evaluation across the constrainers result in an
accessible Step .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepConstrainerToStep(Id stepConstrainerId, Id stepId) Adds an existingStepConstrainerto aStep.booleanTests if this user can alter step constrainer/step mappings.booleanTests if this user can orderStepConstrainers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveStepConstrainerAhead(Id stepConstrainerId, Id stepId, Id referenceId) Reorders step constrainer for a step by moving the specified step constrainer in front of a reference step constrainer.voidmoveStepConstrainerBehind(Id stepConstrainerId, Id stepId, Id referenceId) Reorders step constrainer for a step by moving the specified step constrainer behind a reference step constrainer.voidorderStepConstrainers(Id[] stepConstrainerIds, Id stepId) Reorders a set of step constrainers for a step.voidunassignStepConstrainerFromStep(Id stepConstrainerId, Id stepId) Removes aStepConstrainerfrom 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.
-
canAssignStepConstrainers
boolean canAssignStepConstrainers()Tests if this user can alter step constrainer/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.
-
assignStepConstrainerToStep
void assignStepConstrainerToStep(Id stepConstrainerId, Id stepId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepConstrainerto aStep.- Parameters:
stepConstrainerId- theIdof theStepConstrainerstepId- theIdof theStep- Throws:
AlreadyExistsException-stepConstrainerIdis already applied tostepIdNotFoundException-stepConstrainerIdorstepIdnot foundNullArgumentException-stepConstrainerIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepConstrainerFromStep
void unassignStepConstrainerFromStep(Id stepConstrainerId, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aStepConstrainerfrom aStep.- Parameters:
stepConstrainerId- theIdof theStepConstrainerstepId- theIdof theStep- Throws:
NotFoundException-stepConstrainerIdorstepIdnot found orstepConstrainerIdnot applied tostepIdNullArgumentException-stepConstrainerIdorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStepConstrainers
boolean canSequenceStepConstrainers()Tests if this user can orderStepConstrainers. 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:
falseifStepConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveStepConstrainerAhead
void moveStepConstrainerAhead(Id stepConstrainerId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step constrainer for a step by moving the specified step constrainer in front of a reference step constrainer.- Parameters:
stepConstrainerId- theIdof aStepConstrainerstepId- theIdof aStepreferenceId- the reference step constrainerId- Throws:
NotFoundException-stepConstrainerId, stepIdorreferenceIdnot found or,stepConstrainerIdorreferenceIdnot related tostepIdNullArgumentException-stepConstrainerId, stepIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveStepConstrainerBehind
void moveStepConstrainerBehind(Id stepConstrainerId, Id stepId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step constrainer for a step by moving the specified step constrainer behind a reference step constrainer.- Parameters:
stepConstrainerId- theIdof aStepConstrainerstepId- theIdof aStepreferenceId- the reference step constrainerId- Throws:
NotFoundException-stepConstrainerId, stepIdorreferenceIdnot found or,stepConstrainerIdorreferenceIdnot related tostepIdNullArgumentException-stepConstrainerId, stepIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderStepConstrainers
void orderStepConstrainers(Id[] stepConstrainerIds, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of step constrainers for a step.- Parameters:
stepConstrainerIds- theIdsfor a set ofStepConstrainersstepId- theIdof aStepConstrainer- Throws:
NotFoundException-stepIdnot found or, astepConstrainerIdnot related tostepIdNullArgumentException-stepConstrainerIdsorstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-