Interface ICustomMenuItemDAO
- All Known Implementing Classes:
CustomMenuItemDAO
public interface ICustomMenuItemDAO
ICustomMenuItemDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByMenuId(int nMenuId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all items of a menuvoiddeleteSubMenuItemBySubMenuId(int nMenuSourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all subMenu item from all menuvoidinsert(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the customMenuItem objects and returns them as a collectionselectAllIdsByMenuId(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 listselectByMenuId(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 listvoidstore(CustomMenuItem customMenuItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
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 deleteplugin- 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 menuplugin- 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 deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the customMenuItemplugin- the Plugin- Returns:
- The instance of the customMenuItem
-
selectAll
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
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 menuplugin- the Plugin- Returns:
- The list which contains the data of all the customMenuItem objects for the menu
-
selectAllIdsByMenuId
List<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 menuplugin- the Plugin- Returns:
- The list which contains the id of all the customMenuItem objects for the menu