| Interface | osid.configuration.ParameterAdminSession | ||
|---|---|---|---|
| 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 | getConfigurationId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Configuration Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getConfiguration | ||
| Description |
Gets the | ||
| Return | osid.configuration.Configuration | the Configuration associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateParameters | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Parameter creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateParameterWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | parameterRecordTypes | array of parameter record types |
| Return | boolean | true if Parameter creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | parameterRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getParameterFormForCreate | ||
| Description |
Gets the paramater form for creating new parameters. | ||
| Parameters | osid.type.Type[] | parameterRecordTypes | array of parameter record types |
| Return | osid.configuration.ParameterForm | the parameter form | |
| Errors | NULL_ARGUMENT | configurationRecordTypes 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 | createParameter | ||
| Description |
Creates a new | ||
| Parameters | osid.configuration.ParameterForm | parameterForm | the form for this Parameter |
| Return | osid.configuration.Parameter | the new Parameter | |
| Errors | ILLEGAL_STATE | parameterForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | parameterForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | parameterForm did not originate from
getParameterFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateParameters | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Parameter modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getParameterFormForUpdate | ||
| Description |
Gets the parameter form for updating an existing parameters. | ||
| Parameters | osid.id.Id | parameterId | the Id of the Parameter |
| Return | osid.configuration.ParameterForm | the parameter form | |
| Errors | NOT_FOUND | parameterId is not found | |
| NULL_ARGUMENT | parameterId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateParameter | ||
| Description |
Updates an existing parameter. | ||
| Parameters | osid.configuration.ParameterForm | parameterForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | parameterForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | parameterId or parameterForm is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | parameterForm did not originate from
getParameterFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteParameters | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Parameter deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteParameter | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | parameterId | the Id of the Parameter to remove |
| Errors | NOT_FOUND | parameterId not found | |
| NULL_ARGUMENT | parameterId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageParameterAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Parameter aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasParameter | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | parameterId | the Id of a Parameter |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | parameterId not found | ||
| NULL_ARGUMENT | parameterId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |