public class DashboardService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
createAllDashboards()
Insert all dashboard to database
|
void |
deleteDashboard(int nIdDashboard)
Delete given dashboard and RBACs related to it
|
List<Dashboard> |
filterDashboardListRBAC(List<Dashboard> listDashboard,
javax.servlet.http.HttpServletRequest request)
Return a dashboard list filtered by RBAC authorizations.
|
List<Dashboard> |
getDashboards()
Get the list of all dashboards
|
static DashboardService |
getInstance() |
String |
getKibanaServerUrl()
Get Kibana server URL
|
List<Dashboard> |
getListDashboard(String strJSON)
Get the list of all dashboard
|
public static DashboardService getInstance()
public List<Dashboard> getDashboards() throws NoKibanaIndexException, NoElasticSearchServerException
NoKibanaIndexException - if no Kibana index was foundNoElasticSearchServerException - if no Elastic server was foundpublic List<Dashboard> getListDashboard(String strJSON)
strJSON - The list of dashboard as JSON provided by Elasticpublic String getKibanaServerUrl()
public void createAllDashboards()
public List<Dashboard> filterDashboardListRBAC(List<Dashboard> listDashboard, javax.servlet.http.HttpServletRequest request)
listDashboard - request - public void deleteDashboard(int nIdDashboard)
nIdDashboard - Copyright © 2019 City of Paris. All rights reserved.