package tk.hishopapp.good;

import java.util.List;

/**
 * Created by Nikita Bakaev, ya@nbakaev.ru on 2/9/2016.
 * All Rights Reserved
 */
public interface GoodRepository {
    Good createGood(Good good);

    List<Good> getAllGoods();

    Good updateGood(Good good);

    void deleteGoodById(String id);

    List<Good> getAllGoodsOnIndexPage();
}

@@ -61,266 +61,827 @@
 %0A * 
-Created by Nikita Bakaev, ya@nbakaev.ru on 2/9/2016.%0D%0A * All Rights Reserved%0D%0A */%0D%0Apublic interface GoodRepository %7B%0D%0A    Good createGood(Good good);%0D%0A%0D%0A    List%3CGood%3E getAllGoods();%0D%0A%0D%0A    Good updateGood(Good good);%0D%0A%0D%0A    void deleteGoodById(String id);%0D%0A
+Interface that specifies a basic set of Good operations in e-shop. Implemented by %7B@link GoodRepositoryImpl%7D.%0D%0A * %3Cp%3E%0D%0A * Created by Nikita Bakaev, ya@nbakaev.ru on 2/9/2016.%0D%0A * All Rights Reserved%0D%0A */%0D%0Apublic interface GoodRepository %7B%0D%0A%0D%0A    /**%0D%0A     * Create new good%0D%0A     *%0D%0A     * @param good%0D%0A     * @return%0D%0A     */%0D%0A    Good createGood(Good good);%0D%0A%0D%0A    /**%0D%0A     * Get all gods%0D%0A     *%0D%0A     * @return%0D%0A     */%0D%0A    List%3CGood%3E getAllGoods();%0D%0A%0D%0A    /**%0D%0A     * Update existing good%0D%0A     *%0D%0A     * @param good%0D%0A     * @return%0D%0A     */%0D%0A    Good updateGood(Good good);%0D%0A%0D%0A    /**%0D%0A     * Delete existing good by id%0D%0A     *%0D%0A     * @param id%0D%0A     */%0D%0A    void deleteGoodById(String id);%0D%0A%0D%0A    /**%0D%0A     * Get all goods which should be shown in UI (html) in main(root) page%0D%0A     *%0D%0A     * @return%0D%0A     */
 %0D%0A  

add javadoc description