public final class WidgetDAO extends Object implements IWidgetDAO
| Constructor and Description |
|---|
WidgetDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nWidgetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<Widget> |
getPublicMandatoryWidgets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of public or mandatory widgets
|
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 nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the widget from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
Collection<Widget> |
selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the widgets and returns them as a collection
|
void |
store(Widget widget,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IWidgetDAOplugin - The Pluginpublic void insert(Widget widget, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IWidgetDAOwidget - instance of the Widget object to insertplugin - The pluginpublic Widget load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IWidgetDAOnId - The identifier of the widgetplugin - The pluginpublic void delete(int nWidgetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IWidgetDAOnWidgetId - The identifier of the widgetplugin - The pluginpublic void store(Widget widget, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IWidgetDAOwidget - The reference of the widgetplugin - The pluginpublic Collection<Widget> selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWidgetsList in interface IWidgetDAOplugin - The pluginpublic List<Widget> getPublicMandatoryWidgets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getPublicMandatoryWidgets in interface IWidgetDAOplugin - Pluginpublic List<Widget> getWidgetsByFilter(WidgetFilter wFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getWidgetsByFilter in interface IWidgetDAOwFilter - the filterplugin - PluginWidgetCopyright © 2021 City of Paris. All rights reserved.