| Interface | osid.lexicon.PressAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.lexicon.batch.PressBatchAdminSession | ||
| 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 | canCreatePresses | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Press creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePressWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | pressRecordTypes | array of press record types |
| Return | boolean | true if Press creation using the specified record
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | pressRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPressFormForCreate | ||
| Description |
Gets the press form for creating new presses. A new form should be requested for each create transidiom. | ||
| Parameters | osid.type.Type[] | pressRecordTypes | array of press record types |
| Return | osid.lexicon.PressForm | the press form | |
| Errors | NULL_ARGUMENT | pressRecordTypes 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 | createPress | ||
| Description |
Creates a new | ||
| Parameters | osid.lexicon.PressForm | pressForm | the form for this Press |
| Return | osid.lexicon.Press | the new Press | |
| Errors | ILLEGAL_STATE | pressForm already used in a create transidiom | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | pressForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | pressForm did not originate from
getPressFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePresses | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Press modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPressFormForUpdate | ||
| Description |
Gets the press form for updating an existing press. A new press form should be requested for each update transidiom. | ||
| Parameters | osid.id.Id | pressId | the Id of the Press |
| Return | osid.lexicon.PressForm | the press form | |
| Errors | NOT_FOUND | pressId is not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePress | ||
| Description |
Updates an existing press | ||
| Parameters | osid.lexicon.PressForm | pressForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | pressForm already used in an update transidiom | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | pressForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | pressForm did not originate from
getPressFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePresses | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Press deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePress | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | pressId | the Id of the Press to remove |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePressAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Press aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPress | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | pressId | the Id of a Press |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | pressId not found | ||
| NULL_ARGUMENT | pressId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |