fr.paris.lutece.plugins.stock.modules.tickets.service
Interface ICategoryService

All Known Implementing Classes:
CategoryService

@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

init

void init()
Init the object.


doCreateCategory

java.lang.String doCreateCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Creates a category.

Parameters:
category - The category to create in database
Returns:
error if occurs

doModifyCategory

java.lang.String doModifyCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
Modifies a category.

Parameters:
category - The category to modify in database
Returns:
error if occurs

doDeleteCategory

void doDeleteCategory(int nIdCategory)
Deletes a category.

Parameters:
nIdCategory - The category id to delete in database

getCategory

fr.paris.lutece.plugins.stock.business.category.Category getCategory(int nIdCategory)
Get the category with the given id.

Parameters:
nIdCategory - The category id
Returns:
The category with the given id

getCategoryWithParent

fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithParent(int nIdCategory)
Finds a category and fetch parent.

Parameters:
nIdCategory - the id of the searched category
Returns:
the category

getCategoryWithChildren

fr.paris.lutece.plugins.stock.business.category.Category getCategoryWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children.

Parameters:
nIdCategory - the id of upper category
Returns:
the category

findByFilter

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.

Parameters:
filter - The filter
paginationProperties - the pagination properties
Returns:
A list of categories which match the given filter

findAllFirstLevelWithChildren

java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllFirstLevelWithChildren()
Finds all categories (first level) and fetch children.

Returns:
all first level categories

findAllChildrenWithChildren

java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAllChildrenWithChildren(java.lang.Integer idCategory)
Finds all category's children and fetch children.

Parameters:
idCategory - the id of upper category
Returns:
all category's children

findByPrimarykeyWithChildren

fr.paris.lutece.plugins.stock.business.category.Category findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
Finds a category and all his subcategories and fetch children.

Parameters:
nIdCategory - the id of upper category
Returns:
the category

findByIdWithParent

fr.paris.lutece.plugins.stock.business.category.Category findByIdWithParent(java.lang.Integer nIdCategory)
Finds a category and fetch parent.

Parameters:
nIdCategory - the id of the searched category
Returns:
the category

findByIdWithProduct

fr.paris.lutece.plugins.stock.business.category.Category findByIdWithProduct(java.lang.Integer nIdCategory)
Finds a category and fetch product.

Parameters:
nIdCategory - the id of the searched category
Returns:
the category

findByFilterWithChildren

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.

Parameters:
filter - the filter
Returns:
the category list

findAll

java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll()
Returns all.

Returns:
the list

findById

fr.paris.lutece.plugins.stock.business.category.Category findById(java.lang.Integer nIdCategory)
Find by id.

Parameters:
nIdCategory - the n id category
Returns:
the category

update

void update(fr.paris.lutece.plugins.stock.business.category.Category category)
Update the category.

Parameters:
category - the category

doSaveCategory

void doSaveCategory(fr.paris.lutece.plugins.stock.business.category.Category category)
                    throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
Modifies a category.

Parameters:
category - The category to modify in database
Throws:
fr.paris.lutece.plugins.stock.commons.exception.ValidationException - the validation exception

findAll

java.util.List<fr.paris.lutece.plugins.stock.business.category.Category> findAll(java.util.List<java.lang.String> orderList)
Return all category.

Parameters:
orderList - list of order
Returns:
the list of provider


Copyright © 2012 Mairie de Paris. All Rights Reserved.