fr.paris.lutece.portal.business.stylesheet
Class StyleSheetHome

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

public final class StyleSheetHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Stylesheet objects


Method Summary
static StyleSheet create(StyleSheet stylesheet)
          Creation of an instance of a Stylesheet file in the database
static StyleSheet findByPrimaryKey(int nKey)
          Returns an instance of a stylesheet file whose identifier is specified in parameter
static java.util.Collection<StyleSheet> getStyleSheetList(int nModeId)
          Returns a collection of StyleSheet objet
static int getStyleSheetNbPerStyleMode(int nStyleId, int nModeId)
          Returns the number of stylesheets associated to the style and the mode specified in parameter
static void remove(int nId)
          Deletes the StylesSheet whose identifier is specified in parameter
static void update(StyleSheet stylesheet)
          Update the StylesSheet whose identifier is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 java.util.Collection<StyleSheet> getStyleSheetList(int nModeId)
Returns a collection of StyleSheet objet

Parameters:
nModeId - The mode identifier
Returns:
A collection of StyleSheet object


Copyright © 2010 Mairie de Paris. All Rights Reserved.