Class DashboardService

java.lang.Object
fr.paris.lutece.plugins.kibana.service.DashboardService

public class DashboardService extends Object
DashboardService
  • Method Details

    • getInstance

      public static DashboardService getInstance()
    • getDashboards

      Get the list of all dashboards
      Returns:
      The list of dashboards
      Throws:
      NoKibanaIndexException - if no Kibana index was found
      NoElasticSearchServerException - if no Elastic server was found
    • getListDashboard

      public List<Dashboard> getListDashboard(String strJSON)
      Get the list of all dashboard
      Parameters:
      strJSON - The list of dashboard as JSON provided by Elastic
      Returns:
      The list
    • getKibanaServerUrl

      public String getKibanaServerUrl()
      Get Kibana server URL
      Returns:
      The URL
    • getKibanaServerIframeUrl

      public String getKibanaServerIframeUrl()
      Get Kibana server URL or iframe URL if it exists and is not empty.
      Returns:
      The appropriate URL
    • getKibanaServerSpaceId

      public String getKibanaServerSpaceId()
      Get Kibana server space id
      Returns:
      The URL
    • getKibanaServerUserLogin

      public String getKibanaServerUserLogin()
      Get Kibana server user login
      Returns:
      The URL
    • getKibanaServerUserPassword

      public String getKibanaServerUserPassword()
      Get Kibana server user password
      Returns:
      The URL
    • isKibanaServerUserAutoCreate

      public boolean isKibanaServerUserAutoCreate()
      is Kibana server user should auto created
      Returns:
      The URL
    • isKibanaServerSpaceAutoCreate

      public boolean isKibanaServerSpaceAutoCreate()
      is Kibana server space should auto created
      Returns:
      The URL
    • isKibanaServerIndexPatternAutoCreate

      public boolean isKibanaServerIndexPatternAutoCreate()
      is Kibana server indexe pattern should auto created
      Returns:
      The URL
    • isKibanaServerUserShow

      public boolean isKibanaServerUserShow()
      is Kibana server user should showed
      Returns:
      The URL
    • createAllDashboards

      public void createAllDashboards()
      Insert all dashboard to database
    • createDashboard

      public void createDashboard(Dashboard dashboard)
      Insert a dashboard to database
    • filterDashboardListRBAC

      public List<Dashboard> filterDashboardListRBAC(List<Dashboard> listDashboard, javax.servlet.http.HttpServletRequest request)
      Return a dashboard list filtered by RBAC authorizations.
      Parameters:
      listDashboard -
      request -
      Returns:
      a new dashboard list, according to RBAC authorizations.
    • deleteDashboard

      public void deleteDashboard(int nIdDashboard)
      Delete given dashboard and RBACs related to it
      Parameters:
      nIdDashboard -