Interface StepConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply StepConstrainerEnablers
to StepConstrainers . a StepConstrainer with multiple
StepConstrainerEnablers means any positive rule evaluation across
the enablers result in an effective StepConstrainer .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepConstrainerEnablerToStepConstrainer(Id stepConstrainerEnablerId, Id stepConstrainerId) Adds an existingStepConstrainerEnablerto aStepConstrainer.booleanTests if this user can alter step constrainer enabler/step constrainer mappings.booleanTests if this user can orderStepConstrainerEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveStepConstrainerEnablerAhead(Id stepConstrainerEnablerId, Id stepConstrainerId, Id referenceId) Reorders step constrainer enablers for a step constrainer by moving the specified step constrainer enabler in front of a reference step constrainer enabler.voidmoveStepConstrainerEnablerBehind(Id stepConstrainerEnablerId, Id stepConstrainerId, Id referenceId) Reorders step constrainer enablers for a step constrainer by moving the specified step constrainer enabler behind a reference step constrainer enabler.voidorderStepConstrainerEnablers(Id[] stepConstrainerEnablerIds, Id stepConstrainerId) Reorders a set of step constrainer enablers for a step constrainer.voidunassignStepConstrainerEnablerFromStepConstrainer(Id stepConstrainerEnablerId, Id stepConstrainerId) Removes aStepConstrainerEnablerfrom aStepConstrainer.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.
-
canAssignStepConstrainerEnablers
boolean canAssignStepConstrainerEnablers()Tests if this user can alter step constrainer enabler/step constrainer 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.
-
assignStepConstrainerEnablerToStepConstrainer
void assignStepConstrainerEnablerToStepConstrainer(Id stepConstrainerEnablerId, Id stepConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepConstrainerEnablerto aStepConstrainer.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerstepConstrainerId- theIdof theStepConstrainer- Throws:
AlreadyExistsException-stepConstrainerEnablerIdis already applied tostepConstrainerIdNotFoundException-stepConstrainerEnablerIdorstepConstrainerIdnot foundNullArgumentException-stepConstrainerEnablerIdorstepConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepConstrainerEnablerFromStepConstrainer
void unassignStepConstrainerEnablerFromStepConstrainer(Id stepConstrainerEnablerId, Id stepConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aStepConstrainerEnablerfrom aStepConstrainer.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerstepConstrainerId- theIdof theStepConstrainer- Throws:
NotFoundException-stepConstrainerEnablerIdorstepConstrainerIdnot found orstepConstrainerEnablerIdnot applied tostepConstrainerIdNullArgumentException-stepConstrainerEnablerIdorstepConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStepConstrainerEnablers
boolean canSequenceStepConstrainerEnablers()Tests if this user can orderStepConstrainerEnablers. 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:
falseifStepConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveStepConstrainerEnablerAhead
void moveStepConstrainerEnablerAhead(Id stepConstrainerEnablerId, Id stepConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step constrainer enablers for a step constrainer by moving the specified step constrainer enabler in front of a reference step constrainer enabler.- Parameters:
stepConstrainerEnablerId- theIdof aStepConstrainerEnablerstepConstrainerId- theIdof aStepConstrainerreferenceId- the reference step constrainer enablerId- Throws:
NotFoundException-stepConstrainerEnablerId, stepConstrainerId, orreferenceIdnot found or,stepConstrainerEnablerIdorreferenceIdnot related tostepConstrainerIdNullArgumentException-stepConstrainerEnablerId, stepConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveStepConstrainerEnablerBehind
void moveStepConstrainerEnablerBehind(Id stepConstrainerEnablerId, Id stepConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders step constrainer enablers for a step constrainer by moving the specified step constrainer enabler behind a reference step constrainer enabler.- Parameters:
stepConstrainerEnablerId- theIdof aStepConstrainerEnablerstepConstrainerId- theIdof aStepConstrainerreferenceId- the reference step constrainer enablerId- Throws:
NotFoundException-stepConstrainerEnablerId, stepConstrainerId, orreferenceIdnot found or,stepConstrainerEnablerIdorreferenceIdnot related tostepConstrainerIdNullArgumentException-stepConstrainerEnablerId, stepConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderStepConstrainerEnablers
void orderStepConstrainerEnablers(Id[] stepConstrainerEnablerIds, Id stepConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of step constrainer enablers for a step constrainer.- Parameters:
stepConstrainerEnablerIds- theIdsfor a set ofStepConstrainerEnablersstepConstrainerId- theIdof aStepConstrainer- Throws:
NotFoundException-stepConstrainerIdnot found or, anstepConstrainerEnablerIdnot related tostepConstrainerIdNullArgumentException-stepConstrainerEnablerIdsorstepConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-