Interface ProcessConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProcessConstrainers to
Processes . Multiple ProcessConstrainers applied to an
Process may be sequenced such that the first positive evaluation
results in the ProcessConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProcessConstrainerToProcess(Id processConstrainerId, Id processId) Adds an existingProcessConstrainerto aProcess.booleanTests if this user can alter process constrainer/process mappings.booleanTests if this user can orderProcessConstrainers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveProcessConstrainerAhead(Id processConstrainerId, Id processId, Id referenceId) Reorders process constrainers for a process by moving the specified process constrainer in front of a reference process constrainer.voidmoveProcessConstrainerBehind(Id processConstrainerId, Id processId, Id referenceId) Reorders process constrainers for a process by moving the specified process constrainer behind a reference process constrainer.voidorderProcessConstrainers(Id[] processConstrainerIds, Id processId) Reorders a set of process constrainers for a process.voidunassignProcessConstrainerFromProcess(Id processConstrainerId, Id processId) Removes an existingProcessConstrainerfrom aProcess.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.
-
canAssignProcessConstrainers
boolean canAssignProcessConstrainers()Tests if this user can alter process constrainer/process 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.
-
assignProcessConstrainerToProcess
void assignProcessConstrainerToProcess(Id processConstrainerId, Id processId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProcessConstrainerto aProcess.- Parameters:
processConstrainerId- theIdof theProcessConstrainerprocessId- theIdof theProcess- Throws:
AlreadyExistsException-processConstrainerIdalready applied toprocessIdNotFoundException-processConstrainerIdorprocessIdnot foundNullArgumentException-processConstrainerIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProcessConstrainerFromProcess
void unassignProcessConstrainerFromProcess(Id processConstrainerId, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProcessConstrainerfrom aProcess.- Parameters:
processConstrainerId- theIdof theProcessConstrainerprocessId- theIdof theProcess- Throws:
NotFoundException-processConstrainerIdorprocessIdnot found orprocessConstrainerIdalready applied toprocessIdNullArgumentException-processConstrainerIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProcessConstrainers
boolean canSequenceProcessConstrainers()Tests if this user can orderProcessConstrainers. 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:
falseifProcessConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProcessConstrainerAhead
void moveProcessConstrainerAhead(Id processConstrainerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process constrainers for a process by moving the specified process constrainer in front of a reference process constrainer.- Parameters:
processConstrainerId- theIdof theProcessConstrainerprocessId- theIdof theProcessreferenceId- the reference process constrainerId- Throws:
NotFoundException-processConstrainerId, processId, orreferenceIdnot found or,processConstrainerIdorreferenceIdnot related toprocessIdNullArgumentException-processConstrainerId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProcessConstrainerBehind
void moveProcessConstrainerBehind(Id processConstrainerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process constrainers for a process by moving the specified process constrainer behind a reference process constrainer.- Parameters:
processConstrainerId- theIdof theProcessConstrainerprocessId- theIdof theProcessreferenceId- the reference process constrainerId- Throws:
NotFoundException-processConstrainerId, processId, orreferenceIdnot found or,processConstrainerIdorreferenceIdnot related toprocessIdNullArgumentException-processConstrainerId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProcessConstrainers
void orderProcessConstrainers(Id[] processConstrainerIds, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of process constrainers for a process.- Parameters:
processConstrainerIds- theIdsfor a set ofProcessConstrainersprocessId- theIdof theProcess- Throws:
NotFoundException-processIdnot found or, aprocessConstrainerIdnot related toprocessIdNullArgumentException-processConstrainerIdsorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-