Interface DispatchProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
DispatchProcessorEnablers to DispatchProcessors . Multiple
DispatchProcessorEnablers applied to an DispatchProcessor may be
sequenced such that the first positive evaluation results in the
DispatchProcessorEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDispatchProcessorEnablerToDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) Adds an existingDispatchProcessorEnablerto aDispatchProcessor.booleanTests if this user can alter dispatch processor enabler/dispatch processor mappings.booleanTests if this user can orderDispatchProcessorEnablers.Gets thePublisherassociated with this session.Gets thePublisherIdassociated with this session.voidmoveDispatchProcessorEnablerAhead(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler in front of a reference dispatch processor enabler.voidmoveDispatchProcessorEnablerBehind(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler behind a reference dispatch processor enabler.voidorderDispatchProcessorEnablers(Id[] dispatchProcessorEnablerIds, Id dispatchProcessorId) Reorders a set of dispatch processor enablers for a dispatch processor.voidunassignDispatchProcessorEnablerFromDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) Removes an existingDispatchProcessorEnablerfrom aDispatchProcessor.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.
-
canAssignDispatchProcessorEnablers
boolean canAssignDispatchProcessorEnablers()Tests if this user can alter dispatch processor enabler/dispatch 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.
-
assignDispatchProcessorEnablerToDispatchProcessor
void assignDispatchProcessorEnablerToDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingDispatchProcessorEnablerto aDispatchProcessor.- Parameters:
dispatchProcessorEnablerId- theIdof theDispatchProcessorEnablerdispatchProcessorId- theIdof theDispatchProcessor- Throws:
AlreadyExistsException-dispatchProcessorEnablerIdalready applied todispatchProcessorIdNotFoundException-dispatchProcessorEnablerIdordispatchProcessorIdnot foundNullArgumentException-dispatchProcessorEnablerIdordispatchProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignDispatchProcessorEnablerFromDispatchProcessor
void unassignDispatchProcessorEnablerFromDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingDispatchProcessorEnablerfrom aDispatchProcessor.- Parameters:
dispatchProcessorEnablerId- theIdof theDispatchProcessorEnablerdispatchProcessorId- theIdof theDispatchProcessor- Throws:
NotFoundException-dispatchProcessorEnablerIdordispatchProcessorIdnot found ordispatchProcessorEnablerIdalready applied todispatchProcessorIdNullArgumentException-dispatchProcessorEnablerIdordispatchProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceDispatchProcessorEnablers
boolean canSequenceDispatchProcessorEnablers()Tests if this user can orderDispatchProcessorEnablers. 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:
falseifDispatchProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveDispatchProcessorEnablerAhead
void moveDispatchProcessorEnablerAhead(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler in front of a reference dispatch processor enabler.- Parameters:
dispatchProcessorEnablerId- theIdof theDispatchProcessorEnablerdispatchProcessorId- theIdof theDispatchProcessorreferenceId- the reference dispatch processor enablerId- Throws:
NotFoundException-dispatchProcessorEnablerId dispatchProcessorId, orreferenceIdnot found or,dispatchProcessorEnablerIdorreferenceIdnot related todispatchProcessorIdNullArgumentException-dispatchProcessorEnablerId, dispatchProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveDispatchProcessorEnablerBehind
void moveDispatchProcessorEnablerBehind(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler behind a reference dispatch processor enabler.- Parameters:
dispatchProcessorEnablerId- theIdof theDispatchProcessorEnablerdispatchProcessorId- theIdof theDispatchProcessorreferenceId- the reference dispatch processorId- Throws:
NotFoundException-dispatchProcessorEnablerId dispatchProcessorId, orreferenceIdnot found or,dispatchProcessorEnablerIdorreferenceIdnot related todispatchProcessorIdNullArgumentException-dispatchProcessorEnablerId, dispatchProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderDispatchProcessorEnablers
void orderDispatchProcessorEnablers(Id[] dispatchProcessorEnablerIds, Id dispatchProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of dispatch processor enablers for a dispatch processor.- Parameters:
dispatchProcessorEnablerIds- theIdsfor a set ofDispatchProcessorEnablersdispatchProcessorId- theIdof theDispatchProcessor- Throws:
NotFoundException-dispatchProcessorIdnot found or, adispatchProcessorEnablerIdnot related todispatchProcessorIdNullArgumentException-dispatchProcessorEnablerIdsordispatchProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-