Class 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
      void delete​(int nIdDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the given dashboard
      void deleteAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all the dashboards in the table
      void insert​(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      boolean isDashboardExists​(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      check if given dashboard exists, based on Kibana dashboard id
      Dashboard load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Dashboard loadByKibanaId​(java.lang.String strIdKibana, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      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
      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
      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
      void store​(Dashboard dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DashboardDAO

        public DashboardDAO()
    • 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:
        insert in interface IDashboardDAO
        Parameters:
        dashboard - instance of the Dashboard object to insert
        plugin - the Plugin
      • load

        public Dashboard load​(int nKey,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IDashboardDAO
        Parameters:
        nKey - The identifier of the dashboard
        plugin - 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:
        loadByKibanaId in interface IDashboardDAO
        Parameters:
        strIdKibana - The identifier of the dashboard in Kibana
        plugin - 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:
        selectDashboardsList in interface IDashboardDAO
        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:
        selectIdDashboardsList in interface IDashboardDAO
        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:
        selectDashboardsReferenceList in interface IDashboardDAO
        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:
        delete in interface IDashboardDAO
        Parameters:
        nIdDashboard - the dashboard id to delete
        plugin - the Plugin
      • deleteAll

        public void deleteAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete all the dashboards in the table
        Specified by:
        deleteAll in interface IDashboardDAO
      • 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:
        isDashboardExists in interface IDashboardDAO
        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:
        store in interface IDashboardDAO
        Parameters:
        dashboard - the reference of the Dashboard
        plugin - the Plugin