public interface DemographicQuerySession extends OsidSession
This session provides methods for searching among Demographic
objects. The search query is constructed using the
DemographicQuery.
This session defines views that offer differing behaviors for searching.
Demographic may have a query record indicated by their respective
record types. The query record is accessed via the
DemographicQuery.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchDemographics()
Tests if this user can perform
Demographic lookups. |
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
DemographicQuery |
getDemographicQuery()
Gets a demographic query.
|
DemographicList |
getDemographicsByQuery(DemographicQuery demographicQuery)
Gets a list of
Demographics matching the given
demographic query. |
void |
useFederatedBinView()
Federates the view for methods in this session.
|
void |
useIsolatedBinView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canSearchDemographics()
Demographic
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 not offer lookup operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useFederatedBinView()
mandatory
- This method is must be implemented. void useIsolatedBinView()
mandatory
- This method is must be implemented. DemographicQuery getDemographicQuery()
mandatory
- This method must be implemented. DemographicList getDemographicsByQuery(DemographicQuery demographicQuery) throws OperationFailedException, PermissionDeniedException
Demographics
matching the given
demographic query.demographicQuery
- the demographic query DemographicList
NullArgumentException
- demographicQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- demographicQuery
is not of this servicemandatory
- This method must be implemented.