Interface | osid.rules.RuleAdminSession | ||
---|---|---|---|
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 | getEngineId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Engine Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getEngine | ||
Description |
Gets the | ||
Return | osid.rules.Engine | the Engine associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateRules | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Rule creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateRuleWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | ruleRecordTypes | array of rule record types |
Return | boolean | true if Rule creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | ruleRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getRuleFormForCreate | ||
Description |
Gets the rule form for creating new rules. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | ruleRecordTypes | array of rule record types |
Return | osid.rules.RuleForm | the rule form | |
Errors | NULL_ARGUMENT | ruleRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form with requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createRule | ||
Description |
Creates a new | ||
Parameters | osid.rules.RuleForm | ruleForm | the form for this Rule |
Return | osid.rules.Rule | the new Rule | |
Errors | ILLEGAL_STATE | ruleForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | ruleForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | ruleForm did not originate from
getRuleFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateRules | ||
Description |
Tests if this user can update | ||
Return | boolean | false if rule modification is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getRuleFormForUpdate | ||
Description |
Gets the rule form for updating an existing rule. A new rule form should be requested for each update transaction. | ||
Parameters | osid.id.Id | ruleId | the Id of the Rule |
Return | osid.rules.RuleForm | the rule form | |
Errors | NOT_FOUND | ruleId is not found | |
NULL_ARGUMENT | ruleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateRule | ||
Description |
Updates an existing rule. | ||
Parameters | osid.rules.RuleForm | ruleForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | ruleForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | ruleForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | ruleForm did not originate from
getRuleFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteRules | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Rule deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteRule | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | ruleId | the Id of the Rule to delete |
Errors | NOT_FOUND | a Rule was not found identified by the given Id
| |
NULL_ARGUMENT | ruleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageRuleAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Rule aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasRule | ||
Description |
Adds an | ||
Parameters | osid.id.Id | ruleId | the Id of a Rule |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | ruleId not found | ||
NULL_ARGUMENT | ruleId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |