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

This session provides methods to retrieve ResourceRelationship 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethodcanLookupResourceRelationshipBinMappings
Description

Tests if this user can perform lookups of resource relationship/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
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipIdsByBin
Description

Gets the list of ResourceRelationship Ids associated with a Bin.

Parametersosid.id.IdbinId Id of a Bin
Returnosid.id.IdList list of related resource relationship Ids
ErrorsNOT_FOUND binId is not found
NULL_ARGUMENT binId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipsByBin
Description

Gets the list of ResourceRelationships associated with a Bin.

Parametersosid.id.IdbinId Id of a Bin
Returnosid.resource.ResourceRelationshipList list of related resource relationship
ErrorsNOT_FOUND binId is not found
NULL_ARGUMENT binId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipsIdsByBins
Description

Gets the list of ResourceRelationshipIds corresponding to a list of Bin objects.

Parametersosid.id.IdListbinIds list of bin Ids
Returnosid.id.IdList list of resource relationship Ids
ErrorsNULL_ARGUMENT binIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipsByBins
Description

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

Parametersosid.id.IdListbinIds list of bin Ids
Returnosid.resource.ResourceRelationshipList list of resource relationships
ErrorsNULL_ARGUMENT binIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetBinIdsByResourceRelationship
Description

Gets the list of Bin Ids mapped to a ResourceRelationship.

Parametersosid.id.IdresourceRelationshipId Id of a ResourceRelationship
Returnosid.id.IdList list of bin Ids
ErrorsNOT_FOUND resourceRelationshipId is not found
NULL_ARGUMENT resourceRelationshipId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetBinsByResourceRelationship
Description

Gets the list of Bin objects mapped to a ResourceRelationship.

Parametersosid.id.IdresourceRelationshipId Id of a ResourceRelationship
Returnosid.resource.BinList list of bins
ErrorsNOT_FOUND resourceRelationshipId is not found
NULL_ARGUMENT resourceRelationshipId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.