Class ThemeDAO

  • All Implemented Interfaces:
    IThemeDAO

    public final class ThemeDAO
    extends java.lang.Object
    implements IThemeDAO
    This class provides Data Access methods for Theme objects
    • Constructor Summary

      Constructors 
      Constructor Description
      ThemeDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.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​(java.lang.String strCodeTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the data of Level from the table
      java.util.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​(java.lang.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

        equals, 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​(java.lang.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​(java.lang.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 java.util.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​(java.lang.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