Class DashboardService
java.lang.Object
fr.paris.lutece.plugins.kibana.service.DashboardService
DashboardService
-
Method Summary
Modifier and TypeMethodDescriptionvoidInsert all dashboard to databasevoidcreateDashboard(Dashboard dashboard) Insert a dashboard to databasevoiddeleteDashboard(int nIdDashboard) Delete given dashboard and RBACs related to itfilterDashboardListRBAC(List<Dashboard> listDashboard, javax.servlet.http.HttpServletRequest request) Return a dashboard list filtered by RBAC authorizations.Get the list of all dashboardsstatic DashboardServiceGet Kibana server URL or iframe URL if it exists and is not empty.Get Kibana server space idGet Kibana server URLGet Kibana server user loginGet Kibana server user passwordgetListDashboard(String strJSON) Get the list of all dashboardbooleanis Kibana server indexe pattern should auto createdbooleanis Kibana server space should auto createdbooleanis Kibana server user should auto createdbooleanis Kibana server user should showed
-
Method Details
-
getInstance
-
getDashboards
public List<Dashboard> getDashboards() throws NoKibanaIndexException, NoElasticSearchServerExceptionGet the list of all dashboards- Returns:
- The list of dashboards
- Throws:
NoKibanaIndexException- if no Kibana index was foundNoElasticSearchServerException- if no Elastic server was found
-
getListDashboard
Get the list of all dashboard- Parameters:
strJSON- The list of dashboard as JSON provided by Elastic- Returns:
- The list
-
getKibanaServerUrl
Get Kibana server URL- Returns:
- The URL
-
getKibanaServerIframeUrl
Get Kibana server URL or iframe URL if it exists and is not empty.- Returns:
- The appropriate URL
-
getKibanaServerSpaceId
Get Kibana server space id- Returns:
- The URL
-
getKibanaServerUserLogin
Get Kibana server user login- Returns:
- The URL
-
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
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-
-