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

Parameters:
stylesheet - An instance of a stylesheet which contains the informations to store
plugin - Plugin
Returns:
The instance of the stylesheet which has been created.

remove

public static void remove(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the StylesSheet whose identifier is specified in parameter

Parameters:
nId - the identifier of the stylesheet to delete
plugin - Plugin

update

public static void update(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the StylesSheet whose identifier is specified in parameter

Parameters:
stylesheet - the stylesheet to update
plugin - Plugin

findByPrimaryKey

public static fr.paris.lutece.portal.business.stylesheet.StyleSheet findByPrimaryKey(int nKey,
                                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a stylesheet file whose identifier is specified in parameter

Parameters:
nKey - the stylesheet primary key
plugin - Plugin
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(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of StyleSheet objet

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

insertExtension

public static void insertExtension(int nId,
                                   java.lang.String strExtension,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insertion of the extension of an export file in the database

Parameters:
strExtension - the extension file
plugin - Plugin

getExtension

public static java.lang.String getExtension(int nId,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the extension file related to the export stylesheet

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

updateExtension

public static void updateExtension(int nId,
                                   java.lang.String strExtension,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the extension file whose identifier is specified in parameter

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.