| Interface | osid.inventory.ModelAdminSession | ||
|---|---|---|---|
| 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 | getWarehouseId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Warehouse Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getWarehouse | ||
| Description |
Gets the | ||
| Return | osid.inventory.Warehouse | the warehouse | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateModels | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Model creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateModelWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | modelRecordTypes | array of model record types |
| Return | boolean | true if Model creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | modelRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getModelFormForCreate | ||
| Description |
Gets the model form for creating new models. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | modelRecordTypes | array of model record types |
| Return | osid.inventory.ModelForm | the model form | |
| Errors | NULL_ARGUMENT | modelRecordTypes 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 | createModel | ||
| Description |
Creates a new | ||
| Parameters | osid.inventory.ModelForm | modelForm | the form for this Model |
| Return | osid.inventory.Model | the new Model | |
| Errors | ILLEGAL_STATE | modelForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | courseId, termId , or modelForm is
null | ||
| NOT_FOUND | modelForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | modelForm did not originate from
getModelFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateModels | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Model modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getModelFormForUpdate | ||
| Description |
Gets the model form for updating an existing model. A new model form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | modelId | the Id of the Model |
| Return | osid.inventory.ModelForm | the model form | |
| Errors | NOT_FOUND | modelId is not found | |
| NULL_ARGUMENT | modelId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateModel | ||
| Description |
Updates an existing model. | ||
| Parameters | osid.inventory.ModelForm | modelForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | modelForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | modelForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | modelForm did not originate from
getModelFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteModels | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Model deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteModel | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | modelId | the Id of the Model to remove |
| Errors | NOT_FOUND | modelId not found | |
| NULL_ARGUMENT | modelId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageModelAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Model aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasModel | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | modelId | the Id of a Model |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
| NOT_FOUND | modelId not found | ||
| NULL_ARGUMENT | modelId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |