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

This session provides methods to re-assign ResourceRelationships to Bins. A ResourceRelationship may map to multiple Bin objects and removing the last reference to a ResourceRelationship is the equivalent of deleting it. Each Bin may have its own authorizations governing who is allowed to operate on it.

Moving or adding a reference of a ResourceRelationship to another Bin is not a copy operation (eg: does not change its Id ).

MethodcanAssignResourceRelationships
Description

Tests if this user can alter resource relationship/bin mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignResourceRelationshipsToBin
Description

Tests if this user can alter resource relationship/bin mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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.

Parametersosid.id.IdbinIdthe Id of the Bin
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT binId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBinIds
Description

Gets a list of bins including and under the given bin node in which any resource relationship can be assigned.

Parametersosid.id.IdbinIdthe Id of the Bin
Returnosid.id.IdListlist of assignable bin Ids
ErrorsNULL_ARGUMENT binId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBinIdsForResourceRelationship
Description

Gets a list of bins including and under the given bin node in which a specific resource relationship can be assigned.

Parametersosid.id.IdbinIdthe Id of the Bin
osid.id.IdresourceRelationshipIdthe Id of the ResourceRelationship
Returnosid.id.IdListlist of assignable bin Ids
ErrorsNULL_ARGUMENT binId or resourceRelationshipId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignResourceRelationshipToBin
Description

Adds an existing ResourceRelationship to a Bin.

Parametersosid.id.IdresourceRelationshipIdthe Id of the ResourceRelationship
osid.id.IdbinIdthe Id of the Bin
ErrorsALREADY_EXISTS resourceRelationshipId is already assigned to binId
NOT_FOUND resourceRelationshipId or binId not found
NULL_ARGUMENT resourceRelationshipId or binId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignResourceRelationshipFromBin
Description

Removes a ResourceRelationship from a Bin.

Parametersosid.id.IdresourceRelationshipIdthe Id of the ResourceRelationship
osid.id.IdbinIdthe Id of the Bin
ErrorsNOT_FOUND resourceRelationshipId or binId not found or resourceRelationshipId not assigned to binId
NULL_ARGUMENT resourceRelationshipId or binId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.