OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.Item
Implementsosid.OsidObject
Used Byosid.inventory.Item
osid.inventory.ItemAdminSession
osid.inventory.ItemList
osid.inventory.ItemLookupSession
osid.inventory.shipment.Entry
Description

An Item represents a specific managed item in a warehouse.

MethodgetStockId
Description

Gets the stock Id to which this item belongs.

Returnosid.id.Id a stock Id
Compliancemandatory This method must be implemented.
MethodgetStock
Description

Gets the stock to which this item belongs.

Returnosid.inventory.Stock a stock
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPropertyTag
Description

Gets the property identification number for this item.

Returnstring a property tag
Compliancemandatory This method must be implemented.
MethodgetSerialNumber
Description

Gets the serial number for this item.

Returnstring a serial number
Compliancemandatory This method must be implemented.
MethodgetLocationDescription
Description

Gets a display text for the location.

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

Tests if this item has a known location.

Returnboolean true if a location is associated with this item, false otherwise
Compliancemandatory This method must be implemented.
MethodgetLocationId
Description

Gets the location Id to which this item belongs.

Returnosid.id.Id a location Id
ErrorsILLEGAL_STATE hasLocation() is false
Compliancemandatory This method must be implemented.
MethodgetLocation
Description

Gets the location to which this item belongs.

Returnosid.mapping.Location a location
ErrorsILLEGAL_STATE hasLocation() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisPart
Description

Tests if this item is a part of another item.

Returnboolean true if this item is a part of another item, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemId
Description

Gets the item Id to which this item belongs.

Returnosid.id.Id an item Id
ErrorsILLEGAL_STATE isPart() is false
Compliancemandatory This method must be implemented.
MethodgetItem
Description

Gets the item to which this item belongs.

Returnosid.inventory.Item an item
ErrorsILLEGAL_STATE isPart() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetItemRecord
Description

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

Parametersosid.type.TypeitemRecordType the type of item record to retrieve
Returnosid.inventory.records.ItemRecord the item record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.