Interface IWikiItemDAO
- All Known Implementing Classes:
WikiItemDAO
public interface IWikiItemDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a wiki item by its keyvoidinsert(AbstractWikiItem wikiItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new wiki itemload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a wiki item by its keyselectByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select a wiki item by its codeselectWikiItemsByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items whose primary key is in the given listselectWikiItemsByParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by parent idselectWikiItemsByParentAndType(int nIdParent, WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by parent id and typeselectWikiItemsByParentIds(List<Integer> listParentIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items whose parent id is in the given listselectWikiItemsByType(WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by typevoidstore(AbstractWikiItem wikiItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an existing wiki item
-
Method Details
-
insert
Insert a new wiki item- Parameters:
wikiItem- the wiki item to insertplugin- the plugin
-
store
Update an existing wiki item- Parameters:
wikiItem- the wiki item to updateplugin- 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 keyplugin- the plugin
-
load
Load a wiki item by its key- Parameters:
nKey- the wiki item keyplugin- 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 typeplugin- 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 idplugin- 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 idtype- the wiki item typeplugin- 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 codeplugin- 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 idsplugin- 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 idsplugin- the plugin- Returns:
- the list of wiki items matching the given ids
-