OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.DemographicSmartBinSession
Implementsosid.OsidSession
Used Byosid.resource.demographic.ResourceDemographicManager
osid.resource.demographic.ResourceDemographicProxyManager
Description

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

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

Gets a demographic query.

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

Gets a demographic search order.

Returnosid.resource.demographic.DemographicSearchOrder the demographic search order
Compliancemandatory This method must be implemented.
MethodapplyDemographicQuery
Description

Applies a demographic query to this bin.

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

Gets a demographic query inspector for this bin.

Returnosid.resource.demographic.DemographicQueryInspector the demographic query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyDemographicSequencing
Description

Applies a demographic search order to this bin.

Parametersosid.resource.demographic.DemographicSearchOrderdemographicSearchOrder the demographic search order
ErrorsNULL_ARGUMENT demographicSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED demographicSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetDemographicQueryFromInspector
Description

Gets a demographic query from an inspector.

Parametersosid.resource.demographic.DemographicQueryInspectordemographicQueryInspector a demographic query inspector
Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsNULL_ARGUMENT demographicQueryInspector is null
UNSUPPORTED demographicQueryInspector is not of this service
Compliancemandatory This method must be implemented.