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

All Known Implementing Classes:
CategoryService, TicketCategoryService

public interface ICategoryService


Method Summary
 void doCreateCategory(Category category, javax.servlet.http.HttpServletRequest request)
           
 void doDeleteCategory(int nIdCategory)
           
 void doModifyCategory(Category category, javax.servlet.http.HttpServletRequest request)
           
 java.util.List<Category> findByFilter(CategoryFilter filter)
           
 Category getCategory(int nIdCategory)
           
 java.lang.String getCategoryClass()
           
 Category getCategoryWithChildren(java.lang.Integer idCategory)
          Finds a category and all his subcategories and fetch children
 Category getCategoryWithParent(int nIdCategory)
          Finds a category and fetch parent
 java.lang.String getCreateTemplate()
           
 java.lang.String getDeleteJsp()
          Return the jsp for deleting a product
 java.lang.String getModifyTemplate()
           
 ObjectDefinition getObjectDefinition()
          Return the ObjectDefinition object of the service
 void init()
           
 void initModelForModification(int nIdCategory, java.util.Map<java.lang.String,java.lang.Object> model)
           
 

Method Detail

getCreateTemplate

java.lang.String getCreateTemplate()

getModifyTemplate

java.lang.String getModifyTemplate()

getDeleteJsp

java.lang.String getDeleteJsp()
Return the jsp for deleting a product

Returns:
the jsp path

getCategoryClass

java.lang.String getCategoryClass()

init

void init()

doCreateCategory

void doCreateCategory(Category category,
                      javax.servlet.http.HttpServletRequest request)

doModifyCategory

void doModifyCategory(Category category,
                      javax.servlet.http.HttpServletRequest request)

doDeleteCategory

void doDeleteCategory(int nIdCategory)

initModelForModification

void initModelForModification(int nIdCategory,
                              java.util.Map<java.lang.String,java.lang.Object> model)

getCategory

Category getCategory(int nIdCategory)

getObjectDefinition

ObjectDefinition getObjectDefinition()
Return the ObjectDefinition object of the service

Returns:
teh ObjectDefintion object

getCategoryWithParent

Category getCategoryWithParent(int nIdCategory)
Finds a category and fetch parent

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

getCategoryWithChildren

Category getCategoryWithChildren(java.lang.Integer idCategory)
Finds a category and all his subcategories and fetch children

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

findByFilter

java.util.List<Category> findByFilter(CategoryFilter filter)


Copyright © 2010 Mairie de Paris. All Rights Reserved.