OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.StockForm
Implementsosid.OsidObjectForm
osid.OsidFederateableForm
Implemented Byosid.inventory.batch.StockBatchForm
Used Byosid.inventory.StockAdminSession
Description

This is the form for creating and updating Stocks. Like all OsidForms, various data elements may be set here for use in the create and update methods in the StockAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetSKUMetadata
Description

Gets the metadata for sku.

Returnosid.Metadata metadata for the sku
Compliancemandatory This method must be implemented.
MethodsetSKU
Description

Sets the SKU.

Parametersstringsku the new SKU
ErrorsINVALID_ARGUMENT sku is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT sku is null
Compliancemandatory This method must be implemented.
MethodclearSKU
Description

Removes the SKU.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetModelsMetadata
Description

Gets the metadata for models in this stock.

Returnosid.Metadata metadata for the models
Compliancemandatory This method must be implemented.
MethodsetModels
Description

Sets the models.

Parametersosid.id.Id[]models the new models
ErrorsINVALID_ARGUMENT models is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT models is null
Compliancemandatory This method must be implemented.
MethodclearModels
Description

Removes the models.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetLocationDescriptionMetadata
Description

Gets the metadata for location text.

Returnosid.Metadata metadata for the location string
Compliancemandatory This method must be implemented.
MethodsetLocationDescription
Description

Sets the location string.

Parametersstringlocation the new location description
ErrorsINVALID_ARGUMENT location is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT location is null
Compliancemandatory This method must be implemented.
MethodclearLocationDescription
Description

Removes the location description.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetLocationsMetadata
Description

Gets the metadata for locations in this stock.

Returnosid.Metadata metadata for the locations
Compliancemandatory This method must be implemented.
MethodsetLocations
Description

Sets the locations.

Parametersosid.id.Id[]locations the new locations
ErrorsINVALID_ARGUMENT locations is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT locations is null
Compliancemandatory This method must be implemented.
MethodclearLocations
Description

Removes the locations.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetStockFormRecord
Description

Gets the StockFormRecord corresponding to the given stock record Type.

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