| Interface | osid.control.SettingAdminSession | ||
|---|---|---|---|
| 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 | canCreateSettings | ||
| Description |
Tests if this user can create settings. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a | ||
| Return | boolean | false if Setting creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateSettingWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | settingRecordTypes | array of setting record types |
| Return | boolean | true if Setting creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | settingRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSettingFormForCreate | ||
| Description |
Gets the setting form for creating new settings. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | controllerId | the Id for the controller |
osid.type.Type[] | settingRecordTypes | array of setting record types | |
| Return | osid.control.SettingForm | the setting form | |
| Errors | NOT_FOUND | controllerId is not found | |
| NULL_ARGUMENT | controllerId 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 | createSetting | ||
| Description |
Creates a new | ||
| Parameters | osid.control.SettingForm | settingForm | the form for this Setting |
| Return | osid.control.Setting | the new Setting | |
| Errors | ILLEGAL_STATE | settingForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NOT_FOUND | resourceId or inputId is not found | ||
| NULL_ARGUMENT | settingForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | settingForm did not originate from
getSettingFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateSettings | ||
| Description |
Tests if this user can update settings. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
| Return | boolean | false if Setting modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSettingFormForUpdate | ||
| Description |
Gets the setting form for updating an existing setting. A new setting form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | settingId | the Id of the Setting |
| Return | osid.control.SettingForm | the setting form | |
| Errors | NOT_FOUND | settingId is not found | |
| NULL_ARGUMENT | settingId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateSetting | ||
| Description |
Updates an existing setting. | ||
| Parameters | osid.control.SettingForm | settingForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | settingForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | settingForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | settingForm did not originate from
getSettingFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteSettings | ||
| Description |
Tests if this user can delete settings. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
| Return | boolean | false if Setting deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteSetting | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | settingId | the Id of the Setting to remove |
| Errors | NOT_FOUND | settingId not found | |
| NULL_ARGUMENT | settingId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageSettingAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Setting aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasSetting | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | settingId | the Id of a Setting |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | settingId not found | ||
| NULL_ARGUMENT | settingId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |