Class PanelHome
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.business.PanelHome
-
public final class PanelHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Panel objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Panelcreate(Panel panel)Create an instance of the panel classstatic PanelfindByCode(java.lang.String strCode)Returns an instance of a panel whose identifier is specified in parameterstatic PanelfindByPrimaryKey(int nKey)Returns an instance of a panel whose identifier is specified in parameterstatic PanelgetDefaultPanel()Returns the default panelstatic java.util.List<java.lang.Integer>getIdPanelsList()Load the id of all the panel objects and returns them as a liststatic java.util.List<Panel>getPanelsList()Load the data of all the panel objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetPanelsReferenceList()Load the data of all the panel objects and returns them as a referenceListstatic voidremove(int nKey)Remove the panel whose identifier is specified in parameterstatic Panelupdate(Panel panel)Update of the panel which is specified in parameter
-
-
-
Method Detail
-
create
public static Panel create(Panel panel)
Create an instance of the panel class- Parameters:
panel- The instance of the Panel which contains the informations to store- Returns:
- The instance of panel which has been created with its primary key.
-
update
public static Panel update(Panel panel)
Update of the panel which is specified in parameter- Parameters:
panel- The instance of the Panel which contains the data to store- Returns:
- The instance of the panel which has been updated
-
remove
public static void remove(int nKey)
Remove the panel whose identifier is specified in parameter- Parameters:
nKey- The panel Id
-
findByPrimaryKey
public static Panel findByPrimaryKey(int nKey)
Returns an instance of a panel whose identifier is specified in parameter- Parameters:
nKey- The panel primary key- Returns:
- an instance of Panel
-
findByCode
public static Panel findByCode(java.lang.String strCode)
Returns an instance of a panel whose identifier is specified in parameter- Parameters:
nKey- The panel primary key- Returns:
- an instance of Panel
-
getPanelsList
public static java.util.List<Panel> getPanelsList()
Load the data of all the panel objects and returns them as a list- Returns:
- the list which contains the data of all the panel objects
-
getIdPanelsList
public static java.util.List<java.lang.Integer> getIdPanelsList()
Load the id of all the panel objects and returns them as a list- Returns:
- the list which contains the id of all the panel objects
-
getPanelsReferenceList
public static fr.paris.lutece.util.ReferenceList getPanelsReferenceList()
Load the data of all the panel objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the panel objects
-
getDefaultPanel
public static Panel getDefaultPanel()
Returns the default panel- Parameters:
nKey- The panel primary key- Returns:
- an instance of Panel
-
-