Interface BrokerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply BrokerEnablers to
Brokers . Multiple BrokerEnablers applied to an Broker
may be sequenced such that the first positive evaluation results in the
BrokerEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBrokerEnablerToBroker(Id brokerEnablerId, Id brokerId) Adds an existingBrokerEnablerto aBroker.booleanTests if this user can alter broker enabler/broker mappings.booleanTests if this user can orderBrokerEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveBrokerEnablerAhead(Id brokerEnablerId, Id brokerId, Id referenceId) Reorders broker enablers for a broker by moving the specified broker enabler in front of a reference broker enabler.voidmoveBrokerEnablerBehind(Id brokerEnablerId, Id brokerId, Id referenceId) Reorders broker enablers for a broker by moving the specified broker enabler behind a reference broker enabler.voidorderBrokerEnablers(Id[] brokerEnablerIds, Id brokerId) Reorders a set of broker enablers for a broker.voidunassignBrokerEnablerFromBroker(Id brokerEnablerId, Id brokerId) Removes an existingBrokerEnablerfrom 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.
-
canAssignBrokerEnablers
boolean canAssignBrokerEnablers()Tests if this user can alter broker enabler/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.
-
assignBrokerEnablerToBroker
void assignBrokerEnablerToBroker(Id brokerEnablerId, Id brokerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBrokerEnablerto aBroker.- Parameters:
brokerEnablerId- theIdof theBrokerEnablerbrokerId- theIdof theBroker- Throws:
AlreadyExistsException-brokerEnablerIdalready applied tobrokerIdNotFoundException-brokerEnablerIdorbrokerIdnot foundNullArgumentException-brokerEnablerIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBrokerEnablerFromBroker
void unassignBrokerEnablerFromBroker(Id brokerEnablerId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBrokerEnablerfrom aBroker.- Parameters:
brokerEnablerId- theIdof theBrokerEnablerbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerEnablerIdorbrokerIdnot found orbrokerEnablerIdalready applied tobrokerIdNullArgumentException-brokerEnablerIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBrokerEnablers
boolean canSequenceBrokerEnablers()Tests if this user can orderBrokerEnablers. 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:
falseifBrokerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBrokerEnablerAhead
void moveBrokerEnablerAhead(Id brokerEnablerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker enablers for a broker by moving the specified broker enabler in front of a reference broker enabler.- Parameters:
brokerEnablerId- theIdof theBrokerEnablerbrokerId- theIdof theBrokerreferenceId- the reference broker enablerId- Throws:
NotFoundException-brokerEnablerId, brokerId, orreferenceIdnot found or,brokerEnablerIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerEnablerId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBrokerEnablerBehind
void moveBrokerEnablerBehind(Id brokerEnablerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker enablers for a broker by moving the specified broker enabler behind a reference broker enabler.- Parameters:
brokerEnablerId- theIdof theBrokerEnablerbrokerId- theIdof theBrokerreferenceId- the reference broker enablerId- Throws:
NotFoundException-brokerEnablerId, brokerId, orreferenceIdnot found or,brokerEnablerIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerEnablerId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBrokerEnablers
void orderBrokerEnablers(Id[] brokerEnablerIds, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of broker enablers for a broker.- Parameters:
brokerEnablerIds- theIdsfor a set ofBrokerEnablersbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerEnablerId, brokerId, orreferenceIdnot found or,brokerEnablerIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerEnablerIds, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-