|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.myportal.business.WidgetHome
public final class WidgetHome
This class provides instances management methods (create, find, ...) for Widget objects
| Method Summary | |
|---|---|
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 java.util.List<Widget> |
getPublicMandatoryWidgets()
Get the list of public or mandatory widgets |
static java.util.List<Widget> |
getWidgetsByFilter(WidgetFilter wFilter)
Get the list of widgets by filter |
static java.util.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int newPrimaryKey()
public static Widget create(Widget widget)
widget - The instance of the Widget which contains the informations to store
public static Widget update(Widget widget)
widget - The instance of the Widget which contains the data to store
public static void remove(int nWidgetId)
nWidgetId - The widget Idpublic static Widget findByPrimaryKey(int nKey)
nKey - The widget primary key
public static java.util.Collection<Widget> getWidgetsList()
public static java.util.List<Widget> getPublicMandatoryWidgets()
public static java.util.List<Widget> getWidgetsByFilter(WidgetFilter wFilter)
wFilter - the filter
Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||