fr.paris.lutece.plugins.myportal.business
Interface IWidgetDAO

All Known Implementing Classes:
WidgetDAO

public interface IWidgetDAO

IWidgetDAO Interface


Method Summary
 void delete(int nIdWidget, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 java.util.List<Widget> getPublicMandatoryWidgets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of public or mandatory widgets
 java.util.List<Widget> getWidgetsByFilter(WidgetFilter wFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of widgets by filter
 void insert(Widget widget, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Widget load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection<Widget> selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the widget objects and returns them as a collection
 void store(Widget widget, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

void insert(Widget widget,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
widget - instance of the Widget object to inssert
plugin - the Plugin

store

void store(Widget widget,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
widget - the reference of the Widget
plugin - the Plugin

delete

void delete(int nIdWidget,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdWidget - int identifier of the Widget to delete
plugin - the Plugin

load

Widget load(int nKey,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the widget
plugin - the Plugin
Returns:
The instance of the widget

selectWidgetsList

java.util.Collection<Widget> selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the widget objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the widget objects

getPublicMandatoryWidgets

java.util.List<Widget> getPublicMandatoryWidgets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of public or mandatory widgets

Parameters:
plugin - Plugin
Returns:
the list widgets

getWidgetsByFilter

java.util.List<Widget> getWidgetsByFilter(WidgetFilter wFilter,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of widgets by filter

Parameters:
wFilter - the filter
plugin - Plugin
Returns:
a list of Widget


Copyright © 2012 Mairie de Paris. All Rights Reserved.