OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.ResourceSmartBinSession
Implementsosid.OsidSession
Used Byosid.resource.ResourceManager
osid.resource.ResourceProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A ResourceQuery can be retrieved from this session and mapped to this Bin to create a virtual collection of Resources. The resources may be sequenced using the ResourceSearchOrder from this session.

This Bin has a default query that matches any resource and a default search order that specifies no sequencing. The queries may be examined using a ResourceQueryInspector. The query may be modified by converting the inspector back to a ResourceQuery.

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 associated with this session
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.
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 this bin.

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

Gets a resource query inspector for this bin.

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

Applies a resource search order to this bin.

Parametersosid.resource.ResourceSearchOrderresourceSearchOrder the resource search order
ErrorsNULL_ARGUMENT resourceSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED resourceSearchOrder not of this service
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.