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

This session provides methods to re-assign Resources to group 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.
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
Compliancemandatory This 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.IdresourceId the Id of the Resource
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodassignResourceToGroup
Description

Adds an existing Resource to a Resource group.

Parametersosid.id.IdresourceId the Id of the Resource
osid.id.IdresourceGroupId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignResourceFromGroup
Description

Removes a Resource from a Resource group.

Parametersosid.id.IdresourceId the Id of the Resource
osid.id.IdresourceGroupId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.