public final class MyDashboardService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
deleteConfigByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
Delete a user configuration from its user, and reset the list of
configurations saved in session if any
|
List<IMyDashboardComponent> |
getDashboardComponentListFromUser(fr.paris.lutece.portal.service.security.LuteceUser user)
Get the list of dash boards components associated with a given
configuration id.
|
static MyDashboardService |
getInstance()
Return the unique instance
|
List<IMyDashboardComponent> |
getMyDashboardComponentsList(fr.paris.lutece.portal.service.security.LuteceUser user)
Get the list of MyDashboardComponent that are available for a given user
|
List<MyDashboardConfiguration> |
getUserConfig(fr.paris.lutece.portal.service.security.LuteceUser user)
Get the list of MyDashboardConfiguration associated with a given user
|
String |
getUserConfigId(fr.paris.lutece.portal.service.security.LuteceUser user)
Get the id of the dashboard configuration associated with a user
|
void |
updateConfig(MyDashboardConfiguration myDashboardsConfig,
boolean bCleanCache)
Update a dashboard configuration
|
void |
updateConfigList(List<MyDashboardConfiguration> listMyDashboardsConfig)
Update a list of configuration
|
public static MyDashboardService getInstance()
public List<IMyDashboardComponent> getMyDashboardComponentsList(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The userpublic String getUserConfigId(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The user to get the id of the dashboard configuration
ofpublic List<MyDashboardConfiguration> getUserConfig(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The user to get the configurations ofpublic List<IMyDashboardComponent> getDashboardComponentListFromUser(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The user to get the dash board components ofpublic void deleteConfigByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The user to remove the configuration ofpublic void updateConfig(MyDashboardConfiguration myDashboardsConfig, boolean bCleanCache)
myDashboardsConfig - The configuration to updatebCleanCache - True to update the dashboard configuration cache,
false otherwisepublic void updateConfigList(List<MyDashboardConfiguration> listMyDashboardsConfig)
listMyDashboardsConfig - The list of configuration to updateCopyright © 2015 City of Paris. All rights reserved.