java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.PanelHome

public final class PanelHome extends Object
This class provides instances management methods (create, find, ...) for Panel objects
  • Method Details

    • 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(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 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 List<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