OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.rules.JobConstrainerSmartFoundrySession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic foundries. A JobConstrainerQuery can be retrieved from this session and mapped to this Foundry to create a virtual collection of job constrainers. The job constrainer may be sequenced using the JobConstrainerSearchOrder from this session.

This Foundry has a default query that matches any job constrainer and a default search order that specifies no sequencing. The queries may be examined using a JobConstrainerQueryInspector. The query may be modified by converting the inspector back to a JobConstrainerQuery.

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.
MethodcanManageSmartFoundries
Description

Tests if this user can manage smart foundries. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart foundry management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerQuery
Description

Gets a job constrainer query.

Returnosid.resourcing.rules.JobConstrainerQuerythe job constrainer query
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerSearchOrder
Description

Gets a job constrainer search order.

Returnosid.resourcing.rules.JobConstrainerSearchOrderthe job constrainer search order
CompliancemandatoryThis method must be implemented.
MethodapplyJobConstrainerQuery
Description

Applies a job constrainer query to this foundry.

Parametersosid.resourcing.rules.JobConstrainerQueryjobConstrainerQuerythe job constrainer query
ErrorsNULL_ARGUMENT jobConstrainerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED jobConstrainerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectJobConstrainerQuery
Description

Gets a job constrainer query inspector for this foundry.

Returnosid.resourcing.rules.JobConstrainerQueryInspectorthe job constrainer query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyJobConstrainerSequencing
Description

Applies a job constrainer search order to this foundry.

Parametersosid.resourcing.rules.JobConstrainerSearchOrderjobConstrainerSearchOrderthe job constrainer search order
ErrorsNULL_ARGUMENT jobConstrainerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED jobConstrainerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerQueryFromInspector
Description

Gets a job constrainer query from an inspector.

Parametersosid.resourcing.rules.JobConstrainerQueryInspectorjobConstrainerQueryInspectora job constrainer query inspector
Returnosid.resourcing.rules.JobConstrainerQuerythe job constrainer query
ErrorsNULL_ARGUMENT jobConstrainerQueryInspector is null
UNSUPPORTED jobConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.