|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.category.CategoryHome
public final class CategoryHome
This class provides instances management methods (create, find, ...) for Category objects
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Collection<Category> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - Plugin
public static void create(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The new Categoryplugin - Plugin
public static Category find(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The id of the categoryplugin - Plugin
public static Collection<Category> findByName(String strCategoryName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strCategoryName - The id of the categoryplugin - Plugin
public static void remove(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The identifier of the object Categoryplugin - Plugin
public static void update(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The instance of the Category to updateplugin - Plugin
public static int findCountIdEvents(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The category idplugin - Plugin
public 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 - Plugin
public static Collection<Category> findByEvent(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdEvent - The identifier of the eventplugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||