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

java.lang.Object
  extended by fr.paris.lutece.plugins.calendar.business.stylesheet.CalendarStyleSheetDAO
All Implemented Interfaces:
ICalendarStyleSheetDAO

public final class CalendarStyleSheetDAO
extends java.lang.Object
implements ICalendarStyleSheetDAO

This class provides Data Access methods for StyleSheet objects


Constructor Summary
CalendarStyleSheetDAO()
           
 
Method Summary
 void delete(int nIdStylesheet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the StyleSheet from the database whose identifier is specified in parameter
 void insert(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet, java.lang.String strExtension, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 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
 fr.paris.lutece.portal.business.stylesheet.StyleSheet load(int nIdStylesheet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Stylesheet from the table
 java.lang.String selectExtension(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the extension file related to the export stylesheet
 java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> selectStyleSheetList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of stylesheet
 void store(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 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
 

Constructor Detail

CalendarStyleSheetDAO

public CalendarStyleSheetDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet,
                   java.lang.String strExtension,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface ICalendarStyleSheetDAO
Parameters:
stylesheet - The StyleSheet object
plugin - The plugin
strExtension - the export file extension

load

public fr.paris.lutece.portal.business.stylesheet.StyleSheet load(int nIdStylesheet,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Stylesheet from the table

Specified by:
load in interface ICalendarStyleSheetDAO
Parameters:
nIdStylesheet - the identifier of the Stylesheet to load
plugin - Plugin
Returns:
stylesheet

delete

public void delete(int nIdStylesheet,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the StyleSheet from the database whose identifier is specified in parameter

Specified by:
delete in interface ICalendarStyleSheetDAO
Parameters:
nIdStylesheet - the identifier of the StyleSheet to delete
plugin - Plugin

selectStyleSheetList

public java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> selectStyleSheetList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of stylesheet

Specified by:
selectStyleSheetList in interface ICalendarStyleSheetDAO
Parameters:
nModeId - The Mode identifier
plugin - Plugin
Returns:
the list of the StyleSheet in form of a collection of StyleSheet objects

store

public void store(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface ICalendarStyleSheetDAO
Parameters:
stylesheet - The stylesheet
plugin - Plugin

insertExtension

public 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

Specified by:
insertExtension in interface ICalendarStyleSheetDAO
Parameters:
strExtension - the extension file
plugin - Plugin

selectExtension

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

Specified by:
selectExtension in interface ICalendarStyleSheetDAO
Parameters:
nId - the identifier of the stylesheet
plugin - Plugin
Returns:
the extension file

updateExtension

public 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

Specified by:
updateExtension in interface ICalendarStyleSheetDAO
Parameters:
nId - the stylesheet id
strExtension - the new extension file
plugin - Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.