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

This session creates, updates, and deletes ProcessProcessorEnablers . The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a ProcessProcessorEnabler , a ProcessProcessorEnablerForm is requested using getProcessProcessorEnablerFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned ProcessProcessorEnablerForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the ProcessProcessorEnablerForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each ProcessProcessorEnablerForm corresponds to an attempted transaction.

For updates, ProcessProcessorEnablerForms are requested to the ProcessProcessorEnabler Id that is to be updated using getProcessProcessorEnablerFormForUpdate() . Similarly, the ProcessProcessorEnablerForm has metadata about the data that can be updated and it can perform validation before submitting the update. The ProcessProcessorEnablerForm can only be used once for a successful update and cannot be reused.

The delete operations delete ProcessProcessorEnablers . To unmap a ProcessProcessorEnabler from the current Office , the ProcessProcessorEnablerOfficeAssignmentSession should be used. These delete operations attempt to remove the ProcessProcessorEnabler itself thus removing it from all known Office catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id .

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

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

Returnbooleanfalse if ProcessProcessorEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateProcessProcessorEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]processProcessorEnablerRecordTypesarray of process processor enabler record types
Returnbooleantrue if ProcessProcessorEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTprocessProcessorEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetProcessProcessorEnablerFormForCreate
Description

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

Parametersosid.type.Type[]processProcessorEnablerRecordTypesarray of process processor enabler record types
Returnosid.workflow.rules.ProcessProcessorEnablerFormthe process processor enabler form
ErrorsNULL_ARGUMENTprocessProcessorEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateProcessProcessorEnabler
Description

Creates a new ProcessProcessorEnabler .

Parametersosid.workflow.rules.ProcessProcessorEnablerFormprocessProcessorEnablerFormthe form for this ProcessProcessorEnabler
Returnosid.workflow.rules.ProcessProcessorEnablerthe new ProcessProcessorEnabler
ErrorsILLEGAL_STATEprocessProcessorEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTprocessProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessProcessorEnablerForm did not originate from getProcessProcessorEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateProcessProcessorEnablers
Description

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

Returnbooleanfalse if ProcessProcessorEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProcessProcessorEnablerFormForUpdate
Description

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

Parametersosid.id.IdprocessProcessorEnablerIdthe Id of the ProcessProcessorEnabler
Returnosid.workflow.rules.ProcessProcessorEnablerFormthe process processor enabler form
ErrorsNOT_FOUNDprocessProcessorEnablerId is not found
NULL_ARGUMENTprocessProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateProcessProcessorEnabler
Description

Updates an existing process processor enabler.

Parametersosid.workflow.rules.ProcessProcessorEnablerFormprocessProcessorEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEprocessProcessorEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTprocessProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessProcessorEnablerForm did not originate from getProcessProcessorEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteProcessProcessorEnablers
Description

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

Returnbooleanfalse if ProcessProcessorEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteProcessProcessorEnabler
Description

Deletes a ProcessProcessorEnabler .

Parametersosid.id.IdprocessProcessorEnablerIdthe Id of the ProcessProcessorEnabler to remove
ErrorsNOT_FOUNDprocessProcessorEnablerId not found
NULL_ARGUMENTprocessProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageProcessProcessorEnablerAliases
Description

Tests if this user can manage Id aliases for ProcessProcessorEnablers 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.

Returnbooleanfalse if ProcessProcessorEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasProcessProcessorEnabler
Description

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

Parametersosid.id.IdprocessProcessorEnablerIdthe Id of a ProcessProcessorEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDprocessProcessorEnablerId not found
NULL_ARGUMENTprocessProcessorEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.