OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.DemographicSearchSession
Implementsosid.resource.demographic.DemographicQuerySession
Used Byosid.resource.demographic.ResourceDemographicManager
osid.resource.demographic.ResourceDemographicProxyManager
Description

This session provides methods for searching among Demographics. The search query is constructed using the DemographicyQuery.

getDemographicsByQuery() is the basic search method and returns a list of Demographics. A more advanced search may be performed with getDemographicsBySearch().It accepts a DemographicSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as bin. getDemographicsBySearch() returns a DemographicSearchResults that can be used to access the resulting DemographicList or be used to perform a search within the result set through DemographicSearch.

This session defines views that offer differing behaviors for searching.

  • federated bin view: searches include demographic in bins of which this bin is an ancestor in the bin hierarchy
  • isolated bin view: searches are restricted to demographic in this bin
Demographics may have a query record indicated by their respective record types. The query record is accessed via the DemographicQuery.
MethodgetDemographicSearch
Description

Gets a demographic search.

Returnosid.resource.demographic.DemographicSearch the demographic search
Compliancemandatory This method must be implemented.
MethodgetDemographicSearchOrder
Description

Gets a demographic search order. The DemographicSearchOrder is supplied to a DemographicSearch to specify the ordering of results.

Returnosid.resource.demographic.DemographicSearchOrder the demographic search order
Compliancemandatory This method must be implemented.
MethodgetDemographicsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.resource.demographic.DemographicQuerydemographicQuery the demographic query
osid.resource.demographic.DemographicSearchdemographicSearch the demographic search
Returnosid.resource.demographic.DemographicSearchResults the returned search results
ErrorsNULL_ARGUMENT demographicQuery or demographicSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED demographicQuery or demographicSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDemographicQueryFromInspector
Description

Gets a demographic query from an inspector. The inspector is available from a DemographicSearchResults.

Parametersosid.resource.demographic.DemographicQueryInspectordemographicQueryInspector a demographic query inspector
Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsNULL_ARGUMENT demographicQueryInspector is null
UNSUPPORTED demographicQueryInspector is not of this service
Compliancemandatory This method must be implemented.