Interface ItemService

  • All Known Implementing Classes:
    DefaultItemService

    public interface ItemService
    The Interface ItemService provides methods for ItemModel
    • 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 ItemNotFoundException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Method retrieves an ItemModel based on typeCode and a list of attribute values.
        Parameters:
        typeCode - typeCode of the ItemModel
        attributeValues - the Map of the attribute values where the key is a qualifier.
        Returns:
        the ItemModel
        Throws:
        ItemNotFoundException - if the ItemModel can not be found.
      • getOrCreateItemByAttributeValues

        default ItemModel getOrCreateItemByAttributeValues​(java.lang.String typeCode,
                                                           java.util.Map<java.lang.String,​java.lang.Object> attributeValues)
        Method retrieves an ItemModel based on typeCode and a list of attribute values. If the item does not exist the new one will be created.
        Parameters:
        typeCode - typeCode of the ItemModel
        attributeValues - the Map of the attribute values where the key is a qualifier.
        Returns:
        the ItemModel