Class DashboardHome

java.lang.Object
fr.paris.lutece.plugins.kibana.business.DashboardHome

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

    • 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 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 List<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(String strIdKibana)
      Find Kibana dashboard with given kibana dashboard id
      Parameters:
      strIdKibana -
      Returns:
      the dashboard found