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

This session manages queries and sequencing to create "smart" dynamic bins. A DemographicEnablerQuery can be retrieved from this session and mapped to this Bin to create a virtual collection of demographic enablers. The demographic enablers may be sequenced using the DemographicEnablerSearchOrder from this session.

This Bin has a default query that matches any demographic enabler and a default search order that specifies no sequencing. The queries may be examined using a DemographicEnablerQueryInspector. The query may be modified by converting the inspector back to a 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.
MethodcanManageSmartBins
Description

Tests if this user can manage smart bins. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart bin management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablerQuery
Description

Gets a demographic enabler query.

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

Gets a demographic enabler search order.

Returnosid.resource.demographic.DemographicEnablerSearchOrderthe demographic enabler search order
CompliancemandatoryThis method must be implemented.
MethodapplyDemographicEnablerQuery
Description

Applies a demographic enabler query to this bin.

Parametersosid.resource.demographic.DemographicEnablerQuerydemographicEnablerQuerythe demographic enabler query
ErrorsNULL_ARGUMENT demographicEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED demographicEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectDemographicEnablerQuery
Description

Gets a demographic enabler query inspector for this bin.

Returnosid.resource.demographic.DemographicEnablerQueryInspectorthe demographic enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyDemographicEnablerSequencing
Description

Applies a demographic enabler search order to this bin.

Parametersosid.resource.demographic.DemographicEnablerSearchOrderdemographicEnablerSearchOrderthe demographic enabler search order
ErrorsNULL_ARGUMENT demographicEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED demographicEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablerQueryFromInspector
Description

Gets a demographic enabler query from an inspector.

Parametersosid.resource.demographic.DemographicEnablerQueryInspectordemographicEnablerQueryInspectora demographic enabler query inspector
Returnosid.resource.demographic.DemographicEnablerQuerythe demographic enabler query
ErrorsNULL_ARGUMENT demographicEnablerQueryInspector is null
UNSUPPORTED demographicEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.