mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Configuration added for web-client to setup default dashlets shown in a user Dashboard on first login
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -162,16 +162,17 @@ public class DashboardManager
|
||||
Page page = new Page("default", layout);
|
||||
Column defaultColumn = new Column();
|
||||
|
||||
// add the default dashlet(s) to the column
|
||||
DashletDefinition dashlet = config.getDashletDefinition(DASHLET_STARTEDDEFAULT);
|
||||
if (dashlet != null)
|
||||
// add the default dashlet(s) to the column as specified in the config
|
||||
if (config.getDefaultDashlets() != null)
|
||||
{
|
||||
defaultColumn.addDashlet(dashlet);
|
||||
}
|
||||
dashlet = config.getDashletDefinition(DASHLET_TASKSDEFAULT);
|
||||
if (dashlet != null)
|
||||
{
|
||||
defaultColumn.addDashlet(dashlet);
|
||||
for (String id : config.getDefaultDashlets())
|
||||
{
|
||||
DashletDefinition dashlet = config.getDashletDefinition(id);
|
||||
if (dashlet != null)
|
||||
{
|
||||
defaultColumn.addDashlet(dashlet);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add the column to the page and we are done
|
||||
|
Reference in New Issue
Block a user