@Transactional
public interface ICategoryService
Modifier and Type | Method and Description |
---|---|
String |
doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Creates a category.
|
void |
doDeleteCategory(int nIdCategory)
Deletes a category.
|
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.
|
List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAll()
Returns all.
|
List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAll(List<String> orderList)
Return all category.
|
List<fr.paris.lutece.plugins.stock.business.category.Category> |
findAllChildrenWithChildren(Integer idCategory)
Finds all category's children and fetch children.
|
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.
|
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(Integer nIdCategory)
Find by id.
|
fr.paris.lutece.plugins.stock.business.category.Category |
findByIdWithParent(Integer nIdCategory)
Finds a category and fetch parent.
|
fr.paris.lutece.plugins.stock.business.category.Category |
findByIdWithProduct(Integer nIdCategory)
Finds a category and fetch product.
|
fr.paris.lutece.plugins.stock.business.category.Category |
findByPrimarykeyWithChildren(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(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.
|
void init()
String doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
category
- The category to create in databaseString doModifyCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
category
- The category to modify in databasevoid doDeleteCategory(int nIdCategory)
nIdCategory
- The category id to delete in databasefr.paris.lutece.plugins.stock.business.category.Category getCategory(int nIdCategory)
nIdCategory
- The category idfr.paris.lutece.plugins.stock.business.category.Category getCategoryWithParent(int nIdCategory)
nIdCategory
- the id of the searched categoryfr.paris.lutece.plugins.stock.business.category.Category getCategoryWithChildren(Integer nIdCategory)
nIdCategory
- the id of upper categoryfr.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 propertiesList<fr.paris.lutece.plugins.stock.business.category.Category> findAllFirstLevelWithChildren()
List<fr.paris.lutece.plugins.stock.business.category.Category> findAllChildrenWithChildren(Integer idCategory)
idCategory
- the id of upper categoryfr.paris.lutece.plugins.stock.business.category.Category findByPrimarykeyWithChildren(Integer nIdCategory)
nIdCategory
- the id of upper categoryfr.paris.lutece.plugins.stock.business.category.Category findByIdWithParent(Integer nIdCategory)
nIdCategory
- the id of the searched categoryfr.paris.lutece.plugins.stock.business.category.Category findByIdWithProduct(Integer nIdCategory)
nIdCategory
- the id of the searched categoryList<fr.paris.lutece.plugins.stock.business.category.Category> findByFilterWithChildren(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter)
filter
- the filterList<fr.paris.lutece.plugins.stock.business.category.Category> findAll()
fr.paris.lutece.plugins.stock.business.category.Category findById(Integer nIdCategory)
nIdCategory
- the n id categoryvoid 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 databasefr.paris.lutece.plugins.stock.commons.exception.ValidationException
- the validation exceptionCopyright © 2020 City of Paris. All rights reserved.