|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.myportal.service.WidgetService
public class WidgetService
Widget Service class : retrieve Widget description from a cache
| Constructor Summary | |
|---|---|
WidgetService()
constructor |
|
| Method Summary | |
|---|---|
void |
createWidget(Widget widget)
Create a new widget. |
java.util.List<Widget> |
getEssentialWidgets()
Get the list of essential widgets |
java.util.List<Widget> |
getNewWidgets()
Get the list of new widgets |
java.util.List<Widget> |
getPublicMandatoryWidgets()
Get the list of public or mandatory widgets |
java.util.List<java.lang.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 |
java.util.List<Widget> |
getWidgetsByCategoryId(int nCategoryId)
Get the list of widgets given an id category |
java.util.List<Widget> |
getWidgetsByName(java.lang.String strName)
Get the list of widgets given a name |
java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetService()
| Method Detail |
|---|
public Widget getWidget(int nWidgetId)
nWidgetId - The Widget ID
public java.util.Collection<Widget> getWidgetsList()
public java.util.List<Widget> getWidgetsByCategoryId(int nCategoryId)
nCategoryId - the id category
Widgetpublic java.util.List<Widget> getEssentialWidgets()
Widgetpublic java.util.List<Widget> getNewWidgets()
Widgetpublic java.util.List<Widget> getWidgetsByName(java.lang.String strName)
strName - the name
Widgetpublic void createWidget(Widget widget)
widget - The Widgetpublic void removeWidget(int nWidgetId)
nWidgetId - the widget IDpublic void updateWidget(Widget widget)
widget - The Widgetpublic java.util.List<java.lang.Integer> getUserWidgetIds(fr.paris.lutece.portal.service.security.LuteceUser user)
user - the LuteceUser
public java.util.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 service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||