Class StyleHome

java.lang.Object
fr.paris.lutece.portal.business.style.StyleHome

public final class StyleHome extends Object
This class provides instances management methods (create, find, ...) for Style objects
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    checkStylePortalComponent(int nPortalComponentId)
    Checks if a style has been created in the database with the given portal componenet
    static Style
    create(Style style)
    Creation of a Style record in the database
    static Style
    findByPrimaryKey(int nKey)
    Returns an instance of a style whose identifier is specified in parameter
    static fr.paris.lutece.util.ReferenceList
    Returns a reference list which contains all the Portal Components
    getStyleSheetList(int nStyleId)
    Returns the collection of the StyleSheet objects associated to the Style
    Returns the collection of the Style objects stored in the database
    static void
    remove(int nStyleId)
    Deletes the record in the database which corresponds to the Style instance specified in parameter.
    static void
    update(Style style)
    Updates the record in the database which corresponds to the Style instance specified in parameter.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static Style create(Style style)
      Creation of a Style record in the database
      Parameters:
      style - An instance of the style which contains the informations to store
      Returns:
      The instance of the style which has been created.
    • update

      public static void update(Style style)
      Updates the record in the database which corresponds to the Style instance specified in parameter.
      Parameters:
      style - the instance of the style to update
    • remove

      public static void remove(int nStyleId)
      Deletes the record in the database which corresponds to the Style instance specified in parameter.
      Parameters:
      nStyleId - The identifier of the style
    • findByPrimaryKey

      public static Style findByPrimaryKey(int nKey)
      Returns an instance of a style whose identifier is specified in parameter
      Parameters:
      nKey - The primary key of the style to find in the database
      Returns:
      The Style object which corresponds to the key
    • getStylesList

      public static Collection<Style> getStylesList()
      Returns the collection of the Style objects stored in the database
      Returns:
      A collection of styles
    • getStyleSheetList

      public static Collection<StyleSheet> getStyleSheetList(int nStyleId)
      Returns the collection of the StyleSheet objects associated to the Style
      Parameters:
      nStyleId - identifier of the style
      Returns:
      A collection of styles
    • getPortalComponentList

      public static fr.paris.lutece.util.ReferenceList getPortalComponentList()
      Returns a reference list which contains all the Portal Components
      Returns:
      a reference list
    • checkStylePortalComponent

      public static boolean checkStylePortalComponent(int nPortalComponentId)
      Checks if a style has been created in the database with the given portal componenet
      Parameters:
      nPortalComponentId - The identifier of the portal component
      Returns:
      true if a style has been created for this portal component, false otherwise