Interface ProcessProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProcessProcessorEnablers
to ProcessProcessors . Multiple ProcessProcessorEnablers
applied to an ProcessProcessor may be sequenced such that the
first positive evaluation results in the ProcessProcessorEnabler
used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProcessProcessorEnablerToProcessProcessor(Id processProcessorEnablerId, Id processProcessorId) Adds an existingProcessProcessorEnablerto aProcessProcessor.booleanTests if this user can alter process processor enabler/process processor mappings.booleanTests if this user can orderProcessProcessorEnablers.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveProcessProcessorEnablerAhead(Id processProcessorEnablerId, Id processProcessorId, Id referenceId) Reorders process processor enablers for a process processor by moving the specified process processor enabler in front of a reference process processor enabler.voidmoveProcessProcessorEnablerBehind(Id processProcessorEnablerId, Id processProcessorId, Id referenceId) Reorders process processor enablers for a process processor by moving the specified process processor enabler behind a reference process processor enabler.voidorderProcessProcessorEnablers(Id[] processProcessorEnablerIds, Id processProcessorId) Reorders a set of process processor enablers for a process processor.voidunassignProcessProcessorEnablerFromProcessProcessor(Id processProcessorEnablerId, Id processProcessorId) Removes an existingProcessProcessorEnablerfrom aProcessProcessor.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.
-
canAssignProcessProcessorEnablers
boolean canAssignProcessProcessorEnablers()Tests if this user can alter process processor enabler/process processor 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.
-
assignProcessProcessorEnablerToProcessProcessor
void assignProcessProcessorEnablerToProcessProcessor(Id processProcessorEnablerId, Id processProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProcessProcessorEnablerto aProcessProcessor.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnablerprocessProcessorId- theIdof theProcessProcessor- Throws:
AlreadyExistsException-processProcessorEnablerIdalready applied toprocessProcessorIdNotFoundException-processProcessorEnablerIdorprocessProcessorIdnot foundNullArgumentException-processProcessorEnablerIdorprocessProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProcessProcessorEnablerFromProcessProcessor
void unassignProcessProcessorEnablerFromProcessProcessor(Id processProcessorEnablerId, Id processProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProcessProcessorEnablerfrom aProcessProcessor.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnablerprocessProcessorId- theIdof theProcessProcessor- Throws:
NotFoundException-processProcessorEnablerIdorprocessProcessorIdnot found orprocessProcessorEnablerIdalready applied toprocessProcessorIdNullArgumentException-processProcessorEnablerIdorprocessProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProcessProcessorEnablers
boolean canSequenceProcessProcessorEnablers()Tests if this user can orderProcessProcessorEnablers. 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:
falseifProcessProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProcessProcessorEnablerAhead
void moveProcessProcessorEnablerAhead(Id processProcessorEnablerId, Id processProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process processor enablers for a process processor by moving the specified process processor enabler in front of a reference process processor enabler.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnablerprocessProcessorId- theIdof theProcessProcessorreferenceId- the reference process processor enablerId- Throws:
NotFoundException-processProcessorEnablerId processProcessorId, orreferenceIdnot found or,processProcessorEnablerIdorreferenceIdnot related toprocessProcessorIdNullArgumentException-processProcessorEnablerId, processProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProcessProcessorEnablerBehind
void moveProcessProcessorEnablerBehind(Id processProcessorEnablerId, Id processProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process processor enablers for a process processor by moving the specified process processor enabler behind a reference process processor enabler.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnablerprocessProcessorId- theIdof theProcessProcessorreferenceId- the reference process processorId- Throws:
NotFoundException-processProcessorEnablerId processProcessorId, orreferenceIdnot found or,processProcessorEnablerIdorreferenceIdnot related toprocessProcessorIdNullArgumentException-processProcessorEnablerId, processProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProcessProcessorEnablers
void orderProcessProcessorEnablers(Id[] processProcessorEnablerIds, Id processProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of process processor enablers for a process processor.- Parameters:
processProcessorEnablerIds- theIdsfor a set ofProcessProcessorEnablersprocessProcessorId- theIdof theProcessProcessor- Throws:
NotFoundException-processProcessorIdnot found or, aprocessProcessorEnablerIdnot related toprocessProcessorIdNullArgumentException-processProcessorEnablerIdsorprocessProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-