public interface BrokerConstrainerLookupSession extends OsidSession
This session provides methods for retrieving BrokerConstrainers.
This session defines views that offer differing behaviors when retrieving multiple objects.
BrokerConstrainers with the
BrokerConstrainerAdminSession. Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedDistributorView() and
useIsolatedDistributorView() behave as a radio group and one
should be selected before invoking the methods in this session.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupBrokerConstrainers()
Tests if this user can perform
BrokerConstrainers
lookups. |
BrokerConstrainer |
getBrokerConstrainer(Id brokerConstrainerId)
Gets the
BrokerConstrainer specified by its Id. |
BrokerConstrainerList |
getBrokerConstrainers()
Gets all
BrokerConstrainers. |
BrokerConstrainerList |
getBrokerConstrainersByGenusType(Type brokerConstrainerGenusType)
Gets a
BrokerConstrainerList corresponding to the given
broker constrainer genus Type which does not include
broker constrainer of genus types derived from the specified
Type. |
BrokerConstrainerList |
getBrokerConstrainersByIds(IdList brokerConstrainerIds)
Gets a
BrokerConstrainerList corresponding to the given
IdList. |
BrokerConstrainerList |
getBrokerConstrainersByParentGenusType(Type brokerConstrainerGenusType)
Gets a
BrokerConstrainerList corresponding to the given
broker constrainer genus Type and include any
additional broker constrainer with genus types derived from the
specified Type. |
BrokerConstrainerList |
getBrokerConstrainersByRecordType(Type brokerConstrainerRecordType)
Gets a
BrokerConstrainerList containing the given
broker constrainer record Type. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
useActiveBrokerConstrainerView()
Only active broker constrainers are returned by methods in this
session.
|
void |
useAnyStatusBrokerConstrainerView()
All active and inactive broker constrainers are returned by methods in
this session.
|
void |
useComparativeBrokerConstrainerView()
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 |
usePlenaryBrokerConstrainerView()
A complete view of the
BrokerConstrainer 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 canLookupBrokerConstrainers()
BrokerConstrainers
lookups. A return of true does not guarantee successful authorization.
A return of false indicates that it is known all methods in this
session will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer lookup
operations to unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeBrokerConstrainerView()
mandatory - This method is must be implemented. void usePlenaryBrokerConstrainerView()
BrokerConstrainer 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. void useActiveBrokerConstrainerView()
mandatory - This method is must be implemented. void useAnyStatusBrokerConstrainerView()
mandatory - This method is must be implemented. BrokerConstrainer getBrokerConstrainer(Id brokerConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainer specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
BrokerConstrainer may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a BrokerConstrainer and retained for
compatibility.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned.brokerConstrainerId - Id of the
BrokerConstrainer NotFoundException - brokerConstrainerId
not foundNullArgumentException - brokerConstrainerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. BrokerConstrainerList getBrokerConstrainersByIds(IdList brokerConstrainerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainerList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
broker constrainer specified in the Id list, in the
order of the list, including duplicates, or an error results if an
Id in the supplied list is not found or inaccessible.
Otherwise, inaccessible BrokerConstrainers may be
omitted from the list and may present the elements in any order
including returning a unique set.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned.brokerConstrainerIds - the list of Ids to
retrieve BrokerConstrainer listNotFoundException - an Id was not foundNullArgumentException - brokerConstrainerIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerConstrainerList getBrokerConstrainersByGenusType(Type brokerConstrainerGenusType) throws OperationFailedException, PermissionDeniedException
BrokerConstrainerList corresponding to the given
broker constrainer genus Type which does not include
broker constrainer of genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
broker constrainer or an error results. Otherwise, the returned list
may contain only those broker constrainer that are accessible through
this session.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned.brokerConstrainerGenusType - a broker constrainer genus type BrokerConstrainer listNullArgumentException -
brokerConstrainerGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerConstrainerList getBrokerConstrainersByParentGenusType(Type brokerConstrainerGenusType) throws OperationFailedException, PermissionDeniedException
BrokerConstrainerList corresponding to the given
broker constrainer genus Type and include any
additional broker constrainer with genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
broker constrainer or an error results. Otherwise, the returned list
may contain only those broker constrainer that are accessible through
this session.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned.brokerConstrainerGenusType - a broker constrainer genus type BrokerConstrainer listNullArgumentException -
brokerConstrainerGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerConstrainerList getBrokerConstrainersByRecordType(Type brokerConstrainerRecordType) throws OperationFailedException, PermissionDeniedException
BrokerConstrainerList containing the given
broker constrainer record Type.
In plenary mode, the returned list contains all known
broker constrainer or an error results. Otherwise, the returned list
may contain only those broker constrainer that are accessible through
this session.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned.brokerConstrainerRecordType - a broker constrainer record type BrokerConstrainer listNullArgumentException -
brokerConstrainerRecordType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BrokerConstrainerList getBrokerConstrainers() throws OperationFailedException, PermissionDeniedException
BrokerConstrainers.
In plenary mode, the returned list contains all known broker
constrainer or an error results. Otherwise, the returned list may
contain only those broker constrainer that are accessible through this
session.
In active mode, offset broker constrainers are returned that are
currently active. In any status mode, active and inactive offset
broker constrainers are returned. BrokerConstrainer listOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.