OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.Demographic
Implementsosid.OsidRule
Used Byosid.resource.demographic.DemographicAdminSession
osid.resource.demographic.DemographicList
osid.resource.demographic.DemographicLookupSession
Description

A Demographic is an OsidRule for building demographics of Resources. A demographic is the resource query plus the included demographics plus the intersecting demographics plus the included resources minus the exempted demographics minus the excluded resources. Demographic genus type may be used to provide alternate equations.

MethodgetIncludedDemographicIds
Description

Gets a list of Demographic Ids whose members are added to this demographic. The union of these demographics is added to this demographic.

Returnosid.id.IdList the demographic Ids
Compliancemandatory This method must be implemented.
MethodgetIncludedDemographics
Description

Gets a list of Demographics whose members are added to this demographic. The union of these demographics is added to this demographic.

Returnosid.resource.demographic.DemographicList the demographics
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetIncludedIntersectingDemographicIds
Description

Gets a list of Demographic Ids whose intersection is added to this demographic. The intersection of these demographics is added to this demographic.

Returnosid.id.IdList the intersecting demographic Ids
Compliancemandatory This method must be implemented.
MethodgetIncludedIntersectingDemographics
Description

Gets a list of Demographics whose intersection is added to this demographic. The intersection of these demographics is added to this demographic.

Returnosid.resource.demographic.DemographicList the intersecting demographics
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetIncludedExclusiveDemographicIds
Description

Gets a list of Demographic Ids whose non-members are added to this demographic.

Returnosid.id.IdList the exclusive demographic Ids
Compliancemandatory This method must be implemented.
MethodgetIncludedExclusiveDemographics
Description

Gets a list of Demographics whose non-members are added to this demographic.

Returnosid.resource.demographic.DemographicList the exclusive demographics
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetExcludedDemographicIds
Description

Gets a list of Demographic Ids whose members are subtracted from in this demographic.

Returnosid.id.IdList the excluded demographic Ids
Compliancemandatory This method must be implemented.
MethodgetExcludedDemographics
Description

Gets a list of Demographics whose members subtracted from this demographic.

Returnosid.resource.demographic.DemographicList the excluded demographics
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetIncludedResourceIds
Description

Gets a list of individual Resource Ids to be added to this demographic.

Returnosid.id.IdList the included resource Ids
Compliancemandatory This method must be implemented.
MethodgetIncludedResources
Description

Gets a list of individual Resources to be added to this demographic.

Returnosid.resource.ResourceList the included resources
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetExcludedResourceIds
Description

Gets a list of Resource Ids to be subtracted from this demographic.

Returnosid.id.IdList the excluded resource Ids
Compliancemandatory This method must be implemented.
MethodgetExcludedResources
Description

Gets a list of Resources to be subtracted from this demographic.

Returnosid.resource.ResourceList the exempted resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetDemographicRecord
Description

Gets the demographic record corresponding to the given Demographic record Type. This method is used to retrieve an object implementing the requested record. The demographicRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(demographicRecordType) is true.

Parametersosid.type.TypedemographicRecordType the type of demographic record to retrieve
Returnosid.resource.demographic.records.DemographicRecord the demographic record
ErrorsNULL_ARGUMENT demographicRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(demographicRecordType) is false
Compliancemandatory This method must be implemented.