OSID Logo
OSID Specifications
workflow rules package
Version 3.1.0
Interfaceosid.workflow.rules.StepConstrainerAdminSession
Implementsosid.OsidSession
Used Byosid.workflow.rules.WorkflowRulesManager
osid.workflow.rules.WorkflowRulesProxyManager
Description

This session creates and removes step constrainers. The data for create and update is provided via the StepConstrainerForm.

MethodgetOfficeId
Description

Gets the Office Id associated with this session.

Returnosid.id.Id the Office Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOffice
Description

Gets the Office associated with this session.

Returnosid.workflow.Office the office
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateStepConstrainer
Description

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

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

Parametersosid.type.Type[]stepConstrainerRecordTypes array of step constrainer record types
Returnboolean true if StepConstrainer creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT stepConstrainerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetStepConstrainerFormForCreate
Description

Gets the step constrainer form for creating new step constrainers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]stepConstrainerRecordTypes array of step constrainer record types
Returnosid.workflow.rules.StepConstrainerForm the step constrainer form
ErrorsNULL_ARGUMENT stepConstrainerRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateStepConstrainer
Description

Creates a new StepConstrainer.

Parametersosid.workflow.rules.StepConstrainerFormstepConstrainerForm the form for this StepConstrainer
Returnosid.workflow.rules.StepConstrainer the new StepConstrainer
ErrorsILLEGAL_STATE stepConstrainerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT stepConstrainerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED stepConstrainerForm did not originate from getStepConstrainerFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateStepConstrainers
Description

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

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

Parametersosid.id.IdstepConstrainerId the Id of the StepConstrainer
Returnosid.workflow.rules.StepConstrainerForm the step constrainer form
ErrorsNOT_FOUND stepConstrainerId is not found
NULL_ARGUMENT stepConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateStepConstrainer
Description

Updates an existing step constrainer.

Parametersosid.workflow.rules.StepConstrainerFormstepConstrainerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE stepConstrainerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT stepConstrainerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED stepConstrainerForm did not originate from getStepConstrainerFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteStepConstrainers
Description

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

Deletes a StepConstrainer.

Parametersosid.id.IdstepConstrainerId the Id of the StepConstrainer to remove
ErrorsNOT_FOUND stepConstrainerId not found
NULL_ARGUMENT stepConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageStepConstrainerAliases
Description

Tests if this user can manage Id aliases for step constrainers. 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 StepConstrainer aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasStepConstrainer
Description

Adds a Id to a StepConstrainer for the purpose of creating compatibility. The primary Id of the StepConstrainer 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 constrainer. it is reassigned to the given step constrainer Id.

Parametersosid.id.IdstepConstrainerId the Id of a StepConstrainer
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND stepConstrainerId not found
NULL_ARGUMENT stepConstrainerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.