Class DashboardHome
java.lang.Object
fr.paris.lutece.plugins.kibana.business.DashboardHome
This class provides instances management methods (create, find, ...) for Dashboard objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic DashboardCreate an instance of the dashboard classstatic DashboardcreateOrUpdate(Dashboard dashboard) Create or update given dashboardstatic voiddelete(int nIdDashboard) Delete the given dashboardstatic voidDelete all kibanas dashboardsstatic DashboardfindByKibanaId(String strIdKibana) Find Kibana dashboard with given kibana dashboard idstatic DashboardfindByPrimaryKey(int nKey) Returns an instance of a dashboard whose identifier is specified in parameterLoad the data of all the dashboard objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the dashboard objects and returns them as a referenceListLoad the id of all the dashboard objects and returns them as a list
-
Method Details
-
create
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
Returns an instance of a dashboard whose identifier is specified in parameter- Parameters:
nKey- The dashboard primary key- Returns:
- an instance of 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
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
Create or update given dashboard- Parameters:
dashboard-- Returns:
- the created or updated dashboard
-
findByKibanaId
Find Kibana dashboard with given kibana dashboard id- Parameters:
strIdKibana-- Returns:
- the dashboard found
-