OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.DemographicQuerySession
Implementsosid.OsidSession
Implemented Byosid.resource.demographic.DemographicSearchSession
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 DemographicQuery.

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

Demographic may have a query record indicated by their respective record types. The query record is accessed via the DemographicQuery.

MethodgetBinId
Description

Gets the Bin Id associated with this session.

Returnosid.id.Id the Bin Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetBin
Description

Gets the Bin associated with this session.

Returnosid.resource.Bin the bin
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchDemographics
Description

Tests if this user can perform 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.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedBinView
Description

Federates the view for methods in this session. A federated view will include demographic in bins which are children of this broker in the bin hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedBinView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this bin only.

Compliancemandatory This method is must be implemented.
MethodgetDemographicQuery
Description

Gets a demographic query.

Returnosid.resource.demographic.DemographicQuery the demographic query
Compliancemandatory This method must be implemented.
MethodgetDemographicsByQuery
Description

Gets a list of Demographics matching the given demographic query.

Parametersosid.resource.demographic.DemographicQuerydemographicQuery the demographic query
Returnosid.resource.demographic.DemographicList the returned DemographicList
ErrorsNULL_ARGUMENT demographicQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED demographicQuery is not of this service
Compliancemandatory This method must be implemented.