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

This session provides methods to query if a Resource is a member of another Resource. Resources may represent groups of Resources or generated Demographics of Resources.

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

Tests if this user can perform membership queries. 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 membership queries are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedBinView
Description

Federates the view for methods in this session. A federated view will include resources in bins which are children of this bin in the bin hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedBinView
Description

Isolates the view for methods in this session. An isolated view restricts resources to this bin only.

Compliancemandatory This method is must be implemented.
MethodisMember
Description

Tests if a Resource is a member of another Resource.

Parametersosid.id.IdmemberResourceId Id of the Resource member
osid.id.IdresourceId Id of the Resource representing the group or demographic
Returnboolean true if memberResourceId is a member of the resourceId, false otherwise
ErrorsNULL_ARGUMENT memberResourceId or resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.