public interface BrokerProcessorRuleApplicationSession extends OsidSession
This session provides methods to apply BrokerProcessors
to Brokers.
| Modifier and Type | Method and Description |
|---|---|
void |
assignBrokerProcessorToBroker(Id brokerProcessorId,
Id brokerId)
Adds an existing
BrokerProcessor to a Broker. |
boolean |
canAssignBrokerProcessors()
Tests if this user can alter broker processor/broker mappings.
|
boolean |
canSequenceBrokerProcessors()
Tests if this user can order
BrokerProcessors. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
moveBrokerProcessorAhead(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.
|
void |
moveBrokerProcessorBehind(Id brokerProcessorEnablerId,
Id brokerProcessorId,
Id brokerId)
Reorders broker processors for a broker by moving the specified broker
processor behind a reference broker processor.
|
void |
orderBrokerProcessors(Id[] brokerProcessorIds,
Id brokerId)
Reorders a set of broker processors for a broker.
|
void |
unassignBrokerProcessorFromBroker(Id brokerProcessorId,
Id brokerId)
Removes a
BrokerProcessor from a Broker. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getDistributorId()
Distributor Id associated with
this session. Distributor Id associated with this sessionmandatory - This method must be implemented. Distributor getDistributor() throws OperationFailedException, PermissionDeniedException
Distributor associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignBrokerProcessors()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. void assignBrokerProcessorToBroker(Id brokerProcessorId, Id brokerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
BrokerProcessor to a Broker.
brokerProcessorId - the Id of the
BrokerProcessor brokerId - the Id of the Broker AlreadyExistsException - brokerProcessorId
is already applied to brokerId NotFoundException - brokerProcessorId or
brokerId not foundNullArgumentException - brokerProcessorId
or brokerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignBrokerProcessorFromBroker(Id brokerProcessorId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerProcessor from a Broker. brokerProcessorId - the Id of the
BrokerProcessor brokerId - the Id of the Broker NotFoundException - brokerProcessorId or
brokerId not found or brokerProcessorId
not applied to brokerId NullArgumentException - brokerProcessorId
or brokerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceBrokerProcessors()
BrokerProcessors. A return
of true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false if BrokerProcessor
ordering is not authorized, true otherwisemandatory - This method must be implemented. void moveBrokerProcessorAhead(Id brokerProcessorId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerProcessorId - the Id of a
BrokerProcessor brokerId - the Id of a Broker referenceId - the reference broker processor Id NotFoundException - brokerProcessorId, brokerId,
or referenceId not found or,
brokerProcessorId or referenceId not
related to brokerId NullArgumentException - brokerProcessorId,
brokerId, or referenceId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveBrokerProcessorBehind(Id brokerProcessorEnablerId, Id brokerProcessorId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerProcessorEnablerId - the Id of a
BrokerProcessor brokerProcessorId - the Id of a Broker
brokerId - the reference broker processor Id NotFoundException - brokerProcessorId, brokerId,
or referenceId not found or,
brokerProcessorId or referenceId not
related to brokerId NullArgumentException - brokerProcessorId,
brokerId, or referenceId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderBrokerProcessors(Id[] brokerProcessorIds, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerProcessorIds - the Ids for a set of
BrokerProcessors brokerId - the Id of a Broker NotFoundException - brokerId not found
or, a brokerProcessorId not related to
brokerId NullArgumentException - brokerProcessorIds
or brokerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.