public interface DemographicEnablerLookupSession extends OsidSession
This session provides methods for retrieving
DemographicEnablers.
This session defines views that offer differing behaviors when retrieving multiple objects.
DemographicEnablers with the
DemographicEnablerAdminSession. 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 |
canLookupDemographicEnablers()
Tests if this user can perform
DemographicEnablers
lookups. |
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
DemographicEnabler |
getDemographicEnabler(Id demographicEnablerId)
Gets the
DemographicEnabler specified by its Id. |
DemographicEnablerList |
getDemographicEnablers()
Gets all
DemographicEnablers. |
DemographicEnablerList |
getDemographicEnablersByGenusType(Type demographicEnablerGenusType)
Gets a
DemographicEnablerList corresponding to the
given demographic enabler genus Type which does not
include demographic enablers of genus types derived from the specified
Type. |
DemographicEnablerList |
getDemographicEnablersByIds(IdList demographicEnablerIds)
Gets a
DemographicEnablerList corresponding to the
given IdList. |
DemographicEnablerList |
getDemographicEnablersByParentGenusType(Type demographicEnablerGenusType)
Gets a
DemographicEnablerList corresponding to the
given demographic enabler genus Type and include any
additional demographic enablers with genus types derived from the
specified Type. |
DemographicEnablerList |
getDemographicEnablersByRecordType(Type demographicEnablerRecordType)
Gets a
DemographicEnablerList containing the given
demographic enabler record Type. |
DemographicEnablerList |
getDemographicEnablersOnDate(DateTime from,
DateTime to)
Gets a
DemographicEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range for any agent. |
DemographicEnablerList |
getDemographicEnablersOnDateWithAgent(Id agentId,
DateTime from,
DateTime to)
Gets a
DemographicEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range and evaluated against the given agent. |
void |
useActiveDemographicEnablerView()
Only active demographic enablers are returned by methods in this
session.
|
void |
useAnyStatusDemographicEnablerView()
All active and inactive demographic enablers are returned by methods
in this session.
|
void |
useComparativeDemographicEnablerView()
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 |
useFederatedBinView()
Federates the view for methods in this session.
|
void |
useIsolatedBinView()
Isolates the view for methods in this session.
|
void |
usePlenaryDemographicEnablerView()
A complete view of the
DemographicEnabler returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinId()
Bin Id associated with this
session. Bin Id associated with this sessionmandatory - This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupDemographicEnablers()
DemographicEnablers
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 useComparativeDemographicEnablerView()
mandatory - This method is must be implemented. void usePlenaryDemographicEnablerView()
DemographicEnabler 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 useFederatedBinView()
mandatory - This method is must be implemented. void useIsolatedBinView()
mandatory - This method is must be implemented. void useActiveDemographicEnablerView()
mandatory - This method is must be implemented. void useAnyStatusDemographicEnablerView()
mandatory - This method is must be implemented. DemographicEnabler getDemographicEnabler(Id demographicEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DemographicEnabler specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
DemographicEnabler may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a DemographicEnabler and retained for
compatibility.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned.demographicEnablerId - Id of the
DemographicEnabler NotFoundException - demographicEnablerId
not foundNullArgumentException - demographicEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. DemographicEnablerList getDemographicEnablersByIds(IdList demographicEnablerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
DemographicEnablerList corresponding to the
given IdList.
In plenary mode, the returned list contains all of the
demographic 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 DemographicEnablers may be
omitted from the list and may present the elements in any order
including returning a unique set.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned.demographicEnablerIds - the list of Ids to
retrieve DemographicEnabler listNotFoundException - an Id was not foundNullArgumentException - demographicEnablerIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DemographicEnablerList getDemographicEnablersByGenusType(Type demographicEnablerGenusType) throws OperationFailedException, PermissionDeniedException
DemographicEnablerList corresponding to the
given demographic enabler genus Type which does not
include demographic enablers of genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
demographic enablers or an error results. Otherwise, the returned list
may contain only those demographic enablers that are accessible
through this session.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned.demographicEnablerGenusType - a demographic enabler genus type DemographicEnabler listNullArgumentException -
demographicEnablerGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DemographicEnablerList getDemographicEnablersByParentGenusType(Type demographicEnablerGenusType) throws OperationFailedException, PermissionDeniedException
DemographicEnablerList corresponding to the
given demographic enabler genus Type and include any
additional demographic enablers with genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
demographic enablers or an error results. Otherwise, the returned list
may contain only those demographic enablers that are accessible
through this session.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned.demographicEnablerGenusType - a demographic enabler genus type DemographicEnabler listNullArgumentException -
demographicEnablerGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DemographicEnablerList getDemographicEnablersByRecordType(Type demographicEnablerRecordType) throws OperationFailedException, PermissionDeniedException
DemographicEnablerList containing the given
demographic enabler record Type.
In plenary mode, the returned list contains all known
demographic enablers or an error results. Otherwise, the returned list
may contain only those demographic enablers that are accessible
through this session.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned.demographicEnablerRecordType - a demographic enabler record type DemographicEnabler listNullArgumentException -
demographicEnablerRecordType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DemographicEnablerList getDemographicEnablersOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
DemographicEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range for any agent.
In plenary mode, the returned list contains all known
demographic enablers or an error results. Otherwise, the returned list
may contain only those demographic enablers that are accessible
through this session.
In active mode, demographic enablers are returned that are currently
active in addition to being effective during the given date range. In
any status mode, active and inactive demographic enablers are
returned.from - a start dateto - an end date DemographicEnabler listInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DemographicEnablerList getDemographicEnablersOnDateWithAgent(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
DemographicEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range and evaluated against the given agent.
In plenary mode, the returned list contains all known
demographic enablers or an error results. Otherwise, the returned list
may contain only those demographic enablers that are accessible
through this session.
In active mode, demographic enablers are returned that are currently
active in addition to being effective during the given date range. In
any status mode, active and inactive demographic enablers are
returned.agentId - an agent Id from - a start dateto - an end date DemographicEnabler 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. DemographicEnablerList getDemographicEnablers() throws OperationFailedException, PermissionDeniedException
DemographicEnablers.
In plenary mode, the returned list contains all known demographic
enablers or an error results. Otherwise, the returned list may contain
only those demographic enablers that are accessible through this
session.
In active mode, authorization enablers are returned that are currently
active. In any status mode, active and inactive authorization enablers
are returned. DemographicEnabler listOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.