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

This session applies resource search queries and search orders to Demographics. Applying a search query to a demographic adds the resources resulting from that query to the demographic.

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.
MethodcanBuildDemographics
Description

Tests if this user can build demographics. 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.
MethodgetResourceQuery
Description

Gets a resource query.

Returnosid.resource.ResourceQuery the resource query
Compliancemandatory This method must be implemented.
MethodgetResourceSearchOrder
Description

Gets a resource search order.

Returnosid.resource.ResourceSearchOrder the resource search order
Compliancemandatory This method must be implemented.
MethodapplyResourceQuery
Description

Applies a resource query to a demographic. If a query is already applied, it is replaced with the new one.

Parametersosid.id.IddemographicId a demographic Id
osid.resource.ResourceQueryresourceQuery the resource query
ErrorsNOT_FOUND demographicId is not found
NULL_ARGUMENT demographicId or resourceQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED resourceQuery did not originate from getResourceQuery()
Compliancemandatory This method must be implemented.
MethodinspectResourceQuery
Description

Gets a resource query inspector for a demographic.

Parametersosid.id.IddemographicId a demographic Id
Returnosid.resource.ResourceQueryInspector the demographic query inspector
ErrorsNOT_FOUND demographicId is not found
NULL_ARGUMENT demographicId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodclearResourceQuery
Description

Clears the resource query effectively replacing it with a wildcard query.

Parametersosid.id.IddemographicId a demographic Id
ErrorsNOT_FOUND demographicId is not found
NULL_ARGUMENT demographicId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyResourceSequencing
Description

Applies a demographic search order to this bin.

Parametersosid.id.IddemographicId a demographic Id
osid.resource.ResourceSearchOrderresourceSearchOrder the resource search order
ErrorsNOT_FOUND demographicId is not found
NULL_ARGUMENT demographicId or resourceSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED resourceSearchOrder did not originate from getResourceSearchOrder()
Compliancemandatory This method must be implemented.
MethodclearResourceSequencing
Description

Clears the resource sequencing.

Parametersosid.id.IddemographicId a demographic Id
ErrorsNOT_FOUND demographicId is not found
NULL_ARGUMENT demographicId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodgetResourceQueryFromInspector
Description

Gets a resource query from an inspector.

Parametersosid.resource.ResourceQueryInspectorresourceQueryInspector a resource query inspector
Returnosid.resource.ResourceQuery the resource query
ErrorsNULL_ARGUMENT resourceQueryInspector is null
UNSUPPORTED resourceQueryInspector is not of this service
Compliancemandatory This method must be implemented.