| Interface | osid.inventory.batch.StockBatchAdminSession | ||
|---|---|---|---|
| Implements | osid.inventory.StockAdminSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a The Once a batch of For updates, Once a batch of The delete operations delete | ||
| Method | getStockFormsForCreate | ||
| Description |
Gets the stock forms for creating a bunch of new stocks. | ||
| Parameters | cardinal | number | the number of forms to retrieve |
osid.type.Type[] | stockRecordTypes | array of stock record types to be included in each create operation or an empty list if none | |
| Return | osid.inventory.batch.StockBatchFormList | the stock forms | |
| Errors | NULL_ARGUMENT | stockRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to request forms with given record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createStocks | ||
| Description |
Creates a new set of | ||
| Parameters | osid.inventory.batch.StockBatchFormList | stockForms | the stock forms |
| Return | osid.transaction.batch.CreateResponseList | the create responses | |
| Errors | NULL_ARGUMENT | stockForms is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getStockFormsForUpdate | ||
| Description |
Gets the stock forms for updating an existing set of stocks. A new stock form should be requested for each update transaction. | ||
| Parameters | osid.id.IdList | stockIds | the Ids of the Stock |
| Return | osid.inventory.batch.StockBatchFormList | the stock form | |
| Errors | NOT_FOUND | a stockId is not found | |
| NULL_ARGUMENT | stockIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateStocks | ||
| Description |
Updates existing stocks. This method returns an error
if the entire operation fails. Otherwise, the status of an
individual update operation is indicated in the | ||
| Parameters | osid.inventory.batch.StockBatchFormList | stockForms | the form containing the elements to be updated |
| Return | osid.transaction.batch.UpdateResponseList | the update responses | |
| Errors | NULL_ARGUMENT | stockForms is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAllStocks | ||
| Description |
Deletes all | ||
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteStocks | ||
| Description |
Deletes stocks for the given | ||
| Parameters | osid.id.IdList | stockIds | the Ids of the stocks to delete |
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | NULL_ARGUMENT | stockIds is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasStocks | ||
| Description |
Adds an | ||
| Parameters | osid.transaction.batch.AliasRequestList | aliasRequests | the alias requests |
| Return | osid.transaction.batch.AliasResponseList | the alias responses | |
| Errors | NULL_ARGUMENT | aliasRequests is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |