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.
|
List<IMyDashboardComponent> |
getDashboardComponentListFromUser(fr.paris.lutece.portal.service.security.LuteceUser user,
Panel panel)
Get the list of dash boards components associated with a given
configuration id filtered by panel
The list is sorted with the order of each component in the configuration,
and contains only enabled and displayed components
|
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<IMyDashboardComponent> |
getMyDashboardComponentsList(fr.paris.lutece.portal.service.security.LuteceUser user,
Panel panel)
Get the list of MyDashboardComponent that are available for a given user
|
fr.paris.lutece.util.ReferenceList |
getMyDashboardComponentsRefList(Locale locale)
get ReferenceList containing all Dashboard components
|
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
|
boolean |
isPanelEnabled() |
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 fr.paris.lutece.util.ReferenceList getMyDashboardComponentsRefList(Locale locale)
public List<IMyDashboardComponent> getMyDashboardComponentsList(fr.paris.lutece.portal.service.security.LuteceUser user, Panel panel)
user - The userpanel - the panelpublic 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 boolean isPanelEnabled()
public List<IMyDashboardComponent> getDashboardComponentListFromUser(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The user to get the dash board components ofpublic List<IMyDashboardComponent> getDashboardComponentListFromUser(fr.paris.lutece.portal.service.security.LuteceUser user, Panel panel)
user - The user to get the dash board components ofpanel - The panelpublic 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 © 2022 City of Paris. All rights reserved.