Author: mputz
Date: 2015-05-27 07:54:11 -0400 (Wed, 27 May 2015)
New Revision: 9336
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ1225387/webui/portal/src/main/java/org/exoplatform/portal/application/UserSiteLifeCycle.java
Log:
GTNPORTAL-3497 - Force flush of JCR changes when creating a dashboard
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ1225387/webui/portal/src/main/java/org/exoplatform/portal/application/UserSiteLifeCycle.java
===================================================================
---
epp/portal/branches/EPP_5_2_2_GA_BZ1225387/webui/portal/src/main/java/org/exoplatform/portal/application/UserSiteLifeCycle.java 2015-05-27
10:52:00 UTC (rev 9335)
+++
epp/portal/branches/EPP_5_2_2_GA_BZ1225387/webui/portal/src/main/java/org/exoplatform/portal/application/UserSiteLifeCycle.java 2015-05-27
11:54:11 UTC (rev 9336)
@@ -19,7 +19,9 @@
package org.exoplatform.portal.application;
+import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.container.PortalContainer;
+import org.exoplatform.container.component.RequestLifeCycle;
import org.exoplatform.portal.config.DataStorage;
import org.exoplatform.portal.config.UserPortalConfig;
import org.exoplatform.portal.config.UserPortalConfigService;
@@ -70,6 +72,9 @@
{
log.debug("About to create user site for user " + userName);
configService.createUserSite(userName);
+ // BZ 1059036 - Force the flushing of JCR.
+ RequestLifeCycle.end();
+ RequestLifeCycle.begin(ExoContainerContext.getCurrentContainer());
}
UserPortalConfig userPortalConfig = context.getUserPortalConfig();