OSID Logo
OSID Specifications
control rules package
Version 3.1.0
Interfaceosid.control.rules.TriggerEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.control.rules.ControlRulesManager
osid.control.rules.ControlRulesProxyManager
Description

This session creates and removes trigger enablers. The data for create and update is provided via the TriggerEnablerForm.

MethodgetSystemId
Description

Gets the System Id associated with this session.

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

Gets the System associated with this session.

Returnosid.control.System the system
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateTriggerEnabler
Description

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

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

Parametersosid.type.Type[]triggerEnablerRecordTypes array of trigger enabler record types
Returnboolean true if TriggerEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT triggerEnablerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetTriggerEnablerFormForCreate
Description

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

Parametersosid.type.Type[]triggerEnablerRecordTypes array of trigger enabler record types
Returnosid.control.rules.TriggerEnablerForm the trigger enabler form
ErrorsNULL_ARGUMENT triggerEnablerRecordTypes 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.
MethodcreateTriggerEnabler
Description

Creates a new TriggerEnabler.

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

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

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

Parametersosid.id.IdtriggerEnablerId the Id of the TriggerEnabler
Returnosid.control.rules.TriggerEnablerForm the trigger enabler form
ErrorsNOT_FOUND triggerEnablerId is not found
NULL_ARGUMENT triggerEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateTriggerEnabler
Description

Updates an existing trigger enabler.

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

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

Deletes a TriggerEnabler.

Parametersosid.id.IdtriggerEnablerId the Id of the TriggerEnabler to remove
ErrorsNOT_FOUND triggerEnablerId not found
NULL_ARGUMENT triggerEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageTriggerEnablerAliases
Description

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

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

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