public interface PoolProcessorLookupSession extends OsidSession
This session provides methods for retrieving PoolProcessors.
This session defines views that offer differing behaviors when retrieving multiple objects.
PoolProcessors
with the
PoolProcessorAdminSession.
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 |
canLookupPoolProcessors()
Tests if this user can perform
PoolProcessors lookups. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
PoolProcessor |
getPoolProcessor(Id poolProcessorId)
Gets the
PoolProcessor specified by its Id. |
PoolProcessorList |
getPoolProcessors()
Gets all
PoolProcessors. |
PoolProcessorList |
getPoolProcessorsByGenusType(Type poolProcessorGenusType)
Gets a
PoolProcessorList corresponding to the given
pool processor genus Type which does not include pool
processor of genus types derived from the specified Type. |
PoolProcessorList |
getPoolProcessorsByIds(IdList poolProcessorIds)
Gets a
PoolProcessorList corresponding to the given
IdList. |
PoolProcessorList |
getPoolProcessorsByParentGenusType(Type poolProcessorGenusType)
Gets a
PoolProcessorList corresponding to the given
pool processor genus Type and include any additional
pool processor with genus types derived from the specified
Type. |
PoolProcessorList |
getPoolProcessorsByRecordType(Type poolProcessorRecordType)
Gets a
PoolProcessorList containing the given pool
processor record Type. |
void |
useActivePoolProcessorView()
Only active pool processor are returned by methods in this session.
|
void |
useAnyStatusPoolProcessorView()
All active and inactive pool processor are returned by methods in this
session.
|
void |
useComparativePoolProcessorView()
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 |
usePlenaryPoolProcessorView()
A complete view of the
PoolProcessor returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canLookupPoolProcessors()
PoolProcessors
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 useComparativePoolProcessorView()
mandatory
- This method is must be implemented. void usePlenaryPoolProcessorView()
PoolProcessor
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 useActivePoolProcessorView()
mandatory
- This method is must be implemented. void useAnyStatusPoolProcessorView()
mandatory
- This method is must be implemented. PoolProcessor getPoolProcessor(Id poolProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PoolProcessor
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
PoolProcessor
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a PoolProcessor
and retained for
compatibility.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned.poolProcessorId
- Id
of the PoolProcessor
NotFoundException
- poolProcessorId
not
foundNullArgumentException
- poolProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. PoolProcessorList getPoolProcessorsByIds(IdList poolProcessorIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
PoolProcessorList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
pool processor 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 PoolProcessors
may be omitted from the
list and may present the elements in any order including returning a
unique set.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned.poolProcessorIds
- the list of Ids
to retrieve PoolProcessor
listNotFoundException
- an Id
was not foundNullArgumentException
- poolProcessorIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolProcessorList getPoolProcessorsByGenusType(Type poolProcessorGenusType) throws OperationFailedException, PermissionDeniedException
PoolProcessorList
corresponding to the given
pool processor genus Type
which does not include pool
processor of genus types derived from the specified Type.
In plenary mode, the returned list contains all known
pool processor or an error results. Otherwise, the returned list may
contain only those pool processor that are accessible through this
session.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned.poolProcessorGenusType
- a pool processor genus type PoolProcessor
listNullArgumentException
- poolProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolProcessorList getPoolProcessorsByParentGenusType(Type poolProcessorGenusType) throws OperationFailedException, PermissionDeniedException
PoolProcessorList
corresponding to the given
pool processor genus Type
and include any additional
pool processor with genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
pool processor or an error results. Otherwise, the returned list may
contain only those pool processor that are accessible through this
session.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned.poolProcessorGenusType
- a pool processor genus type PoolProcessor
listNullArgumentException
- poolProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolProcessorList getPoolProcessorsByRecordType(Type poolProcessorRecordType) throws OperationFailedException, PermissionDeniedException
PoolProcessorList
containing the given pool
processor record Type.
In plenary mode, the returned list contains all known
pool processor or an error results. Otherwise, the returned list may
contain only those pool processor that are accessible through this
session.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned.poolProcessorRecordType
- a pool processor record type PoolProcessor
listNullArgumentException
- poolProcessorRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolProcessorList getPoolProcessors() throws OperationFailedException, PermissionDeniedException
PoolProcessors.
In plenary mode, the returned list contains all known pool processor
or an error results. Otherwise, the returned list may contain only
those pool processor that are accessible through this session.
In active mode, pool processor are returned that are currently active.
In any status mode, active and inactive pool processor are returned. PoolProcessor
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.