SHARE
TWEET

Untitled

a guest Jun 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top