Class DashboardDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.kibana.business.DashboardDAO
-
- All Implemented Interfaces:
IDashboardDAO
public final class DashboardDAO extends java.lang.Object implements IDashboardDAO
This class provides Data Access methods for Dashboard objects
-
-
Constructor Summary
Constructors Constructor Description DashboardDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the given dashboardvoiddeleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all the dashboards in the tablevoidinsert(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.booleanisDashboardExists(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)check if given dashboard exists, based on Kibana dashboard idDashboardload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableDashboardloadByKibanaId(java.lang.String strIdKibana, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<Dashboard>selectDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dashboard objects and returns them as a listfr.paris.lutece.util.ReferenceListselectDashboardsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dashboard objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the dashboard objects and returns them as a listvoidstore(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIDashboardDAO- Parameters:
dashboard- instance of the Dashboard object to insertplugin- the Plugin
-
load
public Dashboard load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIDashboardDAO- Parameters:
nKey- The identifier of the dashboardplugin- the Plugin- Returns:
- The instance of the dashboard
-
loadByKibanaId
public Dashboard loadByKibanaId(java.lang.String strIdKibana, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByKibanaIdin interfaceIDashboardDAO- Parameters:
strIdKibana- The identifier of the dashboard in Kibanaplugin- the Plugin- Returns:
- The instance of the dashboard
-
selectDashboardsList
public java.util.List<Dashboard> selectDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dashboard objects and returns them as a list- Specified by:
selectDashboardsListin interfaceIDashboardDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the dashboard objects
-
selectIdDashboardsList
public java.util.List<java.lang.Integer> selectIdDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the dashboard objects and returns them as a list- Specified by:
selectIdDashboardsListin interfaceIDashboardDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the dashboard objects
-
selectDashboardsReferenceList
public fr.paris.lutece.util.ReferenceList selectDashboardsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dashboard objects and returns them as a referenceList- Specified by:
selectDashboardsReferenceListin interfaceIDashboardDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the dashboard objects
-
delete
public void delete(int nIdDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the given dashboard- Specified by:
deletein interfaceIDashboardDAO- Parameters:
nIdDashboard- the dashboard id to deleteplugin- the Plugin
-
deleteAll
public void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all the dashboards in the table- Specified by:
deleteAllin interfaceIDashboardDAO
-
isDashboardExists
public boolean isDashboardExists(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
check if given dashboard exists, based on Kibana dashboard id- Specified by:
isDashboardExistsin interfaceIDashboardDAO- Returns:
- true if exists, false otherwise
-
store
public void store(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIDashboardDAO- Parameters:
dashboard- the reference of the Dashboardplugin- the Plugin
-
-