Interface ItemService
- All Known Implementing Classes:
DefaultItemService
public interface ItemService
The Interface ItemService provides methods for
ItemModel-
Method Summary
Modifier and TypeMethodDescriptiongetItemByAttributeValues(String typeCode, Map<String, Object> attributeValues) Deprecated, for removal: This API element is subject to removal in a future version.default ItemModelgetOrCreateItemByAttributeValues(String typeCode, Map<String, Object> attributeValues) Method retrieves anItemModelbased on typeCode and a list of attribute values.
-
Method Details
-
getItemByAttributeValues
@Deprecated(since="2105", forRemoval=true) ItemModel getItemByAttributeValues(String typeCode, Map<String, 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(String typeCode, Map<String, 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.
-
getOrCreateItemByAttributeValues(String, Map)