OSID Logo
OSID Specifications
control rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.control.rules.TriggerEnablerAdminSession
Implementsosid.OsidSession
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.Idthe System Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetSystem
Description

Gets the System associated with this session.

Returnosid.control.Systemthe system
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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[]triggerEnablerRecordTypesarray of trigger enabler record types
Returnboolean true if TriggerEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT triggerEnablerRecordTypes is null
CompliancemandatoryThis 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[]triggerEnablerRecordTypesarray of trigger enabler record types
Returnosid.control.rules.TriggerEnablerFormthe trigger enabler form
ErrorsNULL_ARGUMENT triggerEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateTriggerEnabler
Description

Creates a new TriggerEnabler.

Parametersosid.control.rules.TriggerEnablerFormtriggerEnablerFormthe form for this TriggerEnabler
Returnosid.control.rules.TriggerEnablerthe new TriggerEnabler
ErrorsILLEGAL_STATE triggerEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT triggerEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED triggerEnablerForm did not originate from getTriggerEnablerFormForCreate()
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdtriggerEnablerIdthe Id of the TriggerEnabler
Returnosid.control.rules.TriggerEnablerFormthe trigger enabler form
ErrorsNOT_FOUND triggerEnablerId is not found
NULL_ARGUMENT triggerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateTriggerEnabler
Description

Updates an existing trigger enabler.

Parametersosid.control.rules.TriggerEnablerFormtriggerEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE triggerEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT triggerEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED triggerEnablerForm did not originate from getTriggerEnablerFormForUpdate()
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethoddeleteTriggerEnabler
Description

Deletes a TriggerEnabler.

Parametersosid.id.IdtriggerEnablerIdthe Id of the TriggerEnabler to remove
ErrorsNOT_FOUND triggerEnablerId not found
NULL_ARGUMENT triggerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdtriggerEnablerIdthe Id of a TriggerEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND triggerEnablerId not found
NULL_ARGUMENT triggerEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.