Interface DispatchProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply DispatchProcessors to
Dispatches . Multiple DispatchProcessors applied to an
Dispatch may be sequenced such that the first positive evaluation
results in the DispatchProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDispatchProcessorToDispatch(Id dispatchProcessorId, Id dispatchId) Adds an existingDispatchProcessorto aDispatch.booleanTests if this user can alter dispatch processor/dispatch mappings.booleanTests if this user can orderDispatchProcessors.Gets thePublisherassociated with this session.Gets thePublisherIdassociated with this session.voidmoveDispatchProcessorAhead(Id dispatchProcessorId, Id dispatchId, Id referenceId) Reorders dispatch processors for a dispatch by moving the specified dispatch processor in front of a reference dispatch processor.voidmoveDispatchProcessorBehind(Id dispatchProcessorId, Id dispatchId, Id referenceId) Reorders dispatch processors for a dispatch by moving the specified dispatch processor behind a reference dispatch processor.voidorderDispatchProcessors(Id[] dispatchProcessorIds, Id dispatchId) Reorders a set of dispatch processors for a dispatch.voidunassignDispatchProcessorFromDispatch(Id dispatchProcessorId, Id dispatchId) Removes an existingDispatchProcessorfrom aDispatch.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
-
getPublisherId
Id getPublisherId()Gets thePublisherIdassociated with this session.- Returns:
- the
Publisher Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getPublisher
Gets thePublisherassociated with this session.- Returns:
- the publisher
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignDispatchProcessors
boolean canAssignDispatchProcessors()Tests if this user can alter dispatch processor/dispatch 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.
-
assignDispatchProcessorToDispatch
void assignDispatchProcessorToDispatch(Id dispatchProcessorId, Id dispatchId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingDispatchProcessorto aDispatch.- Parameters:
dispatchProcessorId- theIdof theDispatchProcessordispatchId- theIdof theDispatch- Throws:
AlreadyExistsException-dispatchProcessorIdalready applied todispatchIdNotFoundException-dispatchProcessorIdordispatchIdnot foundNullArgumentException-dispatchProcessorIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignDispatchProcessorFromDispatch
void unassignDispatchProcessorFromDispatch(Id dispatchProcessorId, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingDispatchProcessorfrom aDispatch.- Parameters:
dispatchProcessorId- theIdof theDispatchProcessordispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchProcessorIdordispatchIdnot found ordispatchProcessorIdalready applied todispatchIdNullArgumentException-dispatchProcessorIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceDispatchProcessors
boolean canSequenceDispatchProcessors()Tests if this user can orderDispatchProcessors. 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:
falseifDispatchProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveDispatchProcessorAhead
void moveDispatchProcessorAhead(Id dispatchProcessorId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch processors for a dispatch by moving the specified dispatch processor in front of a reference dispatch processor.- Parameters:
dispatchProcessorId- theIdof theDispatchProcessordispatchId- theIdof theDispatchreferenceId- the reference dispatch processorId- Throws:
NotFoundException-dispatchProcessorId dispatchId, orreferenceIdnot found or,dispatchProcessorIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchProcessorId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveDispatchProcessorBehind
void moveDispatchProcessorBehind(Id dispatchProcessorId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch processors for a dispatch by moving the specified dispatch processor behind a reference dispatch processor.- Parameters:
dispatchProcessorId- theIdof theDispatchProcessordispatchId- theIdof theDispatchreferenceId- the reference dispatch processorId- Throws:
NotFoundException-dispatchProcessorId, dispatchId, orreferenceIdnot found or,dispatchProcessorIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchProcessorId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderDispatchProcessors
void orderDispatchProcessors(Id[] dispatchProcessorIds, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of dispatch processors for a dispatch.- Parameters:
dispatchProcessorIds- theIdsfor a set ofDispatchProcessorsdispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchIdnot found or, adispatchProcessorIdnot related todispatchIdNullArgumentException-dispatchProcessorIdsordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-