Interface DispatchConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply DispatchConstrainers to
Dispatches . Multiple DispatchConstrainers applied to an
Dispatch may be sequenced such that the first positive evaluation
results in the DispatchConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDispatchConstrainerToDispatch(Id dispatchConstrainerId, Id dispatchId) Adds an existingDispatchConstrainerto aDispatch.booleanTests if this user can alter dispatch constrainer/dispatch mappings.booleanTests if this user can orderDispatchConstrainers.Gets thePublisherassociated with this session.Gets thePublisherIdassociated with this session.voidmoveDispatchConstrainerAhead(Id dispatchConstrainerId, Id dispatchId, Id referenceId) Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer in front of a reference dispatch constrainer.voidmoveDispatchConstrainerBehind(Id dispatchConstrainerId, Id dispatchId, Id referenceId) Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer behind a reference dispatch constrainer.voidorderDispatchConstrainers(Id[] dispatchConstrainerIds, Id dispatchId) Reorders a set of dispatch constrainers for a dispatch.voidunassignDispatchConstrainerFromDispatch(Id dispatchConstrainerId, Id dispatchId) Removes an existingDispatchConstrainerfrom 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.
-
canAssignDispatchConstrainers
boolean canAssignDispatchConstrainers()Tests if this user can alter dispatch constrainer/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.
-
assignDispatchConstrainerToDispatch
void assignDispatchConstrainerToDispatch(Id dispatchConstrainerId, Id dispatchId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingDispatchConstrainerto aDispatch.- Parameters:
dispatchConstrainerId- theIdof theDispatchConstrainerdispatchId- theIdof theDispatch- Throws:
AlreadyExistsException-dispatchConstrainerIdalready applied todispatchIdNotFoundException-dispatchConstrainerIdordispatchIdnot foundNullArgumentException-dispatchConstrainerIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignDispatchConstrainerFromDispatch
void unassignDispatchConstrainerFromDispatch(Id dispatchConstrainerId, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingDispatchConstrainerfrom aDispatch.- Parameters:
dispatchConstrainerId- theIdof theDispatchConstrainerdispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchConstrainerIdordispatchIdnot found ordispatchConstrainerIdalready applied todispatchIdNullArgumentException-dispatchConstrainerIdordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceDispatchConstrainers
boolean canSequenceDispatchConstrainers()Tests if this user can orderDispatchConstrainers. 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:
falseifDispatchConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveDispatchConstrainerAhead
void moveDispatchConstrainerAhead(Id dispatchConstrainerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer in front of a reference dispatch constrainer.- Parameters:
dispatchConstrainerId- theIdof theDispatchConstrainerdispatchId- theIdof theDispatchreferenceId- the reference dispatch constrainerId- Throws:
NotFoundException-dispatchConstrainerId, dispatchId, orreferenceIdnot found or,dispatchConstrainerIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchConstrainerId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveDispatchConstrainerBehind
void moveDispatchConstrainerBehind(Id dispatchConstrainerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch constrainers for a dispatch by moving the specified dispatch constrainer behind a reference dispatch constrainer.- Parameters:
dispatchConstrainerId- theIdof theDispatchConstrainerdispatchId- theIdof theDispatchreferenceId- the reference dispatch constrainerId- Throws:
NotFoundException-dispatchConstrainerId, dispatchId, orreferenceIdnot found or,dispatchConstrainerIdorreferenceIdnot related todispatchIdNullArgumentException-dispatchConstrainerId, dispatchId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderDispatchConstrainers
void orderDispatchConstrainers(Id[] dispatchConstrainerIds, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of dispatch constrainers for a dispatch.- Parameters:
dispatchConstrainerIds- theIdsfor a set ofDispatchConstrainersdispatchId- theIdof theDispatch- Throws:
NotFoundException-dispatchIdnot found or, adispatchConstrainerIdnot related todispatchIdNullArgumentException-dispatchConstrainerIdsordispatchIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-