OSID Logo
OSID Specifications
resourcing package
Version 3.1.0
Interfaceosid.resourcing.CompetencyFoundryAssignmentSession
Implementsosid.OsidSession
Used Byosid.resourcing.ResourcingManager
osid.resourcing.ResourcingProxyManager
Description

This session provides methods to re-assign Competency to Foundry mappings. A Competency may appear in multiple Foundry objects and removing the last reference to a Competency is the equivalent of deleting it. Each Foundry may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Competency to another Foundry is not a copy operation (eg: does not change its Id).

MethodcanAssignCompetencies
Description

Tests if this user can alter competency/foundry 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 assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignCompetenciesToFoundry
Description

Tests if this user can alter competency/foundry 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 assignment operations to unauthorized users.

Parametersosid.id.IdfoundryId the Id of the Foundry
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT foundryId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableFoundryIds
Description

Gets a list of foundries including and under the given foundry node in which any competency can be assigned.

Parametersosid.id.IdfoundryId the Id of the Foundry
Returnosid.id.IdList list of assignable foundry Ids
ErrorsNULL_ARGUMENT foundryId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableFoundryIdsForCompetency
Description

Gets a list of foundries including and under the given foundry node in which a specific competency can be assigned.

Parametersosid.id.IdfoundryId the Id of the Foundry
osid.id.IdcompetencyId the Id of the Competency
Returnosid.id.IdList list of assignable foundry Ids
ErrorsNULL_ARGUMENT foundryId or competencyId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignCompetencyToFoundry
Description

Adds an existing Competency to a Foundry.

Parametersosid.id.IdcompetencyId the Id of the Competency
osid.id.IdfoundryId the Id of the Foundry
ErrorsNOT_FOUND competencyId or foundryId not found
NULL_ARGUMENT competencyId or foundryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignCompetencyFromFoundry
Description

Removes a Competency from a Foundry.

Parametersosid.id.IdcompetencyId the Id of the Competency
osid.id.IdfoundryId the Id of the Foundry
ErrorsNOT_FOUND competencyId or foundryId not found
NULL_ARGUMENT competencyId or foundryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignCompetencyToFoundry
Description

Moves a Competency from one Foundry to another. Mappings to other Foundries are unaffected.

Parametersosid.id.IdcompetencyId the Id of the Competency
osid.id.IdfromFoundryId the Id of the current Foundry
osid.id.IdtoFoundryId the Id of the destination Foundry
ErrorsALREADY_EXISTS competencyId already assigned to toFoundryId
NOT_FOUND competencyId, fromFoundryId, or toFoundryId not found or competencyId not mapped to fromFoundryId
NULL_ARGUMENT competencyId, fromFoundryId, or toFoundryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.