Interface ItemService
-
- All Known Implementing Classes:
DefaultItemService
public interface ItemServiceThe Interface ItemService provides methods forItemModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ItemModelgetItemByAttributeValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues)Deprecated, for removal: This API element is subject to removal in a future version.since 2105, please usegetOrCreateItemByAttributeValues(String, Map)default ItemModelgetOrCreateItemByAttributeValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues)Method retrieves anItemModelbased on typeCode and a list of attribute values.
-
-
-
Method Detail
-
getItemByAttributeValues
@Deprecated(since="2105", forRemoval=true) ItemModel getItemByAttributeValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues) throws ItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 2105, please usegetOrCreateItemByAttributeValues(String, Map)Method retrieves anItemModelbased on typeCode and a list of attribute values.- Parameters:
typeCode- typeCode of theItemModelattributeValues- theMapof the attribute values where the key is a qualifier.- Returns:
- the
ItemModel - Throws:
ItemNotFoundException- if theItemModelcan not be found.
-
getOrCreateItemByAttributeValues
default ItemModel getOrCreateItemByAttributeValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues)
Method retrieves anItemModelbased on typeCode and a list of attribute values. If the item does not exist the new one will be created.
-
-