| Interface | osid.lexicon.IdiomAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.lexicon.batch.IdiomBatchAdminSession | ||
| 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 an 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 | canCreateIdioms | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Idiom creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateIdiomWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | idiomRecordTypes | array of idiom record types |
| Return | boolean | true if Idiom creation using the specified record
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | idiomRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomFormForCreate | ||
| Description |
Gets the idiom form for creating new idioms. A new form should be requested for each create transidiom. | ||
| Parameters | osid.id.Id | textId | a text Id |
osid.type.Type[] | idiomRecordTypes | array of idiom record types | |
| Return | osid.lexicon.IdiomForm | the idiom form | |
| Errors | NOT_FOUND | textId is not found | |
| NULL_ARGUMENT | textId or idiomRecordTypes 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 | createIdiom | ||
| Description |
Creates a new | ||
| Parameters | osid.lexicon.IdiomForm | idiomForm | the form for this Idiom |
| Return | osid.lexicon.Idiom | the new Idiom | |
| Errors | ILLEGAL_STATE | idiomForm already used in a create transidiom | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | idiomForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | idiomForm did not originate from
getIdiomFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateIdioms | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Idiom modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomFormForUpdate | ||
| Description |
Gets the idiom form for updating an existing idiom. A new idiom form should be requested for each update transidiom. | ||
| Parameters | osid.id.Id | idiomId | the Id of the Idiom |
| Return | osid.lexicon.IdiomForm | the idiom form | |
| Errors | NOT_FOUND | idiomId is not found | |
| NULL_ARGUMENT | idiomId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateIdiom | ||
| Description |
Updates an existing idiom. | ||
| Parameters | osid.lexicon.IdiomForm | idiomForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | idiomForm already used in an update transidiom | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | idiomForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | idiomForm did not originate from
getIdiomFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteIdioms | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Idiom deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteIdiom | ||
| Description |
Deletes an | ||
| Parameters | osid.id.Id | idiomId | the Id of the Idiom to remove |
| Errors | NOT_FOUND | idiomId not found | |
| NULL_ARGUMENT | idiomId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageIdiomAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Idiom aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasIdiom | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | idiomId | the Id of an Idiom |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | idiomId not found | ||
| NULL_ARGUMENT | idiomId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |