Interface Stock
- All Superinterfaces:
Browsable, Extensible, Federateable, Identifiable, OsidObject
A Stock represents a class of items in a warehouse.
-
Method Summary
Modifier and TypeMethodDescriptionGets the location description in which this stock is located.Gets the locationIdto which this stock is located.Gets the location to which this stock is located.Gets the modelIdsof the items in this stock.Gets the models of the items in this stock.getSKU()Gets the sku for this class of items.getStockRecord(Type stockRecordType) Gets the stock record corresponding to the givenStockrecordType.This method is used to retrieve an object implementing the requested record.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
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 modelIdsof 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 locationIdto which this stock is located.- Returns:
- a location
Id - Compliance:
mandatory- This method must be implemented.
-
getLocations
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
Gets the stock record corresponding to the givenStockrecordType.This method is used to retrieve an object implementing the requested record. ThestockRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(stockRecordType)istrue.- Parameters:
stockRecordType- the type of stock record to retrieve- Returns:
- the stock record
- Throws:
NullArgumentException-stockRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(stockRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-