Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1. package com.ateam.codefest.service;
  2.  
  3. import com.ateam.codefest.model.enums.MeasureUnit;
  4. import com.ateam.codefest.model.jpa.RecipeIngredient;
  5.  
  6. import java.util.List;
  7.  
  8. public interface RecipeIngredientService {
  9.  
  10.     RecipeIngredient createRecipeIngredient(String name, Double quantity, MeasureUnit measureUnit, String description, String recipeId);
  11.  
  12.     RecipeIngredient getIngredient(String ingredientId);
  13.  
  14.     List<RecipeIngredient> getIngredientsByName(String name);
  15.  
  16.     List<RecipeIngredient> getIngredientsByRecipeId(String recipeId);
  17.  
  18.     RecipeIngredient updateName(String ingredientId, String name);
  19.  
  20.     RecipeIngredient updateQuantity(String ingredientId, Double quantity);
  21.  
  22.     RecipeIngredient updateMeasureUnit(String ingredientId, MeasureUnit measureUnit);
  23.  
  24.     RecipeIngredient deleteRecipeIngredient(String ingredientId);
  25.  
  26.     List<RecipeIngredient> indexRecipeIngredients();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement