OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.Stock
Implementsosid.OsidObject
osid.Federateable
Used Byosid.checklist.mason.TodoProducer
osid.inventory.Inventory
osid.inventory.Item
osid.inventory.StockAdminSession
osid.inventory.StockList
osid.inventory.StockLookupSession
osid.inventory.StockNode
osid.inventory.shipment.Entry
osid.recipe.Ingredient
Description

A Stock represents a class of items in a warehouse.

MethodgetSKU
Description

Gets the sku for this class of items.

Returnstring a stock keeping unit
Compliancemandatory This method must be implemented.
MethodgetModelIds
Description

Gets the model Ids of the items in this stock.

Returnosid.id.IdList model Ids
Compliancemandatory This method must be implemented.
MethodgetModels
Description

Gets the models of the items in this stock.

Returnosid.inventory.ModelList a model list
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetLocationDescription
Description

Gets the location description in which this stock is located.

Returnosid.locale.DisplayText a location
Compliancemandatory This method must be implemented.
MethodgetLocationIds
Description

Gets the location Id to which this stock is located.

Returnosid.id.IdList a location Id
Compliancemandatory This method must be implemented.
MethodgetLocations
Description

Gets the location to which this stock is located.

Returnosid.mapping.LocationList a location list
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetStockRecord
Description

Gets the stock record corresponding to the given Stock record Type.This method is used to retrieve an object implementing the requested record. The stockRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(stockRecordType) is true.

Parametersosid.type.TypestockRecordType the type of stock record to retrieve
Returnosid.inventory.records.StockRecord the stock record
ErrorsNULL_ARGUMENT stockRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(stockRecordType) is false
Compliancemandatory This method must be implemented.