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)
Creation of an instance of category
|
static void |
createSuggestAssociation(int nIdSuggest,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert an association between suggest and categories
|
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 List<Category> |
getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all category
|
static List<Category> |
getListByIdSuggest(int nIdSuggest,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all category associate to the suggest
|
static boolean |
isAssociateToSuggest(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
true if there is a suggest 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 |
removeSuggestAssociation(int nIdSuggest,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an association between suggest and a category
|
static void |
update(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the category which is specified in parameter
|
public static void create(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The instance of the Category which contains the informations to storeplugin - the Pluginpublic static void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category - The instance of the Category which contains the informations to updateplugin - the Pluginpublic static void remove(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - The category Idplugin - the Pluginpublic static Category findByPrimaryKey(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
idKey - The category primary keyplugin - the Pluginpublic static List<Category> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginpublic static boolean isAssociateToSuggest(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory - the key of the categoryplugin - the pluginpublic static List<Category> getListByIdSuggest(int nIdSuggest, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSuggest - the id suggestplugin - the pluginpublic static void removeSuggestAssociation(int nIdSuggest,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSuggest - The identifier of the suggestnIdCategory - The identifier of the categoryplugin - the pluginpublic static void createSuggestAssociation(int nIdSuggest,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSuggest - The identifier of the suggestnIdCategory - The identifier of the categoryplugin - the pluginCopyright © 2018 City of Paris. All rights reserved.