Interface BrokerProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply BrokerProcessors to
Brokers . Multiple BrokerProcessors applied to an
Broker may be sequenced such that the first positive evaluation results
in the BrokerProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBrokerProcessorToBroker(Id brokerProcessorId, Id brokerId) Adds an existingBrokerProcessorto aBroker.booleanTests if this user can alter broker processor/broker mappings.booleanTests if this user can orderBrokerProcessors.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveBrokerProcessorAhead(Id brokerProcessorId, Id brokerId, Id referenceId) Reorders broker processors for a broker by moving the specified broker processor in front of a reference broker processor.voidmoveBrokerProcessorBehind(Id brokerProcessorId, Id brokerId, Id referenceId) Reorders broker processors for a broker by moving the specified broker processor behind a reference broker processor.voidorderBrokerProcessors(Id[] brokerProcessorIds, Id brokerId) Reorders a set of broker processors for a broker.voidunassignBrokerProcessorFromBroker(Id brokerProcessorId, Id brokerId) Removes an existingBrokerProcessorfrom aBroker.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
-
getDistributorId
Id getDistributorId()Gets theDistributorIdassociated with this session.- Returns:
- the
Distributor Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getDistributor
Gets theDistributorassociated with this session.- Returns:
- the distributor
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignBrokerProcessors
boolean canAssignBrokerProcessors()Tests if this user can alter broker processor/broker 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.
-
assignBrokerProcessorToBroker
void assignBrokerProcessorToBroker(Id brokerProcessorId, Id brokerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBrokerProcessorto aBroker.- Parameters:
brokerProcessorId- theIdof theBrokerProcessorbrokerId- theIdof theBroker- Throws:
AlreadyExistsException-brokerProcessorIdalready applied tobrokerIdNotFoundException-brokerProcessorIdorbrokerIdnot foundNullArgumentException-brokerProcessorIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBrokerProcessorFromBroker
void unassignBrokerProcessorFromBroker(Id brokerProcessorId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBrokerProcessorfrom aBroker.- Parameters:
brokerProcessorId- theIdof theBrokerProcessorbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerProcessorIdorbrokerIdnot found orbrokerProcessorIdalready applied tobrokerIdNullArgumentException-brokerProcessorIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBrokerProcessors
boolean canSequenceBrokerProcessors()Tests if this user can orderBrokerProcessors. 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:
falseifBrokerProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBrokerProcessorAhead
void moveBrokerProcessorAhead(Id brokerProcessorId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker processors for a broker by moving the specified broker processor in front of a reference broker processor.- Parameters:
brokerProcessorId- theIdof theBrokerProcessorbrokerId- theIdof theBrokerreferenceId- the reference broker processorId- Throws:
NotFoundException-brokerProcessorId brokerId, orreferenceIdnot found or,brokerProcessorIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerProcessorId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBrokerProcessorBehind
void moveBrokerProcessorBehind(Id brokerProcessorId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker processors for a broker by moving the specified broker processor behind a reference broker processor.- Parameters:
brokerProcessorId- theIdof theBrokerProcessorbrokerId- theIdof theBrokerreferenceId- the reference broker processorId- Throws:
NotFoundException-brokerProcessorId, brokerId, orreferenceIdnot found or,brokerProcessorIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerProcessorId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBrokerProcessors
void orderBrokerProcessors(Id[] brokerProcessorIds, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of broker processors for a broker.- Parameters:
brokerProcessorIds- theIdsfor a set ofBrokerProcessorsbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerIdnot found or, abrokerProcessorIdnot related tobrokerIdNullArgumentException-brokerProcessorIdsorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-