Class MyDashboardConfigurationDAO

java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.MyDashboardConfigurationDAO
All Implemented Interfaces:
IMyDashboardConfigurationDAO

public class MyDashboardConfigurationDAO extends Object implements IMyDashboardConfigurationDAO
Implementation of IMyDashboardConfigurationDAO
  • Constructor Details

    • MyDashboardConfigurationDAO

      public MyDashboardConfigurationDAO()
  • Method Details

    • getNewConfigId

      public 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 List<MyDashboardConfiguration> findByConfigId(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
    • updateConfiguration

      public void updateConfiguration(MyDashboardConfiguration config, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Modify a configuration
      Specified by:
      updateConfiguration in interface IMyDashboardConfigurationDAO
      Parameters:
      config - The new value of the configuration
      plugin - The plugin
    • insertConfiguration

      public void insertConfiguration(MyDashboardConfiguration config, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create a new configuration
      Specified by:
      insertConfiguration in interface IMyDashboardConfigurationDAO
      Parameters:
      config - The configuration to create
      plugin - The plugin
    • removeByConfigId

      public void removeByConfigId(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(String strConfigId, 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