| Interface | osid.inventory.WarehouseAdminSession | ||
|---|---|---|---|
| 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 | canCreateWarehouses | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Warehouse creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateWarehouseWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | warehouseRecordTypes | array of warehouse record types |
| Return | boolean | true if Warehouse creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | warehouseRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getWarehouseFormForCreate | ||
| Description |
Gets the warehouse form for creating new warehouses. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | warehouseRecordTypes | array of warehouse record types |
| Return | osid.inventory.WarehouseForm | the warehouse form | |
| Errors | NULL_ARGUMENT | warehouseRecordTypes 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 | createWarehouse | ||
| Description |
Creates a new | ||
| Parameters | osid.inventory.WarehouseForm | warehouseForm | the form for this Warehouse |
| Return | osid.inventory.Warehouse | the new Warehouse | |
| Errors | ILLEGAL_STATE | warehouseForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | warehouseForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | warehouseForm did not originate from
getWarehouseFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateWarehouses | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Warehouse modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getWarehouseFormForUpdate | ||
| Description |
Gets the warehouse form for updating an existing warehouse. A new warehouse form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | warehouseId | the Id of the Warehouse |
| Return | osid.inventory.WarehouseForm | the warehouse form | |
| Errors | NOT_FOUND | warehouseId is not found | |
| NULL_ARGUMENT | warehouseId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateWarehouse | ||
| Description |
Updates an existing warehouse. | ||
| Parameters | osid.inventory.WarehouseForm | warehouseForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | warehouseForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | warehouseForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | warehouseForm did not originate from
getWarehouseFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteWarehouses | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Warehouse deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteWarehouse | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | warehouseId | the Id of the Warehouse to remove |
| Errors | NOT_FOUND | warehouseId not found | |
| NULL_ARGUMENT | warehouseId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageWarehouseAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Warehouse aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasWarehouse | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | warehouseId | the Id of a Warehouse |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | aliasId is in use as a primary Id | ||
| NULL_ARGUMENT | warehouseId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |