fr.paris.lutece.plugins.stock.modules.tickets.service
Class ShowCategoryService

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.modules.tickets.service.ShowCategoryService
All Implemented Interfaces:
IShowCategoryService

@Transactional
public final class ShowCategoryService
extends java.lang.Object
implements IShowCategoryService

Class ShowCategoryService.


Method Summary
 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(java.lang.Integer nIdCategory)
          Find by id.
static IShowCategoryService getInstance()
          Get the instance of the service.
 void init()
          Init the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IShowCategoryService getInstance()
Get the instance of the service.

Returns:
The unique instance of the service

init

public void init()
Init the object.

Specified by:
init in interface IShowCategoryService

findByFilter

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)
Finds by filter.

Specified by:
findByFilter in interface IShowCategoryService
Parameters:
filter - the filter
paginationProperties - the pagination properties
Returns:
the category list

findById

public ShowCategoryDTO findById(java.lang.Integer nIdCategory)
Find by id.

Specified by:
findById in interface IShowCategoryService
Parameters:
nIdCategory - the id to look for
Returns:
the found ShowCategoryDTO, null otherwise

doSaveCategory

public void doSaveCategory(ShowCategoryDTO category)
                    throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
Modify a category.

Specified by:
doSaveCategory in interface IShowCategoryService
Parameters:
category - the category to save
Throws:
fr.paris.lutece.plugins.stock.commons.exception.ValidationException - if category is inconsistent

doDeleteCategory

@Transactional
public void doDeleteCategory(int nIdCategory)

Specified by:
doDeleteCategory in interface IShowCategoryService


Copyright © 2012 Mairie de Paris. All Rights Reserved.