Interface Stock

All Superinterfaces:
Browsable, Extensible, Federateable, Identifiable, OsidObject

public interface Stock extends OsidObject, Federateable

A Stock represents a class of items in a warehouse.

  • Method Details

    • getSKU

      String getSKU()
      Gets the sku for this class of items.
      Returns:
      a stock keeping unit
      Compliance:
      mandatory - This method must be implemented.
    • getModelIds

      IdList getModelIds()
      Gets the model Ids of the items in this stock.
      Returns:
      model Ids
      Compliance:
      mandatory - This method must be implemented.
    • getModels

      Gets the models of the items in this stock.
      Returns:
      a model list
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getLocationDescription

      DisplayText getLocationDescription()
      Gets the location description in which this stock is located.
      Returns:
      a location
      Compliance:
      mandatory - This method must be implemented.
    • getLocationIds

      IdList getLocationIds()
      Gets the location Id to which this stock is located.
      Returns:
      a location Id
      Compliance:
      mandatory - This method must be implemented.
    • getLocations

      LocationList getLocations() throws OperationFailedException
      Gets the location to which this stock is located.
      Returns:
      a location list
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getStockRecord

      StockRecord getStockRecord(Type stockRecordType) throws OperationFailedException
      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 .
      Parameters:
      stockRecordType - the type of stock record to retrieve
      Returns:
      the stock record
      Throws:
      NullArgumentException - stockRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(stockRecordType) is false
      Compliance:
      mandatory - This method must be implemented.