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

This session provides methods to re-assign Resources to group Resources.

MethodgetBinId
Description

Gets the Bin Id associated with this session.

Returnosid.id.Idthe Bin Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBin
Description

Gets the Bin associated with this session.

Returnosid.resource.Binthe Bin associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignResources
Description

Tests if this user can change resource group mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not wish to offer assignment operations.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignResourcesToGroup
Description

Tests if this user can assign members to the given group. 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 assignment operations to unauthorized users.

Parametersosid.id.IdresourceIdthe Id of the Resource
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodassignResourceToGroup
Description

Adds an existing Resource to a Resource group.

Parametersosid.id.IdresourceIdthe Id of the Resource
osid.id.IdresourceGroupIdthe Id of the Resource group
ErrorsALREADY_EXISTS resourceId is already part of resourceGroupId
NOT_FOUND resourceId or resourceGroupId not found
NULL_ARGUMENT resourceId or resourceGroupId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignResourceFromGroup
Description

Removes a Resource from a Resource group.

Parametersosid.id.IdresourceIdthe Id of the Resource
osid.id.IdresourceGroupIdthe Id of the Repository
ErrorsNOT_FOUND resourceId or resourceGroupId not found or resourceId not part of resourceGroupId
NULL_ARGUMENT resourceId or resourceGroupId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.