Class StyleSheetHome

java.lang.Object
fr.paris.lutece.portal.business.stylesheet.StyleSheetHome

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

    • create

      public static StyleSheet create(StyleSheet stylesheet)
      Creation of an instance of a Stylesheet file in the database
      Parameters:
      stylesheet - An instance of a stylesheet which contains the informations to store
      Returns:
      The instance of the stylesheet which has been created.
    • remove

      public static void remove(int nId)
      Deletes the StylesSheet whose identifier is specified in parameter
      Parameters:
      nId - the identifier of the stylesheet to delete
    • update

      public static void update(StyleSheet stylesheet)
      Update the StylesSheet whose identifier is specified in parameter
      Parameters:
      stylesheet - the stylesheet to update
    • findByPrimaryKey

      public static StyleSheet findByPrimaryKey(int nKey)
      Returns an instance of a stylesheet file whose identifier is specified in parameter
      Parameters:
      nKey - the stylesheet primary key
      Returns:
      the instance of the styleSheet whose identifier is the nKey
    • getStyleSheetNbPerStyleMode

      public static int getStyleSheetNbPerStyleMode(int nStyleId, int nModeId)
      Returns the number of stylesheets associated to the style and the mode specified in parameter
      Parameters:
      nStyleId - the style id
      nModeId - the mode id
      Returns:
      the number of stylesheet associated
    • getStyleSheetList

      public static Collection<StyleSheet> getStyleSheetList(int nModeId)
      Returns a collection of StyleSheet objet
      Parameters:
      nModeId - The mode identifier
      Returns:
      A collection of StyleSheet object