public interface PoolConstrainerEnablerLookupSession extends OsidSession
This session provides methods for retrieving
PoolConstrainerEnablers.
This session defines views that offer differing behaviors when retrieving multiple objects.
PoolConstrainerEnablers
with the PoolConstrainerEnablerAdminSession.
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 |
canLookupPoolConstrainerEnablers()
Tests if this user can perform
PoolConstrainerEnablers
lookups. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
PoolConstrainerEnabler |
getPoolConstrainerEnabler(Id poolConstrainerEnablerId)
Gets the
PoolConstrainerEnabler specified by its
Id. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablers()
Gets all
PoolConstrainerEnablers. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersByGenusType(Type poolConstrainerEnablerGenusType)
Gets a
PoolConstrainerEnablerList corresponding to the
given pool constrainer enabler genus Type which does
not include pool constrainer enablers of genus types derived from the
specified Type. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersByIds(IdList poolConstrainerEnablerIds)
Gets a
PoolConstrainerEnablerList corresponding to the
given IdList. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersByParentGenusType(Type poolConstrainerEnablerGenusType)
Gets a
PoolConstrainerEnablerList corresponding to the
given pool constrainer enabler genus Type and include
any additional pool constrainer enablers with genus types derived from
the specified Type. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersByRecordType(Type poolConstrainerEnablerRecordType)
Gets a
PoolConstrainerEnablerList containing the given
pool constrainer enabler record Type. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersOnDate(DateTime from,
DateTime to)
Gets a
PoolConstrainerEnablerList effective for the
entire the given date range inclusive but not confisned to the date
range for any agent. |
PoolConstrainerEnablerList |
getPoolConstrainerEnablersOnDateWithAgent(Id agentId,
DateTime from,
DateTime to)
Gets a
PoolConstrainerEnablerList effective for the
entire the given date range inclusive but not confisned to the date
range and evaluated against the given agent. |
void |
useActivePoolConstrainerEnablerView()
Only active pool constrainer enablers are returned by methods in this
session.
|
void |
useAnyStatusPoolConstrainerEnablerView()
All active and inactive pool constrainer enablers are returned by
methods in this session.
|
void |
useComparativePoolConstrainerEnablerView()
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 |
usePlenaryPoolConstrainerEnablerView()
A complete view of the
PoolConstrainerEnabler 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 canLookupPoolConstrainerEnablers()
PoolConstrainerEnablers
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 useComparativePoolConstrainerEnablerView()
mandatory
- This method is must be implemented. void usePlenaryPoolConstrainerEnablerView()
PoolConstrainerEnabler
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 useActivePoolConstrainerEnablerView()
mandatory
- This method is must be implemented. void useAnyStatusPoolConstrainerEnablerView()
mandatory
- This method is must be implemented. PoolConstrainerEnabler getPoolConstrainerEnabler(Id poolConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PoolConstrainerEnabler
specified by its
Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
PoolConstrainerEnabler
may have a different Id
than requested, such as the case where a duplicate Id
was assigned to a PoolConstrainerEnabler
and retained
for compatibility.
In active mode, pool constrainer enablers are returned that are
currently active. In any status mode, active and inactive pool
constrainer enablers are returned.poolConstrainerEnablerId
- Id
of the
PoolConstrainerEnabler
NotFoundException
- poolConstrainerEnablerId
not foundNullArgumentException
- poolConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersByIds(IdList poolConstrainerEnablerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
corresponding to the
given IdList.
In plenary mode, the returned list
contains all of the pool constrainer enablers 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
PoolConstrainerEnablers
may be omitted from the list and may
present the elements in any order including returning a unique set.poolConstrainerEnablerIds
- the list of Ids
to
retrieve PoolConstrainerEnabler
listNotFoundException
- an Id
was not foundNullArgumentException
-
poolConstrainerEnablerIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersByGenusType(Type poolConstrainerEnablerGenusType) throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
corresponding to the
given pool constrainer enabler genus Type
which does
not include pool constrainer enablers of genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
pool constrainer enablers or an error results. Otherwise, the returned
list may contain only those pool constrainer enablers that are
accessible through this session.
In active mode, pool constrainer enablers are returned that are
currently active. In any status mode, active and inactive pool
constrainer enablers are returned.poolConstrainerEnablerGenusType
- a pool constrainer enabler
genus type PoolConstrainerEnabler
listNullArgumentException
-
poolConstrainerEnablerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersByParentGenusType(Type poolConstrainerEnablerGenusType) throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
corresponding to the
given pool constrainer enabler genus Type
and include
any additional pool constrainer enablers with genus types derived from
the specified Type.
In plenary mode, the returned list contains all known
pool constrainer enablers or an error results. Otherwise, the returned
list may contain only those pool constrainer enablers that are
accessible through this session.
In active mode, pool constrainer enablers are returned that are
currently active. In any status mode, active and inactive pool
constrainer enablers are returned.poolConstrainerEnablerGenusType
- a pool constrainer enabler
genus type PoolConstrainerEnabler
listNullArgumentException
-
poolConstrainerEnablerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersByRecordType(Type poolConstrainerEnablerRecordType) throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
containing the given
pool constrainer enabler record Type.
In plenary mode, the returned list contains all known
pool constrainer enablers or an error results. Otherwise, the returned
list may contain only those pool constrainer enablers that are
accessible through this session.
In active mode, pool constrainer enablers are returned that are
currently active. In any status mode, active and inactive pool
constrainer enablers are returned.poolConstrainerEnablerRecordType
- a pool constrainer enabler
record type PoolConstrainerEnabler
listNullArgumentException
-
poolConstrainerEnablerRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
effective for the
entire the given date range inclusive but not confisned to the date
range for any agent.
In plenary mode, the returned list contains all known pool constrainer
enablers or an error results. Otherwise, the returned list may contain
only those pool constrainer enablers that are accessible through this
session.
In active mode, pool constrainer enablers are returned that are
currently active in addition to being effective for the given date
range. In any status mode, active and inactive pool constrainer
enablers are returned.from
- a start dateto
- an end date PoolConstrainerEnabler
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablersOnDateWithAgent(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablerList
effective for the
entire the given date range inclusive but not confisned to the date
range and evaluated against the given agent.
In plenary mode, the returned list contains all known pool constrainer
enablers or an error results. Otherwise, the returned list may contain
only those pool constrainer enablers that are accessible through this
session.
In active mode, pool constrainer enablers are returned that are
currently active in addition to being effective for the given date
range. In any status mode, active and inactive pool constrainer
enablers are returned.agentId
- an agent Idfrom
- a start dateto
- an end date PoolConstrainerEnabler
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- agentId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PoolConstrainerEnablerList getPoolConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
PoolConstrainerEnablers.
In plenary mode, the returned list contains all known pool constrainer
enablers or an error results. Otherwise, the returned list may contain
only those pool constrainer enablers that are accessible through this
session.
In active mode, pool constrainer enablers are returned that are
currently active. In any status mode, active and inactive pool
constrainer enablers are returned. PoolConstrainerEnabler
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.