public final class CategoryHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new Category
|
static Category |
find(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the data of Category from the table
|
static Collection<Category> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the category list
|
static Collection<Category> |
findByEvent(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category for an event from the table
|
static Collection<Category> |
findByName(String strCategoryName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the data of Category from the table
|
static int |
findCountIdEvents(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the number of documents linked to a category
|
static fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource for the specified category id
|
static void |
remove(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a record from the table
|
static void |
update(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public static Collection<Category> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - Pluginpublic static void create(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The new Categoryplugin - Pluginpublic static Category find(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The id of the categoryplugin - Pluginpublic static Collection<Category> findByName(String strCategoryName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strCategoryName - The id of the categoryplugin - Pluginpublic static void remove(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The identifier of the object Categoryplugin - Pluginpublic static void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The instance of the Category to updateplugin - Pluginpublic static int findCountIdEvents(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The category idplugin - Pluginpublic static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCategoryId - The identifier of Category objectplugin - Pluginpublic static Collection<Category> findByEvent(int nIdEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdEvent - The identifier of the eventplugin - PluginCopyright © 2015 City of Paris. All rights reserved.