Class MyDashboardConfigurationDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<MyDashboardConfiguration> findByConfigId​(java.lang.String strConfigId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of MyDashboardConfiguration associated to a given configuration id
      java.lang.String getNewConfigId()
      Get a new id of dashboard configurations.
      void insertConfiguration​(MyDashboardConfiguration config, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create a new configuration
      void removeByConfigId​(java.lang.String strConfigId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove every configuration associated with a given configuration id
      void removeByConfigIdAndDashboardId​(java.lang.String strConfigId, java.lang.String strDashboardId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a dashboard from a configuration id and a dashboard component id
      void updateConfiguration​(MyDashboardConfiguration config, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Modify a configuration
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyDashboardConfigurationDAO

        public MyDashboardConfigurationDAO()
    • Method Detail

      • getNewConfigId

        public java.lang.String getNewConfigId()
        Get a new id of dashboard configurations. Each id returned by this method are ensured to be unique.
        Specified by:
        getNewConfigId in interface IMyDashboardConfigurationDAO
        Returns:
        The new id of the dashboard configuration
      • findByConfigId

        public java.util.List<MyDashboardConfiguration> findByConfigId​(java.lang.String strConfigId,
                                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of MyDashboardConfiguration associated to a given configuration id
        Specified by:
        findByConfigId in interface IMyDashboardConfigurationDAO
        Parameters:
        strConfigId - The id of the configuration
        plugin - The plugin
        Returns:
        The list MyDashboardConfiguration associated to the given configuration id, or an empty list if no configuration was found
      • removeByConfigId

        public void removeByConfigId​(java.lang.String strConfigId,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove every configuration associated with a given configuration id
        Specified by:
        removeByConfigId in interface IMyDashboardConfigurationDAO
        Parameters:
        strConfigId - The id of the configuration
        plugin - The plugin
      • removeByConfigIdAndDashboardId

        public void removeByConfigIdAndDashboardId​(java.lang.String strConfigId,
                                                   java.lang.String strDashboardId,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove a dashboard from a configuration id and a dashboard component id
        Specified by:
        removeByConfigIdAndDashboardId in interface IMyDashboardConfigurationDAO
        Parameters:
        strConfigId - The id of the configuration
        strDashboardId - The dashboard component id
        plugin - The plugin