fr.paris.lutece.plugins.form.business
Class CategoryHome

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.CategoryHome

public final class CategoryHome
extends java.lang.Object

class category Home


Method Summary
static void create(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of category
static Category findByPrimaryKey(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a category whose identifier is specified in parameter
static java.util.List<Category> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a list of all category
static boolean isAssociateToForm(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          true if there is a form associate to the category
static void remove(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the category whose identifier is specified in parameter
static void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the category which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(Category category,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of category

Parameters:
category - The instance of the Category which contains the informations to store
plugin - the Plugin

update

public static void update(Category category,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the category which is specified in parameter

Parameters:
category - The instance of the Category which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdCategory,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the category whose identifier is specified in parameter

Parameters:
nIdCategory - The category Id
plugin - the Plugin

findByPrimaryKey

public static Category findByPrimaryKey(int idKey,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a category whose identifier is specified in parameter

Parameters:
idKey - The category primary key
plugin - the Plugin
Returns:
an instance of category

getList

public static java.util.List<Category> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all category

Parameters:
plugin - the plugin
Returns:
the list of category

isAssociateToForm

public static boolean isAssociateToForm(int nIdCategory,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
true if there is a form associate to the category

Parameters:
nIdCategory - the key of the category
plugin - the plugin
Returns:
true if there is a form associate to the category


Copyright © 2012 Mairie de Paris. All Rights Reserved.