Class PortalComponentHome

java.lang.Object
fr.paris.lutece.portal.business.portalcomponent.PortalComponentHome

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

    • create

      public static void create(PortalComponent portalComponent)
      Insert a new record in the table.
      Parameters:
      portalComponent - component The Instance of the object PortalComponent
    • remove

      public static void remove(int nPortalComponentId)
      Delete a record from the table
      Parameters:
      nPortalComponentId - The indentifier of the object PortalComponent
    • findByPrimaryKey

      public static PortalComponent findByPrimaryKey(int nPortalComponentId)
      load the data of PortalComponent from the table
      Parameters:
      nPortalComponentId - The indentifier of the object PortalComponent
      Returns:
      The Instance of the object PortalComponent
    • update

      public static void update(PortalComponent portalComponent)
      Update the record in the table
      Parameters:
      portalComponent - The instance of the PortalComponent to update
    • getXsl

      public static StyleSheet getXsl(int nPortalComponentId, int nModeId)
      Returns the stylesheet of the portal component according to the mode
      Parameters:
      nPortalComponentId - the identifier of the portal component
      nModeId - the selected mode
      Returns:
      the stylesheet