|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.stock.modules.tickets.service.CategoryService
@Transactional public final class CategoryService
CategoryService.
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 by 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 idCategory)
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. |
static CategoryService |
getInstance()
Get an instance of CategoryService . |
void |
init()
Init the object. |
void |
update(fr.paris.lutece.plugins.stock.business.category.Category category)
Update the category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CategoryService getInstance()
CategoryService
.
CategoryService
public void init()
init
in interface ICategoryService
@Transactional public java.lang.String doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
doCreateCategory
in interface ICategoryService
category
- The category to create in database
@Transactional public java.lang.String doModifyCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
doModifyCategory
in interface ICategoryService
category
- The category to modify in database
@Transactional public void doDeleteCategory(int nIdCategory)
doDeleteCategory
in interface ICategoryService
nIdCategory
- The category id to delete in databasepublic fr.paris.lutece.plugins.stock.business.category.Category getCategory(int nIdCategory)
getCategory
in interface ICategoryService
nIdCategory
- The category id
public fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithParent(int nIdCategory)
getCategoryWithParent
in interface ICategoryService
nIdCategory
- the id of the searched category
public fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithChildren(java.lang.Integer idCategory)
getCategoryWithChildren
in interface ICategoryService
idCategory
- the id of upper category
public java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllFirstLevelWithChildren()
findAllFirstLevelWithChildren
in interface ICategoryService
public java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllChildrenWithChildren(java.lang.Integer idCategory)
findAllChildrenWithChildren
in interface ICategoryService
idCategory
- the id of upper category
public fr.paris.lutece.plugins.stock.business.category.Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
findByPrimarykeyWithChildren
in interface ICategoryService
nIdCategory
- the id of upper category
public fr.paris.lutece.plugins.stock.business.category.Category findByIdWithParent(java.lang.Integer nIdCategory)
findByIdWithParent
in interface ICategoryService
nIdCategory
- the id of the searched category
public fr.paris.lutece.plugins.stock.business.category.Category findByIdWithProduct(java.lang.Integer nIdCategory)
findByIdWithProduct
in interface ICategoryService
nIdCategory
- the id of the searched category
public java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findByFilterWithChildren(fr.paris.lutece.plugins.stock.business.category.CategoryFilter filter)
findByFilterWithChildren
in interface ICategoryService
filter
- the filter
public 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)
findByFilter
in interface ICategoryService
filter
- the filterpaginationProperties
- the pagination properties
public java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll()
findAll
in interface ICategoryService
public fr.paris.lutece.plugins.stock.business.category.Category findById(java.lang.Integer nIdCategory)
findById
in interface ICategoryService
nIdCategory
- the n id category
public void update(fr.paris.lutece.plugins.stock.business.category.Category category)
update
in interface ICategoryService
category
- the categorypublic void doSaveCategory(fr.paris.lutece.plugins.stock.business.category.Category category) throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
doSaveCategory
in interface ICategoryService
category
- The category to modify in database
fr.paris.lutece.plugins.stock.commons.exception.ValidationException
public java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll(java.util.List<java.lang.String> orderList)
findAll
in interface ICategoryService
orderList
- list of order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |