Interface ICustomMenuItemDAO

  • All Known Implementing Classes:
    CustomMenuItemDAO

    public interface ICustomMenuItemDAO
    ICustomMenuItemDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByMenuId​(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all items of a menu
      void deleteSubMenuItemBySubMenuId​(int nMenuSourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all subMenu item from all menu
      void insert​(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      CustomMenuItem load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<CustomMenuItem> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the customMenuItem objects and returns them as a collection
      java.util.List<java.lang.Integer> selectAllIdsByMenuId​(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin _plugin)
      Load the data of all the customMenuItem objects for a specific menu and returns their ids as a list
      java.util.List<CustomMenuItem> selectByMenuId​(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the customMenuItem objects for a specific menu and returns them as a list
      void store​(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(CustomMenuItem customMenuItem,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        customMenuItem - instance of the CustomMenuItem object to insert
        plugin - the Plugin
      • store

        void store​(CustomMenuItem customMenuItem,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        customMenuItem - the reference of the CustomMenuItem
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the CustomMenuItem to delete
        plugin - the Plugin
      • deleteByMenuId

        void deleteByMenuId​(int nMenuId,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete all items of a menu
        Parameters:
        nMenuId - The identifier of the menu
        plugin - the Plugin
      • deleteSubMenuItemBySubMenuId

        void deleteSubMenuItemBySubMenuId​(int nMenuSourceId,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete all subMenu item from all menu
        Parameters:
        nMenuId - The identifier of the menu to delete
        plugin - the Plugin
      • load

        CustomMenuItem load​(int nKey,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the customMenuItem
        plugin - the Plugin
        Returns:
        The instance of the customMenuItem
      • selectAll

        java.util.List<CustomMenuItem> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the customMenuItem objects and returns them as a collection
        Parameters:
        plugin - the Plugin
        Returns:
        The collection which contains the data of all the customMenuItem objects
      • selectByMenuId

        java.util.List<CustomMenuItem> selectByMenuId​(int nMenuId,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the customMenuItem objects for a specific menu and returns them as a list
        Parameters:
        nMenuId - The identifier of the menu
        plugin - the Plugin
        Returns:
        The list which contains the data of all the customMenuItem objects for the menu
      • selectAllIdsByMenuId

        java.util.List<java.lang.Integer> selectAllIdsByMenuId​(int nMenuId,
                                                               fr.paris.lutece.portal.service.plugin.Plugin _plugin)
        Load the data of all the customMenuItem objects for a specific menu and returns their ids as a list
        Parameters:
        nMenuId - The identifier of the menu
        plugin - the Plugin
        Returns:
        The list which contains the id of all the customMenuItem objects for the menu