fr.paris.lutece.plugins.mydashboard.business
Interface IMyDashboardConfigurationDAO

All Known Implementing Classes:
MyDashboardConfigurationDAO

public interface IMyDashboardConfigurationDAO

Interface of DAO for MyDashboardConfiguration objects


Method Summary
 List<MyDashboardConfiguration> findByConfigId(String strConfigId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of MyDashboardConfiguration associated to a given configuration id
 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(String strConfigId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every configuration associated with a given configuration id
 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
 void updateConfiguration(MyDashboardConfiguration config, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modify a configuration
 

Method Detail

getNewConfigId

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

List<MyDashboardConfiguration> findByConfigId(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(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(String strConfigId,
                                    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


Copyright © 2014 Mairie de Paris. All Rights Reserved.