Interface ProcessEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProcessEnablers to
Processs . A Process with multiple ProcessEnablers
means any positive rule evaluation across the constrainers result in an
accessible Process .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProcessEnablerToProcess(Id processEnablerId, Id processId) Adds an existingProcessEnablerto aProcess.booleanTests if this user can alter process enabler/process mappings.booleanTests if this user can orderProcessEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveProcessEnablerAhead(Id processEnablerId, Id processId, Id referenceId) Reorders process enablers for a process by moving the specified process enabler in front of a reference process enabler.voidmoveProcessEnablerBehind(Id processEnablerId, Id processId, Id referenceId) Reorders process enablers for a process by moving the specified process enabler behind a reference process enabler.voidorderProcessEnablers(Id[] processEnablerIds, Id processId) Reorders a set of process enablers for a process.voidunassignProcessEnablerFromProcess(Id processEnablerId, Id processId) Removes aProcessEnablerfrom 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.
-
canAssignProcessEnablers
boolean canAssignProcessEnablers()Tests if this user can alter process enabler/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.
-
assignProcessEnablerToProcess
void assignProcessEnablerToProcess(Id processEnablerId, Id processId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProcessEnablerto aProcess.- Parameters:
processEnablerId- theIdof theProcessEnablerprocessId- theIdof theProcess- Throws:
AlreadyExistsException-processEnablerIdis already applied toprocessIdNotFoundException-processEnablerIdorprocessIdnot foundNullArgumentException-processEnablerIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProcessEnablerFromProcess
void unassignProcessEnablerFromProcess(Id processEnablerId, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aProcessEnablerfrom aProcess.- Parameters:
processEnablerId- theIdof theProcessEnablerprocessId- theIdof theProcess- Throws:
NotFoundException-processEnablerIdorprocessIdnot found orprocessEnablerIdnot applied toprocessIdNullArgumentException-processEnablerIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProcessEnablers
boolean canSequenceProcessEnablers()Tests if this user can orderProcessEnablers. 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:
falseifProcessEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProcessEnablerAhead
void moveProcessEnablerAhead(Id processEnablerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process enablers for a process by moving the specified process enabler in front of a reference process enabler.- Parameters:
processEnablerId- theIdof aProcessEnablerprocessId- theIdof aProcessreferenceId- the reference process enablerId- Throws:
NotFoundException-processEnablerId, processId, orreferenceIdnot found or,processEnablerIdorreferenceIdnot related toprocessIdNullArgumentException-processEnablerId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProcessEnablerBehind
void moveProcessEnablerBehind(Id processEnablerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process enablers for a process by moving the specified process enabler behind a reference process enabler.- Parameters:
processEnablerId- theIdof aProcessEnablerprocessId- theIdof aProcessreferenceId- the reference process enablerId- Throws:
NotFoundException-processEnablerId, processId, orreferenceIdnot found or,processEnablerIdorreferenceIdnot related toprocessIdNullArgumentException-processEnablerId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProcessEnablers
void orderProcessEnablers(Id[] processEnablerIds, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of process enablers for a process.- Parameters:
processEnablerIds- theIdsfor a set ofProcessEnablersprocessId- theIdof aProcess- Throws:
NotFoundException-processIdnot found or, anprocessEnablerIdnot related toprocessIdNullArgumentException-processEnabelrIdsorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-