Interface ProcessConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
ProcessConstrainerEnablers to ProcessConstrainers . Multiple
ProcessConstrainerEnablers applied to an
ProcessConstrainer may be sequenced such that the first positive
evaluation results in the ProcessConstrainerEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProcessConstrainerEnablerToProcessConstrainer(Id processConstrainerEnablerId, Id processConstrainerId) Adds an existingProcessConstrainerEnablerto aProcessConstrainer.booleanTests if this user can alter process constrainer enabler/process constrainer mappings.booleanTests if this user can orderProcessConstrainerEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveProcessConstrainerEnablerAhead(Id processConstrainerEnablerId, Id processConstrainerId, Id referenceId) Reorders process constrainer enablers for a process constrainer by moving the specified process constrainer enabler in front of a reference process constrainer enabler.voidmoveProcessConstrainerEnablerBehind(Id processConstrainerEnablerId, Id processConstrainerId, Id referenceId) Reorders process constrainer enablers for a process constrainer by moving the specified process constrainer enabler behind a reference process constrainer enabler.voidorderProcessConstrainerEnablers(Id[] processConstrainerEnablerIds, Id processConstrainerId) Reorders a set of process constrainer enablers for a process constrainer.voidunassignProcessConstrainerEnablerFromProcessConstrainer(Id processConstrainerEnablerId, Id processConstrainerId) Removes an existingProcessConstrainerEnablerfrom aProcessConstrainer.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.
-
canAssignProcessConstrainerEnablers
boolean canAssignProcessConstrainerEnablers()Tests if this user can alter process constrainer enabler/process 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.
-
assignProcessConstrainerEnablerToProcessConstrainer
void assignProcessConstrainerEnablerToProcessConstrainer(Id processConstrainerEnablerId, Id processConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProcessConstrainerEnablerto aProcessConstrainer.- Parameters:
processConstrainerEnablerId- theIdof theProcessConstrainerEnablerprocessConstrainerId- theIdof theProcessConstrainer- Throws:
AlreadyExistsException-processConstrainerEnablerIdalready applied toprocessConstrainerIdNotFoundException-processConstrainerEnablerIdorprocessConstrainerIdnot foundNullArgumentException-processConstrainerEnablerIdorprocessConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProcessConstrainerEnablerFromProcessConstrainer
void unassignProcessConstrainerEnablerFromProcessConstrainer(Id processConstrainerEnablerId, Id processConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProcessConstrainerEnablerfrom aProcessConstrainer.- Parameters:
processConstrainerEnablerId- theIdof theProcessConstrainerEnablerprocessConstrainerId- theIdof theProcessConstrainer- Throws:
NotFoundException-processConstrainerEnablerIdorprocessConstrainerIdnot found orprocessConstrainerEnablerIdalready applied toprocessConstrainerIdNullArgumentException-processConstrainerEnablerIdorprocessConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProcessConstrainerEnablers
boolean canSequenceProcessConstrainerEnablers()Tests if this user can orderProcessConstrainerEnablers. 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:
falseifProcessConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProcessConstrainerEnablerAhead
void moveProcessConstrainerEnablerAhead(Id processConstrainerEnablerId, Id processConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process constrainer enablers for a process constrainer by moving the specified process constrainer enabler in front of a reference process constrainer enabler.- Parameters:
processConstrainerEnablerId- theIdof theProcessConstrainerEnablerprocessConstrainerId- theIdof theProcessConstrainerreferenceId- the reference process constrainer enablerId- Throws:
NotFoundException-processConstrainerEnablerId processConstrainerId, orreferenceIdnot found or,processConstrainerEnablerIdorreferenceIdnot related toprocessConstrainerIdNullArgumentException-processConstrainerEnablerId, processConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProcessConstrainerEnablerBehind
void moveProcessConstrainerEnablerBehind(Id processConstrainerEnablerId, Id processConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process constrainer enablers for a process constrainer by moving the specified process constrainer enabler behind a reference process constrainer enabler.- Parameters:
processConstrainerEnablerId- theIdof theProcessConstrainerEnablerprocessConstrainerId- theIdof theProcessConstrainerreferenceId- the reference process constrainerId- Throws:
NotFoundException-processConstrainerEnablerId processConstrainerId, orreferenceIdnot found or,processConstrainerEnablerIdorreferenceIdnot related toprocessConstrainerIdNullArgumentException-processConstrainerEnablerId, processConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProcessConstrainerEnablers
void orderProcessConstrainerEnablers(Id[] processConstrainerEnablerIds, Id processConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of process constrainer enablers for a process constrainer.- Parameters:
processConstrainerEnablerIds- theIdsfor a set ofProcessConstrainerEnablersprocessConstrainerId- theIdof theProcessConstrainer- Throws:
NotFoundException-processConstrainerIdnot found or, aprocessConstrainerEnablerIdnot related toprocessConstrainerIdNullArgumentException-processConstrainerEnablerIdsorprocessConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-