OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.Stock
Implementsosid.OsidObject
osid.Federateable
Description

A Stock represents a kit and kaboodle.

MethodgetSKU
Description

Gets the sku for this class of items.

Returnstringa stock keeping unit
CompliancemandatoryThis method must be implemented.
MethodgetModelIds
Description

Gets the model Ids of the items in this stock.

Returnosid.id.IdListmodel Ids
CompliancemandatoryThis method must be implemented.
MethodgetModels
Description

Gets the models of the items in this stock.

Returnosid.inventory.ModelLista model list
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetLocationDescription
Description

Gets the location description in which this stock is located.

Returnosid.locale.DisplayTexta location
CompliancemandatoryThis method must be implemented.
MethodgetLocationIds
Description

Gets the location Id to which this stock is located.

Returnosid.id.IdLista location Id
CompliancemandatoryThis method must be implemented.
MethodgetLocations
Description

Gets the location to which this stock is located.

Returnosid.mapping.LocationLista location list
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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.TypestockRecordTypethe type of stock record to retrieve
Returnosid.inventory.records.StockRecordthe stock record
ErrorsNULL_ARGUMENT stockRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(stockRecordType) is false
CompliancemandatoryThis method must be implemented.