Class CustomMenuItemHome
java.lang.Object
fr.paris.lutece.plugins.menus.business.CustomMenuItemHome
This class provides instances management methods (create, find, ...) for
CustomMenuItem objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomMenuItemcreate(CustomMenuItem customMenuItem) Create an instance of the customMenuItem classstatic CustomMenuItemfindByPrimaryKey(int nKey) Returns an instance of a customMenuItem whose identifier is specified in parametergetCustomMenuItemsIdsListByMenuId(int nMenuId) Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collectionstatic List<CustomMenuItem>Load the data of all the customMenuItem objects and returns them in form of a collectionstatic List<CustomMenuItem>getCustomMenuItemsListByMenuId(int nMenuId) Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collectionstatic voidremove(int nKey) Remove the customMenuItem whose identifier is specified in parameterstatic voidremoveByMenuId(int nMenuId) Remove all items of a menustatic CustomMenuItemupdate(CustomMenuItem customMenuItem) Update of the customMenuItem which is specified in parameter
-
Method Details
-
remove
public static void remove(int nKey) Remove the customMenuItem whose identifier is specified in parameter- Parameters:
nKey- The customMenuItem Id
-
removeByMenuId
public static void removeByMenuId(int nMenuId) Remove all items of a menu- Parameters:
nMenuId- The menu Id
-
findByPrimaryKey
Returns an instance of a customMenuItem whose identifier is specified in parameter- Parameters:
nKey- The customMenuItem primary key- Returns:
- an instance of CustomMenuItem
-
getCustomMenuItemsList
Load the data of all the customMenuItem objects and returns them in form of a collection- Returns:
- the collection which contains the data of all the customMenuItem objects
-
getCustomMenuItemsListByMenuId
Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection- Parameters:
nMenuId- The menu identifier- Returns:
- the collection which contains the data of all the customMenuItem objects for the menu
-
getCustomMenuItemsIdsListByMenuId
Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection- Parameters:
nMenuId- The menu identifier- Returns:
- the collection which contains the data of all the customMenuItem objects for the menu