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

This session creates and removes job processor enablers. The data for create and update is provided via the JobProcessorEnablerForm.

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

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

Returnboolean false if JobProcessorEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateJobProcessorEnablerWithRecordTypes
Description

Tests if this user can create a single JobProcessorEnabler using the desired record types. While ResourcingRulesManager.getJobProcessorEnablerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific JobProcessorEnabler. Providing an empty array tests if a JobProcessorEnabler can be created with no records.

Parametersosid.type.Type[]jobProcessorEnablerRecordTypesarray of job processor enabler record types
Returnboolean true if JobProcessorEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT jobProcessorEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetJobProcessorEnablerFormForCreate
Description

Gets the job processor enabler form for creating new job processor enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]jobProcessorEnablerRecordTypesarray of job processor enabler record types
Returnosid.resourcing.rules.JobProcessorEnablerFormthe job processor enabler form
ErrorsNULL_ARGUMENT jobProcessorEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form with requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateJobProcessorEnabler
Description

Creates a new JobProcessorEnabler.

Parametersosid.resourcing.rules.JobProcessorEnablerFormjobProcessorEnablerFormthe form for this JobProcessorEnabler
Returnosid.resourcing.rules.JobProcessorEnablerthe new JobProcessorEnabler
ErrorsILLEGAL_STATE jobProcessorEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT jobProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED jobProcessorEnablerForm did not originate from getJobProcessorEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateJobProcessorEnablers
Description

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

Returnboolean false if JobProcessorEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetJobProcessorEnablerFormForUpdate
Description

Gets the job processor enabler form for updating an existing job processor enabler. A new job processor enabler form should be requested for each update transaction.

Parametersosid.id.IdjobProcessorEnablerIdthe Id of the JobProcessorEnabler
Returnosid.resourcing.rules.JobProcessorEnablerFormthe job processor enabler form
ErrorsNOT_FOUND jobProcessorEnablerId is not found
NULL_ARGUMENT jobProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateJobProcessorEnabler
Description

Updates an existing job processor enabler.

Parametersosid.resourcing.rules.JobProcessorEnablerFormjobProcessorEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE jobProcessorEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT jobProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED jobProcessorEnablerForm did not originate from getJobProcessorEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteJobProcessorEnablers
Description

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

Returnboolean false if JobProcessorEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteJobProcessorEnabler
Description

Deletes a JobProcessorEnabler.

Parametersosid.id.IdjobProcessorEnablerIdthe Id of the JobProcessorEnabler to remove
ErrorsNOT_FOUND jobProcessorEnablerId not found
NULL_ARGUMENT jobProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageJobProcessorEnablerAliases
Description

Tests if this user can manage Id aliases for job processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if JobProcessorEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasJobProcessorEnabler
Description

Adds an Id to a JobProcessorEnabler for the purpose of creating compatibility. The primary Id of the JobProcessorEnabler is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another job processor enabler. it is reassigned to the given job processor enabler Id.

Parametersosid.id.IdjobProcessorEnablerIdthe Id of a JobProcessorEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND jobProcessorEnablerId not found
NULL_ARGUMENT jobProcessorEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.