Interface IWikiItemDAO

All Known Implementing Classes:
WikiItemDAO

public interface IWikiItemDAO
  • Method Details

    • insert

      void insert(AbstractWikiItem wikiItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new wiki item
      Parameters:
      wikiItem - the wiki item to insert
      plugin - the plugin
    • store

      void store(AbstractWikiItem wikiItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update an existing wiki item
      Parameters:
      wikiItem - the wiki item to update
      plugin - the plugin
    • delete

      void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a wiki item by its key
      Parameters:
      nKey - the wiki item key
      plugin - the plugin
    • load

      Optional<AbstractWikiItem> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a wiki item by its key
      Parameters:
      nKey - the wiki item key
      plugin - the plugin
      Returns:
      an Optional containing the wiki item if found, empty otherwise
    • selectWikiItemsByType

      List<AbstractWikiItem> selectWikiItemsByType(WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select all wiki items by type
      Parameters:
      type - the wiki item type
      plugin - the plugin
      Returns:
      the list of wiki items matching the type
    • selectWikiItemsByParent

      List<AbstractWikiItem> selectWikiItemsByParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select all wiki items by parent id
      Parameters:
      nIdParent - the parent id
      plugin - the plugin
      Returns:
      the list of wiki items having the specified parent
    • selectWikiItemsByParentAndType

      List<AbstractWikiItem> selectWikiItemsByParentAndType(int nIdParent, WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select all wiki items by parent id and type
      Parameters:
      nIdParent - the parent id
      type - the wiki item type
      plugin - the plugin
      Returns:
      the list of wiki items matching the parent and type
    • selectByCode

      Optional<AbstractWikiItem> selectByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select a wiki item by its code
      Parameters:
      strCode - the wiki item code
      plugin - the plugin
      Returns:
      an Optional containing the wiki item if found, empty otherwise
    • selectWikiItemsByParentIds

      List<AbstractWikiItem> selectWikiItemsByParentIds(List<Integer> listParentIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select all wiki items whose parent id is in the given list
      Parameters:
      listParentIds - the list of parent ids
      plugin - the plugin
      Returns:
      the list of wiki items having a parent in the specified list
    • selectWikiItemsByIds

      List<AbstractWikiItem> selectWikiItemsByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select all wiki items whose primary key is in the given list
      Parameters:
      listIds - the list of wiki item ids
      plugin - the plugin
      Returns:
      the list of wiki items matching the given ids