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

This session provides methods to re-assign Efforts to Foundry mappings. An Effort may appear in multiple Foundry objects and removing the last reference to an Effort 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 an Effort to another Foundry is not a copy operation (eg: does not change its Id ).

MethodcanAssignEfforts
Description

Tests if this user can alter effort/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.

Returnbooleanfalse if resourcing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignEffortsToFoundry
Description

Tests if this user can alter effort/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.IdfoundryIdthe Id of the Foundry
Returnbooleanfalse if resourcing is not authorized, true otherwise
ErrorsNULL_ARGUMENTfoundryId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableFoundryIds
Description

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

Parametersosid.id.IdfoundryIdthe Id of the Foundry
Returnosid.id.IdListlist of assignable foundry Ids
ErrorsNULL_ARGUMENTfoundryId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableFoundryIdsForEffort
Description

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

Parametersosid.id.IdfoundryIdthe Id of the Foundry
osid.id.IdeffortIdthe Id of the Effort
Returnosid.id.IdListlist of assignable foundry Ids
ErrorsNULL_ARGUMENTfoundryId or effortId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignEffortToFoundry
Description

Adds an existing Effort to a Foundry .

Parametersosid.id.IdeffortIdthe Id of the Effort
osid.id.IdfoundryIdthe Id of the Foundry
ErrorsNOT_FOUNDeffortId or foundryId not found
NULL_ARGUMENTeffortId or foundryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignEffortFromFoundry
Description

Removes an Effort from a Foundry .

Parametersosid.id.IdeffortIdthe Id of the Effort
osid.id.IdfoundryIdthe Id of the Foundry
ErrorsNOT_FOUNDeffortId or foundryId not found
NULL_ARGUMENTeffortId or foundryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignEffortToFoundry
Description

Moves an Effort from one Foundry to another. Mappings to other Foundries are unaffected.

Parametersosid.id.IdeffortIdthe Id of the Effort
osid.id.IdfromFoundryIdthe Id of the current Foundry
osid.id.IdtoFoundryIdthe Id of the destination Foundry
ErrorsALREADY_EXISTSeffortId already assigned to toFoundryId
NOT_FOUNDeffortId, fromFoundryId , or toFoundryId not found or effortId not mapped to fromFoundryId
NULL_ARGUMENTeffortId, fromFoundryId , or toFoundryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.