| Interface | osid.lexicon.TextAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.lexicon.batch.TextBatchAdminSession | ||
| 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 | canCreateTexts | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Text creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateTextWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | textRecordTypes | array of text record types |
| Return | boolean | true if Text creation using the specified record
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | textRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTextFormForCreate | ||
| Description |
Gets the text form for creating new texts. A new form should be requested for each create transidiom. | ||
| Parameters | osid.type.Type[] | textRecordTypes | array of text record types |
| Return | osid.lexicon.TextForm | the text form | |
| Errors | NULL_ARGUMENT | textRecordTypes 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 | createText | ||
| Description |
Creates a new | ||
| Parameters | osid.lexicon.TextForm | textForm | the form for this Text |
| Return | osid.lexicon.Text | the new Text | |
| Errors | ILLEGAL_STATE | textForm already used in a create transidiom | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | textForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | textForm did not originate from
getTextFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateTexts | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Text modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTextFormForUpdate | ||
| Description |
Gets the text form for updating an existing text. A new text form should be requested for each update transidiom. | ||
| Parameters | osid.id.Id | textId | the Id of the Text |
| Return | osid.lexicon.TextForm | the text form | |
| Errors | NOT_FOUND | textId is not found | |
| NULL_ARGUMENT | textId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateText | ||
| Description |
Updates an existing text. | ||
| Parameters | osid.lexicon.TextForm | textForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | textForm already used in an update transatcion | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | textForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | textForm did not originate from
getTextFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteTexts | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Text deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteText | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | textId | the Id of the Text to remove |
| Errors | NOT_FOUND | textId not found | |
| NULL_ARGUMENT | textId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageTextAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Text aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasText | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | textId | the Id of a Text |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | textId not found | ||
| NULL_ARGUMENT | textId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |