OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Interfaceosid.resourcing.rules.JobConstrainerEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.resourcing.rules.ResourcingRulesManager
osid.resourcing.rules.ResourcingRulesProxyManager
Description

This session provides methods to apply JobConstrainerEnablers to JobConstrainers . A JobConstrainer with multiple JobConstrainerEnablers means any positive rule evaluation across the enablers result in an effective JobConstrainer .

MethodgetFoundryId
Description

Gets the Foundry Id associated with this session.

Returnosid.id.Idthe Foundry Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetFoundry
Description

Gets the Foundry associated with this session.

Returnosid.resourcing.Foundrythe foundry
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignJobConstrainerEnablers
Description

Tests if this user can alter job constrainer enabler/job constrainer 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 lookup operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignJobConstrainerEnablerToJobConstrainer
Description

Adds an existing JobConstrainerEnabler to a JobConstrainer .

Parametersosid.id.IdjobConstrainerEnablerIdthe Id of the JobConstrainerEnabler
osid.id.IdjobConstrainerIdthe Id of the JobConstrainer
ErrorsALREADY_EXISTSjobConstrainerEnablerId is already applied to jobConstrainerId
NOT_FOUNDjobConstrainerEnablerId or jobConstrainerId not found
NULL_ARGUMENTjobConstrainerEnablerId or jobConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignJobConstrainerEnablerFromJobConstrainer
Description

Removes a JobConstrainerEnabler from a JobConstrainer .

Parametersosid.id.IdjobConstrainerEnablerIdthe Id of the JobConstrainerEnabler
osid.id.IdjobConstrainerIdthe Id of the JobConstrainer
ErrorsNOT_FOUNDjobConstrainerEnablerId or jobConstrainerId not found or jobConstrainerEnablerId not applied to jobConstrainerId
NULL_ARGUMENTjobConstrainerEnablerId or jobConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceJobConstrainerEnablers
Description

Tests if this user can order JobConstrainerEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnbooleanfalse if JobConstrainerEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveJobConstrainerEnablerAhead
Description

Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler in front of a reference job constrainer enabler.

Parametersosid.id.IdjobConstrainerEnablerIdthe Id of a JobConstrainerEnabler
osid.id.IdjobConstrainerIdthe Id of a JobConstrainer
osid.id.IdreferenceIdthe reference job constrainer enabler Id
ErrorsNOT_FOUNDjobConstrainerEnablerId, jobConstrainenId , or referenceId not found or, jobConstrainerEnablerId or referenceId not related to jobConstrainerId
NULL_ARGUMENTjobConstrainerEnablerId, jobConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveJobConstrainerEnablerBehind
Description

Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler behind a reference job constrainer enabler.

Parametersosid.id.IdjobConstrainerEnablerIdthe Id of a JobConstrainerEnabler
osid.id.IdjobConstrainerIdthe Id of a JobConstrainer
osid.id.IdreferenceIdthe reference job constrainer enabler Id
ErrorsNOT_FOUNDjobConstrainerEnablerId, jobConstrainerId , or referenceId not found or, jobConstrainerEnablerId or referenceId not related to jobConstrainerId
NULL_ARGUMENTjobConstrainerEnablerId, jobConstrainerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderJobConstrainerEnablers
Description

Reorders a set of job constrainer enablers for a job constrainer.

Parametersosid.id.Id[]jobConstrainerEnablerIdsthe Ids for a set of JobConstrainerEnablers
osid.id.IdjobConstrainerIdthe Id of a JobConstrainer
ErrorsNOT_FOUNDjobConstrainerId not found or, a jobConstrainerEnablerId not related to jobConstrainerId
NULL_ARGUMENTjobConstrainerEnablerIds or jobConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.