Class WikiItemDAO
java.lang.Object
fr.paris.lutece.plugins.wiki.business.item.WikiItemDAO
- All Implemented Interfaces:
IWikiItemDAO
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
WikiItemDAO
public WikiItemDAO()
-
-
Method Details
-
insert
Insert a new wiki item- Specified by:
insertin interfaceIWikiItemDAO- Parameters:
wikiItem- the wiki item to insertplugin- the plugin
-
load
public Optional<AbstractWikiItem> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a wiki item by its key- Specified by:
loadin interfaceIWikiItemDAO- Parameters:
nKey- the wiki item keyplugin- the plugin- Returns:
- an Optional containing the wiki item if found, empty otherwise
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a wiki item by its key- Specified by:
deletein interfaceIWikiItemDAO- Parameters:
nKey- the wiki item keyplugin- the plugin
-
store
Update an existing wiki item- Specified by:
storein interfaceIWikiItemDAO- Parameters:
wikiItem- the wiki item to updateplugin- the plugin
-
selectWikiItemsByType
public List<AbstractWikiItem> selectWikiItemsByType(WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by type- Specified by:
selectWikiItemsByTypein interfaceIWikiItemDAO- Parameters:
type- the wiki item typeplugin- the plugin- Returns:
- the list of wiki items matching the type
-
selectWikiItemsByParent
public List<AbstractWikiItem> selectWikiItemsByParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by parent id- Specified by:
selectWikiItemsByParentin interfaceIWikiItemDAO- Parameters:
nIdParent- the parent idplugin- the plugin- Returns:
- the list of wiki items having the specified parent
-
selectWikiItemsByParentAndType
public List<AbstractWikiItem> selectWikiItemsByParentAndType(int nIdParent, WikiItemType type, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select all wiki items by parent id and type- Specified by:
selectWikiItemsByParentAndTypein interfaceIWikiItemDAO- Parameters:
nIdParent- the parent idtype- the wiki item typeplugin- the plugin- Returns:
- the list of wiki items matching the parent and type
-
selectByCode
public Optional<AbstractWikiItem> selectByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select a wiki item by its code- Specified by:
selectByCodein interfaceIWikiItemDAO- Parameters:
strCode- the wiki item codeplugin- the plugin- Returns:
- an Optional containing the wiki item if found, empty otherwise
-
selectWikiItemsByParentIds
public 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- Specified by:
selectWikiItemsByParentIdsin interfaceIWikiItemDAO- Parameters:
listParentIds- the list of parent idsplugin- the plugin- Returns:
- the list of wiki items having a parent in the specified list
-
selectWikiItemsByIds
public 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- Specified by:
selectWikiItemsByIdsin interfaceIWikiItemDAO- Parameters:
listIds- the list of wiki item idsplugin- the plugin- Returns:
- the list of wiki items matching the given ids
-