Class DashboardHome
- java.lang.Object
-
- fr.paris.lutece.plugins.kibana.business.DashboardHome
-
public final class DashboardHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Dashboard objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Dashboardcreate(Dashboard dashboard)Create an instance of the dashboard classstatic DashboardcreateOrUpdate(Dashboard dashboard)Create or update given dashboardstatic voiddelete(int nIdDashboard)Delete the given dashboardstatic voiddeleteAllKibanaDasboards()Delete all kibanas dashboardsstatic DashboardfindByKibanaId(java.lang.String strIdKibana)Find Kibana dashboard with given kibana dashboard idstatic DashboardfindByPrimaryKey(int nKey)Returns an instance of a dashboard whose identifier is specified in parameterstatic java.util.List<Dashboard>getDashboardsList()Load the data of all the dashboard objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetDashboardsReferenceList()Load the data of all the dashboard objects and returns them as a referenceListstatic java.util.List<java.lang.Integer>getIdDashboardsList()Load the id of all the dashboard objects and returns them as a list
-
-
-
Method Detail
-
create
public static Dashboard create(Dashboard dashboard)
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
public static Dashboard findByPrimaryKey(int nKey)
Returns an instance of a dashboard whose identifier is specified in parameter- Parameters:
nKey- The dashboard primary key- Returns:
- an instance of Dashboard
-
getDashboardsList
public static java.util.List<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
public static java.util.List<java.lang.Integer> 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
public static Dashboard createOrUpdate(Dashboard dashboard)
Create or update given dashboard- Parameters:
dashboard-- Returns:
- the created or updated dashboard
-
findByKibanaId
public static Dashboard findByKibanaId(java.lang.String strIdKibana)
Find Kibana dashboard with given kibana dashboard id- Parameters:
strIdKibana-- Returns:
- the dashboard found
-
-