Author: julien_viet
Date: 2011-08-14 16:35:39 -0400 (Sun, 14 Aug 2011)
New Revision: 7118
Modified:
portal/trunk/component/pc/pom.xml
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoKernelIntegration.java
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoPortletApplicationDeployer.java
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/GlobalPortletMetaData.java
portal/trunk/packaging/jboss-as5/pkg/pom.xml
portal/trunk/packaging/jboss-as6/pkg/pom.xml
portal/trunk/packaging/jetty/pkg/pom.xml
portal/trunk/packaging/tomcat/pkg/pom.xml
portal/trunk/pom.xml
Log:
GTNPORTAL-2014 : GateIn PC update to 2.3.0-Beta06
Modified: portal/trunk/component/pc/pom.xml
===================================================================
--- portal/trunk/component/pc/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/component/pc/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -52,10 +52,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-federation</artifactId>
</dependency>
<dependency>
Modified:
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoKernelIntegration.java
===================================================================
---
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoKernelIntegration.java 2011-08-14
18:06:46 UTC (rev 7117)
+++
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoKernelIntegration.java 2011-08-14
20:35:39 UTC (rev 7118)
@@ -27,7 +27,6 @@
import org.gatein.pc.bridge.BridgeInterceptor;
import org.gatein.pc.federation.FederatingPortletInvoker;
import org.gatein.pc.federation.impl.FederatingPortletInvokerService;
-import org.gatein.pc.mc.PortletApplicationDeployer;
import org.gatein.pc.portlet.PortletInvokerInterceptor;
import org.gatein.pc.portlet.aspects.CCPPInterceptor;
import org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor;
@@ -41,6 +40,7 @@
import org.gatein.pc.portlet.aspects.ValveInterceptor;
import org.gatein.pc.portlet.container.ContainerPortletDispatcher;
import org.gatein.pc.portlet.container.ContainerPortletInvoker;
+import org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer;
import org.gatein.pc.portlet.impl.state.StateManagementPolicyService;
import org.gatein.pc.portlet.impl.state.producer.PortletStatePersistenceManagerService;
import org.gatein.pc.portlet.state.StateConverter;
Modified:
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoPortletApplicationDeployer.java
===================================================================
---
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoPortletApplicationDeployer.java 2011-08-14
18:06:46 UTC (rev 7117)
+++
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/ExoPortletApplicationDeployer.java 2011-08-14
20:35:39 UTC (rev 7118)
@@ -24,18 +24,17 @@
import org.gatein.api.GateIn;
import org.gatein.common.logging.Logger;
import org.gatein.common.logging.LoggerFactory;
-import org.gatein.pc.mc.PortletApplicationDeployer;
+import org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer;
+import org.gatein.pc.portlet.impl.deployment.staxnav.PortletApplicationMetaDataBuilder;
import org.gatein.pc.portlet.impl.metadata.PortletApplication10MetaData;
import org.gatein.wci.WebApp;
-import org.jboss.xb.binding.JBossXBException;
import java.io.File;
import java.io.FileInputStream;
-import java.io.FileNotFoundException;
import java.io.InputStream;
/**
- * Extends the {@link org.gatein.pc.mc.PortletApplicationDeployer} to inject
configuration metadata
+ * Extends the {@link org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer}
to inject configuration metadata
* from global portlet.xml and to configure the resource bundle factory of deployed
portlet
* applications. The resource bundle factory used is {@link
org.exoplatform.portal.pc.ExoResourceBundleFactory}.
*
@@ -44,7 +43,11 @@
*/
public class ExoPortletApplicationDeployer extends PortletApplicationDeployer
{
+
+ /** . */
private final Logger log =
LoggerFactory.getLogger(ExoPortletApplicationDeployer.class);
+
+ /** . */
private GateIn gateIn;
@Override
@@ -91,17 +94,16 @@
* This method is invoked for each portlet application deployment. That is necessary
for the moment
* to ensure independence between portlet applications
*
- * @return
- * @throws FileNotFoundException
- * @throws JBossXBException
+ * @return the global meta data
+ * @throws Exception any exception
*/
- private GlobalPortletMetaData loadGlobalMetadata(String globalPortletLocation) throws
FileNotFoundException,
- JBossXBException
+ private GlobalPortletMetaData loadGlobalMetadata(String globalPortletLocation) throws
Exception
{
//TODO: Avoid using File
InputStream in = new FileInputStream(new File(globalPortletLocation));
try
{
+ PortletApplicationMetaDataBuilder builder = new
PortletApplicationMetaDataBuilder();
return GlobalPortletMetaData.unmarshalling(in);
}
finally
Modified:
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/GlobalPortletMetaData.java
===================================================================
---
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/GlobalPortletMetaData.java 2011-08-14
18:06:46 UTC (rev 7117)
+++
portal/trunk/component/pc/src/main/java/org/exoplatform/portal/pc/GlobalPortletMetaData.java 2011-08-14
20:35:39 UTC (rev 7118)
@@ -18,15 +18,11 @@
*/
package org.exoplatform.portal.pc;
-import org.gatein.pc.mc.metadata.factory.PortletApplicationModelFactory;
-import org.gatein.pc.mc.metadata.impl.ValueTrimmingFilter;
+import org.gatein.pc.portlet.impl.deployment.staxnav.PortletApplicationMetaDataBuilder;
import org.gatein.pc.portlet.impl.metadata.PortletApplication10MetaData;
import org.gatein.pc.portlet.impl.metadata.PortletApplication20MetaData;
import org.gatein.pc.portlet.impl.metadata.filter.FilterMappingMetaData;
import org.gatein.pc.portlet.impl.metadata.filter.FilterMetaData;
-import org.jboss.xb.binding.JBossXBException;
-import org.jboss.xb.binding.Unmarshaller;
-import org.jboss.xb.binding.UnmarshallerFactory;
import java.io.InputStream;
import java.util.ArrayList;
@@ -135,17 +131,12 @@
//TODO: Wait for the spec of merging public render parameters
}
- public static GlobalPortletMetaData unmarshalling(InputStream in) throws
JBossXBException
- {
- Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
- unmarshaller.setNamespaceAware(true);
- unmarshaller.setSchemaValidation(false);
- unmarshaller.setValidation(false);
+ /** . */
+ private static final PortletApplicationMetaDataBuilder builder = new
PortletApplicationMetaDataBuilder();
- PortletApplicationModelFactory factory = new PortletApplicationModelFactory();
-
- PortletApplication10MetaData application10MetaData =
(PortletApplication10MetaData)unmarshaller.unmarshal(in, new ValueTrimmingFilter(factory),
null);
-
+ public static GlobalPortletMetaData unmarshalling(InputStream in) throws Exception
+ {
+ PortletApplication10MetaData application10MetaData = builder.build(in);
return new GlobalPortletMetaData(application10MetaData);
}
}
Modified: portal/trunk/packaging/jboss-as5/pkg/pom.xml
===================================================================
--- portal/trunk/packaging/jboss-as5/pkg/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/packaging/jboss-as5/pkg/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -352,10 +352,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-bridge</artifactId>
</dependency>
Modified: portal/trunk/packaging/jboss-as6/pkg/pom.xml
===================================================================
--- portal/trunk/packaging/jboss-as6/pkg/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/packaging/jboss-as6/pkg/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -336,10 +336,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-bridge</artifactId>
</dependency>
Modified: portal/trunk/packaging/jetty/pkg/pom.xml
===================================================================
--- portal/trunk/packaging/jetty/pkg/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/packaging/jetty/pkg/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -88,10 +88,6 @@
<artifactId>jboss-common-core</artifactId>
</dependency>
<dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossxb</artifactId>
- </dependency>
- <dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-spi</artifactId>
</dependency>
@@ -335,10 +331,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-bridge</artifactId>
</dependency>
Modified: portal/trunk/packaging/tomcat/pkg/pom.xml
===================================================================
--- portal/trunk/packaging/tomcat/pkg/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/packaging/tomcat/pkg/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -84,10 +84,6 @@
<artifactId>jboss-common-core</artifactId>
</dependency>
<dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossxb</artifactId>
- </dependency>
- <dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-spi</artifactId>
</dependency>
@@ -327,10 +323,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-bridge</artifactId>
</dependency>
Modified: portal/trunk/pom.xml
===================================================================
--- portal/trunk/pom.xml 2011-08-14 18:06:46 UTC (rev 7117)
+++ portal/trunk/pom.xml 2011-08-14 20:35:39 UTC (rev 7118)
@@ -45,7 +45,7 @@
<nl.captcha.simplecaptcha.version>1.1.1-GA-Patch01</nl.captcha.simplecaptcha.version>
<org.gatein.common.version>2.0.4-Beta03</org.gatein.common.version>
<org.gatein.wci.version>2.1.0-Beta06</org.gatein.wci.version>
- <org.gatein.pc.version>2.3.0-Beta04</org.gatein.pc.version>
+ <org.gatein.pc.version>2.3.0-Beta05</org.gatein.pc.version>
<org.picketlink.idm>1.3.0.Alpha03</org.picketlink.idm>
<org.gatein.wsrp.version>2.1.0-Beta04</org.gatein.wsrp.version>
<org.gatein.mop.version>1.1.0-Beta05</org.gatein.mop.version>
@@ -292,11 +292,6 @@
</dependency>
<dependency>
<groupId>org.gatein.pc</groupId>
- <artifactId>pc-mc</artifactId>
- <version>${org.gatein.pc.version}</version>
- </dependency>
- <dependency>
- <groupId>org.gatein.pc</groupId>
<artifactId>pc-portlet</artifactId>
<version>${org.gatein.pc.version}</version>
</dependency>