public interface BrokerConstrainerRuleLookupSession extends OsidSession
This session provides methods to retrieve BrokerConstrainer
to Broker mappings. A Broker with
multiple BrokerConstrainers means any positive rule
evaluation across the result in an effective Broker.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupBrokerConstrainerRules()
Tests if this user can perform lookups of broker constrainer/broker
mappings.
|
IdList |
getBrokerConstrainerIdsForBroker(Id distributorId)
Gets the
BrokerConstrainer Id associated with a
Broker. |
BrokerConstrainerList |
getBrokerConstrainersForBroker(Id distributorId)
Gets the
BrokerConstrainer associated with a
Broker. |
IdList |
getBrokerIdsForBrokerConstrainer(Id brokerConstrainerId)
Gets the
Broker Ids mapped to a
BrokerConstrainer. |
BrokerList |
getBrokersForBrokerConstrainer(Id brokerConstrainerId)
Gets the
Brokers mapped to a BrokerConstrainer. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
useComparativeBrokerConstrainerRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedDistributorView()
Federates the view for methods in this session.
|
void |
useIsolatedDistributorView()
Isolates the view for methods in this session.
|
void |
usePlenaryBrokerConstrainerRuleView()
A complete view of the
BrokerConstrainer and
Broker returns is desired. |
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 canLookupBrokerConstrainerRules()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeBrokerConstrainerRuleView()
mandatory - This method is must be implemented. void usePlenaryBrokerConstrainerRuleView()
BrokerConstrainer and
Broker returns is desired. Methods will return what is
requested or result in an error. This view is used when greater
precision is desired at the expense of interoperability.mandatory - This method is must be implemented. void useFederatedDistributorView()
mandatory - This method is must be implemented. void useIsolatedDistributorView()
mandatory - This method is must be implemented. IdList getBrokerConstrainerIdsForBroker(Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainer Id associated with a
Broker. distributorId - Id of the Broker Ids NotFoundException - distributorId is not
foundNullArgumentException - distributorId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerConstrainerList getBrokerConstrainersForBroker(Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainer associated with a
Broker. distributorId - Id of the Broker NotFoundException - distributorId is not
foundNullArgumentException - distributorId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getBrokerIdsForBrokerConstrainer(Id brokerConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Broker Ids mapped to a
BrokerConstrainer. brokerConstrainerId - Id of a
BrokerConstrainer Ids NotFoundException - brokerConstrainerId
is not foundNullArgumentException - brokerConstrainerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerList getBrokersForBrokerConstrainer(Id brokerConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Brokers mapped to a BrokerConstrainer.
brokerConstrainerId - Id of a
BrokerConstrainer NotFoundException - brokerConstrainerId
is not foundNullArgumentException - brokerConstrainerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.