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

This session provides methods to retrieve Resource to Bin mappings. A Resource may appear in multiple Bins. Each Bin may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethoduseComparativeBinView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryBinView
Description

A complete view of the Resource and Bin returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethodcanLookupResourceBinMappings
Description

Tests if this user can perform lookups of resource/bin mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceIdsByBin
Description

Gets the list of Resource Ids associated with a Bin.

Parametersosid.id.IdbinId Id of a Bin
Returnosid.id.IdListlist of related resource Ids
ErrorsNOT_FOUND binId is not found
NULL_ARGUMENT binId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResourcesByBin
Description

Gets the list of Resources associated with a Bin.

Parametersosid.id.IdbinId Id of a Bin
Returnosid.resource.ResourceListlist of related resources
ErrorsNOT_FOUND binId is not found
NULL_ARGUMENT binId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResourceIdsByBins
Description

Gets the list of Resource Ids corresponding to a list of Bin objects.

Parametersosid.id.IdListbinIdslist of bin Ids
Returnosid.id.IdListlist of resource Ids
ErrorsNULL_ARGUMENT binIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResourcesByBins
Description

Gets the list of Resources corresponding to a list of Bins.

Parametersosid.id.IdListbinIdslist of bin Ids
Returnosid.resource.ResourceListlist of resources
ErrorsNULL_ARGUMENT binIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetBinIdsByResource
Description

Gets the list of Bin Ids mapped to a Resource.

Parametersosid.id.IdresourceId Id of a Resource
Returnosid.id.IdListlist of bin Ids
ErrorsNOT_FOUND resourceId is not found
NULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetBinsByResource
Description

Gets the list of Bin objects mapped to a Resource.

Parametersosid.id.IdresourceId Id of a Resource
Returnosid.resource.BinListlist of bins
ErrorsNOT_FOUND resourceId is not found
NULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.