fr.paris.lutece.plugins.stock.service
Class CategoryService

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.service.CategoryService
All Implemented Interfaces:
ICategoryService

public class CategoryService
extends java.lang.Object
implements 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
static CategoryService getInstance()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CategoryService getInstance()

getCreateTemplate

public java.lang.String getCreateTemplate()
Specified by:
getCreateTemplate in interface ICategoryService

getModifyTemplate

public java.lang.String getModifyTemplate()
Specified by:
getModifyTemplate in interface ICategoryService

getDeleteJsp

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

Specified by:
getDeleteJsp in interface ICategoryService
Returns:
the jsp path

getCategoryClass

public java.lang.String getCategoryClass()
Specified by:
getCategoryClass in interface ICategoryService

init

public void init()
Specified by:
init in interface ICategoryService

doCreateCategory

public void doCreateCategory(Category category,
                             javax.servlet.http.HttpServletRequest request)
Specified by:
doCreateCategory in interface ICategoryService

doModifyCategory

public void doModifyCategory(Category category,
                             javax.servlet.http.HttpServletRequest request)
Specified by:
doModifyCategory in interface ICategoryService

doDeleteCategory

public void doDeleteCategory(int nIdCategory)
Specified by:
doDeleteCategory in interface ICategoryService

initModelForModification

public void initModelForModification(int nIdCategory,
                                     java.util.Map<java.lang.String,java.lang.Object> model)
Specified by:
initModelForModification in interface ICategoryService

getCategory

public Category getCategory(int nIdCategory)
Specified by:
getCategory in interface ICategoryService

getCategoryWithParent

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

Specified by:
getCategoryWithParent in interface ICategoryService
Returns:
the category

getObjectDefinition

public ObjectDefinition getObjectDefinition()
Return the ObjectDefinition object of the service

Specified by:
getObjectDefinition in interface ICategoryService
Returns:
teh ObjectDefintion object

getCategoryWithChildren

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

Specified by:
getCategoryWithChildren in interface ICategoryService
Parameters:
idCategory - the id of upper category
Returns:
the category

findByFilter

public java.util.List<Category> findByFilter(CategoryFilter filter)
Specified by:
findByFilter in interface ICategoryService


Copyright © 2010 Mairie de Paris. All Rights Reserved.