@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 IShowCategoryService
public 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 IShowCategoryService
filter
- the filterpaginationProperties
- the pagination propertiespublic ShowCategoryDTO findById(Integer nIdCategory)
findById
in interface IShowCategoryService
nIdCategory
- the id to look fornull
otherwisepublic void doSaveCategory(ShowCategoryDTO category) throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
doSaveCategory
in interface IShowCategoryService
category
- the category to savefr.paris.lutece.plugins.stock.commons.exception.ValidationException
- if category is inconsistent@Transactional public void doDeleteCategory(int nIdCategory)
doDeleteCategory
in interface IShowCategoryService
Copyright © 2020 City of Paris. All rights reserved.