Class PanelHome
java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.PanelHome
This class provides instances management methods (create, find, ...) for Panel objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic PanelCreate an instance of the panel classstatic PanelfindByCode(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 PanelReturns the default panelLoad the id of all the panel objects and returns them as a listLoad the data of all the panel objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad 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 of the panel which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a panel whose identifier is specified in parameter- Parameters:
nKey- The panel primary key- Returns:
- an instance of Panel
-
findByCode
Returns an instance of a panel whose identifier is specified in parameter- Parameters:
nKey- The panel primary key- Returns:
- an instance of 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
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
Returns the default panel- Parameters:
nKey- The panel primary key- Returns:
- an instance of Panel
-