fr.paris.lutece.plugins.theme.business
Class ThemeDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.theme.business.ThemeDAO
All Implemented Interfaces:
IThemeDAO

public final class ThemeDAO
extends Object
implements IThemeDAO

This class provides Data Access methods for Theme objects


Constructor Summary
ThemeDAO()
           
 
Method Summary
 void delete(String strCodeTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.portal.business.style.Theme getGlobalTheme(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the global theme
 fr.paris.lutece.util.ReferenceList getThemesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of the themes in form of a reference list
 void insert(fr.paris.lutece.portal.business.style.Theme theme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 fr.paris.lutece.portal.business.style.Theme load(String strCodeTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of Level from the table
 Collection<fr.paris.lutece.portal.business.style.Theme> selectThemesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a list of all the themes
 void setGlobalTheme(String strGlobalTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Sets the global theme
 void store(fr.paris.lutece.portal.business.style.Theme theme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeDAO

public ThemeDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.style.Theme theme,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IThemeDAO
Parameters:
theme - The mode object
plugin - Plugin

load

public fr.paris.lutece.portal.business.style.Theme load(String strCodeTheme,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Level from the table

Specified by:
load in interface IThemeDAO
Parameters:
strCodeTheme - The indentifier of the object Theme
plugin - Plugin
Returns:
The Instance of the object Theme

delete

public void delete(String strCodeTheme,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IThemeDAO
Parameters:
strCodeTheme - The indentifier of the object Theme
plugin - Plugin

store

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

Specified by:
store in interface IThemeDAO
Parameters:
theme - The instance of the Theme to update
plugin - Plugin

selectThemesList

public Collection<fr.paris.lutece.portal.business.style.Theme> selectThemesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all the themes

Specified by:
selectThemesList in interface IThemeDAO
Parameters:
plugin - Plugin
Returns:
A collection of themes objects

getThemesList

public fr.paris.lutece.util.ReferenceList getThemesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of the themes in form of a reference list

Specified by:
getThemesList in interface IThemeDAO
Parameters:
plugin - Plugin
Returns:
the themes list in form of a ReferenceList object

setGlobalTheme

public void setGlobalTheme(String strGlobalTheme,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Sets the global theme

Specified by:
setGlobalTheme in interface IThemeDAO
Parameters:
strGlobalTheme - The Global Theme
plugin - Plugin

getGlobalTheme

public fr.paris.lutece.portal.business.style.Theme getGlobalTheme(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the global theme

Specified by:
getGlobalTheme in interface IThemeDAO
Parameters:
plugin - Plugin
Returns:
The Global Theme


Copyright © 2013 Mairie de Paris. All Rights Reserved.