public class SavedObjectService extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(net.sf.json.JSONObject object)
create a kibana object
|
static void |
createDashboard(String strIdDashboard,
String strTitleDashboard,
String strIdIndexPattern,
net.sf.json.JSONArray jsonArrayReference,
net.sf.json.JSONArray jsonArraypanelsJSON,
fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource)
Create a dashboard
|
static void |
createFromString(String strObject)
create a kibana object from string
|
static void |
createIndexPattern(String strIdIndexPattern)
create kibana index pattern
|
static net.sf.json.JSONObject |
createPanelJson(String panelId,
Gird gird)
Create a dashboard visualization panel object
|
static void |
createReadOnlyUser(String strLogin,
String strPassword,
List<String> listTargetIndexName)
create read only user
|
static void |
createSpace(String strSpaceId)
create space index pattern
|
static void |
deleteDashboard(String strIdDashboard)
delete a dashboard
|
static void |
doPostSavedObject(List<net.sf.json.JSONObject> savedObjectList)
Post a saved object
|
static void |
doRefreshKibanaIndexPattern(String strIdIndexPattern)
Refresh kibana index pattern
|
static String |
escape(String jsString)
escape json string
|
static net.sf.json.JSONObject |
getDashboard(String strIdDashboard)
Get dashboard
|
static List<String> |
getFieldDistinctValues(String strIndexId,
String strFieldName,
int nMaxSize)
Get distinct values of a field
|
static fr.paris.lutece.util.ReferenceList |
getParentList(String strIndexId)
Get parent list of elk documents
|
static void |
initEnvironnement() |
static boolean |
isExistSpace(String strSpaceId)
Is space exist
|
static String |
removeUnusedBackSlash(String jsString)
Remove backslash
|
public static net.sf.json.JSONObject getDashboard(String strIdDashboard)
strIdIndexPattern - The index pattern idpublic static void initEnvironnement()
public static void createIndexPattern(String strIdIndexPattern)
strIdIndexPattern - The index pattern idpublic static boolean isExistSpace(String strSpaceId)
strSpaceId - The index pattern idpublic static void createSpace(String strSpaceId)
strSpaceId - The index pattern idpublic static void createReadOnlyUser(String strLogin, String strPassword, List<String> listTargetIndexName)
strSpaceId - The index pattern idpublic static void doRefreshKibanaIndexPattern(String strIdIndexPattern)
strIdIndexPattern - The index pattern idpublic static void create(net.sf.json.JSONObject object)
object - The json objectpublic static void createFromString(String strObject)
strObject - The string objectpublic static void deleteDashboard(String strIdDashboard)
strIdDashboard - The dashboard idpublic static void createDashboard(String strIdDashboard, String strTitleDashboard, String strIdIndexPattern, net.sf.json.JSONArray jsonArrayReference, net.sf.json.JSONArray jsonArraypanelsJSON, fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource)
strIdDashboard - the id of dashboardstrTitleDashboard - the title of dashboardstrIdIndexPattern - the index pattern idjsonArrayReference - the reference arrayjsonArraypanelsJSON - the panels arraypublic static net.sf.json.JSONObject createPanelJson(String panelId, Gird gird)
strIdVisualisation - The visualization idgird - The gird of the visualizationpublic static fr.paris.lutece.util.ReferenceList getParentList(String strIndexId)
strIndexId - The index idpublic static List<String> getFieldDistinctValues(String strIndexId, String strFieldName, int nMaxSize)
strIndexId - The index idstrFieldName - the field namenMaxSize - the max sizepublic static String removeUnusedBackSlash(String jsString)
jsString - string to cleanpublic static String escape(String jsString)
jsString - string to escapepublic static final void doPostSavedObject(List<net.sf.json.JSONObject> savedObjectList)
savedObject - Object to saveCopyright © 2021 City of Paris. All rights reserved.