Class CustomMenuItemHome
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.CustomMenuItemHome
-
public final class CustomMenuItemHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for CustomMenuItem objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomMenuItemcreate(CustomMenuItem customMenuItem)Create an instance of the customMenuItem classstatic CustomMenuItemfindByPrimaryKey(int nKey)Returns an instance of a customMenuItem whose identifier is specified in parameterstatic java.util.List<java.lang.Integer>getCustomMenuItemsIdsListByMenuId(int nMenuId)Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collectionstatic java.util.List<CustomMenuItem>getCustomMenuItemsList()Load the data of all the customMenuItem objects and returns them in form of a collectionstatic java.util.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 Detail
-
create
public static CustomMenuItem create(CustomMenuItem customMenuItem)
Create an instance of the customMenuItem class- Parameters:
customMenuItem- The instance of the CustomMenuItem which contains the informations to store- Returns:
- The instance of customMenuItem which has been created with its primary key.
-
update
public static CustomMenuItem update(CustomMenuItem customMenuItem)
Update of the customMenuItem which is specified in parameter- Parameters:
customMenuItem- The instance of the CustomMenuItem which contains the data to store- Returns:
- The instance of the customMenuItem which has been updated
-
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
public static CustomMenuItem findByPrimaryKey(int nKey)
Returns an instance of a customMenuItem whose identifier is specified in parameter- Parameters:
nKey- The customMenuItem primary key- Returns:
- an instance of CustomMenuItem
-
getCustomMenuItemsList
public static java.util.List<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
public static java.util.List<CustomMenuItem> getCustomMenuItemsListByMenuId(int nMenuId)
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
public static java.util.List<java.lang.Integer> getCustomMenuItemsIdsListByMenuId(int nMenuId)
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
-
-