Author: chris.laprun(a)jboss.com
Date: 2009-05-05 12:41:12 -0400 (Tue, 05 May 2009)
New Revision: 13297
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
Log:
- JBPORTAL-2384: Handle pages named default separately to replicate previous behavior.
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2009-05-05
16:40:12 UTC (rev 13296)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2009-05-05
16:41:12 UTC (rev 13297)
@@ -248,17 +248,17 @@
}
else
{
- // Copy to dashboard link: only if page doesn't already exist in the
dashboard
+ // Copy to dashboard link: only if page doesn't already exist in the
dashboard and is not named
+ // default (to preserve previous behavior).
if ((user != null))
{
// if the page exists in dashboard, its id will be
dashboardId.getChildId(pageName)...
- if
(controller.getPortalObjectContainer().getObject(cm.getDashboardIdFor(user).getChildId(pageName))
== null)
+ if (!"default".equals(pageName) &&
controller.getPortalObjectContainer().getObject(cm.getDashboardIdFor(user).getChildId(pageName))
== null)
{
ImportPageToDashboardCommand iptdc = new
ImportPageToDashboardCommand(page.getId());
rd.setAttribute("org.jboss.portal.header.COPY_TO_DASHBOARD_URL", new
PortalURLImpl(iptdc, controllerCtx, null, null));
}
}
-
}
}
Show replies by date