Class CustomMenuItemHome

java.lang.Object
fr.paris.lutece.plugins.menus.business.CustomMenuItemHome

public final class CustomMenuItemHome extends Object
This class provides instances management methods (create, find, ...) for CustomMenuItem objects
  • Method Details

    • 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 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 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 List<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