OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.DemographicEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.resource.demographic.DemographicEnablerQuerySession
osid.resource.demographic.DemographicEnablerSearchSession
osid.resource.demographic.DemographicEnablerSmartBinSession
Description

This is the query for searching demographic enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchRuledDemographicId
Description

Matches enablers mapped to the demographic.

Parametersosid.id.IddemographicId the demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
Compliancemandatory This method must be implemented.
MethodclearRuledDemographicIdTerms
Description

Clears the demographic Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledDemographicQuery
Description

Tests if a DemographicQuery is available.

Returnboolean true if a demographic query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledDemographicQuery
Description

Gets the query for a demographic. Multiple retrievals produce a nested OR term.

Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsUNIMPLEMENTED supportsRuledDemographicQuery() is false
Complianceoptional This method must be implemented if supportsRuledDemographicQuery() is true.
MethodmatchAnyRuledDemographic
Description

Matches enablers mapped to any demographic.

Parametersbooleanmatch true for enablers mapped to any demographic, false to match enablers mapped to no demographics
Compliancemandatory This method must be implemented.
MethodclearRuledDemographicTerms
Description

Clears the demographic query terms.

Compliancemandatory This method must be implemented.
MethodmatchBinId
Description

Matches enablers mapped to the bin.

Parametersosid.id.IdbinId the bin Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT binId is null
Compliancemandatory This method must be implemented.
MethodclearBinIdTerms
Description

Clears the bin Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsBinQuery
Description

Tests if a BinQuery is available.

Returnboolean true if a bin query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetBinQuery
Description

Gets the query for a bin. Multiple retrievals produce a nested OR term.

Returnosid.resource.BinQuery the bin query
ErrorsUNIMPLEMENTED supportsBinQuery() is false
Complianceoptional This method must be implemented if supportsBinQuery() is true.
MethodclearBinTerms
Description

Clears the bin query terms.

Compliancemandatory This method must be implemented.
MethodgetDemographicEnablerQueryRecord
Description

Gets the demographic enabler query record corresponding to the given DemographicEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypedemographicEnablerRecordType a demographic enabler record type
Returnosid.resource.demographic.records.DemographicEnablerQueryRecord the demographic enabler query record
ErrorsNULL_ARGUMENT demographicEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(demographicEnablerRecordType) is false
Compliancemandatory This method must be implemented.