Interface BrokerProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply BrokerProcessorEnablers
to BrokerProcessors . Multiple BrokerProcessorEnablers
applied to an BrokerProcessor may be sequenced such that the first
positive evaluation results in the BrokerProcessorEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBrokerProcessorEnablerToBrokerProcessor(Id brokerProcessorEnablerId, Id brokerProcessorId) Adds an existingBrokerProcessorEnablerto aBrokerProcessor.booleanTests if this user can alter broker processor enabler/broker processor mappings.booleanTests if this user can orderBrokerProcessorEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveBrokerProcessorEnablerAhead(Id brokerProcessorEnablerId, Id brokerProcessorId, Id referenceId) Reorders broker processor enablers for a broker processor by moving the specified broker processor enabler in front of a reference broker processor enabler.voidmoveBrokerProcessorEnablerBehind(Id brokerProcessorEnablerId, Id brokerProcessorId, Id referenceId) Reorders broker processor enablers for a broker processor by moving the specified broker processor enabler behind a reference broker processor enabler.voidorderBrokerProcessorEnablers(Id[] brokerProcessorEnablerIds, Id brokerProcessorId) Reorders a set of broker processor enablers for a broker processor.voidunassignBrokerProcessorEnablerFromBrokerProcessor(Id brokerProcessorEnablerId, Id brokerProcessorId) Removes an existingBrokerProcessorEnablerfrom aBrokerProcessor.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.
-
canAssignBrokerProcessorEnablers
boolean canAssignBrokerProcessorEnablers()Tests if this user can alter broker processor enabler/broker 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.
-
assignBrokerProcessorEnablerToBrokerProcessor
void assignBrokerProcessorEnablerToBrokerProcessor(Id brokerProcessorEnablerId, Id brokerProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBrokerProcessorEnablerto aBrokerProcessor.- Parameters:
brokerProcessorEnablerId- theIdof theBrokerProcessorEnablerbrokerProcessorId- theIdof theBrokerProcessor- Throws:
AlreadyExistsException-brokerProcessorEnablerIdalready applied tobrokerProcessorIdNotFoundException-brokerProcessorEnablerIdorbrokerProcessorIdnot foundNullArgumentException-brokerProcessorEnablerIdorbrokerProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBrokerProcessorEnablerFromBrokerProcessor
void unassignBrokerProcessorEnablerFromBrokerProcessor(Id brokerProcessorEnablerId, Id brokerProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBrokerProcessorEnablerfrom aBrokerProcessor.- Parameters:
brokerProcessorEnablerId- theIdof theBrokerProcessorEnablerbrokerProcessorId- theIdof theBrokerProcessor- Throws:
NotFoundException-brokerProcessorEnablerIdorbrokerProcessorIdnot found orbrokerProcessorEnablerIdalready applied tobrokerProcessorIdNullArgumentException-brokerProcessorEnablerIdorbrokerProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBrokerProcessorEnablers
boolean canSequenceBrokerProcessorEnablers()Tests if this user can orderBrokerProcessorEnablers. 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:
falseifBrokerProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBrokerProcessorEnablerAhead
void moveBrokerProcessorEnablerAhead(Id brokerProcessorEnablerId, Id brokerProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker processor enablers for a broker processor by moving the specified broker processor enabler in front of a reference broker processor enabler.- Parameters:
brokerProcessorEnablerId- theIdof theBrokerProcessorEnablerbrokerProcessorId- theIdof theBrokerProcessorreferenceId- the reference broker processor enablerId- Throws:
NotFoundException-brokerProcessorEnablerId brokerProcessorId, orreferenceIdnot found or,brokerProcessorEnablerIdorreferenceIdnot related tobrokerProcessorIdNullArgumentException-brokerProcessorEnablerId, brokerProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBrokerProcessorEnablerBehind
void moveBrokerProcessorEnablerBehind(Id brokerProcessorEnablerId, Id brokerProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker processor enablers for a broker processor by moving the specified broker processor enabler behind a reference broker processor enabler.- Parameters:
brokerProcessorEnablerId- theIdof theBrokerProcessorEnablerbrokerProcessorId- theIdof theBrokerProcessorreferenceId- the reference broker processorId- Throws:
NotFoundException-brokerProcessorEnablerId brokerProcessorId, orreferenceIdnot found or,brokerProcessorEnablerIdorreferenceIdnot related tobrokerProcessorIdNullArgumentException-brokerProcessorEnablerId, brokerProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBrokerProcessorEnablers
void orderBrokerProcessorEnablers(Id[] brokerProcessorEnablerIds, Id brokerProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of broker processor enablers for a broker processor.- Parameters:
brokerProcessorEnablerIds- theIdsfor a set ofBrokerProcessorEnablersbrokerProcessorId- theIdof theBrokerProcessor- Throws:
NotFoundException-brokerProcessorIdnot found or, abrokerProcessorEnablerIdnot related tobrokerProcessorIdNullArgumentException-brokerProcessorEnablerIdsorbrokerProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-