Author: julien_viet
Date: 2010-02-26 18:13:26 -0500 (Fri, 26 Feb 2010)
New Revision: 1893
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
Log:
GTNPORTAL-180 : Nothing happens when check or un-check Show Infor bar, Show Portlet Mode
and Show Window State in dashboard portlet
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-02-26
22:59:06 UTC (rev 1892)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-02-26
23:13:26 UTC (rev 1893)
@@ -452,6 +452,21 @@
owner.getName(),
null
);
+
+ //
+ boolean showInfoBar = false;
+ boolean showMode = false;
+ boolean showWindowState = false;
+ String theme = null;
+ if (srcContainer.isAdapted(Decorated.class))
+ {
+ Decorated decorated = srcContainer.adapt(Decorated.class);
+ showInfoBar = decorated.getShowInfoBar();
+ showMode = decorated.getShowMode();
+ showWindowState = decorated.getShowInfoBar();
+ theme = decorated.getTheme();
+ }
+
mo = new ApplicationData<Portlet>(
srcContainer.getObjectId(),
component.getName(),
@@ -461,12 +476,12 @@
null,
null,
null,
- false,
- false,
- false,
+ showInfoBar,
+ showWindowState,
+ showMode,
+ theme,
null,
null,
- null,
Collections.<String, String>emptyMap(),
Collections.singletonList(UserACL.EVERYONE));
// Julien : the everyone is not great but having null permission
@@ -661,6 +676,11 @@
{
UIContainer dstDashboard =
session.findObjectById(ObjectType.CONTAINER, app.getStorageId());
srcChild = loadDashboard(dstDashboard);
+ Decorated decorated = dstDashboard.adapt(Decorated.class);
+ decorated.setShowWindowState(app.isShowApplicationState());
+ decorated.setShowInfoBar(app.isShowInfoBar());
+ decorated.setShowMode(app.isShowApplicationMode());
+ decorated.setTheme(app.getTheme());
}
else
{
Show replies by date