Class CustomMenuHome

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

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

    • create

      public static CustomMenu create(CustomMenu customMenu)
      Create an instance of the customMenu class
      Parameters:
      customMenu - The instance of the CustomMenu which contains the informations to store
      Returns:
      The instance of customMenu which has been created with its primary key.
    • update

      public static CustomMenu update(CustomMenu customMenu)
      Update of the customMenu which is specified in parameter
      Parameters:
      customMenu - The instance of the CustomMenu which contains the data to store
      Returns:
      The instance of the customMenu which has been updated
    • remove

      public static void remove(int nKey)
      Remove the customMenu whose identifier is specified in parameter
      Parameters:
      nKey - The customMenu Id
    • findByPrimaryKey

      public static CustomMenu findByPrimaryKey(int nKey)
      Returns an instance of a customMenu whose identifier is specified in parameter
      Parameters:
      nKey - The customMenu primary key
      Returns:
      an instance of CustomMenu
    • getCustomMenusList

      public static List<CustomMenu> getCustomMenusList()
      Load the data of all the customMenu objects and returns them in form of a collection
      Returns:
      the collection which contains the data of all the customMenu objects
    • getIdMenusList

      public static List<Integer> getIdMenusList()
      Load the id of all the customMenu objects and returns them as a list
      Returns:
      the list which contains the id of all the customMenu objects
    • getMenusListByIds

      public static List<CustomMenu> getMenusListByIds(List<Integer> listIds)
      Load the id of all the customMenu objects containing in listIds and returns them as a list
      Parameters:
      nKey - The customMenu primary key
      Returns:
      the list which contains the id of all the customMenu objects
    • findAllWithCriteria

      public static List<CustomMenu> findAllWithCriteria(String strFilterCriteria)
      Load a filtered list of customMenu objects and returns them as a list
      Parameters:
      strFilterCriteria - Filter criteria
      Returns:
      the filtered list of customMenu objects
    • isUniqueBookmark

      public static Boolean isUniqueBookmark(CustomMenu customMenu, Boolean bIsCreation)
      Return if bookmark is unique or not
      Parameters:
      customMenu - instance of the CustomMenu object to insert
      bIsCreation - is creation mode or not
      Returns:
      True if bookmark is unique or false else.