@Transactional public final class ShowCategoryService extends Object implements IShowCategoryService
| Modifier and Type | Method and Description |
|---|---|
void |
doDeleteCategory(int nIdCategory) |
void |
doSaveCategory(ShowCategoryDTO category)
Modify a category.
|
fr.paris.lutece.plugins.stock.commons.ResultList<ShowCategoryDTO> |
findByFilter(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter,
fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
Finds by filter.
|
ShowCategoryDTO |
findById(Integer nIdCategory)
Find by id.
|
static IShowCategoryService |
getInstance()
Get the instance of the service.
|
void |
init()
Init the object.
|
public static IShowCategoryService getInstance()
public void init()
init in interface IShowCategoryServicepublic fr.paris.lutece.plugins.stock.commons.ResultList<ShowCategoryDTO> findByFilter(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter, fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties paginationProperties)
findByFilter in interface IShowCategoryServicefilter - the filterpaginationProperties - the pagination propertiespublic ShowCategoryDTO findById(Integer nIdCategory)
findById in interface IShowCategoryServicenIdCategory - the id to look fornull otherwisepublic void doSaveCategory(ShowCategoryDTO category) throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
doSaveCategory in interface IShowCategoryServicecategory - the category to savefr.paris.lutece.plugins.stock.commons.exception.ValidationException - if category is inconsistent@Transactional public void doDeleteCategory(int nIdCategory)
doDeleteCategory in interface IShowCategoryServiceCopyright © 2023 City of Paris. All rights reserved.