OSID Logo
OSID Specifications
workflow rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.workflow.rules.StepProcessorEnablerAdminSession
Implementsosid.OsidSession
Description

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

MethodgetOfficeId
Description

Gets the Office Id associated with this session.

Returnosid.id.Idthe Office Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetOffice
Description

Gets the Office associated with this session.

Returnosid.workflow.Officethe office
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateStepProcessorEnabler
Description

Tests if this user can create step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a StepProcessorEnabler 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 StepProcessorEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateStepProcessorEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]stepProcessorEnablerRecordTypesarray of step processor enabler types
Returnboolean true if StepProcessorEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT stepProcessorEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetStepProcessorEnablerFormForCreate
Description

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

Parametersosid.type.Type[]stepProcessorEnablerRecordTypesarray of step processor enabler types
Returnosid.workflow.rules.StepProcessorEnablerFormthe step processor enabler form
ErrorsNULL_ARGUMENT stepProcessorEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateStepProcessorEnabler
Description

Creates a new StepProcessorEnabler.

Parametersosid.workflow.rules.StepProcessorEnablerFormstepProcessorEnablerFormthe form for this StepProcessorEnabler
Returnosid.workflow.rules.StepProcessorEnablerthe new StepProcessorEnabler
ErrorsILLEGAL_STATE stepProcessorEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT stepProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED stepProcessorEnablerForm did not originate from getStepProcessorEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateStepProcessorEnablers
Description

Tests if this user can update step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a StepProcessorEnabler 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 StepProcessorEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetStepProcessorEnablerFormForUpdate
Description

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

Parametersosid.id.IdstepProcessorEnablerIdthe Id of the StepProcessorEnabler
Returnosid.workflow.rules.StepProcessorEnablerFormthe step processor enabler form
ErrorsNOT_FOUND stepProcessorEnablerId is not found
NULL_ARGUMENT stepProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateStepProcessorEnabler
Description

Updates an existing step processor enabler.

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

Tests if this user can delete step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a StepProcessorEnabler 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 StepProcessorEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteStepProcessorEnabler
Description

Deletes a StepProcessorEnabler.

Parametersosid.id.IdstepProcessorEnablerIdthe Id of the StepProcessorEnabler to remove
ErrorsNOT_FOUND stepProcessorEnablerId not found
NULL_ARGUMENT stepProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageStepProcessorEnablerAliases
Description

Tests if this user can manage Id aliases for step 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 StepProcessorEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasStepProcessorEnabler
Description

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

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