| Interface | osid.lexicon.ParameterAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.lexicon.batch.ParameterBatchAdminSession | ||
| Used By | osid.lexicon.LexiconManager | ||
osid.lexicon.LexiconProxyManager | |||
| 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 | getPressId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Press Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPress | ||
| Description |
Gets the | ||
| Return | osid.lexicon.Press | the press | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateParameter | ||
| Description |
Tests if this user can create parameters. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a
| ||
| 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 parameter form for creating new parameters. A new form should be requested for each create transidiom. | ||
| Parameters | osid.id.Id | textId | a text Id |
osid.type.Type[] | parameterRecordTypes | array of parameter record types | |
| Return | osid.lexicon.ParameterForm | the parameter form | |
| Errors | NOT_FOUND | textId is not found | |
| NULL_ARGUMENT | textId or parameterRecordTypes 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.lexicon.ParameterForm | parameterForm | the form for this Parameter |
| Return | osid.lexicon.Parameter | the new Parameter | |
| Errors | ILLEGAL_STATE | parameterForm already used in a create transidiom | |
| 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 parameters. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a
| ||
| 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 parameter. A new parameter form should be requested for each update transidiom. | ||
| Parameters | osid.id.Id | parameterId | the Id of the Parameter |
| Return | osid.lexicon.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.lexicon.ParameterForm | parameterForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | parameterForm already used in an update transidiom | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | 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 parameters. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a
| ||
| 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. | |