OSID Logo
OSID Specifications
resource demographic package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.demographic.DemographicEnablerQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching among DemographicEnabler objects. The search query is constructed using the DemographicEnablerQuery.

This session defines views that offer differing behaviors for searching.

  • federated bin view: searches include demographic enablers in bins of which this bin is an ancestor in the bin hierarchy
  • isolated bin view: searches are restricted to demographic enablers in this bin

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

MethodgetBinId
Description

Gets the Bin Id associated with this session.

Returnosid.id.Idthe Bin Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBin
Description

Gets the Bin associated with this session.

Returnosid.resource.Binthe bin
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSearchDemographicEnablers
Description

Tests if this user can perform DemographicEnabler 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
CompliancemandatoryThis method must be implemented.
MethoduseFederatedBinView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedBinView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetDemographicEnablerQuery
Description

Gets a demographic enabler query.

Returnosid.resource.demographic.DemographicEnablerQuerythe demographic enabler query
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablersByQuery
Description

Gets a list of DemographicEnablers matching the given demographic enabler query.

Parametersosid.resource.demographic.DemographicEnablerQuerydemographicEnablerQuerythe demographic enabler query
Returnosid.resource.demographic.DemographicEnablerListthe returned DemographicEnablerList
ErrorsNULL_ARGUMENT demographicEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED demographicEnablerQuery is not of this service
CompliancemandatoryThis method must be implemented.