Class DashboardHome


  • public final class DashboardHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Dashboard objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Dashboard create​(Dashboard dashboard)
      Create an instance of the dashboard class
      static Dashboard createOrUpdate​(Dashboard dashboard)
      Create or update given dashboard
      static void delete​(int nIdDashboard)
      Delete the given dashboard
      static void deleteAllKibanaDasboards()
      Delete all kibanas dashboards
      static Dashboard findByKibanaId​(java.lang.String strIdKibana)
      Find Kibana dashboard with given kibana dashboard id
      static Dashboard findByPrimaryKey​(int nKey)
      Returns an instance of a dashboard whose identifier is specified in parameter
      static java.util.List<Dashboard> getDashboardsList()
      Load the data of all the dashboard objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getDashboardsReferenceList()
      Load the data of all the dashboard objects and returns them as a referenceList
      static java.util.List<java.lang.Integer> getIdDashboardsList()
      Load the id of all the dashboard objects and returns them as a list
      • Methods inherited from class java.lang.Object

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

      • create

        public static Dashboard create​(Dashboard dashboard)
        Create an instance of the dashboard class
        Parameters:
        dashboard - The instance of the Dashboard which contains the informations to store
        Returns:
        The instance of dashboard which has been created with its primary key.
      • findByPrimaryKey

        public static Dashboard findByPrimaryKey​(int nKey)
        Returns an instance of a dashboard whose identifier is specified in parameter
        Parameters:
        nKey - The dashboard primary key
        Returns:
        an instance of Dashboard
      • getDashboardsList

        public static java.util.List<Dashboard> getDashboardsList()
        Load the data of all the dashboard objects and returns them as a list
        Returns:
        the list which contains the data of all the dashboard objects
      • getIdDashboardsList

        public static java.util.List<java.lang.Integer> getIdDashboardsList()
        Load the id of all the dashboard objects and returns them as a list
        Returns:
        the list which contains the id of all the dashboard objects
      • getDashboardsReferenceList

        public static fr.paris.lutece.util.ReferenceList getDashboardsReferenceList()
        Load the data of all the dashboard objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the dashboard objects
      • delete

        public static void delete​(int nIdDashboard)
        Delete the given dashboard
        Parameters:
        nIdDashboard - The dashboard id
      • deleteAllKibanaDasboards

        public static void deleteAllKibanaDasboards()
        Delete all kibanas dashboards
      • createOrUpdate

        public static Dashboard createOrUpdate​(Dashboard dashboard)
        Create or update given dashboard
        Parameters:
        dashboard -
        Returns:
        the created or updated dashboard
      • findByKibanaId

        public static Dashboard findByKibanaId​(java.lang.String strIdKibana)
        Find Kibana dashboard with given kibana dashboard id
        Parameters:
        strIdKibana -
        Returns:
        the dashboard found