public class WidgetService extends Object
| Constructor and Description |
|---|
WidgetService()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createWidget(Widget widget)
Create a new widget.
|
List<Widget> |
getEssentialWidgets()
Get the list of essential widgets
|
List<Widget> |
getNewWidgets()
Get the list of new widgets
|
List<Widget> |
getPublicMandatoryWidgets()
Get the list of public or mandatory widgets
|
List<Integer> |
getUserWidgetIds(fr.paris.lutece.portal.service.security.LuteceUser user)
Get the widget IDs from a given LuteceUser
|
Widget |
getWidget(int nWidgetId)
Returns widgets description from the cache
|
List<Widget> |
getWidgetsByCategoryId(int nCategoryId)
Get the list of widgets given an id category
|
List<Widget> |
getWidgetsByName(String strName)
Get the list of widgets given a name
|
Collection<Widget> |
getWidgetsList()
Load the data of all the widget objects and returns them in form of a collection
|
void |
removeWidget(int nWidgetId)
Remove a widget.
|
void |
setCategoryWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service
|
void |
setEssentialWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service
|
void |
setIconCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service
|
void |
setNewWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service
|
void |
setWidgetCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service
|
void |
setWidgetContentService(WidgetContentService widgetContentService)
Set the widget content service
|
void |
updateWidget(Widget widget)
Update a widget.
|
public Widget getWidget(int nWidgetId)
nWidgetId - The Widget IDpublic Collection<Widget> getWidgetsList()
public List<Widget> getWidgetsByCategoryId(int nCategoryId)
nCategoryId - the id categoryWidgetpublic List<Widget> getEssentialWidgets()
Widgetpublic List<Widget> getNewWidgets()
Widgetpublic List<Widget> getWidgetsByName(String strName)
strName - the nameWidgetpublic void createWidget(Widget widget)
widget - The Widgetpublic void removeWidget(int nWidgetId)
nWidgetId - the widget IDpublic void updateWidget(Widget widget)
widget - The Widgetpublic List<Integer> getUserWidgetIds(fr.paris.lutece.portal.service.security.LuteceUser user)
user - the LuteceUserpublic List<Widget> getPublicMandatoryWidgets()
public void setWidgetCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the _cacheKeyService to setpublic void setIconCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the _cacheKeyService to setpublic void setEssentialWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the _cacheKeyService to setpublic void setNewWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the _cacheKeyService to setpublic void setCategoryWidgetsCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the _cacheKeyService to setpublic void setWidgetContentService(WidgetContentService widgetContentService)
widgetContentService - the widget content serviceCopyright © 2017 City of Paris. All rights reserved.