|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional public interface ICategoryService
ICategoryService.
Method Summary | |
---|---|
java.lang.String |
doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Creates a category. |
void |
doDeleteCategory(int nIdCategory)
Deletes a category. |
java.lang.String |
doModifyCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Modifies a category. |
void |
doSaveCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Modifies a category. |
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAll()
Returns all. |
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAll(java.util.List<java.lang.String> orderList)
Return all category. |
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAllChildrenWithChildren(java.lang.Integer idCategory)
Finds all category's children and fetch children. |
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAllFirstLevelWithChildren()
Finds all categories (first level) and fetch children. |
fr.paris.lutece.plugins.stock.commons.ResultList<fr.paris.lutece.plugins.stock.business.category.Category> |
findByFilter(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds all categories which match the given filter. |
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> |
findByFilterWithChildren(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter)
Finds by filter and fetch children. |
fr.paris.lutece.plugins.stock.business.category.Category |
findById(java.lang.Integer nIdCategory)
Find by id. |
fr.paris.lutece.plugins.stock.business.category.Category |
findByIdWithParent(java.lang.Integer nIdCategory)
Finds a category and fetch parent. |
fr.paris.lutece.plugins.stock.business.category.Category |
findByIdWithProduct(java.lang.Integer nIdCategory)
Finds a category and fetch product. |
fr.paris.lutece.plugins.stock.business.category.Category |
findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children. |
fr.paris.lutece.plugins.stock.business.category.Category |
getCategory(int nIdCategory)
Get the category with the given id. |
fr.paris.lutece.plugins.stock.business.category.Category |
getCategoryWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children. |
fr.paris.lutece.plugins.stock.business.category.Category |
getCategoryWithParent(int nIdCategory)
Finds a category and fetch parent. |
void |
init()
Init the object. |
void |
update(fr.paris.lutece.plugins.stock.business.category.Category category)
Update the category. |
Method Detail |
---|
void init()
java.lang.String doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
category
- The category to create in database
java.lang.String doModifyCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
category
- The category to modify in database
void doDeleteCategory(int nIdCategory)
nIdCategory
- The category id to delete in databasefr.paris.lutece.plugins.stock.business.category.Category getCategory(int nIdCategory)
nIdCategory
- The category id
fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithParent(int nIdCategory)
nIdCategory
- the id of the searched category
fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithChildren(java.lang.Integer nIdCategory)
nIdCategory
- the id of upper category
fr.paris.lutece.plugins.stock.commons.ResultList<fr.paris.lutece.plugins.stock.business.category.Category> findByFilter(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
filter
- The filterpaginationProperties
- the pagination properties
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllFirstLevelWithChildren()
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllChildrenWithChildren(java.lang.Integer idCategory)
idCategory
- the id of upper category
fr.paris.lutece.plugins.stock.business.category.Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
nIdCategory
- the id of upper category
fr.paris.lutece.plugins.stock.business.category.Category findByIdWithParent(java.lang.Integer nIdCategory)
nIdCategory
- the id of the searched category
fr.paris.lutece.plugins.stock.business.category.Category findByIdWithProduct(java.lang.Integer nIdCategory)
nIdCategory
- the id of the searched category
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findByFilterWithChildren(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter)
filter
- the filter
java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll()
fr.paris.lutece.plugins.stock.business.category.Category findById(java.lang.Integer nIdCategory)
nIdCategory
- the n id category
void update(fr.paris.lutece.plugins.stock.business.category.Category category)
category
- the categoryvoid doSaveCategory(fr.paris.lutece.plugins.stock.business.category.Category category) throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
category
- The category to modify in database
fr.paris.lutece.plugins.stock.commons.exception.ValidationException
- the validation exceptionjava.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll(java.util.List<java.lang.String> orderList)
orderList
- list of order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |