public final class WidgetHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Widget |
create(Widget widget)
Create an instance of the widget class
|
static Widget |
findByPrimaryKey(int nKey)
Returns an instance of a widget whose identifier is specified in parameter
|
static List<Widget> |
getPublicMandatoryWidgets()
Get the list of public or mandatory widgets
|
static List<Widget> |
getWidgetsByFilter(WidgetFilter wFilter)
Get the list of widgets by filter
|
static Collection<Widget> |
getWidgetsList()
Load the data of all the widget objects and returns them in form of a collection
|
static int |
newPrimaryKey()
Generates a new primary key
|
static void |
remove(int nWidgetId)
Remove the widget whose identifier is specified in parameter
|
static Widget |
update(Widget widget)
Update of the widget which is specified in parameter
|
public static int newPrimaryKey()
public static Widget create(Widget widget)
widget - The instance of the Widget which contains the informations to storepublic static Widget update(Widget widget)
widget - The instance of the Widget which contains the data to storepublic static void remove(int nWidgetId)
nWidgetId - The widget Idpublic static Widget findByPrimaryKey(int nKey)
nKey - The widget primary keypublic static Collection<Widget> getWidgetsList()
public static List<Widget> getPublicMandatoryWidgets()
public static List<Widget> getWidgetsByFilter(WidgetFilter wFilter)
wFilter - the filterWidgetCopyright © 2017 City of Paris. All rights reserved.