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:
Kevin Roast
2007-06-15 15:07:36 +00:00
parent 3131468788
commit 1883c7b020
4 changed files with 63 additions and 11 deletions

View File

@@ -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