Interface IMyDashboardConfigurationDAO

  • All Known Implementing Classes:
    MyDashboardConfigurationDAO

    public interface IMyDashboardConfigurationDAO
    Interface of DAO for MyDashboardConfiguration objects
    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • getNewConfigId

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

        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
        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

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

        void insertConfiguration​(MyDashboardConfiguration config,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Create a new configuration
        Parameters:
        config - The configuration to create
        plugin - The plugin
      • removeByConfigId

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

        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
        Parameters:
        strConfigId - The id of the configuration
        strDashboardId - The dashboard component id
        plugin - The plugin