Interface DispatchEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply DispatchEnablers to
Dispatches . Multiple DispatchEnablers applied to an
Dispatch may be sequenced such that the first positive evaluation
results in the DispatchEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDispatchEnablerToDispatch(Id dispatchEnablerId, Id dispatchId) Adds an existingDispatchEnablerto aDispatch.booleanTests if this user can alter dispatch enabler/dispatch mappings.booleanTests if this user can orderDispatchEnablers.Gets thePublisherassociated with this session.Gets thePublisherIdassociated with this session.voidmoveDispatchEnablerAhead(Id dispatchEnablerId, Id dispatchId, Id referenceId) Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler in front of a reference dispatch enabler.voidmoveDispatchEnablerBehind(Id dispatchEnablerId, Id dispatchId, Id referenceId) Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler behind a reference dispatch enabler.voidorderDispatchEnablers(Id[] dispatchEnablerIds, Id dispatchId) Reorders a set of dispatch enablers for a dispatch.voidunassignDispatchEnablerFromDispatch(Id dispatchEnablerId, Id dispatchId) Removes an existingDispatchEnablerfrom 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.
-
canAssignDispatchEnablers
boolean canAssignDispatchEnablers()Tests if this user can alter dispatch enabler/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.
-
assignDispatchEnablerToDispatch
void assignDispatchEnablerToDispatch(Id dispatchEnablerId, Id dispatchId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingDispatchEnablerto aDispatch.- Parameters:
dispatchEnablerId- theIdof theDispatchEnablerdispatchId- theIdof theDispatch- Throws:
AlreadyExistsException-dispatchEnablerIdalready applied todispatchIdNotFoundException-dispatchEnablerIdordispatchIdnot foundNullArgumentException-dispatchEnablerIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignDispatchEnablerFromDispatch
void unassignDispatchEnablerFromDispatch(Id dispatchEnablerId, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingDispatchEnablerfrom aDispatch.- Parameters:
dispatchEnablerId- theIdof theDispatchEnablerdispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchEnablerIdordispatchIdnot found ordispatchEnablerIdalready applied todispatchIdNullArgumentException-dispatchEnablerIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceDispatchEnablers
boolean canSequenceDispatchEnablers()Tests if this user can orderDispatchEnablers. 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:
falseifDispatchEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveDispatchEnablerAhead
void moveDispatchEnablerAhead(Id dispatchEnablerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler in front of a reference dispatch enabler.- Parameters:
dispatchEnablerId- theIdof theDispatchEnablerdispatchId- theIdof theDispatchreferenceId- the reference dispatch enablerId- Throws:
NotFoundException-dispatchEnablerId, dispatchId, orreferenceIdnot found or,dispatchEnablerIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchEnablerId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveDispatchEnablerBehind
void moveDispatchEnablerBehind(Id dispatchEnablerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler behind a reference dispatch enabler.- Parameters:
dispatchEnablerId- theIdof theDispatchEnablerdispatchId- theIdof theDispatchreferenceId- the reference dispatch enablerId- Throws:
NotFoundException-dispatchEnablerId, dispatchId, orreferenceIdnot found or,dispatchEnablerIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchEnablerId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderDispatchEnablers
void orderDispatchEnablers(Id[] dispatchEnablerIds, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of dispatch enablers for a dispatch.- Parameters:
dispatchEnablerIds- theIdsfor a set ofDispatchEnablersdispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchEnablerId, dispatchId, orreferenceIdnot found or,dispatchEnablerIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchEnablerIds, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-