fr.paris.lutece.plugins.greetingscard.business
Class GreetingsCardArchiveHome

java.lang.Object
  extended by fr.paris.lutece.plugins.greetingscard.business.GreetingsCardArchiveHome

public class GreetingsCardArchiveHome
extends java.lang.Object


Constructor Summary
GreetingsCardArchiveHome()
           
 
Method Summary
static GreetingsCardArchive findById(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a greetings card archive from the database
static java.util.Collection<GreetingsCardArchive> findByTemplateIdAndYear(int nIdGreetingsCardTemplate, int nYear, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of greetings cards archives of a greetings card template
static java.util.Collection<GreetingsCardArchive> findByYear(int year, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of greetings cards archives of a given year
static fr.paris.lutece.util.ReferenceList getYearList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of every year archived
static void insert(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a greetings card in the database
static void remove(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove a greetings card archive
static void removeAllArchives(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every archive from the database
static void removeByIdTemplate(int nGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every archive associated to a greetings card template
static void update(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a greetings card archive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreetingsCardArchiveHome

public GreetingsCardArchiveHome()
Method Detail

insert

public static void insert(GreetingsCardArchive greetingsCardArchive,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a greetings card in the database

Parameters:
greetingsCardArchive - GreetingsCardarchive to inser
plugin - The plugin

findById

public static GreetingsCardArchive findById(int nIdArchive,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a greetings card archive from the database

Parameters:
nIdArchive - Id of the archive to load
plugin - The plugin
Returns:
The Greetings card archive

findByTemplateIdAndYear

public static java.util.Collection<GreetingsCardArchive> findByTemplateIdAndYear(int nIdGreetingsCardTemplate,
                                                                                 int nYear,
                                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards archives of a greetings card template

Parameters:
nIdGreetingsCardTemplate - The greetings card template identifier
nYear - Year of the archives. If the year is 0, then it is ignored
plugin - The plugin
Returns:
A Collection of greetings cards archives

findByYear

public static java.util.Collection<GreetingsCardArchive> findByYear(int year,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards archives of a given year

Parameters:
findByYear - The year
plugin - The plugin
Returns:
A Collection of greetings cards archives

update

public static void update(GreetingsCardArchive greetingsCardArchive,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a greetings card archive

Parameters:
greetingsCardArchive - Greetings card archive to update
plugin - The plugin

remove

public static void remove(int nIdArchive,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a greetings card archive

Parameters:
nIdArchive - Id of the archive to remove
plugin - The plugin

removeAllArchives

public static void removeAllArchives(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every archive from the database

Parameters:
plugin - The plugin

removeByIdTemplate

public static void removeByIdTemplate(int nGreetingsCardTemplate,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every archive associated to a greetings card template

Parameters:
nGreetingsCardTemplate - Id of the template
plugin - The plugin

getYearList

public static fr.paris.lutece.util.ReferenceList getYearList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of every year archived

Parameters:
plugin - The plugin
Returns:
A reference list containing every year archived.


Copyright © 2012 Mairie de Paris. All Rights Reserved.