fr.paris.lutece.portal.business.style
Class ThemeHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.style.ThemeHome

public final class ThemeHome
extends java.lang.Object

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


Method Summary
static Theme create(Theme theme)
          Creation of an instance of a theme
static Theme findByPrimaryKey(java.lang.String strCodeTheme)
          Returns an instance of an theme whose identifier is specified in parameter
static java.lang.String getGlobalTheme()
          Returns the global theme
static ReferenceList getThemes()
          Returns a reference list which contains all the themes
static java.util.Collection<Theme> getThemesList()
          Return the list of all the themes
static boolean isValidTheme(java.lang.String strCodeTheme)
          Checks if the theme is among existing themes
static void remove(java.lang.String strCodeTheme)
          Remove the theme whose identifier is specified in parameter
static void setGlobalTheme(java.lang.String strGlobalTheme)
          Sets the global theme
static Theme update(Theme theme)
          Update of the theme which is specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Theme create(Theme theme)
Creation of an instance of a theme

Parameters:
theme - An instance of a theme which contains the informations to store
Returns:
The instance of a theme which has been created with its primary key.

update

public static Theme update(Theme theme)
Update of the theme which is specified

Parameters:
theme - The instance of the theme which contains the data to store
Returns:
The instance of the theme which has been updated

remove

public static void remove(java.lang.String strCodeTheme)
Remove the theme whose identifier is specified in parameter

Parameters:
nId - The identifier of the theme to remove

findByPrimaryKey

public static Theme findByPrimaryKey(java.lang.String strCodeTheme)
Returns an instance of an theme whose identifier is specified in parameter

Parameters:
nKey - The theme primary key
Returns:
an instance of a theme

getThemesList

public static java.util.Collection<Theme> getThemesList()
Return the list of all the themes

Returns:
A collection of themes objects

getThemes

public static ReferenceList getThemes()
Returns a reference list which contains all the themes

Returns:
a reference list

isValidTheme

public static boolean isValidTheme(java.lang.String strCodeTheme)
Checks if the theme is among existing themes

Parameters:
strTheme - The theme to check
Returns:
True if the theme is valid

setGlobalTheme

public static void setGlobalTheme(java.lang.String strGlobalTheme)
Sets the global theme

Parameters:
strGlobalTheme - The Global Theme

getGlobalTheme

public static java.lang.String getGlobalTheme()
Returns the global theme

Returns:
The Global Theme


Copyright © 2010 Mairie de Paris. All Rights Reserved.