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

This session manages queries and sequencing to create "smart" dynamic catalogs. A ResourceRelationshipQuery can be retrieved from this session and mapped to this Bin to create a virtual collection of ResourceRelationships. The resource relationships may be sequenced using the ResourceRelationshipSearchOrder 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 ResourceRelationshipQueryInspector. The query may be modified by converting the inspector back to a ResourceRelationshipQuery.

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

Gets a resource relationship query.

Returnosid.resource.ResourceRelationshipQuery the resource relationship query
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipSearchOrder
Description

Gets a resource relationship search order.

Returnosid.resource.ResourceRelationshipSearchOrder the resource relationship search order
Compliancemandatory This method must be implemented.
MethodapplyResourceRelationshipQuery
Description

Applies a resource relationship query to this bin.

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

Gets a resource relationship query inspector for this bin.

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

Applies a resource relationship search order to this bin.

Parametersosid.resource.ResourceRelationshipSearchOrderresourceRelationshipSearchOrder the resource relationship search order
ErrorsNULL_ARGUMENT resourceRelationshipSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED resourceRelationshipSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipQueryFromInspector
Description

Gets a resource relationship query from an inspector.

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