fr.paris.lutece.plugins.calendar.business.stylesheet
Class CalendarStyleSheetHome

java.lang.Object
  extended by fr.paris.lutece.plugins.calendar.business.stylesheet.CalendarStyleSheetHome

public final class CalendarStyleSheetHome
extends java.lang.Object

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


Method Summary
static fr.paris.lutece.portal.business.stylesheet.StyleSheet create(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet, java.lang.String strExtension)
          Creation of an instance of a Stylesheet file in the database
static fr.paris.lutece.portal.business.stylesheet.StyleSheet findByPrimaryKey(int nKey)
          Returns an instance of a stylesheet file whose identifier is specified in parameter
static java.lang.String getExtension(int nId)
          Select the extension file related to the export stylesheet
static java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> getStyleSheetList()
          Returns a collection of StyleSheet objet
static void insertExtension(int nId, java.lang.String strExtension)
          Insertion of the extension of an export file in the database
static void remove(int nId)
          Deletes the StylesSheet whose identifier is specified in parameter
static void update(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet)
          Update the StylesSheet whose identifier is specified in parameter
static void updateExtension(int nId, java.lang.String strExtension)
          Update the the extension file 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 fr.paris.lutece.portal.business.stylesheet.StyleSheet create(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet,
                                                                           java.lang.String strExtension)
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(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet)
Update the StylesSheet whose identifier is specified in parameter

Parameters:
stylesheet - the stylesheet to update

findByPrimaryKey

public static fr.paris.lutece.portal.business.stylesheet.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

getStyleSheetList

public static java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> getStyleSheetList()
Returns a collection of StyleSheet objet

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

insertExtension

public static void insertExtension(int nId,
                                   java.lang.String strExtension)
Insertion of the extension of an export file in the database

Parameters:
strExtension - the extension file

getExtension

public static java.lang.String getExtension(int nId)
Select the extension file related to the export stylesheet

Parameters:
nId - the identifier of the stylesheet
Returns:
the extension file

updateExtension

public static void updateExtension(int nId,
                                   java.lang.String strExtension)
Update the the extension file whose identifier is specified in parameter

Parameters:
nId - the stylesheet id
strExtension - the new extension file


Copyright © 2009 Mairie de Paris. All Rights Reserved.