Interface | osid.control.TriggerAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getSystemId | ||
Description |
Gets the | ||
Return | osid.id.Id | the System Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getSystem | ||
Description |
Gets the | ||
Return | osid.control.System | the system | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateTriggers | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Trigger creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateTriggerWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | triggerRecordTypes | array of trigger record types |
Return | boolean | true if Trigger creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | triggerRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getTriggerFormForCreate | ||
Description |
Gets the trigger form for creating new triggers. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | controllerId | a controller Id |
osid.type.Type[] | triggerRecordTypes | array of trigger record types | |
Return | osid.control.TriggerForm | the trigger form | |
Errors | NOT_FOUND | controllerId is not found | |
NULL_ARGUMENT | controllerId or triggerRecordTypes is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createTrigger | ||
Description |
Creates a new | ||
Parameters | osid.control.TriggerForm | triggerForm | the form for this Trigger |
Return | osid.control.Trigger | the new Trigger | |
Errors | ILLEGAL_STATE | triggerForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | triggerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | triggerForm did not originate from
getTriggerFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateTriggers | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Trigger modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getTriggerFormForUpdate | ||
Description |
Gets the trigger form for updating an existing trigger. A new trigger form should be requested for each update transaction. | ||
Parameters | osid.id.Id | triggerId | the Id of the Trigger |
Return | osid.control.TriggerForm | the trigger form | |
Errors | NOT_FOUND | triggerId is not found | |
NULL_ARGUMENT | triggerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateTrigger | ||
Description |
Updates an existing trigger. | ||
Parameters | osid.control.TriggerForm | triggerForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | triggerForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | triggerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | triggerForm did not originate from
getTriggerFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteTriggers | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Trigger deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteTrigger | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | triggerId | the Id of the Trigger to remove |
Errors | NOT_FOUND | triggerId not found | |
NULL_ARGUMENT | triggerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageTriggerAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Trigger aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasTrigger | ||
Description |
Adds an | ||
Parameters | osid.id.Id | triggerId | the Id of a Trigger |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | triggerId not found | ||
NULL_ARGUMENT | triggerId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |