gatein SVN: r208 - tools/maven/dep/trunk.
by do-not-reply@jboss.org
Author: mpodolin
Date: 2009-09-29 04:43:31 -0400 (Tue, 29 Sep 2009)
New Revision: 208
Modified:
tools/maven/dep/trunk/pom.xml
Log:
Dependencies updates
Modified: tools/maven/dep/trunk/pom.xml
===================================================================
--- tools/maven/dep/trunk/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
+++ tools/maven/dep/trunk/pom.xml 2009-09-29 08:43:31 UTC (rev 208)
@@ -32,13 +32,21 @@
<version.log4j>1.2.14</version.log4j>
<version.junit>3.8.2</version.junit>
<version.javax.servlet>2.5</version.javax.servlet>
+ <version.javax.servlet.jsp>2.1</version.javax.servlet.jsp>
+ <version.portlet-api>2.0</version.portlet-api>
<version.cargo>1.0.1-alpha-1</version.cargo>
<version.ant>1.7.0</version.ant>
+ <version.concurrent>1.3.4</version.concurrent>
+ <version.sun-jaxb>2.1.4</version.sun-jaxb>
+ <version.ccpp-api>1.0</version.ccpp-api>
<!-- next two needs to be synchronized within modules - pc vs wcl -->
<version.apache.tomcat>6.0.16</version.apache.tomcat>
<version.apache.commons-logging>1.1.1</version.apache.commons-logging>
<version.apache.commons-httpclient>3.0.1</version.apache.commons-httpclient>
+ <version.apache.portals.bridges>1.0.4</version.apache.portals.bridges>
+ <version.apache.taglibs>1.1.2</version.apache.taglibs>
+ <version.xerces>2.9.1</version.xerces>
<version.jboss.logging>2.0.4.GA</version.jboss.logging>
<version.jboss.remoting>2.5.0.GA</version.jboss.remoting>
@@ -50,6 +58,7 @@
<version.jboss.jmx>4.2.3.GA</version.jboss.jmx>
<version.jboss.man>2.0.0.GA</version.jboss.man>
<version.jboss.vfs>2.1.0.GA</version.jboss.vfs>
+ <version.jbossxb>2.0.1.GA</version.jbossxb>
</properties>
@@ -79,6 +88,12 @@
</dependency>
<dependency>
+ <groupId>concurrent</groupId>
+ <artifactId>concurrent</artifactId>
+ <version>${version.concurrent}</version>
+ </dependency>
+
+ <dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<version>1.0</version>
@@ -128,7 +143,19 @@
<artifactId>servlet-api</artifactId>
<version>${version.javax.servlet}</version>
</dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>${version.javax.servlet.jsp}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>${version.portlet-api}</version>
+ </dependency>
+
+
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-uberjar</artifactId>
@@ -168,6 +195,16 @@
<version>${version.apache.tomcat}</version>
</dependency>
<dependency>
+ <groupId>apache-taglibs</groupId>
+ <artifactId>jstl</artifactId>
+ <version>${version.apache.taglibs}</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>${version.apache.taglibs}</version>
+ </dependency>
+ <dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${version.apache.commons-logging}</version>
@@ -179,6 +216,23 @@
</dependency>
<dependency>
+ <groupId>apache-xerces</groupId>
+ <artifactId>resolver</artifactId>
+ <version>${version.xerces}</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>${version.xerces}</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-xerces</groupId>
+ <artifactId>xml-apis</artifactId>
+ <version>${version.xerces}</version>
+ </dependency>
+
+
+ <dependency>
<groupId>org.jboss.unit</groupId>
<artifactId>jboss-unit</artifactId>
<version>${version.jboss.unit}</version>
@@ -268,7 +322,37 @@
<artifactId>jboss-kernel</artifactId>
<version>${version.jboss.microcontainer}</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ <version>${version.jbossxb}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-common</artifactId>
+ <version>${version.apache.portals.bridges}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>${version.sun-jaxb}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.ccpp</groupId>
+ <artifactId>ccpp</artifactId>
+ <version>${version.ccpp-api}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>cargo</groupId>
+ <artifactId>cargo-manager</artifactId>
+ <type>war</type>
+ <version>0.9-portal</version>
+ </dependency>
+
</dependencies>
</dependencyManagement>
16 years, 7 months
gatein SVN: r207 - in components/wsrp/trunk: admin-gui and 22 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-09-28 18:21:33 -0400 (Mon, 28 Sep 2009)
New Revision: 207
Added:
components/wsrp/trunk/wsrp-producer-war/
components/wsrp/trunk/wsrp-producer-war/pom.xml
components/wsrp/trunk/wsrp-producer-war/src/
components/wsrp/trunk/wsrp-producer-war/src/main/
components/wsrp/trunk/wsrp-producer-war/src/main/java/
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java
components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/classes/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/classes/wshandlers.xml
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/producer/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/producer/config.xml
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/context.xml
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/web.xml
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
Removed:
components/wsrp/trunk/producer/src/assemble/
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java
components/wsrp/trunk/producer/src/main/webapp/
Modified:
components/wsrp/trunk/admin-gui/pom.xml
components/wsrp/trunk/api/pom.xml
components/wsrp/trunk/common/pom.xml
components/wsrp/trunk/consumer/pom.xml
components/wsrp/trunk/pom.xml
components/wsrp/trunk/producer/pom.xml
components/wsrp/trunk/wsrp1-ws/pom.xml
Log:
- Prefixed artifact IDs with wsrp to avoid collisions.
- Split producer module into wsrp-producer-lib and wsrp-producer-war. Moved *Endpoint classes to war module so that the WS annotations can be properly resolved.
Modified: components/wsrp/trunk/admin-gui/pom.xml
===================================================================
--- components/wsrp/trunk/admin-gui/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/admin-gui/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,26 +30,26 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>admin-gui</artifactId>
+ <artifactId>wsrp-admin-gui</artifactId>
<packaging>war</packaging>
<name>GateIn WSRP Admin GUI</name>
<dependencies>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>common</artifactId>
+ <artifactId>wsrp-common</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>consumer</artifactId>
+ <artifactId>wsrp-consumer</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>producer</artifactId>
+ <artifactId>wsrp-producer-lib</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
Modified: components/wsrp/trunk/api/pom.xml
===================================================================
--- components/wsrp/trunk/api/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/api/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,7 +30,7 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>api</artifactId>
+ <artifactId>wsrp-integration-api</artifactId>
<packaging>jar</packaging>
<name>GateIn WSRP Integration API</name>
@@ -39,6 +39,7 @@
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
+ <scope>provided</scope>
</dependency>
</dependencies>
Modified: components/wsrp/trunk/common/pom.xml
===================================================================
--- components/wsrp/trunk/common/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/common/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,14 +30,14 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>common</artifactId>
+ <artifactId>wsrp-common</artifactId>
<packaging>jar</packaging>
<name>GateIn WSRP Common Classes</name>
<dependencies>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>wsrp1-ws</artifactId>
+ <artifactId>wsrp-wsrp1-ws</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
Modified: components/wsrp/trunk/consumer/pom.xml
===================================================================
--- components/wsrp/trunk/consumer/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/consumer/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,24 +30,24 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>consumer</artifactId>
+ <artifactId>wsrp-consumer</artifactId>
<packaging>jar</packaging>
<name>GateIn WSRP Consumer</name>
<dependencies>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>common</artifactId>
+ <artifactId>wsrp-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>api</artifactId>
+ <artifactId>wsrp-integration-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>wsrp1-ws</artifactId>
+ <artifactId>wsrp-wsrp1-ws</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Modified: components/wsrp/trunk/pom.xml
===================================================================
--- components/wsrp/trunk/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -52,9 +52,9 @@
<module>api</module>
<module>wsrp1-ws</module>
<module>common</module>
- <!-- <module>test-support</module> -->
<module>producer</module>
<module>consumer</module>
<module>admin-gui</module>
+ <module>wsrp-producer-war</module>
</modules>
</project>
\ No newline at end of file
Modified: components/wsrp/trunk/producer/pom.xml
===================================================================
--- components/wsrp/trunk/producer/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,20 +30,22 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>producer</artifactId>
+ <artifactId>wsrp-producer-lib</artifactId>
<packaging>jar</packaging>
<name>GateIn WSRP Producer</name>
<dependencies>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>wsrp1-ws</artifactId>
+ <artifactId>wsrp-wsrp1-ws</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gatein.wsrp</groupId>
- <artifactId>common</artifactId>
+ <artifactId>wsrp-common</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gatein.common</groupId>
@@ -94,8 +96,6 @@
</dependencies>
<build>
- <finalName>wsrp-producer</finalName>
-
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
@@ -104,24 +104,6 @@
<target>1.5</target>
</configuration>
</plugin>
-
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>make-assembly</id>
- <goals>
- <goal>single</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <descriptors>
- <descriptor>src/assemble/wsrp-producer-war.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -1,170 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.endpoints;
-
-import org.oasis.wsrp.v1.AccessDenied;
-import org.oasis.wsrp.v1.BlockingInteractionResponse;
-import org.oasis.wsrp.v1.Extension;
-import org.oasis.wsrp.v1.GetMarkup;
-import org.oasis.wsrp.v1.InconsistentParameters;
-import org.oasis.wsrp.v1.InitCookie;
-import org.oasis.wsrp.v1.InteractionParams;
-import org.oasis.wsrp.v1.InvalidCookie;
-import org.oasis.wsrp.v1.InvalidHandle;
-import org.oasis.wsrp.v1.InvalidRegistration;
-import org.oasis.wsrp.v1.InvalidSession;
-import org.oasis.wsrp.v1.InvalidUserCategory;
-import org.oasis.wsrp.v1.MarkupContext;
-import org.oasis.wsrp.v1.MarkupParams;
-import org.oasis.wsrp.v1.MarkupResponse;
-import org.oasis.wsrp.v1.MissingParameters;
-import org.oasis.wsrp.v1.OperationFailed;
-import org.oasis.wsrp.v1.PerformBlockingInteraction;
-import org.oasis.wsrp.v1.PortletContext;
-import org.oasis.wsrp.v1.PortletStateChangeRequired;
-import org.oasis.wsrp.v1.RegistrationContext;
-import org.oasis.wsrp.v1.ReleaseSessions;
-import org.oasis.wsrp.v1.ReturnAny;
-import org.oasis.wsrp.v1.RuntimeContext;
-import org.oasis.wsrp.v1.SessionContext;
-import org.oasis.wsrp.v1.UnsupportedLocale;
-import org.oasis.wsrp.v1.UnsupportedMimeType;
-import org.oasis.wsrp.v1.UnsupportedMode;
-import org.oasis.wsrp.v1.UnsupportedWindowState;
-import org.oasis.wsrp.v1.UpdateResponse;
-import org.oasis.wsrp.v1.UserContext;
-import org.oasis.wsrp.v1.WSRPV1MarkupPortType;
-
-import javax.jws.HandlerChain;
-import javax.jws.WebParam;
-import javax.xml.ws.Holder;
-import java.util.List;
-
-/**
- * @author <a href="mailto:palber@novell.com">Polina Alber</a>
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 8784 $
- * @since 2.4
- */
-(a)javax.jws.WebService(
- name = "WSRPV1MarkupPortType",
- serviceName = "WSRPV1Service",
- portName = "WSRPMarkupService",
- targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
- wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
- endpointInterface = "org.oasis.wsrp.v1.WSRPV1MarkupPortType"
-)
-@HandlerChain(file = "wshandlers.xml")
-public class MarkupEndpoint extends WSRPBaseEndpoint implements WSRPV1MarkupPortType
-{
- public void performBlockingInteraction(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "runtimeContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RuntimeContext runtimeContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "markupParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") MarkupParams markupParams,
- @WebParam(name = "interactionParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") InteractionParams interactionParams,
- @WebParam(mode = WebParam.Mode.OUT, name = "updateResponse", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<UpdateResponse> updateResponse,
- @WebParam(mode = WebParam.Mode.OUT, name = "redirectURL", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> redirectURL,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie, InvalidSession, MissingParameters,
- UnsupportedLocale, InconsistentParameters, PortletStateChangeRequired, InvalidHandle, InvalidRegistration,
- InvalidUserCategory, AccessDenied, OperationFailed
- {
- forceSessionAccess();
-
- PerformBlockingInteraction performBlockingInteraction = new PerformBlockingInteraction();
- performBlockingInteraction.setPortletContext(portletContext);
- performBlockingInteraction.setRuntimeContext(runtimeContext);
- performBlockingInteraction.setMarkupParams(markupParams);
- performBlockingInteraction.setInteractionParams(interactionParams);
- performBlockingInteraction.setRegistrationContext(registrationContext);
- performBlockingInteraction.setUserContext(userContext);
-
- BlockingInteractionResponse interactionResponse = producer.performBlockingInteraction(performBlockingInteraction);
-
- updateResponse.value = interactionResponse.getUpdateResponse();
- redirectURL.value = interactionResponse.getRedirectURL();
- extensions.value = interactionResponse.getExtensions();
- }
-
- public List<Extension> releaseSessions(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "sessionIDs", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> sessionIDs
- ) throws MissingParameters, InvalidRegistration, AccessDenied, OperationFailed
- {
- forceSessionAccess();
-
- ReleaseSessions releaseSessions = new ReleaseSessions();
- releaseSessions.setRegistrationContext(registrationContext);
- releaseSessions.getSessionIDs().addAll(sessionIDs);
-
- ReturnAny returnAny = producer.releaseSessions(releaseSessions);
-
- return returnAny.getExtensions();
- }
-
- public void getMarkup(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "runtimeContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RuntimeContext runtimeContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "markupParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") MarkupParams markupParams,
- @WebParam(mode = WebParam.Mode.OUT, name = "markupContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<MarkupContext> markupContext,
- @WebParam(mode = WebParam.Mode.OUT, name = "sessionContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<SessionContext> sessionContext,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie, InvalidSession, MissingParameters,
- UnsupportedLocale, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied,
- OperationFailed
- {
- forceSessionAccess();
-
- GetMarkup getMarkup = new GetMarkup();
- getMarkup.setRegistrationContext(registrationContext);
- getMarkup.setPortletContext(portletContext);
- getMarkup.setRuntimeContext(runtimeContext);
- getMarkup.setUserContext(userContext);
- getMarkup.setMarkupParams(markupParams);
-
- MarkupResponse response = producer.getMarkup(getMarkup);
-
- markupContext.value = response.getMarkupContext();
- sessionContext.value = response.getSessionContext();
- extensions.value = response.getExtensions();
- }
-
- public List<Extension> initCookie(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext
- ) throws InvalidRegistration, AccessDenied, OperationFailed
- {
- forceSessionAccess();
-
- InitCookie initCookie = new InitCookie();
- initCookie.setRegistrationContext(registrationContext);
-
- ReturnAny returnAny = producer.initCookie(initCookie);
-
- return returnAny.getExtensions();
- }
-}
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -1,205 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.endpoints;
-
-import org.oasis.wsrp.v1.AccessDenied;
-import org.oasis.wsrp.v1.ClonePortlet;
-import org.oasis.wsrp.v1.DestroyFailed;
-import org.oasis.wsrp.v1.DestroyPortlets;
-import org.oasis.wsrp.v1.DestroyPortletsResponse;
-import org.oasis.wsrp.v1.Extension;
-import org.oasis.wsrp.v1.GetPortletDescription;
-import org.oasis.wsrp.v1.GetPortletProperties;
-import org.oasis.wsrp.v1.GetPortletPropertyDescription;
-import org.oasis.wsrp.v1.InconsistentParameters;
-import org.oasis.wsrp.v1.InvalidHandle;
-import org.oasis.wsrp.v1.InvalidRegistration;
-import org.oasis.wsrp.v1.InvalidUserCategory;
-import org.oasis.wsrp.v1.MissingParameters;
-import org.oasis.wsrp.v1.ModelDescription;
-import org.oasis.wsrp.v1.OperationFailed;
-import org.oasis.wsrp.v1.PortletContext;
-import org.oasis.wsrp.v1.PortletDescription;
-import org.oasis.wsrp.v1.PortletDescriptionResponse;
-import org.oasis.wsrp.v1.PortletPropertyDescriptionResponse;
-import org.oasis.wsrp.v1.Property;
-import org.oasis.wsrp.v1.PropertyList;
-import org.oasis.wsrp.v1.RegistrationContext;
-import org.oasis.wsrp.v1.ResetProperty;
-import org.oasis.wsrp.v1.ResourceList;
-import org.oasis.wsrp.v1.SetPortletProperties;
-import org.oasis.wsrp.v1.UserContext;
-import org.oasis.wsrp.v1.WSRPV1PortletManagementPortType;
-
-import javax.jws.HandlerChain;
-import javax.jws.WebParam;
-import javax.xml.ws.Holder;
-import java.util.List;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 8784 $
- * @since 2.4
- */
-(a)javax.jws.WebService(
- name = "WSRPV1PortletManagementPortType",
- serviceName = "WSRPV1Service",
- portName = "WSRPPortletManagementService",
- targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
- wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
- endpointInterface = "org.oasis.wsrp.v1.WSRPV1PortletManagementPortType"
-)
-@HandlerChain(file = "wshandlers.xml")
-public class PortletManagementEndpoint extends WSRPBaseEndpoint implements WSRPV1PortletManagementPortType
-{
- public void getPortletPropertyDescription(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
- @WebParam(mode = WebParam.Mode.OUT, name = "modelDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ModelDescription> modelDescription,
- @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
- {
- GetPortletPropertyDescription getPortletPropertyDescription = new GetPortletPropertyDescription();
- getPortletPropertyDescription.setRegistrationContext(registrationContext);
- getPortletPropertyDescription.setPortletContext(portletContext);
- getPortletPropertyDescription.setUserContext(userContext);
- getPortletPropertyDescription.getDesiredLocales().addAll(desiredLocales);
-
- PortletPropertyDescriptionResponse descriptionResponse = producer.getPortletPropertyDescription(getPortletPropertyDescription);
-
- modelDescription.value = descriptionResponse.getModelDescription();
- resourceList.value = descriptionResponse.getResourceList();
- extensions.value = descriptionResponse.getExtensions();
- }
-
- public void setPortletProperties(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "propertyList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PropertyList propertyList,
- @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> portletHandle,
- @WebParam(mode = WebParam.Mode.OUT, name = "portletState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> portletState,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
- {
- SetPortletProperties setPortletProperties = new SetPortletProperties();
- setPortletProperties.setRegistrationContext(registrationContext);
- setPortletProperties.setPortletContext(portletContext);
- setPortletProperties.setUserContext(userContext);
- setPortletProperties.setPropertyList(propertyList);
-
- PortletContext response = producer.setPortletProperties(setPortletProperties);
-
- portletHandle.value = response.getPortletHandle();
- portletState.value = response.getPortletState();
- extensions.value = response.getExtensions();
- }
-
- public void clonePortlet(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> portletHandle,
- @WebParam(mode = WebParam.Mode.OUT, name = "portletState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> portletState,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
- {
- ClonePortlet clonePortlet = new ClonePortlet();
- clonePortlet.setRegistrationContext(registrationContext);
- clonePortlet.setPortletContext(portletContext);
- clonePortlet.setUserContext(userContext);
-
- PortletContext response = producer.clonePortlet(clonePortlet);
-
- portletHandle.value = response.getPortletHandle();
- portletState.value = response.getPortletState();
- extensions.value = response.getExtensions();
- }
-
- public void getPortletDescription(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
- @WebParam(mode = WebParam.Mode.OUT, name = "portletDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<PortletDescription> portletDescription,
- @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
- {
- GetPortletDescription getPortletDescription = new GetPortletDescription();
- getPortletDescription.setRegistrationContext(registrationContext);
- getPortletDescription.setPortletContext(portletContext);
- getPortletDescription.setUserContext(userContext);
- getPortletDescription.getDesiredLocales().addAll(desiredLocales);
-
- PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);
-
- portletDescription.value = description.getPortletDescription();
- resourceList.value = description.getResourceList();
- extensions.value = description.getExtensions();
- }
-
- public void getPortletProperties(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
- @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
- @WebParam(name = "names", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> names,
- @WebParam(mode = WebParam.Mode.OUT, name = "properties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Property>> properties,
- @WebParam(mode = WebParam.Mode.OUT, name = "resetProperties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ResetProperty>> resetProperties,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
- {
- GetPortletProperties getPortletProperties = new GetPortletProperties();
- getPortletProperties.setRegistrationContext(registrationContext);
- getPortletProperties.setPortletContext(portletContext);
- getPortletProperties.setUserContext(userContext);
- getPortletProperties.getNames().addAll(names);
-
- PropertyList result = producer.getPortletProperties(getPortletProperties);
-
- properties.value = result.getProperties();
- resetProperties.value = result.getResetProperties();
- extensions.value = result.getExtensions();
- }
-
- public void destroyPortlets(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "portletHandles", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> portletHandles,
- @WebParam(mode = WebParam.Mode.OUT, name = "destroyFailed", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<DestroyFailed>> destroyFailed,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws MissingParameters, InconsistentParameters, InvalidRegistration, OperationFailed
- {
- DestroyPortlets destroyPortlets = new DestroyPortlets();
- destroyPortlets.setRegistrationContext(registrationContext);
- destroyPortlets.getPortletHandles().addAll(portletHandles);
-
- DestroyPortletsResponse destroyPortletsResponse = producer.destroyPortlets(destroyPortlets);
-
- destroyFailed.value = destroyPortletsResponse.getDestroyFailed();
- extensions.value = destroyPortletsResponse.getExtensions();
- }
-}
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -1,115 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.endpoints;
-
-import org.oasis.wsrp.v1.Extension;
-import org.oasis.wsrp.v1.InvalidRegistration;
-import org.oasis.wsrp.v1.MissingParameters;
-import org.oasis.wsrp.v1.ModifyRegistration;
-import org.oasis.wsrp.v1.OperationFailed;
-import org.oasis.wsrp.v1.Property;
-import org.oasis.wsrp.v1.RegistrationContext;
-import org.oasis.wsrp.v1.RegistrationData;
-import org.oasis.wsrp.v1.RegistrationState;
-import org.oasis.wsrp.v1.WSRPV1RegistrationPortType;
-
-import javax.jws.HandlerChain;
-import javax.jws.WebParam;
-import javax.xml.ws.Holder;
-import java.util.List;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 8784 $
- * @since 2.4
- */
-(a)javax.jws.WebService(
- name = "WSRPV1RegistrationPortType",
- serviceName = "WSRPV1Service",
- portName = "WSRPRegistrationService",
- targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
- wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
- endpointInterface = "org.oasis.wsrp.v1.WSRPV1RegistrationPortType"
-)
-@HandlerChain(file = "wshandlers.xml")
-public class RegistrationEndpoint extends WSRPBaseEndpoint implements WSRPV1RegistrationPortType
-{
-
- public void register(
- @WebParam(name = "consumerName", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String consumerName,
- @WebParam(name = "consumerAgent", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String consumerAgent,
- @WebParam(name = "methodGetSupported", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") boolean methodGetSupported,
- @WebParam(name = "consumerModes", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerModes,
- @WebParam(name = "consumerWindowStates", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerWindowStates,
- @WebParam(name = "consumerUserScopes", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerUserScopes,
- @WebParam(name = "customUserProfileData", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> customUserProfileData,
- @WebParam(name = "registrationProperties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<Property> registrationProperties,
- @WebParam(mode = WebParam.Mode.INOUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions,
- @WebParam(mode = WebParam.Mode.OUT, name = "registrationHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> registrationHandle,
- @WebParam(mode = WebParam.Mode.OUT, name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> registrationState)
- throws MissingParameters, OperationFailed
- {
- RegistrationData registrationData = new RegistrationData();
- registrationData.setConsumerName(consumerName);
- registrationData.setConsumerAgent(consumerAgent);
- registrationData.getConsumerModes().addAll(consumerModes);
- registrationData.getConsumerWindowStates().addAll(consumerWindowStates);
- registrationData.getConsumerUserScopes().addAll(consumerUserScopes);
- registrationData.getCustomUserProfileData().addAll(customUserProfileData);
- registrationData.getRegistrationProperties().addAll(registrationProperties);
- registrationData.getExtensions().addAll(extensions.value);
-
- RegistrationContext registrationContext = producer.register(registrationData);
-
- registrationHandle.value = registrationContext.getRegistrationHandle();
- registrationState.value = registrationContext.getRegistrationState();
- extensions.value = registrationContext.getExtensions();
- }
-
- public void modifyRegistration(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "registrationData", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationData registrationData,
- @WebParam(mode = WebParam.Mode.OUT, name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> registrationState,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions)
- throws MissingParameters, InvalidRegistration, OperationFailed
- {
- ModifyRegistration modifyRegistration = new ModifyRegistration();
- modifyRegistration.setRegistrationContext(registrationContext);
- modifyRegistration.setRegistrationData(registrationData);
-
- RegistrationState result = producer.modifyRegistration(modifyRegistration);
-
- registrationState.value = result.getRegistrationState();
- extensions.value = result.getExtensions();
- }
-
- public List<Extension> deregister(
- @WebParam(name = "registrationHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String registrationHandle,
- @WebParam(name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") byte[] registrationState,
- @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<Extension> extensions)
- throws InvalidRegistration, OperationFailed
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-}
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -1,94 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.endpoints;
-
-import org.oasis.wsrp.v1.CookieProtocol;
-import org.oasis.wsrp.v1.Extension;
-import org.oasis.wsrp.v1.GetServiceDescription;
-import org.oasis.wsrp.v1.InvalidRegistration;
-import org.oasis.wsrp.v1.ItemDescription;
-import org.oasis.wsrp.v1.ModelDescription;
-import org.oasis.wsrp.v1.OperationFailed;
-import org.oasis.wsrp.v1.PortletDescription;
-import org.oasis.wsrp.v1.RegistrationContext;
-import org.oasis.wsrp.v1.ResourceList;
-import org.oasis.wsrp.v1.ServiceDescription;
-import org.oasis.wsrp.v1.WSRPV1ServiceDescriptionPortType;
-
-import javax.jws.HandlerChain;
-import javax.jws.WebParam;
-import javax.xml.ws.Holder;
-import java.util.List;
-
-/**
- * @author <a href="mailto:palber@novell.com">Polina Alber</a>
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 8784 $
- */
-(a)javax.jws.WebService(
- name = "WSRPV1ServiceDescriptionPortType",
- serviceName = "WSRPV1Service",
- portName = "WSRPServiceDescriptionService",
- targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
- wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
- endpointInterface = "org.oasis.wsrp.v1.WSRPV1ServiceDescriptionPortType"
-)
-@HandlerChain(file = "wshandlers.xml")
-public class ServiceDescriptionEndpoint extends WSRPBaseEndpoint implements WSRPV1ServiceDescriptionPortType
-{
- public void getServiceDescription(
- @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
- @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
- @WebParam(mode = WebParam.Mode.OUT, name = "requiresRegistration", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<Boolean> requiresRegistration,
- @WebParam(mode = WebParam.Mode.OUT, name = "offeredPortlets", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<PortletDescription>> offeredPortlets,
- @WebParam(mode = WebParam.Mode.OUT, name = "userCategoryDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> userCategoryDescriptions,
- @WebParam(mode = WebParam.Mode.OUT, name = "customUserProfileItemDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customUserProfileItemDescriptions,
- @WebParam(mode = WebParam.Mode.OUT, name = "customWindowStateDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customWindowStateDescriptions,
- @WebParam(mode = WebParam.Mode.OUT, name = "customModeDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customModeDescriptions,
- @WebParam(mode = WebParam.Mode.OUT, name = "requiresInitCookie", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<CookieProtocol> requiresInitCookie,
- @WebParam(mode = WebParam.Mode.OUT, name = "registrationPropertyDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ModelDescription> registrationPropertyDescription,
- @WebParam(mode = WebParam.Mode.OUT, name = "locales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<String>> locales,
- @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
- @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
- ) throws InvalidRegistration, OperationFailed
- {
- GetServiceDescription getServiceDescription = new GetServiceDescription();
- getServiceDescription.setRegistrationContext(registrationContext);
- getServiceDescription.getDesiredLocales().addAll(desiredLocales);
-
- ServiceDescription description = producer.getServiceDescription(getServiceDescription);
-
- requiresRegistration.value = description.isRequiresRegistration();
- offeredPortlets.value = description.getOfferedPortlets();
- userCategoryDescriptions.value = description.getUserCategoryDescriptions();
- customUserProfileItemDescriptions.value = description.getCustomUserProfileItemDescriptions();
- customWindowStateDescriptions.value = description.getCustomWindowStateDescriptions();
- customModeDescriptions.value = description.getCustomModeDescriptions();
- requiresInitCookie.value = description.getRequiresInitCookie();
- registrationPropertyDescription.value = description.getRegistrationPropertyDescription();
- locales.value = description.getLocales();
- resourceList.value = description.getResourceList();
- extensions.value = description.getExtensions();
- }
-}
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -1,57 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.endpoints;
-
-import org.gatein.wsrp.producer.WSRPProducer;
-import org.gatein.wsrp.servlet.ServletAccess;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 13313 $
- * @since 2.4
- */
-public class WSRPBaseEndpoint
-{
- public WSRPBaseEndpoint()
- {
- producer = ProducerHolder.getProducer();
- }
-
- protected void forceSessionAccess()
- {
- // Check if there is a session associated with this thread
- HttpSession portalSession = ServletAccess.getRequest().getSession(false);
-
- // TODO: check if this is still needed
- /*if (portalSession != null)
- {
- // force session access from context so that cookies will be properly tranmitted to consumers. See JBWS-1515.
- context.getHttpSession();
- }*/
- }
-
- protected WSRPProducer producer;
-}
Added: components/wsrp/trunk/wsrp-producer-war/pom.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/pom.xml (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.gatein.wsrp</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>wsrp-producer</artifactId>
+ <packaging>war</packaging>
+ <name>GateIn WSRP Producer WAR</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.gatein.wsrp</groupId>
+ <artifactId>wsrp-producer-lib</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.gatein.wsrp</groupId>
+ <artifactId>wsrp-wsrp1-ws</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.gatein.wsrp</groupId>
+ <artifactId>wsrp-common</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Copied: components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java)
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/MarkupEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,170 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.endpoints;
+
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.BlockingInteractionResponse;
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.GetMarkup;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InitCookie;
+import org.oasis.wsrp.v1.InteractionParams;
+import org.oasis.wsrp.v1.InvalidCookie;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidSession;
+import org.oasis.wsrp.v1.InvalidUserCategory;
+import org.oasis.wsrp.v1.MarkupContext;
+import org.oasis.wsrp.v1.MarkupParams;
+import org.oasis.wsrp.v1.MarkupResponse;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PerformBlockingInteraction;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.ReleaseSessions;
+import org.oasis.wsrp.v1.ReturnAny;
+import org.oasis.wsrp.v1.RuntimeContext;
+import org.oasis.wsrp.v1.SessionContext;
+import org.oasis.wsrp.v1.UnsupportedLocale;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
+import org.oasis.wsrp.v1.UpdateResponse;
+import org.oasis.wsrp.v1.UserContext;
+import org.oasis.wsrp.v1.WSRPV1MarkupPortType;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:palber@novell.com">Polina Alber</a>
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+(a)javax.jws.WebService(
+ name = "WSRPV1MarkupPortType",
+ serviceName = "WSRPV1Service",
+ portName = "WSRPMarkupService",
+ targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
+ wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
+ endpointInterface = "org.oasis.wsrp.v1.WSRPV1MarkupPortType"
+)
+@HandlerChain(file = "wshandlers.xml")
+public class MarkupEndpoint extends WSRPBaseEndpoint implements WSRPV1MarkupPortType
+{
+ public void performBlockingInteraction(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "runtimeContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RuntimeContext runtimeContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "markupParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") MarkupParams markupParams,
+ @WebParam(name = "interactionParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") InteractionParams interactionParams,
+ @WebParam(mode = WebParam.Mode.OUT, name = "updateResponse", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<UpdateResponse> updateResponse,
+ @WebParam(mode = WebParam.Mode.OUT, name = "redirectURL", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> redirectURL,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie, InvalidSession, MissingParameters,
+ UnsupportedLocale, InconsistentParameters, PortletStateChangeRequired, InvalidHandle, InvalidRegistration,
+ InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ forceSessionAccess();
+
+ PerformBlockingInteraction performBlockingInteraction = new PerformBlockingInteraction();
+ performBlockingInteraction.setPortletContext(portletContext);
+ performBlockingInteraction.setRuntimeContext(runtimeContext);
+ performBlockingInteraction.setMarkupParams(markupParams);
+ performBlockingInteraction.setInteractionParams(interactionParams);
+ performBlockingInteraction.setRegistrationContext(registrationContext);
+ performBlockingInteraction.setUserContext(userContext);
+
+ BlockingInteractionResponse interactionResponse = producer.performBlockingInteraction(performBlockingInteraction);
+
+ updateResponse.value = interactionResponse.getUpdateResponse();
+ redirectURL.value = interactionResponse.getRedirectURL();
+ extensions.value = interactionResponse.getExtensions();
+ }
+
+ public List<Extension> releaseSessions(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "sessionIDs", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> sessionIDs
+ ) throws MissingParameters, InvalidRegistration, AccessDenied, OperationFailed
+ {
+ forceSessionAccess();
+
+ ReleaseSessions releaseSessions = new ReleaseSessions();
+ releaseSessions.setRegistrationContext(registrationContext);
+ releaseSessions.getSessionIDs().addAll(sessionIDs);
+
+ ReturnAny returnAny = producer.releaseSessions(releaseSessions);
+
+ return returnAny.getExtensions();
+ }
+
+ public void getMarkup(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "runtimeContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RuntimeContext runtimeContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "markupParams", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") MarkupParams markupParams,
+ @WebParam(mode = WebParam.Mode.OUT, name = "markupContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<MarkupContext> markupContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "sessionContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<SessionContext> sessionContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie, InvalidSession, MissingParameters,
+ UnsupportedLocale, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied,
+ OperationFailed
+ {
+ forceSessionAccess();
+
+ GetMarkup getMarkup = new GetMarkup();
+ getMarkup.setRegistrationContext(registrationContext);
+ getMarkup.setPortletContext(portletContext);
+ getMarkup.setRuntimeContext(runtimeContext);
+ getMarkup.setUserContext(userContext);
+ getMarkup.setMarkupParams(markupParams);
+
+ MarkupResponse response = producer.getMarkup(getMarkup);
+
+ markupContext.value = response.getMarkupContext();
+ sessionContext.value = response.getSessionContext();
+ extensions.value = response.getExtensions();
+ }
+
+ public List<Extension> initCookie(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext
+ ) throws InvalidRegistration, AccessDenied, OperationFailed
+ {
+ forceSessionAccess();
+
+ InitCookie initCookie = new InitCookie();
+ initCookie.setRegistrationContext(registrationContext);
+
+ ReturnAny returnAny = producer.initCookie(initCookie);
+
+ return returnAny.getExtensions();
+ }
+}
Copied: components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java)
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/PortletManagementEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,205 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.endpoints;
+
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.ClonePortlet;
+import org.oasis.wsrp.v1.DestroyFailed;
+import org.oasis.wsrp.v1.DestroyPortlets;
+import org.oasis.wsrp.v1.DestroyPortletsResponse;
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.GetPortletDescription;
+import org.oasis.wsrp.v1.GetPortletProperties;
+import org.oasis.wsrp.v1.GetPortletPropertyDescription;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidUserCategory;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.ModelDescription;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletDescription;
+import org.oasis.wsrp.v1.PortletDescriptionResponse;
+import org.oasis.wsrp.v1.PortletPropertyDescriptionResponse;
+import org.oasis.wsrp.v1.Property;
+import org.oasis.wsrp.v1.PropertyList;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.ResetProperty;
+import org.oasis.wsrp.v1.ResourceList;
+import org.oasis.wsrp.v1.SetPortletProperties;
+import org.oasis.wsrp.v1.UserContext;
+import org.oasis.wsrp.v1.WSRPV1PortletManagementPortType;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+(a)javax.jws.WebService(
+ name = "WSRPV1PortletManagementPortType",
+ serviceName = "WSRPV1Service",
+ portName = "WSRPPortletManagementService",
+ targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
+ wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
+ endpointInterface = "org.oasis.wsrp.v1.WSRPV1PortletManagementPortType"
+)
+@HandlerChain(file = "wshandlers.xml")
+public class PortletManagementEndpoint extends WSRPBaseEndpoint implements WSRPV1PortletManagementPortType
+{
+ public void getPortletPropertyDescription(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "modelDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ModelDescription> modelDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ GetPortletPropertyDescription getPortletPropertyDescription = new GetPortletPropertyDescription();
+ getPortletPropertyDescription.setRegistrationContext(registrationContext);
+ getPortletPropertyDescription.setPortletContext(portletContext);
+ getPortletPropertyDescription.setUserContext(userContext);
+ getPortletPropertyDescription.getDesiredLocales().addAll(desiredLocales);
+
+ PortletPropertyDescriptionResponse descriptionResponse = producer.getPortletPropertyDescription(getPortletPropertyDescription);
+
+ modelDescription.value = descriptionResponse.getModelDescription();
+ resourceList.value = descriptionResponse.getResourceList();
+ extensions.value = descriptionResponse.getExtensions();
+ }
+
+ public void setPortletProperties(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "propertyList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PropertyList propertyList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> portletHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> portletState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ SetPortletProperties setPortletProperties = new SetPortletProperties();
+ setPortletProperties.setRegistrationContext(registrationContext);
+ setPortletProperties.setPortletContext(portletContext);
+ setPortletProperties.setUserContext(userContext);
+ setPortletProperties.setPropertyList(propertyList);
+
+ PortletContext response = producer.setPortletProperties(setPortletProperties);
+
+ portletHandle.value = response.getPortletHandle();
+ portletState.value = response.getPortletState();
+ extensions.value = response.getExtensions();
+ }
+
+ public void clonePortlet(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> portletHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> portletState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ ClonePortlet clonePortlet = new ClonePortlet();
+ clonePortlet.setRegistrationContext(registrationContext);
+ clonePortlet.setPortletContext(portletContext);
+ clonePortlet.setUserContext(userContext);
+
+ PortletContext response = producer.clonePortlet(clonePortlet);
+
+ portletHandle.value = response.getPortletHandle();
+ portletState.value = response.getPortletState();
+ extensions.value = response.getExtensions();
+ }
+
+ public void getPortletDescription(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<PortletDescription> portletDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ GetPortletDescription getPortletDescription = new GetPortletDescription();
+ getPortletDescription.setRegistrationContext(registrationContext);
+ getPortletDescription.setPortletContext(portletContext);
+ getPortletDescription.setUserContext(userContext);
+ getPortletDescription.getDesiredLocales().addAll(desiredLocales);
+
+ PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);
+
+ portletDescription.value = description.getPortletDescription();
+ resourceList.value = description.getResourceList();
+ extensions.value = description.getExtensions();
+ }
+
+ public void getPortletProperties(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") UserContext userContext,
+ @WebParam(name = "names", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> names,
+ @WebParam(mode = WebParam.Mode.OUT, name = "properties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Property>> properties,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resetProperties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ResetProperty>> resetProperties,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed
+ {
+ GetPortletProperties getPortletProperties = new GetPortletProperties();
+ getPortletProperties.setRegistrationContext(registrationContext);
+ getPortletProperties.setPortletContext(portletContext);
+ getPortletProperties.setUserContext(userContext);
+ getPortletProperties.getNames().addAll(names);
+
+ PropertyList result = producer.getPortletProperties(getPortletProperties);
+
+ properties.value = result.getProperties();
+ resetProperties.value = result.getResetProperties();
+ extensions.value = result.getExtensions();
+ }
+
+ public void destroyPortlets(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "portletHandles", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> portletHandles,
+ @WebParam(mode = WebParam.Mode.OUT, name = "destroyFailed", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<DestroyFailed>> destroyFailed,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidRegistration, OperationFailed
+ {
+ DestroyPortlets destroyPortlets = new DestroyPortlets();
+ destroyPortlets.setRegistrationContext(registrationContext);
+ destroyPortlets.getPortletHandles().addAll(portletHandles);
+
+ DestroyPortletsResponse destroyPortletsResponse = producer.destroyPortlets(destroyPortlets);
+
+ destroyFailed.value = destroyPortletsResponse.getDestroyFailed();
+ extensions.value = destroyPortletsResponse.getExtensions();
+ }
+}
Copied: components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java)
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/RegistrationEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,115 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.endpoints;
+
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.ModifyRegistration;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.Property;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.RegistrationData;
+import org.oasis.wsrp.v1.RegistrationState;
+import org.oasis.wsrp.v1.WSRPV1RegistrationPortType;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+(a)javax.jws.WebService(
+ name = "WSRPV1RegistrationPortType",
+ serviceName = "WSRPV1Service",
+ portName = "WSRPRegistrationService",
+ targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
+ wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
+ endpointInterface = "org.oasis.wsrp.v1.WSRPV1RegistrationPortType"
+)
+@HandlerChain(file = "wshandlers.xml")
+public class RegistrationEndpoint extends WSRPBaseEndpoint implements WSRPV1RegistrationPortType
+{
+
+ public void register(
+ @WebParam(name = "consumerName", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String consumerName,
+ @WebParam(name = "consumerAgent", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String consumerAgent,
+ @WebParam(name = "methodGetSupported", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") boolean methodGetSupported,
+ @WebParam(name = "consumerModes", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerModes,
+ @WebParam(name = "consumerWindowStates", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerWindowStates,
+ @WebParam(name = "consumerUserScopes", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> consumerUserScopes,
+ @WebParam(name = "customUserProfileData", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> customUserProfileData,
+ @WebParam(name = "registrationProperties", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<Property> registrationProperties,
+ @WebParam(mode = WebParam.Mode.INOUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<String> registrationHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> registrationState)
+ throws MissingParameters, OperationFailed
+ {
+ RegistrationData registrationData = new RegistrationData();
+ registrationData.setConsumerName(consumerName);
+ registrationData.setConsumerAgent(consumerAgent);
+ registrationData.getConsumerModes().addAll(consumerModes);
+ registrationData.getConsumerWindowStates().addAll(consumerWindowStates);
+ registrationData.getConsumerUserScopes().addAll(consumerUserScopes);
+ registrationData.getCustomUserProfileData().addAll(customUserProfileData);
+ registrationData.getRegistrationProperties().addAll(registrationProperties);
+ registrationData.getExtensions().addAll(extensions.value);
+
+ RegistrationContext registrationContext = producer.register(registrationData);
+
+ registrationHandle.value = registrationContext.getRegistrationHandle();
+ registrationState.value = registrationContext.getRegistrationState();
+ extensions.value = registrationContext.getExtensions();
+ }
+
+ public void modifyRegistration(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "registrationData", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationData registrationData,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<byte[]> registrationState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions)
+ throws MissingParameters, InvalidRegistration, OperationFailed
+ {
+ ModifyRegistration modifyRegistration = new ModifyRegistration();
+ modifyRegistration.setRegistrationContext(registrationContext);
+ modifyRegistration.setRegistrationData(registrationData);
+
+ RegistrationState result = producer.modifyRegistration(modifyRegistration);
+
+ registrationState.value = result.getRegistrationState();
+ extensions.value = result.getExtensions();
+ }
+
+ public List<Extension> deregister(
+ @WebParam(name = "registrationHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") String registrationHandle,
+ @WebParam(name = "registrationState", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") byte[] registrationState,
+ @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<Extension> extensions)
+ throws InvalidRegistration, OperationFailed
+ {
+ return null; //To change body of implemented methods use File | Settings | File Templates.
+ }
+}
Copied: components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java)
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.endpoints;
+
+import org.oasis.wsrp.v1.CookieProtocol;
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.GetServiceDescription;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.ItemDescription;
+import org.oasis.wsrp.v1.ModelDescription;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PortletDescription;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.ResourceList;
+import org.oasis.wsrp.v1.ServiceDescription;
+import org.oasis.wsrp.v1.WSRPV1ServiceDescriptionPortType;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:palber@novell.com">Polina Alber</a>
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 8784 $
+ */
+(a)javax.jws.WebService(
+ name = "WSRPV1ServiceDescriptionPortType",
+ serviceName = "WSRPV1Service",
+ portName = "WSRPServiceDescriptionService",
+ targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl",
+ wsdlLocation = "/WEB-INF/wsdl/wsrp_services.wsdl",
+ endpointInterface = "org.oasis.wsrp.v1.WSRPV1ServiceDescriptionPortType"
+)
+@HandlerChain(file = "wshandlers.xml")
+public class ServiceDescriptionEndpoint extends WSRPBaseEndpoint implements WSRPV1ServiceDescriptionPortType
+{
+ public void getServiceDescription(
+ @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext,
+ @WebParam(name = "desiredLocales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") List<String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "requiresRegistration", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<Boolean> requiresRegistration,
+ @WebParam(mode = WebParam.Mode.OUT, name = "offeredPortlets", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<PortletDescription>> offeredPortlets,
+ @WebParam(mode = WebParam.Mode.OUT, name = "userCategoryDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> userCategoryDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "customUserProfileItemDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customUserProfileItemDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "customWindowStateDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customWindowStateDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "customModeDescriptions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<ItemDescription>> customModeDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "requiresInitCookie", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<CookieProtocol> requiresInitCookie,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationPropertyDescription", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ModelDescription> registrationPropertyDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "locales", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<String>> locales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<Extension>> extensions
+ ) throws InvalidRegistration, OperationFailed
+ {
+ GetServiceDescription getServiceDescription = new GetServiceDescription();
+ getServiceDescription.setRegistrationContext(registrationContext);
+ getServiceDescription.getDesiredLocales().addAll(desiredLocales);
+
+ ServiceDescription description = producer.getServiceDescription(getServiceDescription);
+
+ requiresRegistration.value = description.isRequiresRegistration();
+ offeredPortlets.value = description.getOfferedPortlets();
+ userCategoryDescriptions.value = description.getUserCategoryDescriptions();
+ customUserProfileItemDescriptions.value = description.getCustomUserProfileItemDescriptions();
+ customWindowStateDescriptions.value = description.getCustomWindowStateDescriptions();
+ customModeDescriptions.value = description.getCustomModeDescriptions();
+ requiresInitCookie.value = description.getRequiresInitCookie();
+ registrationPropertyDescription.value = description.getRegistrationPropertyDescription();
+ locales.value = description.getLocales();
+ resourceList.value = description.getResourceList();
+ extensions.value = description.getExtensions();
+ }
+}
Copied: components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java)
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/java/org/gatein/wsrp/endpoints/WSRPBaseEndpoint.java 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.endpoints;
+
+import org.gatein.wsrp.producer.WSRPProducer;
+import org.gatein.wsrp.servlet.ServletAccess;
+
+import javax.servlet.http.HttpSession;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 13313 $
+ * @since 2.4
+ */
+public class WSRPBaseEndpoint
+{
+ public WSRPBaseEndpoint()
+ {
+ producer = ProducerHolder.getProducer();
+ }
+
+ protected void forceSessionAccess()
+ {
+ // Check if there is a session associated with this thread
+ HttpSession portalSession = ServletAccess.getRequest().getSession(false);
+
+ // TODO: check if this is still needed
+ /*if (portalSession != null)
+ {
+ // force session access from context so that cookies will be properly tranmitted to consumers. See JBWS-1515.
+ context.getHttpSession();
+ }*/
+ }
+
+ protected WSRPProducer producer;
+}
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/classes/wshandlers.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/classes/wshandlers.xml (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/classes/wshandlers.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_web_services_metadata_handler_2_...">
+ <javaee:handler-chain>
+ <javaee:handler>
+ <javaee:handler-name>WSRP Extension Handler</javaee:handler-name>
+ <javaee:handler-class>org.gatein.wsrp.handler.WSRPExtensionHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/producer/config.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/producer/config.xml (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/conf/producer/config.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,40 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<!--
+<!DOCTYPE producer-configuration PUBLIC "-//JBoss Portal//DTD WSRP Local Producer Configuration 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-wsrp-producer_2_6.dtd">
+-->
+
+<!-- Configuration using registration with default registration property validator. -->
+<producer-configuration xmlns="urn:jboss:portal:wsrp:producer:v2_7"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:portal:wsrp:producer:v2_7 http://www.jboss.org/portal/xsd/jboss-wsrp-producer_2_7.xsd">
+ <registration-configuration fullServiceDescriptionRequiresRegistration="true">
+ <registration-property-validator>org.gatein.registration.policies.DefaultRegistrationPropertyValidator
+ </registration-property-validator>
+ </registration-configuration>
+</producer-configuration>
+
+ <!-- Configuration without registration -->
+ <!--<producer-configuration/>-->
\ No newline at end of file
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/context.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/context.xml (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/context.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<Context privileged="true"/>
\ No newline at end of file
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/web.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/web.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <!-- Filter to put request and response in ServletAccess -->
+ <!-- <filter>
+ <filter-name>ServletAccessFilter</filter-name>
+ <filter-class>org.jboss.portal.wsrp.servlet.ServletAccessFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ServletAccessFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>-->
+
+ <!-- Wraps WSRP requests in transactions -->
+ <!--<filter>
+ <filter-name>TransactionFilter</filter-name>
+ <filter-class>org.jboss.portal.wsrp.servlet.TransactionFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>TransactionFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>-->
+
+ <!-- To listen to portlet deployments -->
+ <!--<servlet>
+ <servlet-name>ContainerServlet</servlet-name>
+ <servlet-class>org.jboss.portal.web.impl.tomcat.TC6ContainerServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>-->
+ <!--<listener>
+ <listener-class>org.jboss.portal.wsrp.exo.KernelListener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>WSRPExoInt</servlet-name>
+ <servlet-class>org.jboss.portal.wsrp.exo.ExoKernelIntegration</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>-->
+
+
+ <!-- WSRP Endpoints -->
+ <servlet>
+ <servlet-name>ServiceDescriptionService</servlet-name>
+ <servlet-class>org.gatein.wsrp.endpoints.ServiceDescriptionEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+ <param-value>org.oasis.wsrp.v1.WSRPV1ServiceDescriptionPortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>MarkupService</servlet-name>
+ <servlet-class>org.gatein.wsrp.endpoints.MarkupEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+ <param-value>org.oasis.wsrp.v1.WSRPV1MarkupPortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>RegistrationService</servlet-name>
+ <servlet-class>org.gatein.wsrp.endpoints.RegistrationEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+ <param-value>org.oasis.wsrp.v1.WSRPV1RegistrationPortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>PortletManagementService</servlet-name>
+ <servlet-class>org.gatein.wsrp.endpoints.PortletManagementEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+ <param-value>org.oasis.wsrp.v1.WSRPV1PortletManagementPortType</param-value>
+ </init-param>
+ </servlet>
+
+ <!-- WSRP endpoint mappings -->
+ <servlet-mapping>
+ <servlet-name>ServiceDescriptionService</servlet-name>
+ <url-pattern>/ServiceDescriptionService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>MarkupService</servlet-name>
+ <url-pattern>/MarkupService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>RegistrationService</servlet-name>
+ <url-pattern>/RegistrationService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>PortletManagementService</servlet-name>
+ <url-pattern>/PortletManagementService</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:wsdl"
+ xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns:tns="urn:oasis:names:tc:wsrp:v1:wsdl">
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:bind" location="wsrp_v1_bindings.wsdl"/>
+
+ <wsdl:service name="WSRPV1Service">
+ <wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP" name="WSRPMarkupService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP" name="WSRPServiceDescriptionService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP" name="WSRPRegistrationService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP" name="WSRPPortletManagementService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <!--
+ Uncomment to use HTTP+SSL after activating the appropriate Tomcat Connector and comment out the above service
+ definition. Adapt host name and port as appropriate.
+ <wsdl:service name="WSRPService">
+ <wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP" name="WSRPBaseService">
+ <soap:address location="https://localhost:8443/portal-wsrp/ServiceDescriptionService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP" name="WSRPServiceDescriptionService">
+ <soap:address location="https://localhost:8443/portal-wsrp/MarkupService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP" name="WSRPRegistrationService">
+ <soap:address location="https://localhost:8443/portal-wsrp/RegistrationService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP" name="WSRPPortletManagementService">
+ <soap:address location="https://localhost:8443/portal-wsrp/PortletManagementService"/>
+ </wsdl:port>
+ </wsdl:service>-->
+</wsdl:definitions>
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,440 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:bind"
+ xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <!-- This file reflects v1.0 of the specification -->
+
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:intf"
+ location="wsrp_v1_interfaces.wsdl"/>
+
+ <wsdl:binding name="WSRP_v1_Markup_Binding_SOAP" type="intf:WSRP_v1_Markup_PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getMarkup">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:getMarkup"/>
+ <wsdl:input name="getMarkup">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getMarkupResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidCookie">
+ <soap:fault name="InvalidCookie" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidSession">
+ <soap:fault name="InvalidSession" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMode">
+ <soap:fault name="UnsupportedMode" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedWindowState">
+ <soap:fault name="UnsupportedWindowState" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedLocale">
+ <soap:fault name="UnsupportedLocale" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMimeType">
+ <soap:fault name="UnsupportedMimeType" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="performBlockingInteraction">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:performBlockingInteraction"/>
+ <wsdl:input name="performBlockingInteraction">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="performBlockingInteractionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="PortletStateChangeRequired">
+ <soap:fault name="PortletStateChangeRequired" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidCookie">
+ <soap:fault name="InvalidCookie" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidSession">
+ <soap:fault name="InvalidSession" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMode">
+ <soap:fault name="UnsupportedMode" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedWindowState">
+ <soap:fault name="UnsupportedWindowState" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedLocale">
+ <soap:fault name="UnsupportedLocale" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMimeType">
+ <soap:fault name="UnsupportedMimeType" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="releaseSessions">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:releaseSessions"/>
+ <wsdl:input name="releaseSessions">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="releaseSessionsResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="initCookie">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:initCookie"/>
+ <wsdl:input name="initCookie">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="initCookieResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+
+ <wsdl:binding name="WSRP_v1_ServiceDescription_Binding_SOAP" type="intf:WSRP_v1_ServiceDescription_PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getServiceDescription">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:getServiceDescription"/>
+ <wsdl:input name="getServiceDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getServiceDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="WSRP_v1_PortletManagement_Binding_SOAP" type="intf:WSRP_v1_PortletManagement_PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getPortletDescription">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:getPortletDescription"/>
+ <wsdl:input name="getPortletDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="clonePortlet">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:clonePortlet"/>
+ <wsdl:input name="clonePortlet">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="clonePortletResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="destroyPortlets">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:destroyPortlets"/>
+ <wsdl:input name="destroyPortlets">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="destroyPortletsResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="setPortletProperties">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:setPortletProperties"/>
+ <wsdl:input name="setPortletProperties">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="setPortletPropertiesResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletProperties">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:getPortletProperties"/>
+ <wsdl:input name="getPortletProperties">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletPropertiesResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletPropertyDescription">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:getPortletPropertyDescription"/>
+ <wsdl:input name="getPortletPropertyDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletPropertyDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="WSRP_v1_Registration_Binding_SOAP" type="intf:WSRP_v1_Registration_PortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="register">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:register"/>
+ <wsdl:input name="register">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="registerResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="deregister">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:deregister"/>
+ <wsdl:input name="deregister">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="deregisterResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="modifyRegistration">
+ <soap:operation soapAction="urn:oasis:names:tc:wsrp:v1:modifyRegistration"/>
+ <wsdl:input name="modifyRegistration">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="modifyRegistrationResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+</wsdl:definitions>
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,372 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns:types="urn:oasis:names:tc:wsrp:v1:types"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+
+ <!-- This file reflects v1.0 of the specification -->
+
+ <wsdl:types>
+ <schema targetNamespace="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:types" schemaLocation="wsrp_v1_types.xsd"/>
+
+ </schema>
+ </wsdl:types>
+
+
+ <!-- - - - - - - - - -->
+ <!-- fault messages -->
+ <!-- - - - - - - - - -->
+
+ <wsdl:message name="AccessDenied">
+ <wsdl:part name="fault" element="types:AccessDenied"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidUserCategory">
+ <wsdl:part name="fault" element="types:InvalidUserCategory"/>
+ </wsdl:message>
+
+ <wsdl:message name="InconsistentParameters">
+ <wsdl:part name="fault" element="types:InconsistentParameters"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidRegistration">
+ <wsdl:part name="fault" element="types:InvalidRegistration"/>
+ </wsdl:message>
+
+ <wsdl:message name="MissingParameters">
+ <wsdl:part name="fault" element="types:MissingParameters"/>
+ </wsdl:message>
+
+ <wsdl:message name="OperationFailed">
+ <wsdl:part name="fault" element="types:OperationFailed"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidHandle">
+ <wsdl:part name="fault" element="types:InvalidHandle"/>
+ </wsdl:message>
+
+ <wsdl:message name="PortletStateChangeRequired">
+ <wsdl:part name="fault" element="types:PortletStateChangeRequired"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidCookie">
+ <wsdl:part name="fault" element="types:InvalidCookie"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidSession">
+ <wsdl:part name="fault" element="types:InvalidSession"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedMode">
+ <wsdl:part name="fault" element="types:UnsupportedMode"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedWindowState">
+ <wsdl:part name="fault" element="types:UnsupportedWindowState"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedLocale">
+ <wsdl:part name="fault" element="types:UnsupportedLocale"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedMimeType">
+ <wsdl:part name="fault" element="types:UnsupportedMimeType"/>
+ </wsdl:message>
+
+
+ <!-- - - - - - - - - - - -->
+ <!-- Operations messages -->
+ <!-- - - - - - - - - - - -->
+
+ <wsdl:message name="getMarkup">
+ <wsdl:part name="getMarkup" element="types:getMarkup"/>
+ </wsdl:message>
+ <wsdl:message name="getMarkupResponse">
+ <wsdl:part name="getMarkupResponse" element="types:getMarkupResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="performBlockingInteraction">
+ <wsdl:part name="performBlockingInteraction" element="types:performBlockingInteraction"/>
+ </wsdl:message>
+ <wsdl:message name="performBlockingInteractionResponse">
+ <wsdl:part name="performBlockingInteractionResponse" element="types:performBlockingInteractionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getServiceDescription">
+ <wsdl:part name="getServiceDescription" element="types:getServiceDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getServiceDescriptionResponse">
+ <wsdl:part name="getServiceDescriptionResponse" element="types:getServiceDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="register">
+ <wsdl:part name="register" element="types:register"/>
+ </wsdl:message>
+ <wsdl:message name="registerResponse">
+ <wsdl:part name="registerResponse" element="types:registerResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="deregister">
+ <wsdl:part name="deregister" element="types:deregister"/>
+ </wsdl:message>
+ <wsdl:message name="deregisterResponse">
+ <wsdl:part name="deregisterResponse" element="types:deregisterResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="modifyRegistration">
+ <wsdl:part name="modifyRegistration" element="types:modifyRegistration"/>
+ </wsdl:message>
+ <wsdl:message name="modifyRegistrationResponse">
+ <wsdl:part name="modifyRegistrationResponse" element="types:modifyRegistrationResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletDescription">
+ <wsdl:part name="getPortletDescription" element="types:getPortletDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletDescriptionResponse">
+ <wsdl:part name="getPortletDescriptionResponse" element="types:getPortletDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="clonePortlet">
+ <wsdl:part name="clonePortlet" element="types:clonePortlet"/>
+ </wsdl:message>
+ <wsdl:message name="clonePortletResponse">
+ <wsdl:part name="clonePortletResponse" element="types:clonePortletResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="destroyPortlets">
+ <wsdl:part name="destroyPortlets" element="types:destroyPortlets"/>
+ </wsdl:message>
+ <wsdl:message name="destroyPortletsResponse">
+ <wsdl:part name="destroyPortletsResponse" element="types:destroyPortletsResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="setPortletProperties">
+ <wsdl:part name="setPortletProperties" element="types:setPortletProperties"/>
+ </wsdl:message>
+ <wsdl:message name="setPortletPropertiesResponse">
+ <wsdl:part name="setPortletPropertiesResponse" element="types:setPortletPropertiesResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletProperties">
+ <wsdl:part name="getPortletProperties" element="types:getPortletProperties"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletPropertiesResponse">
+ <wsdl:part name="getPortletPropertiesResponse" element="types:getPortletPropertiesResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletPropertyDescription">
+ <wsdl:part name="getPortletPropertyDescription" element="types:getPortletPropertyDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletPropertyDescriptionResponse">
+ <wsdl:part name="getPortletPropertyDescriptionResponse" element="types:getPortletPropertyDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="releaseSessions">
+ <wsdl:part name="releaseSessions" element="types:releaseSessions"/>
+ </wsdl:message>
+ <wsdl:message name="releaseSessionsResponse">
+ <wsdl:part name="releaseSessionsResponse" element="types:releaseSessionsResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="initCookie">
+ <wsdl:part name="initCookie" element="types:initCookie"/>
+ </wsdl:message>
+ <wsdl:message name="initCookieResponse">
+ <wsdl:part name="initCookieResponse" element="types:initCookieResponse"/>
+ </wsdl:message>
+
+ <wsdl:portType name="WSRP_v1_Markup_PortType">
+ <wsdl:operation name="getMarkup">
+ <wsdl:input message="intf:getMarkup" name="getMarkup"/>
+ <wsdl:output message="intf:getMarkupResponse" name="getMarkupResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ <wsdl:fault message="intf:InvalidCookie" name="InvalidCookie"/>
+ <wsdl:fault message="intf:InvalidSession" name="InvalidSession"/>
+ <wsdl:fault message="intf:UnsupportedMode" name="UnsupportedMode"/>
+ <wsdl:fault message="intf:UnsupportedWindowState" name="UnsupportedWindowState"/>
+ <wsdl:fault message="intf:UnsupportedLocale" name="UnsupportedLocale"/>
+ <wsdl:fault message="intf:UnsupportedMimeType" name="UnsupportedMimeType"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="performBlockingInteraction">
+ <wsdl:input message="intf:performBlockingInteraction" name="performBlockingInteraction"/>
+ <wsdl:output message="intf:performBlockingInteractionResponse" name="performBlockingInteractionResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ <wsdl:fault message="intf:PortletStateChangeRequired" name="PortletStateChangeRequired"/>
+ <wsdl:fault message="intf:InvalidCookie" name="InvalidCookie"/>
+ <wsdl:fault message="intf:InvalidSession" name="InvalidSession"/>
+ <wsdl:fault message="intf:UnsupportedMode" name="UnsupportedMode"/>
+ <wsdl:fault message="intf:UnsupportedWindowState" name="UnsupportedWindowState"/>
+ <wsdl:fault message="intf:UnsupportedLocale" name="UnsupportedLocale"/>
+ <wsdl:fault message="intf:UnsupportedMimeType" name="UnsupportedMimeType"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="releaseSessions">
+ <wsdl:input message="intf:releaseSessions" name="releaseSessions"/>
+ <wsdl:output message="intf:releaseSessionsResponse" name="releaseSessionsResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="initCookie">
+ <wsdl:input message="intf:initCookie" name="initCookie"/>
+ <wsdl:output message="intf:initCookieResponse" name="initCookieResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_ServiceDescription_PortType">
+ <wsdl:operation name="getServiceDescription">
+ <wsdl:input message="intf:getServiceDescription" name="getServiceDescription"/>
+ <wsdl:output message="intf:getServiceDescriptionResponse" name="getServiceDescriptionResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_Registration_PortType">
+ <wsdl:operation name="register">
+ <wsdl:input message="intf:register" name="register"/>
+ <wsdl:output message="intf:registerResponse" name="registerResponse"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="deregister">
+ <wsdl:input message="intf:deregister" name="deregister"/>
+ <wsdl:output message="intf:deregisterResponse" name="deregisterResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="modifyRegistration">
+ <wsdl:input message="intf:modifyRegistration" name="modifyRegistration"/>
+ <wsdl:output message="intf:modifyRegistrationResponse" name="modifyRegistrationResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_PortletManagement_PortType">
+ <wsdl:operation name="getPortletDescription">
+ <wsdl:input message="intf:getPortletDescription" name="getPortletDescription"/>
+ <wsdl:output message="intf:getPortletDescriptionResponse" name="getPortletDescriptionResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="clonePortlet">
+ <wsdl:input message="intf:clonePortlet" name="clonePortlet"/>
+ <wsdl:output message="intf:clonePortletResponse" name="clonePortletResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="destroyPortlets">
+ <wsdl:input message="intf:destroyPortlets" name="destroyPortlets"/>
+ <wsdl:output message="intf:destroyPortletsResponse" name="destroyPortletsResponse"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="setPortletProperties">
+ <wsdl:input message="intf:setPortletProperties" name="setPortletProperties"/>
+ <wsdl:output message="intf:setPortletPropertiesResponse" name="setPortletPropertiesResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletProperties">
+ <wsdl:input message="intf:getPortletProperties" name="getPortletProperties"/>
+ <wsdl:output message="intf:getPortletPropertiesResponse" name="getPortletPropertiesResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletPropertyDescription">
+ <wsdl:input message="intf:getPortletPropertyDescription" name="getPortletPropertyDescription"/>
+ <wsdl:output message="intf:getPortletPropertyDescriptionResponse"
+ name="getPortletPropertyDescriptionResponse"/>
+ <wsdl:fault message="intf:AccessDenied" name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory" name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters" name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration" name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters" name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed" name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle" name="InvalidHandle"/>
+ </wsdl:operation>
+ </wsdl:portType>
+</wsdl:definitions>
Added: components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd (rev 0)
+++ components/wsrp/trunk/wsrp-producer-war/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd 2009-09-28 22:21:33 UTC (rev 207)
@@ -0,0 +1,878 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<schema targetNamespace="urn:oasis:names:tc:wsrp:v1:types"
+ xmlns:types="urn:oasis:names:tc:wsrp:v1:types"
+
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
+ elementFormDefault="qualified">
+
+ <!-- This file reflects v1.0 of the specification -->
+
+ <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
+ <!-- - - - - - - - - - - - - - - - - -->
+ <!-- General types used throughout -->
+ <!-- - - - - - - - - - - - - - - - - -->
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout the
+ rest of these definitions as not all stacks are able to handle restrictions on strings
+ -->
+ <simpleType name="Handle">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="255"/>
+ </restriction>
+ </simpleType>
+ <element name="Handle" type="types:Handle"/>
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout the
+ rest of these definitions as not all stacks are able to handle restrictions on strings
+ -->
+ <simpleType name="ID">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="4096"/>
+ </restriction>
+ </simpleType>
+ <element name="ID" type="types:ID"/>
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout the
+ rest of these definitions as not all stacks are able to handle restrictions on strings
+ -->
+ <simpleType name="Key">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="255"/>
+ </restriction>
+ </simpleType>
+ <element name="Key" type="types:Key"/>
+
+ <complexType name="Extension">
+ <sequence>
+ <!-- JBoss modification: added processContents="skip" to better process extensions. -->
+ <any namespace="##other" processContents="skip"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="LocalizedString">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ </sequence>
+ <attribute ref="xml:lang" use="required"/>
+ <attribute name="resourceName" type="xsd:string"/>
+ </complexType>
+
+ <complexType name="ResourceList">
+ <sequence>
+ <element name="resources" type="types:Resource" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Resource">
+ <sequence>
+ <element name="values" type="types:ResourceValue" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="resourceName" type="xsd:string" use="required"/>
+ </complexType>
+
+ <complexType name="ResourceValue">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute ref="xml:lang" use="required"/>
+ </complexType>
+
+ <complexType name="StringArray">
+ <sequence>
+ <element name="String" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="StringArray" type="types:StringArray"/>
+
+ <complexType name="NamedString">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ </sequence>
+ <attribute name="name" type="xsd:string" use="required"/>
+ </complexType>
+
+ <complexType name="NamedStringArray">
+ <sequence>
+ <element name="NamedString" type="types:NamedString" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="NamedStringArray" type="types:NamedStringArray"/>
+
+ <!-- - - - - - - - - -->
+ <!-- Producer types -->
+ <!-- - - - - - - - - -->
+
+ <complexType name="RegistrationData">
+ <sequence>
+ <element name="consumerName" type="xsd:string"/>
+ <element name="consumerAgent" type="xsd:string"/>
+ <element name="methodGetSupported" type="xsd:boolean"/>
+ <element name="consumerModes" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="consumerWindowStates" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="consumerUserScopes" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="customUserProfileData" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="registrationProperties" type="types:Property" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationData" type="types:RegistrationData"/>
+
+ <complexType name="RegistrationState">
+ <sequence>
+ <element name="registrationState" type="xsd:base64Binary" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationState" type="types:RegistrationState"/>
+
+ <complexType name="RegistrationContext">
+ <sequence>
+ <!-- <element name="registrationHandle" type="types:Handle"/>
+ JAX-RPC RI doesn't handle restrictions on xsd:string
+ -->
+ <element name="registrationHandle" type="xsd:string"/>
+ <element name="registrationState" type="xsd:base64Binary" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationContext" type="types:RegistrationContext"/>
+
+ <complexType name="SessionContext">
+ <sequence>
+ <element name="sessionID" type="xsd:string"/>
+ <element name="expires" type="xsd:int"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="SessionContext" type="types:SessionContext"/>
+
+ <complexType name="RuntimeContext">
+ <sequence>
+ <element name="userAuthentication" type="xsd:string"/>
+ <element name="portletInstanceKey" type="xsd:string" minOccurs="0"/>
+ <element name="namespacePrefix" type="xsd:string" minOccurs="0"/>
+ <element name="templates" type="types:Templates" minOccurs="0"/>
+ <element name="sessionID" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RuntimeContext" type="types:RuntimeContext"/>
+
+ <complexType name="ItemDescription">
+ <sequence>
+ <element name="description" type="types:LocalizedString"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="itemName" type="xsd:string" use="required"/>
+ </complexType>
+
+ <simpleType name="CookieProtocol">
+ <restriction base="xsd:string">
+ <enumeration value="none"/>
+ <enumeration value="perUser"/>
+ <enumeration value="perGroup"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="ServiceDescription">
+ <sequence>
+ <element name="requiresRegistration" type="xsd:boolean"/>
+ <element name="offeredPortlets" type="types:PortletDescription" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="userCategoryDescriptions" type="types:ItemDescription" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="customUserProfileItemDescriptions" type="types:ItemDescription" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <element name="customWindowStateDescriptions" type="types:ItemDescription" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <element name="customModeDescriptions" type="types:ItemDescription" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="requiresInitCookie" type="types:CookieProtocol" default="none" minOccurs="0"/>
+ <element name="registrationPropertyDescription" type="types:ModelDescription" minOccurs="0"/>
+ <element name="locales" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="resourceList" type="types:ResourceList" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ServiceDescription" type="types:ServiceDescription"/>
+
+
+ <!-- - - - - - - - - - - - - - - - - - - -->
+ <!-- Portlet types (metadata and runtime) -->
+ <!-- - - - - - - - - - - - - - - - - - - -->
+
+ <complexType name="MarkupType">
+ <sequence>
+ <element name="mimeType" type="xsd:string"/>
+ <element name="modes" type="xsd:string" maxOccurs="unbounded"/>
+ <element name="windowStates" type="xsd:string" maxOccurs="unbounded"/>
+ <element name="locales" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletDescription">
+ <sequence>
+ <!-- <element name="portletHandle" type="types:Handle"/> -->
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="markupTypes" type="types:MarkupType" maxOccurs="unbounded"/>
+ <element name="groupID" type="xsd:string" minOccurs="0"/>
+ <element name="description" type="types:LocalizedString" minOccurs="0"/>
+ <element name="shortTitle" type="types:LocalizedString" minOccurs="0"/>
+ <element name="title" type="types:LocalizedString" minOccurs="0"/>
+ <element name="displayName" type="types:LocalizedString" minOccurs="0"/>
+ <element name="keywords" type="types:LocalizedString" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="userCategories" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="userProfileItems" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="usesMethodGet" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="defaultMarkupSecure" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="onlySecure" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="userContextStoredInSession" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="templatesStoredInSession" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="hasUserSpecificState" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="doesUrlTemplateProcessing" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletDescriptionResponse">
+ <sequence>
+ <element name="portletDescription" type="types:PortletDescription"/>
+ <element name="resourceList" type="types:ResourceList" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletContext">
+ <sequence>
+ <!-- <element name="portletHandle" type="types:Handle"/> -->
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="portletState" type="xsd:base64Binary" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="PortletContext" type="types:PortletContext"/>
+
+ <complexType name="DestroyFailed">
+ <sequence>
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="reason" type="xsd:string"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - -->
+ <!-- Markup oriented types -->
+ <!-- - - - - - - - - - - - -->
+
+ <complexType name="ClientData">
+ <sequence>
+ <element name="userAgent" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ClientData" type="types:ClientData"/>
+
+ <complexType name="CacheControl">
+ <sequence>
+ <element name="expires" type="xsd:int"/>
+ <element name="userScope" type="xsd:string"/>
+ <element name="validateTag" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Templates">
+ <sequence>
+ <element name="defaultTemplate" type="xsd:string" nillable="true"/>
+ <element name="blockingActionTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="renderTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="resourceTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="secureDefaultTemplate" type="xsd:string" nillable="true"/>
+ <element name="secureBlockingActionTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="secureRenderTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="secureResourceTemplate" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="Templates" type="types:Templates"/>
+
+ <complexType name="MarkupParams">
+ <sequence>
+ <element name="secureClientCommunication" type="xsd:boolean"/>
+ <element name="locales" type="xsd:string" maxOccurs="unbounded"/>
+ <element name="mimeTypes" type="xsd:string" maxOccurs="unbounded"/>
+ <element name="mode" type="xsd:string"/>
+ <element name="windowState" type="xsd:string"/>
+ <element name="clientData" type="types:ClientData" minOccurs="0"/>
+ <element name="navigationalState" type="xsd:string" minOccurs="0"/>
+ <element name="markupCharacterSets" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="validateTag" type="xsd:string" minOccurs="0"/>
+ <element name="validNewModes" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="validNewWindowStates" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="MarkupParams" type="types:MarkupParams"/>
+
+ <complexType name="MarkupResponse">
+ <sequence>
+ <element name="markupContext" type="types:MarkupContext"/>
+ <element name="sessionContext" type="types:SessionContext" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="MarkupContext">
+ <sequence>
+ <element name="useCachedMarkup" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="mimeType" type="xsd:string" minOccurs="0"/>
+ <element name="markupString" type="xsd:string" minOccurs="0"/>
+ <element name="markupBinary" type="xsd:base64Binary" minOccurs="0"/>
+ <element name="locale" type="xsd:string" minOccurs="0"/>
+ <element name="requiresUrlRewriting" type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="cacheControl" type="types:CacheControl" minOccurs="0"/>
+ <element name="preferredTitle" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - - - - -->
+ <!-- Interaction oriented types -->
+ <!-- - - - - - - - - - - - - - - -->
+
+ <simpleType name="StateChange">
+ <restriction base="xsd:string">
+ <enumeration value="readWrite"/>
+ <enumeration value="cloneBeforeWrite"/>
+ <enumeration value="readOnly"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="UploadContext">
+ <sequence>
+ <element name="mimeType" type="xsd:string"/>
+ <element name="uploadData" type="xsd:base64Binary"/>
+ <element name="mimeAttributes" type="types:NamedString" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="InteractionParams">
+ <sequence>
+ <element name="portletStateChange" type="types:StateChange"/>
+ <element name="interactionState" type="xsd:string" minOccurs="0"/>
+ <element name="formParameters" type="types:NamedString" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="uploadContexts" type="types:UploadContext" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="InteractionParams" type="types:InteractionParams"/>
+
+ <complexType name="UpdateResponse">
+ <sequence>
+ <element name="sessionContext" type="types:SessionContext" minOccurs="0"/>
+ <element name="portletContext" type="types:PortletContext" minOccurs="0"/>
+ <element name="markupContext" type="types:MarkupContext" minOccurs="0"/>
+ <element name="navigationalState" type="xsd:string" nillable="true"/>
+ <element name="newWindowState" type="xsd:string" minOccurs="0"/>
+ <element name="newMode" type="xsd:string" minOccurs="0"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="BlockingInteractionResponse">
+ <sequence>
+ <!-- Would prefer this to be a choice ... Axis and JAX-RPC failed to handle that -->
+ <element name="updateResponse" type="types:UpdateResponse" minOccurs="0"/>
+ <element name="redirectURL" type="xsd:string" minOccurs="0"/>
+ <!-- end prefer this to be a choice -->
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="BlockingInteractionResponse" type="types:BlockingInteractionResponse"/>
+
+ <!-- - - - - - - - - - - -->
+ <!-- User Profile types -->
+ <!-- - - - - - - - - - - -->
+
+ <complexType name="Postal">
+ <sequence>
+ <element name="name" type="xsd:string" minOccurs="0"/>
+ <element name="street" type="xsd:string" minOccurs="0"/>
+ <element name="city" type="xsd:string" minOccurs="0"/>
+ <element name="stateprov" type="xsd:string" minOccurs="0"/>
+ <element name="postalcode" type="xsd:string" minOccurs="0"/>
+ <element name="country" type="xsd:string" minOccurs="0"/>
+ <element name="organization" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="TelephoneNum">
+ <sequence>
+ <element name="intcode" type="xsd:string" minOccurs="0"/>
+ <element name="loccode" type="xsd:string" minOccurs="0"/>
+ <element name="number" type="xsd:string" minOccurs="0"/>
+ <element name="ext" type="xsd:string" minOccurs="0"/>
+ <element name="comment" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Telecom">
+ <sequence>
+ <element name="telephone" type="types:TelephoneNum" minOccurs="0"/>
+ <element name="fax" type="types:TelephoneNum" minOccurs="0"/>
+ <element name="mobile" type="types:TelephoneNum" minOccurs="0"/>
+ <element name="pager" type="types:TelephoneNum" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Online">
+ <sequence>
+ <element name="email" type="xsd:string" minOccurs="0"/>
+ <element name="uri" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Contact">
+ <sequence>
+ <element name="postal" type="types:Postal" minOccurs="0"/>
+ <element name="telecom" type="types:Telecom" minOccurs="0"/>
+ <element name="online" type="types:Online" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="Contact" type="types:Contact"/>
+
+ <complexType name="EmployerInfo">
+ <sequence>
+ <element name="employer" type="xsd:string" minOccurs="0"/>
+ <element name="department" type="xsd:string" minOccurs="0"/>
+ <element name="jobtitle" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PersonName">
+ <sequence>
+ <element name="prefix" type="xsd:string" minOccurs="0"/>
+ <element name="given" type="xsd:string" minOccurs="0"/>
+ <element name="family" type="xsd:string" minOccurs="0"/>
+ <element name="middle" type="xsd:string" minOccurs="0"/>
+ <element name="suffix" type="xsd:string" minOccurs="0"/>
+ <element name="nickname" type="xsd:string" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="UserProfile">
+ <sequence>
+ <element name="name" type="types:PersonName" minOccurs="0"/>
+ <element name="bdate" type="xsd:dateTime" minOccurs="0"/>
+ <element name="gender" type="xsd:string" minOccurs="0"/>
+ <element name="employerInfo" type="types:EmployerInfo" minOccurs="0"/>
+ <element name="homeInfo" type="types:Contact" minOccurs="0"/>
+ <element name="businessInfo" type="types:Contact" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="UserContext">
+ <sequence>
+ <element name="userContextKey" type="xsd:string"/>
+ <element name="userCategories" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="profile" type="types:UserProfile" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="UserContext" type="types:UserContext"/>
+
+ <!-- - - - - - - - - -->
+ <!-- Property types -->
+ <!-- - - - - - - - - -->
+
+ <complexType name="Property">
+ <sequence>
+ <!-- Would prefer this to be a choice ... Axis and JAX-RPC failed to handle that -->
+ <element name="stringValue" type="xsd:string" minOccurs="0"/>
+ <!-- JBoss modification: added processContents="skip" to better process extensions. -->
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ <!-- end prefer this to be a choice -->
+ </sequence>
+ <attribute name="name" type="xsd:string" use="required"/>
+ <attribute ref="xml:lang"/>
+ </complexType>
+
+ <complexType name="ResetProperty">
+ <sequence/>
+ <attribute name="name" type="xsd:string" use="required"/>
+ </complexType>
+
+ <complexType name="PropertyList">
+ <sequence>
+ <element name="properties" type="types:Property" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="resetProperties" type="types:ResetProperty" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="PropertyList" type="types:PropertyList"/>
+
+ <complexType name="PropertyDescription">
+ <sequence>
+ <element name="label" type="types:LocalizedString" minOccurs="0"/>
+ <element name="hint" type="types:LocalizedString" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="xsd:string" use="required"/>
+ <attribute name="type" type="xsd:QName" use="required"/>
+ </complexType>
+
+ <complexType name="ModelTypes">
+ <sequence>
+ <!-- JBoss modification: added processContents="skip" to better process extensions. -->
+ <any namespace="##other" processContents="skip"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ModelDescription">
+ <sequence>
+ <element name="propertyDescriptions" type="types:PropertyDescription" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="modelTypes" type="types:ModelTypes" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ModelDescription" type="types:ModelDescription"/>
+
+ <complexType name="PortletPropertyDescriptionResponse">
+ <sequence>
+ <element name="modelDescription" type="types:ModelDescription" minOccurs="0"/>
+ <element name="resourceList" type="types:ResourceList" minOccurs="0"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - - -->
+ <!-- operation message types -->
+ <!-- - - - - - - - - - - - - -->
+
+ <complexType name="ReturnAny">
+ <sequence>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="getMarkup">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="runtimeContext" type="types:RuntimeContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="markupParams" type="types:MarkupParams"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getMarkupResponse" type="types:MarkupResponse"/>
+
+ <element name="performBlockingInteraction">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="runtimeContext" type="types:RuntimeContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="markupParams" type="types:MarkupParams"/>
+ <element name="interactionParams" type="types:InteractionParams"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="performBlockingInteractionResponse" type="types:BlockingInteractionResponse"/>
+
+ <element name="getServiceDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="desiredLocales" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getServiceDescriptionResponse" type="types:ServiceDescription"/>
+
+ <element name="register" type="types:RegistrationData"/>
+ <element name="registerResponse" type="types:RegistrationContext"/>
+
+ <element name="deregister" type="types:RegistrationContext"/>
+ <element name="deregisterResponse" type="types:ReturnAny"/>
+
+ <element name="modifyRegistration">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="registrationData" type="types:RegistrationData"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="modifyRegistrationResponse" type="types:RegistrationState"/>
+
+ <element name="getPortletDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="desiredLocales" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletDescriptionResponse" type="types:PortletDescriptionResponse"/>
+
+ <element name="clonePortlet">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="clonePortletResponse" type="types:PortletContext"/>
+
+ <element name="destroyPortlets">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletHandles" type="xsd:string" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="DestroyPortletsResponse">
+ <sequence>
+ <element name="destroyFailed" type="types:DestroyFailed" minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="destroyPortletsResponse" type="types:DestroyPortletsResponse"/>
+
+ <element name="setPortletProperties">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="propertyList" type="types:PropertyList"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="setPortletPropertiesResponse" type="types:PortletContext"/>
+
+ <element name="getPortletProperties">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="names" type="xsd:string" nillable="true" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletPropertiesResponse" type="types:PropertyList"/>
+
+ <element name="getPortletPropertyDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext" type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext" nillable="true"/>
+ <element name="desiredLocales" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletPropertyDescriptionResponse" type="types:PortletPropertyDescriptionResponse"/>
+
+ <element name="releaseSessions">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ <element name="sessionIDs" type="xsd:string" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="releaseSessionsResponse" type="types:ReturnAny"/>
+
+ <element name="initCookie">
+ <complexType>
+ <sequence>
+ <element name="registrationContext" type="types:RegistrationContext" nillable="true"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="initCookieResponse" type="types:ReturnAny"/>
+
+ <!-- - - - - - - -->
+ <!-- fault types -->
+ <!-- - - - - - - -->
+
+ <complexType name="Fault">
+ <sequence/>
+ </complexType>
+
+ <complexType name="AccessDeniedFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="AccessDenied" type="types:AccessDeniedFault"/>
+
+ <complexType name="InconsistentParametersFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InconsistentParameters" type="types:InconsistentParametersFault"/>
+
+ <complexType name="InvalidRegistrationFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidRegistration" type="types:InvalidRegistrationFault"/>
+
+ <complexType name="MissingParametersFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="MissingParameters" type="types:MissingParametersFault"/>
+
+ <complexType name="OperationFailedFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="OperationFailed" type="types:OperationFailedFault"/>
+
+ <complexType name="InvalidHandleFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidHandle" type="types:InvalidHandleFault"/>
+
+ <complexType name="InvalidUserCategoryFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidUserCategory" type="types:InvalidUserCategoryFault"/>
+
+ <complexType name="PortletStateChangeRequiredFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="PortletStateChangeRequired" type="types:PortletStateChangeRequiredFault"/>
+
+ <complexType name="InvalidCookieFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="InvalidCookie" type="types:InvalidCookieFault"/>
+
+ <complexType name="InvalidSessionFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="InvalidSession" type="types:InvalidSessionFault"/>
+
+ <complexType name="UnsupportedModeFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedMode" type="types:UnsupportedModeFault"/>
+
+ <complexType name="UnsupportedWindowStateFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedWindowState" type="types:UnsupportedWindowStateFault"/>
+
+ <complexType name="UnsupportedLocaleFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedLocale" type="types:UnsupportedLocaleFault"/>
+
+ <complexType name="UnsupportedMimeTypeFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedMimeType" type="types:UnsupportedMimeTypeFault"/>
+</schema>
Modified: components/wsrp/trunk/wsrp1-ws/pom.xml
===================================================================
--- components/wsrp/trunk/wsrp1-ws/pom.xml 2009-09-25 13:07:49 UTC (rev 206)
+++ components/wsrp/trunk/wsrp1-ws/pom.xml 2009-09-28 22:21:33 UTC (rev 207)
@@ -30,7 +30,7 @@
<relativePath>../build/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>wsrp1-ws</artifactId>
+ <artifactId>wsrp-wsrp1-ws</artifactId>
<packaging>jar</packaging>
<name>GateIn WSRP Generated JAX-WS Classes</name>
@@ -44,7 +44,6 @@
</dependencies>
<build>
- <finalName>wsrp1-ws</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
16 years, 7 months
gatein SVN: r206 - in components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config: impl and 1 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-09-25 09:07:49 -0400 (Fri, 25 Sep 2009)
New Revision: 206
Added:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationFactory.java
Removed:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationFactory.java
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerRegistrationRequirements.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java
Log:
- Fixed incorrect references to old JBoss Portal classes in dynamic loading.
- Moved ProducerConfigurationFactory to xml package as it's only used there.
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationFactory.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationFactory.java 2009-09-25 09:41:56 UTC (rev 205)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationFactory.java 2009-09-25 13:07:49 UTC (rev 206)
@@ -1,281 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.producer.config;
-
-import org.gatein.common.util.ParameterValidation;
-import org.gatein.wsrp.WSRPConstants;
-import org.gatein.wsrp.WSRPUtils;
-import org.gatein.wsrp.producer.config.impl.ProducerConfigurationImpl;
-import org.gatein.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
-import org.gatein.wsrp.registration.LocalizedString;
-import org.gatein.wsrp.registration.RegistrationPropertyDescription;
-import org.jboss.util.StringPropertyReplacer;
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.jboss.xb.binding.UnmarshallingContext;
-import org.xml.sax.Attributes;
-
-import javax.xml.namespace.QName;
-import java.util.Locale;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 10408 $
- * @since 2.6
- */
-public class ProducerConfigurationFactory implements ObjectModelFactory
-{
- private static final String REGISTRATION_CONFIG = "registration-configuration";
- private static final boolean DEBUG = false;
- private boolean registrationDone = false;
-
- // kept to support old-style type
- private static final String LEGACY_XSD_STRING = "xsd:string";
-
- public Object newRoot(Object root, UnmarshallingContext nav, String nsURI, String localName, Attributes attrs)
- {
- if (DEBUG)
- {
- System.out.println("newRoot " + localName);
- }
-
- if ("producer-configuration".equals(localName))
- {
- ProducerConfiguration producerConfiguration = new ProducerConfigurationImpl();
- producerConfiguration.setUsingStrictMode(getBooleanAttributeValue(attrs, "useStrictMode", true));
- return producerConfiguration;
- }
- throw new IllegalArgumentException("The processed file doesn't seem to have the proper format, " +
- "was expecting producer-configuration, instead got " + localName);
- }
-
- public Object newChild(ProducerConfigurationImpl producerConfiguration, UnmarshallingContext nav, String nsURI, String localName, Attributes attrs)
- {
- if (DEBUG)
- {
- System.out.println("newChild prodConf " + localName);
- }
-
- if (REGISTRATION_CONFIG.equals(localName))
- {
- // check that we don't have several registration-configuration elements.
- if (registrationDone)
- {
- throw new IllegalArgumentException("Only one registration-configuration element can be defined!");
- }
-
- ProducerRegistrationRequirements registrationRequirements = new ProducerRegistrationRequirementsImpl();
- registrationRequirements.setRegistrationRequired(true);
- registrationRequirements.setRegistrationRequiredForFullDescription(getBooleanAttributeValue(attrs, "fullServiceDescriptionRequiresRegistration", false));
- registrationDone = true;
- return registrationRequirements;
- }
- return null;
- }
-
- public Object completeRoot(Object root, UnmarshallingContext nav, String nsURI, String localName)
- {
- return root;
- }
-
- public Object newChild(ProducerRegistrationRequirementsImpl regReq, UnmarshallingContext nav, String nsURI,
- String localName, Attributes attrs)
- {
- if (DEBUG)
- {
- System.out.println("newChild regReq " + localName);
- }
-
- if ("registration-property-description".equals(localName))
- {
- return new RegistrationPropertyDescription();
- }
- else
- {
- return null;
- }
- }
-
- public void setValue(ProducerRegistrationRequirementsImpl regReq, UnmarshallingContext nav, String nsURI,
- String localName, String value)
- {
- if ("registration-policy".equals(localName))
- {
- value = StringPropertyReplacer.replaceProperties(value);
- regReq.setPolicyClassName(value);
- }
- else if ("registration-property-validator".equals(localName))
- {
- value = StringPropertyReplacer.replaceProperties(value);
- regReq.setValidatorClassName(value);
- }
- }
-
- public void setValue(RegistrationPropertyDescription desc, UnmarshallingContext nav, String nsURI,
- String localName, String value)
- {
- if (DEBUG)
- {
- System.out.println("setvalue desc " + localName);
- }
-
- if ("name".equals(localName))
- {
- value = StringPropertyReplacer.replaceProperties(value);
- desc.setName(new QName(value));
- }
- else if ("type".equals(localName))
- {
- value = StringPropertyReplacer.replaceProperties(value);
-
- // first check that we still support type as "xsd:string"...
- if (!LEGACY_XSD_STRING.equals(value))
- {
- QName type = nav.resolveQName(value);
- if (!WSRPConstants.XSD_STRING.equals(type))
- {
- throw new IllegalArgumentException("'" + value + "' is not a supported type. Currently, only 'xsd:string' is supported.");
- }
- }
-
- desc.setType(WSRPConstants.XSD_STRING);
- }
- }
-
- public Object newChild(RegistrationPropertyDescription desc, UnmarshallingContext nav, String nsURI, String localName,
- Attributes attrs)
- {
- if (DEBUG)
- {
- System.out.println("newchild desc " + localName);
- }
-
- if ("hint".equals(localName) || "label".equals(localName) || "description".equals(localName))
- {
- String lang = attrs.getValue("xml:lang");
- ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang, "xml:lang", localName);
- Locale locale = WSRPUtils.getLocale(lang);
-
- String resourceName = attrs.getValue("resourceName");
-
- LocalizedString string = new LocalizedString();
- string.setLocale(locale);
-
- if (resourceName != null && resourceName.length() > 0)
- {
- string.setResourceName(resourceName);
- }
-
- return string;
- }
-
- return null;
- }
-
- public void setValue(LocalizedString string, UnmarshallingContext nav, String nsURI, String localName, String value)
- {
- if (DEBUG)
- {
- System.out.println("setvalue string " + localName);
- }
-
- value = StringPropertyReplacer.replaceProperties(value);
- string.setValue(value);
- }
-
- public void addChild(ProducerConfigurationImpl conf, ProducerRegistrationRequirementsImpl regReq,
- UnmarshallingContext nav, String nsURI, String localName)
- {
- if (DEBUG)
- {
- System.out.println("addchild conf regReq " + localName);
- }
-
- if (!ProducerRegistrationRequirementsImpl.DEFAULT_POLICY_CLASS_NAME.equals(regReq.getPolicyClassName()) && regReq.getValidatorClassName() != null)
- {
- throw new IllegalStateException("Doesn't make sense to define a property validator without using DefaultRegistrationPolicy!");
- }
-
- conf.setRegistrationRequirements(regReq);
- }
-
- public void addChild(ProducerRegistrationRequirementsImpl regReq, RegistrationPropertyDescription desc,
- UnmarshallingContext nav, String nsURI, String localName)
- {
- if (DEBUG)
- {
- System.out.println("addchild regreq desc " + localName);
- }
-
- regReq.addRegistrationProperty(desc);
- }
-
- public void addChild(RegistrationPropertyDescription desc, LocalizedString string, UnmarshallingContext nav,
- String nsURI, String localName)
- {
- if (DEBUG)
- {
- System.out.println("addchild desc string " + localName);
- }
-
- if ("hint".equals(localName))
- {
- desc.setHint(string);
- }
- else if ("label".equals(localName))
- {
- desc.setLabel(string);
- }
- else if ("description".equals(localName))
- {
- desc.setDescription(string);
- }
- }
-
- private boolean getBooleanAttributeValue(Attributes attrs, String attributeName, boolean defaultValue)
- {
- String value = attrs.getValue(attributeName);
-
- // figure out which is the default value
- String defaultString = "false";
- String other = "true";
- if (defaultValue)
- {
- defaultString = "true";
- other = "false";
- }
-
- if (other.equals(value))
- {
- return !defaultValue;
- }
- else if (value == null || defaultString.equals(value))
- {
- return defaultValue;
- }
- else
- {
- throw new IllegalArgumentException("Invalid value for " + attributeName + " attribute. Acceptable values are: true, false.");
- }
- }
-}
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerRegistrationRequirements.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerRegistrationRequirements.java 2009-09-25 09:41:56 UTC (rev 205)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerRegistrationRequirements.java 2009-09-25 13:07:49 UTC (rev 206)
@@ -40,8 +40,8 @@
*/
public interface ProducerRegistrationRequirements extends ValueChangeListener
{
- String DEFAULT_POLICY_CLASS_NAME = "org.jboss.portal.registration.policies.DefaultRegistrationPolicy";
- String DEFAULT_VALIDATOR_CLASS_NAME = "org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator";
+ String DEFAULT_POLICY_CLASS_NAME = "org.gatein.registration.policies.DefaultRegistrationPolicy";
+ String DEFAULT_VALIDATOR_CLASS_NAME = "org.gatein.registration.policies.DefaultRegistrationPropertyValidator";
boolean isRegistrationRequired();
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2009-09-25 09:41:56 UTC (rev 205)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2009-09-25 13:07:49 UTC (rev 206)
@@ -296,8 +296,7 @@
try
{
Class policyClass = loader.loadClass(policyClassName);
- Class expectedInterface = loader.loadClass("org.jboss.portal.registration.RegistrationPolicy");
- if (!expectedInterface.isAssignableFrom(policyClass))
+ if (!RegistrationPolicy.class.isAssignableFrom(policyClass))
{
throw new IllegalArgumentException("Policy class does not implement RegistrationPolicy!");
}
@@ -324,8 +323,7 @@
try
{
Class validatorClass = loader.loadClass(validatorClassName);
- Class expectedInterface = loader.loadClass("org.jboss.portal.registration.policies.RegistrationPropertyValidator");
- if (!expectedInterface.isAssignableFrom(validatorClass))
+ if (!RegistrationPropertyValidator.class.isAssignableFrom(validatorClass))
{
throw new IllegalArgumentException("Validator class does not implement RegistrationPropertyValidator!");
}
Copied: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationFactory.java (from rev 198, components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationFactory.java)
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationFactory.java (rev 0)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationFactory.java 2009-09-25 13:07:49 UTC (rev 206)
@@ -0,0 +1,283 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.producer.config.impl.xml;
+
+import org.gatein.common.util.ParameterValidation;
+import org.gatein.wsrp.WSRPConstants;
+import org.gatein.wsrp.WSRPUtils;
+import org.gatein.wsrp.producer.config.ProducerConfiguration;
+import org.gatein.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.gatein.wsrp.producer.config.impl.ProducerConfigurationImpl;
+import org.gatein.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
+import org.gatein.wsrp.registration.LocalizedString;
+import org.gatein.wsrp.registration.RegistrationPropertyDescription;
+import org.jboss.util.StringPropertyReplacer;
+import org.jboss.xb.binding.ObjectModelFactory;
+import org.jboss.xb.binding.UnmarshallingContext;
+import org.xml.sax.Attributes;
+
+import javax.xml.namespace.QName;
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 10408 $
+ * @since 2.6
+ */
+public class ProducerConfigurationFactory implements ObjectModelFactory
+{
+ private static final String REGISTRATION_CONFIG = "registration-configuration";
+ private static final boolean DEBUG = false;
+ private boolean registrationDone = false;
+
+ // kept to support old-style type
+ private static final String LEGACY_XSD_STRING = "xsd:string";
+
+ public Object newRoot(Object root, UnmarshallingContext nav, String nsURI, String localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newRoot " + localName);
+ }
+
+ if ("producer-configuration".equals(localName))
+ {
+ ProducerConfiguration producerConfiguration = new ProducerConfigurationImpl();
+ producerConfiguration.setUsingStrictMode(getBooleanAttributeValue(attrs, "useStrictMode", true));
+ return producerConfiguration;
+ }
+ throw new IllegalArgumentException("The processed file doesn't seem to have the proper format, " +
+ "was expecting producer-configuration, instead got " + localName);
+ }
+
+ public Object newChild(ProducerConfigurationImpl producerConfiguration, UnmarshallingContext nav, String nsURI, String localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newChild prodConf " + localName);
+ }
+
+ if (REGISTRATION_CONFIG.equals(localName))
+ {
+ // check that we don't have several registration-configuration elements.
+ if (registrationDone)
+ {
+ throw new IllegalArgumentException("Only one registration-configuration element can be defined!");
+ }
+
+ ProducerRegistrationRequirements registrationRequirements = new ProducerRegistrationRequirementsImpl();
+ registrationRequirements.setRegistrationRequired(true);
+ registrationRequirements.setRegistrationRequiredForFullDescription(getBooleanAttributeValue(attrs, "fullServiceDescriptionRequiresRegistration", false));
+ registrationDone = true;
+ return registrationRequirements;
+ }
+ return null;
+ }
+
+ public Object completeRoot(Object root, UnmarshallingContext nav, String nsURI, String localName)
+ {
+ return root;
+ }
+
+ public Object newChild(ProducerRegistrationRequirementsImpl regReq, UnmarshallingContext nav, String nsURI,
+ String localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newChild regReq " + localName);
+ }
+
+ if ("registration-property-description".equals(localName))
+ {
+ return new RegistrationPropertyDescription();
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public void setValue(ProducerRegistrationRequirementsImpl regReq, UnmarshallingContext nav, String nsURI,
+ String localName, String value)
+ {
+ if ("registration-policy".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ regReq.setPolicyClassName(value);
+ }
+ else if ("registration-property-validator".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ regReq.setValidatorClassName(value);
+ }
+ }
+
+ public void setValue(RegistrationPropertyDescription desc, UnmarshallingContext nav, String nsURI,
+ String localName, String value)
+ {
+ if (DEBUG)
+ {
+ System.out.println("setvalue desc " + localName);
+ }
+
+ if ("name".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ desc.setName(new QName(value));
+ }
+ else if ("type".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+
+ // first check that we still support type as "xsd:string"...
+ if (!LEGACY_XSD_STRING.equals(value))
+ {
+ QName type = nav.resolveQName(value);
+ if (!WSRPConstants.XSD_STRING.equals(type))
+ {
+ throw new IllegalArgumentException("'" + value + "' is not a supported type. Currently, only 'xsd:string' is supported.");
+ }
+ }
+
+ desc.setType(WSRPConstants.XSD_STRING);
+ }
+ }
+
+ public Object newChild(RegistrationPropertyDescription desc, UnmarshallingContext nav, String nsURI, String localName,
+ Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newchild desc " + localName);
+ }
+
+ if ("hint".equals(localName) || "label".equals(localName) || "description".equals(localName))
+ {
+ String lang = attrs.getValue("xml:lang");
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang, "xml:lang", localName);
+ Locale locale = WSRPUtils.getLocale(lang);
+
+ String resourceName = attrs.getValue("resourceName");
+
+ LocalizedString string = new LocalizedString();
+ string.setLocale(locale);
+
+ if (resourceName != null && resourceName.length() > 0)
+ {
+ string.setResourceName(resourceName);
+ }
+
+ return string;
+ }
+
+ return null;
+ }
+
+ public void setValue(LocalizedString string, UnmarshallingContext nav, String nsURI, String localName, String value)
+ {
+ if (DEBUG)
+ {
+ System.out.println("setvalue string " + localName);
+ }
+
+ value = StringPropertyReplacer.replaceProperties(value);
+ string.setValue(value);
+ }
+
+ public void addChild(ProducerConfigurationImpl conf, ProducerRegistrationRequirementsImpl regReq,
+ UnmarshallingContext nav, String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild conf regReq " + localName);
+ }
+
+ if (!ProducerRegistrationRequirementsImpl.DEFAULT_POLICY_CLASS_NAME.equals(regReq.getPolicyClassName()) && regReq.getValidatorClassName() != null)
+ {
+ throw new IllegalStateException("Doesn't make sense to define a property validator without using DefaultRegistrationPolicy!");
+ }
+
+ conf.setRegistrationRequirements(regReq);
+ }
+
+ public void addChild(ProducerRegistrationRequirementsImpl regReq, RegistrationPropertyDescription desc,
+ UnmarshallingContext nav, String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild regreq desc " + localName);
+ }
+
+ regReq.addRegistrationProperty(desc);
+ }
+
+ public void addChild(RegistrationPropertyDescription desc, LocalizedString string, UnmarshallingContext nav,
+ String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild desc string " + localName);
+ }
+
+ if ("hint".equals(localName))
+ {
+ desc.setHint(string);
+ }
+ else if ("label".equals(localName))
+ {
+ desc.setLabel(string);
+ }
+ else if ("description".equals(localName))
+ {
+ desc.setDescription(string);
+ }
+ }
+
+ private boolean getBooleanAttributeValue(Attributes attrs, String attributeName, boolean defaultValue)
+ {
+ String value = attrs.getValue(attributeName);
+
+ // figure out which is the default value
+ String defaultString = "false";
+ String other = "true";
+ if (defaultValue)
+ {
+ defaultString = "true";
+ other = "false";
+ }
+
+ if (other.equals(value))
+ {
+ return !defaultValue;
+ }
+ else if (value == null || defaultString.equals(value))
+ {
+ return defaultValue;
+ }
+ else
+ {
+ throw new IllegalArgumentException("Invalid value for " + attributeName + " attribute. Acceptable values are: true, false.");
+ }
+ }
+}
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java 2009-09-25 09:41:56 UTC (rev 205)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java 2009-09-25 13:07:49 UTC (rev 206)
@@ -24,7 +24,6 @@
package org.gatein.wsrp.producer.config.impl.xml;
import org.gatein.wsrp.producer.config.ProducerConfiguration;
-import org.gatein.wsrp.producer.config.ProducerConfigurationFactory;
import org.gatein.wsrp.producer.config.impl.AbstractProducerConfigurationService;
import org.jboss.xb.binding.ObjectModelFactory;
import org.jboss.xb.binding.Unmarshaller;
16 years, 7 months
gatein SVN: r205 - tools/maven/dep/trunk.
by do-not-reply@jboss.org
Author: mpodolin
Date: 2009-09-25 05:41:56 -0400 (Fri, 25 Sep 2009)
New Revision: 205
Modified:
tools/maven/dep/trunk/pom.xml
Log:
Added repositories configuration.
Modified: tools/maven/dep/trunk/pom.xml
===================================================================
--- tools/maven/dep/trunk/pom.xml 2009-09-25 00:00:14 UTC (rev 204)
+++ tools/maven/dep/trunk/pom.xml 2009-09-25 09:41:56 UTC (rev 205)
@@ -272,4 +272,33 @@
</dependencies>
</dependencyManagement>
+
+ <!-- **************** -->
+ <!-- Repositiories -->
+ <!-- **************** -->
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
</project>
\ No newline at end of file
16 years, 7 months
gatein SVN: r204 - components/wsrp/trunk/producer/src/main/webapp/WEB-INF/conf/producer.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-09-24 20:00:14 -0400 (Thu, 24 Sep 2009)
New Revision: 204
Modified:
components/wsrp/trunk/producer/src/main/webapp/WEB-INF/conf/producer/config.xml
Log:
- Use proper class reference for registration property validator.
- Use proper version of XSD.
Modified: components/wsrp/trunk/producer/src/main/webapp/WEB-INF/conf/producer/config.xml
===================================================================
--- components/wsrp/trunk/producer/src/main/webapp/WEB-INF/conf/producer/config.xml 2009-09-24 16:07:57 UTC (rev 203)
+++ components/wsrp/trunk/producer/src/main/webapp/WEB-INF/conf/producer/config.xml 2009-09-25 00:00:14 UTC (rev 204)
@@ -27,11 +27,11 @@
-->
<!-- Configuration using registration with default registration property validator. -->
-<producer-configuration xmlns="urn:jboss:portal:wsrp:producer:v2_6"
+<producer-configuration xmlns="urn:jboss:portal:wsrp:producer:v2_7"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:jboss:portal:wsrp:producer:v2_6 http://www.jboss.org/portal/xsd/jboss-wsrp-producer_2_6.xsd">
+ xsi:schemaLocation="urn:jboss:portal:wsrp:producer:v2_7 http://www.jboss.org/portal/xsd/jboss-wsrp-producer_2_7.xsd">
<registration-configuration fullServiceDescriptionRequiresRegistration="true">
- <registration-property-validator>org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator
+ <registration-property-validator>org.gatein.registration.policies.DefaultRegistrationPropertyValidator
</registration-property-validator>
</registration-configuration>
</producer-configuration>
16 years, 7 months
gatein SVN: r203 - in components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config: impl and 1 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-09-24 12:07:57 -0400 (Thu, 24 Sep 2009)
New Revision: 203
Added:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/FileSystemXMLProducerConfigurationService.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationProvider.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java
Removed:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationService.java
Log:
- Re-factored ProducerConfigurationService implementations to provide better opportunities for alternate implementations:
+ Introduced AbstractProducerConfigurationService and SimpleXMLProducerConfigurationService classes.
+ Renamed ProducerConfigurationServiceImpl to FileSystemXMLProducerConfigurationService.
+ Introduced xml package and moved ProducerConfigurationProvider to it.
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java 2009-09-24 14:52:08 UTC (rev 202)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -1,189 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.producer.config;
-
-import org.gatein.registration.RegistrationPolicy;
-import org.gatein.registration.policies.DefaultRegistrationPolicy;
-import org.gatein.wsrp.WSRPUtils;
-import org.gatein.wsrp.producer.config.impl.ProducerConfigurationImpl;
-import org.gatein.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
-import org.gatein.wsrp.registration.LocalizedString;
-import org.gatein.wsrp.registration.RegistrationPropertyDescription;
-import org.jboss.xb.binding.MarshallingContext;
-import org.jboss.xb.binding.ObjectModelProvider;
-
-/**
- * Used to marshall Producer configuration to XML via JBoss XB.
- *
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 10408 $
- * @since 2.6.3
- */
-public class ProducerConfigurationProvider implements ObjectModelProvider
-{
- public Object getRoot(Object o, MarshallingContext marshallingContext, String s, String s1)
- {
- return o;
- }
-
- public Object getChildren(ProducerConfigurationImpl configuration, String namespaceUri, String localName)
- {
- if ("registration-configuration".equals(localName))
- {
- ProducerRegistrationRequirements registrationRequirements = configuration.getRegistrationRequirements();
- if (registrationRequirements != null && registrationRequirements.isRegistrationRequired())
- {
- return registrationRequirements;
- }
- }
- else if ("producer-configuration".equals(localName))
- {
- return configuration;
- }
-
- return null;
- }
-
- public Object getChildren(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
- {
- if ("registration-property-description".equals(localName))
- {
- return regReq.getRegistrationProperties().values();
- }
-
- return null;
- }
-
- public Object getAttributeValue(ProducerConfigurationImpl configuration, String namespaceUri, String localName)
- {
- if ("useStrictMode".equals(localName))
- {
- return configuration.isUsingStrictMode();
- }
-
- return null;
- }
-
- public Object getAttributeValue(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
- {
- if ("fullServiceDescriptionRequiresRegistration".equals(localName))
- {
- return regReq.isRegistrationRequiredForFullDescription();
- }
-
- return null;
- }
-
- public Object getElementValue(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
- {
- Object value = null;
- if ("registration-policy".equals(localName))
- {
- RegistrationPolicy policy = regReq.getPolicy();
- if (policy != null)
- {
- value = policy.getClass().getName();
- }
- }
- else if ("registration-property-validator".equals(localName))
- {
- RegistrationPolicy policy = regReq.getPolicy();
- if (policy instanceof DefaultRegistrationPolicy)
- {
- DefaultRegistrationPolicy defaultRegistrationPolicy = (DefaultRegistrationPolicy)policy;
- value = defaultRegistrationPolicy.getValidator().getClass().getName();
- }
- }
- else
- {
- value = null;
- }
- return value;
- }
-
- public Object getElementValue(RegistrationPropertyDescription propertyDescription, String namespaceUri, String localName)
- {
- Object value = null;
- if ("name".equals(localName))
- {
- value = propertyDescription.getName();
- }
- else if ("type".equals(localName))
- {
- value = propertyDescription.getType();
- }
- else if ("label".equals(localName))
- {
- value = getLocalizedStringOrNull(propertyDescription.getLabel());
- }
- else if ("hint".equals(localName))
- {
- value = getLocalizedStringOrNull(propertyDescription.getHint());
- }
- else if ("description".equals(localName))
- {
- value = getLocalizedStringOrNull(propertyDescription.getDescription());
- }
- return value;
- }
-
- private LocalizedString getLocalizedStringOrNull(LocalizedString string)
- {
- if (string != null)
- {
- String value = string.getValue();
- if (value == null || value.length() == 0)
- {
- return null;
- }
- else
- {
- return string;
- }
- }
- else
- {
- return null;
- }
- }
-
- public Object getAttributeValue(LocalizedString localizedString, String namespaceUri, String localName)
- {
- Object value = null;
- if ("lang".equals(localName))
- {
- value = WSRPUtils.toString(localizedString.getLocale());
- }
- else if ("resourceName".equals(localName))
- {
- value = localizedString.getResourceName();
- }
- return value;
- }
-
- public Object getElementValue(LocalizedString localizedString, String namespaceUri, String localName)
- {
- return localizedString.getValue();
- }
-}
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationService.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationService.java 2009-09-24 14:52:08 UTC (rev 202)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationService.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -23,6 +23,8 @@
package org.gatein.wsrp.producer.config;
+import java.io.InputStream;
+
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
* @version $Revision: 8784 $
@@ -47,4 +49,12 @@
* @since 2.6.3
*/
void saveConfiguration() throws Exception;
+
+ /**
+ * Loads a producer configuration from the given InputStream.
+ *
+ * @param inputStream the InputStream to load the configuration from
+ * @throws Exception
+ */
+ void loadConfigurationFrom(InputStream inputStream) throws Exception;
}
Added: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java (rev 0)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.producer.config.impl;
+
+import org.gatein.common.util.ParameterValidation;
+import org.gatein.registration.RegistrationPolicyChangeListener;
+import org.gatein.registration.RegistrationPropertyChangeListener;
+import org.gatein.wsrp.producer.config.ProducerConfiguration;
+import org.gatein.wsrp.producer.config.ProducerConfigurationChangeListener;
+import org.gatein.wsrp.producer.config.ProducerConfigurationService;
+import org.gatein.wsrp.producer.config.ProducerRegistrationRequirements;
+
+import java.io.InputStream;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ */
+public abstract class AbstractProducerConfigurationService implements ProducerConfigurationService
+{
+ protected ProducerConfiguration configuration;
+
+ public ProducerConfiguration getConfiguration()
+ {
+ return configuration;
+ }
+
+ public void loadConfigurationFrom(InputStream inputStream) throws Exception
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(inputStream, "InputStream");
+
+ // save listeners if we already have a configuration
+ List<ProducerConfigurationChangeListener> listeners = null;
+ Set<RegistrationPolicyChangeListener> policyListeners = null;
+ Set<RegistrationPropertyChangeListener> propertyListeners = null;
+ ProducerRegistrationRequirements registrationRequirements;
+ if (configuration != null)
+ {
+ listeners = configuration.getChangeListeners();
+ registrationRequirements = configuration.getRegistrationRequirements();
+ if (registrationRequirements != null)
+ {
+ policyListeners = registrationRequirements.getPolicyChangeListeners();
+ propertyListeners = registrationRequirements.getPropertyChangeListeners();
+ }
+ }
+
+ // reload
+ configuration = parseConfigurationFrom(inputStream);
+
+ // restore listeners
+ if (listeners != null)
+ {
+ for (ProducerConfigurationChangeListener listener : listeners)
+ {
+ configuration.addChangeListener(listener);
+ }
+ }
+ registrationRequirements = configuration.getRegistrationRequirements();
+ if (registrationRequirements != null)
+ {
+ if (propertyListeners != null)
+ {
+ for (RegistrationPropertyChangeListener listener : propertyListeners)
+ {
+ registrationRequirements.addRegistrationPropertyChangeListener(listener);
+ }
+ }
+ if (policyListeners != null)
+ {
+ for (RegistrationPolicyChangeListener listener : policyListeners)
+ {
+ registrationRequirements.addRegistrationPolicyChangeListener(listener);
+ }
+ }
+ }
+ }
+
+ protected abstract ProducerConfiguration parseConfigurationFrom(InputStream inputStream) throws Exception;
+
+}
Deleted: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java 2009-09-24 14:52:08 UTC (rev 202)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -1,291 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.gatein.wsrp.producer.config.impl;
-
-import org.gatein.common.net.URLTools;
-import org.gatein.registration.RegistrationPolicyChangeListener;
-import org.gatein.registration.RegistrationPropertyChangeListener;
-import org.gatein.wsrp.producer.config.ProducerConfiguration;
-import org.gatein.wsrp.producer.config.ProducerConfigurationChangeListener;
-import org.gatein.wsrp.producer.config.ProducerConfigurationFactory;
-import org.gatein.wsrp.producer.config.ProducerConfigurationProvider;
-import org.gatein.wsrp.producer.config.ProducerConfigurationService;
-import org.gatein.wsrp.producer.config.ProducerRegistrationRequirements;
-import org.jboss.xb.binding.JBossXBException;
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.jboss.xb.binding.ObjectModelProvider;
-import org.jboss.xb.binding.Unmarshaller;
-import org.jboss.xb.binding.UnmarshallerFactory;
-import org.jboss.xb.binding.XercesXsMarshaller;
-import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.io.StringWriter;
-import java.io.Writer;
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.Set;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision: 12276 $
- * @since 2.6
- */
-public class ProducerConfigurationServiceImpl implements ProducerConfigurationService
-{
- private static final Logger log = LoggerFactory.getLogger(ProducerConfigurationServiceImpl.class);
-
- private String configLocation;
- private ProducerConfiguration configuration;
-
- private File config;
-
- private static DefaultSchemaResolver RESOLVER;
-
- private static final String PRODUCER_NAMESPACE = "urn:jboss:portal:wsrp:producer:v2_7";
- private static final String PRODUCER_XSD = "jboss-wsrp-producer_2_7.xsd";
-
- static
- {
- RESOLVER = new DefaultSchemaResolver();
- RESOLVER.setCacheResolvedSchemas(true);
- RESOLVER.addSchemaLocation("http://www.w3.org/XML/1998/namespace", "xsd/xml.xsd");
- RESOLVER.addSchemaLocation("urn:jboss:portal:wsrp:producer:v2_6", "xsd/jboss-wsrp-producer_2_6.xsd");
- RESOLVER.addSchemaLocation(PRODUCER_NAMESPACE, "xsd/" + PRODUCER_XSD);
- }
-
- public String getConfigLocation()
- {
- return configLocation;
- }
-
- public void setConfigLocation(String configLocation)
- {
- this.configLocation = configLocation;
- }
-
-
- public ProducerConfiguration getConfiguration()
- {
- return configuration;
- }
-
- public void start() throws Exception
- {
- File dataDir;
- /*MBeanServer server = MBeanServerLocator.locateJBoss();
- ObjectName oname = ObjectNameFactory.create("jboss.system:type=ServerConfig");
- try
- {
- dataDir = (File)server.getAttribute(oname, "ServerDataDir");
- }
- catch (Exception e)
- {
- throw new RuntimeException("Couldn't locate server data dir!", e);
- }*/
-
- // todo: replace by proper location or JCR-based persistence
- dataDir = new File(System.getProperty("java.io.tmpdir"));
-
- // if "portal" directory doesn't exist already in data, create it (JBPORTAL-2229)
- File portalDir = new File(dataDir, "portal");
- if (!portalDir.exists())
- {
- if (!portalDir.mkdir())
- {
- throw new RuntimeException("Couldn't create 'portal' directory in " + dataDir.getAbsolutePath());
- }
- }
- else
- {
- if (!portalDir.isDirectory())
- {
- throw new RuntimeException("Was expecting a directory named 'portal' in " + dataDir.getAbsolutePath()
- + ", not a simple file! Cannot continue.");
- }
- }
-
- config = new File(portalDir, "wsrp-producer-config.xml");
-
- reloadConfiguration();
- }
-
- public void reloadConfiguration() throws Exception
- {
- URL configURL = getConfigLocationURL();
-
- try
- {
- loadConfigurationAt(configURL);
- }
- catch (Exception e)
- {
- if (config.exists())
- {
- log.debug("Configuration saved at " + config.getCanonicalPath()
- + " is not loading properly. Falling back to default configuration.");
- config.delete(); // delete improper config so that we retrieve the default configuration
- loadConfigurationAt(getConfigLocationURL());
- }
- }
- }
-
- private void loadConfigurationAt(URL configURL) throws JBossXBException, IOException
- {
- log.debug("About to parse producer configuration " + configURL);
- Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
- ObjectModelFactory factory = new ProducerConfigurationFactory();
-
- // save listeners if we already have a configuration
- List<ProducerConfigurationChangeListener> listeners = null;
- Set<RegistrationPolicyChangeListener> policyListeners = null;
- Set<RegistrationPropertyChangeListener> propertyListeners = null;
- ProducerRegistrationRequirements registrationRequirements;
- if (configuration != null)
- {
- listeners = configuration.getChangeListeners();
- registrationRequirements = configuration.getRegistrationRequirements();
- if (registrationRequirements != null)
- {
- policyListeners = registrationRequirements.getPolicyChangeListeners();
- propertyListeners = registrationRequirements.getPropertyChangeListeners();
- }
- }
-
- // reload
- configuration = (ProducerConfiguration)unmarshaller.unmarshal(configURL.openStream(), factory, null);
-
- // restore listeners
- if (listeners != null)
- {
- for (ProducerConfigurationChangeListener listener : listeners)
- {
- configuration.addChangeListener(listener);
- }
- }
- registrationRequirements = configuration.getRegistrationRequirements();
- if (registrationRequirements != null)
- {
- if (propertyListeners != null)
- {
- for (RegistrationPropertyChangeListener listener : propertyListeners)
- {
- registrationRequirements.addRegistrationPropertyChangeListener(listener);
- }
- }
- if (policyListeners != null)
- {
- for (RegistrationPolicyChangeListener listener : policyListeners)
- {
- registrationRequirements.addRegistrationPolicyChangeListener(listener);
- }
- }
- }
- }
-
- private URL getConfigLocationURL() throws Exception
- {
- if (!config.exists())
- {
- // Setup URLs
- if (configLocation == null)
- {
- throw new Exception("The config location is null");
- }
-
- // make sure we pick the furthest down the path in case there's several similarly named resources in the path
- Enumeration resources = Thread.currentThread().getContextClassLoader().getResources(configLocation);
- URL configURL = null;
- while (resources.hasMoreElements())
- {
- configURL = (URL)resources.nextElement();
- }
-
- if (configURL == null)
- {
- throw new Exception("The config " + configLocation + " does not exist");
- }
- if (!URLTools.exists(configURL))
- {
- throw new Exception("The config " + configURL + " does not exist");
- }
- return configURL;
- }
- else
- {
- return config.toURI().toURL();
- }
- }
-
- public void saveConfiguration() throws Exception
- {
- // get the output writer to write the XML content
- StringWriter xmlOutput = new StringWriter();
-
- // get the XML Schema source
- InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("xsd/" + PRODUCER_XSD);
-
- Reader xsReader = new InputStreamReader(is);
-
- // create an instance of XML Schema marshaller
- XercesXsMarshaller marshaller = new XercesXsMarshaller();
-
- marshaller.setSchemaResolver(RESOLVER);
-
- // we need to specify what elements are top most (roots) providing namespace URI, prefix and local name
- marshaller.addRootElement(PRODUCER_NAMESPACE, "", "producer-configuration");
-
- // declare default namespace
- marshaller.declareNamespace("wpc", PRODUCER_NAMESPACE);
-
- // add schema location by declaring xsi namespace and adding xsi:schemaLocation attribute
- marshaller.declareNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
- marshaller.addAttribute("xsi", "schemaLocation", "string",
- PRODUCER_NAMESPACE + " http://www.jboss.org/portal/xsd/" + PRODUCER_XSD);
-
- // create an instance of Object Model Provider
- ObjectModelProvider provider = new ProducerConfigurationProvider();
-
- marshaller.setProperty("org.jboss.xml.binding.marshalling.indent", "true");
- marshaller.marshal(xsReader, provider, configuration, xmlOutput);
-
- // close XML Schema reader
- xsReader.close();
-
- config.createNewFile();
- Writer configFile = new BufferedWriter(new FileWriter(config));
- configFile.write(xmlOutput.toString());
- configFile.flush();
- configFile.close();
- }
-}
Added: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/FileSystemXMLProducerConfigurationService.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/FileSystemXMLProducerConfigurationService.java (rev 0)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/FileSystemXMLProducerConfigurationService.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -0,0 +1,216 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.producer.config.impl.xml;
+
+import org.gatein.common.net.URLTools;
+import org.jboss.xb.binding.ObjectModelProvider;
+import org.jboss.xb.binding.XercesXsMarshaller;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.io.StringWriter;
+import java.io.Writer;
+import java.net.URL;
+import java.util.Enumeration;
+
+/**
+ * A ProducerConfigurationService that can load an initial seed of an XML configuration file and then store
+ * modifications made to it on the file system, in the <code>${java.io.tmpdir}/portal/wsrp-producer-config.xml</code>
+ * file.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 12276 $
+ * @since 2.6
+ */
+public class FileSystemXMLProducerConfigurationService extends SimpleXMLProducerConfigurationService
+{
+ private static final Logger log = LoggerFactory.getLogger(FileSystemXMLProducerConfigurationService.class);
+
+ private String configLocation;
+
+ private File config;
+
+ private static DefaultSchemaResolver RESOLVER;
+
+ private static final String PRODUCER_NAMESPACE = "urn:jboss:portal:wsrp:producer:v2_7";
+ private static final String PRODUCER_XSD = "jboss-wsrp-producer_2_7.xsd";
+
+ static
+ {
+ RESOLVER = new DefaultSchemaResolver();
+ RESOLVER.setCacheResolvedSchemas(true);
+ RESOLVER.addSchemaLocation("http://www.w3.org/XML/1998/namespace", "xsd/xml.xsd");
+ RESOLVER.addSchemaLocation("urn:jboss:portal:wsrp:producer:v2_6", "xsd/jboss-wsrp-producer_2_6.xsd");
+ RESOLVER.addSchemaLocation(PRODUCER_NAMESPACE, "xsd/" + PRODUCER_XSD);
+ }
+
+ public String getConfigLocation()
+ {
+ return configLocation;
+ }
+
+ public void setConfigLocation(String configLocation)
+ {
+ this.configLocation = configLocation;
+ }
+
+
+ public void start() throws Exception
+ {
+ File dataDir = new File(System.getProperty("java.io.tmpdir"));
+
+ // if "portal" directory doesn't exist already in data, create it (JBPORTAL-2229)
+ File portalDir = new File(dataDir, "portal");
+ if (!portalDir.exists())
+ {
+ if (!portalDir.mkdir())
+ {
+ throw new RuntimeException("Couldn't create 'portal' directory in " + dataDir.getAbsolutePath());
+ }
+ }
+ else
+ {
+ if (!portalDir.isDirectory())
+ {
+ throw new RuntimeException("Was expecting a directory named 'portal' in " + dataDir.getAbsolutePath()
+ + ", not a simple file! Cannot continue.");
+ }
+ }
+
+ config = new File(portalDir, "wsrp-producer-config.xml");
+
+ reloadConfiguration();
+ }
+
+ public void reloadConfiguration() throws Exception
+ {
+ URL configURL = getConfigLocationURL();
+
+ try
+ {
+ loadConfigurationAt(configURL);
+ }
+ catch (Exception e)
+ {
+ if (config.exists())
+ {
+ log.debug("Configuration saved at " + config.getCanonicalPath()
+ + " is not loading properly. Falling back to default configuration.");
+ config.delete(); // delete improper config so that we retrieve the default configuration
+ loadConfigurationAt(getConfigLocationURL());
+ }
+ }
+ }
+
+ private void loadConfigurationAt(URL configURL) throws Exception
+ {
+ log.debug("About to parse producer configuration " + configURL);
+ InputStream inputStream = configURL.openStream();
+
+ loadConfigurationFrom(inputStream);
+ }
+
+ private URL getConfigLocationURL() throws Exception
+ {
+ if (!config.exists())
+ {
+ // Setup URLs
+ if (configLocation == null)
+ {
+ throw new Exception("The config location is null");
+ }
+
+ // make sure we pick the furthest down the path in case there's several similarly named resources in the path
+ Enumeration resources = Thread.currentThread().getContextClassLoader().getResources(configLocation);
+ URL configURL = null;
+ while (resources.hasMoreElements())
+ {
+ configURL = (URL)resources.nextElement();
+ }
+
+ if (configURL == null)
+ {
+ throw new Exception("The config " + configLocation + " does not exist");
+ }
+ if (!URLTools.exists(configURL))
+ {
+ throw new Exception("The config " + configURL + " does not exist");
+ }
+ return configURL;
+ }
+ else
+ {
+ return config.toURI().toURL();
+ }
+ }
+
+ public void saveConfiguration() throws Exception
+ {
+ // get the output writer to write the XML content
+ StringWriter xmlOutput = new StringWriter();
+
+ // get the XML Schema source
+ InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("xsd/" + PRODUCER_XSD);
+
+ Reader xsReader = new InputStreamReader(is);
+
+ // create an instance of XML Schema marshaller
+ XercesXsMarshaller marshaller = new XercesXsMarshaller();
+
+ marshaller.setSchemaResolver(RESOLVER);
+
+ // we need to specify what elements are top most (roots) providing namespace URI, prefix and local name
+ marshaller.addRootElement(PRODUCER_NAMESPACE, "", "producer-configuration");
+
+ // declare default namespace
+ marshaller.declareNamespace("wpc", PRODUCER_NAMESPACE);
+
+ // add schema location by declaring xsi namespace and adding xsi:schemaLocation attribute
+ marshaller.declareNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
+ marshaller.addAttribute("xsi", "schemaLocation", "string",
+ PRODUCER_NAMESPACE + " http://www.jboss.org/portal/xsd/" + PRODUCER_XSD);
+
+ // create an instance of Object Model Provider
+ ObjectModelProvider provider = new ProducerConfigurationProvider();
+
+ marshaller.setProperty("org.jboss.xml.binding.marshalling.indent", "true");
+ marshaller.marshal(xsReader, provider, configuration, xmlOutput);
+
+ // close XML Schema reader
+ xsReader.close();
+
+ config.createNewFile();
+ Writer configFile = new BufferedWriter(new FileWriter(config));
+ configFile.write(xmlOutput.toString());
+ configFile.flush();
+ configFile.close();
+ }
+}
Added: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationProvider.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationProvider.java (rev 0)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/ProducerConfigurationProvider.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -0,0 +1,190 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.producer.config.impl.xml;
+
+import org.gatein.registration.RegistrationPolicy;
+import org.gatein.registration.policies.DefaultRegistrationPolicy;
+import org.gatein.wsrp.WSRPUtils;
+import org.gatein.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.gatein.wsrp.producer.config.impl.ProducerConfigurationImpl;
+import org.gatein.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
+import org.gatein.wsrp.registration.LocalizedString;
+import org.gatein.wsrp.registration.RegistrationPropertyDescription;
+import org.jboss.xb.binding.MarshallingContext;
+import org.jboss.xb.binding.ObjectModelProvider;
+
+/**
+ * Used to marshall Producer configuration to XML via JBoss XB.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 10408 $
+ * @since 2.6.3
+ */
+public class ProducerConfigurationProvider implements ObjectModelProvider
+{
+ public Object getRoot(Object o, MarshallingContext marshallingContext, String s, String s1)
+ {
+ return o;
+ }
+
+ public Object getChildren(ProducerConfigurationImpl configuration, String namespaceUri, String localName)
+ {
+ if ("registration-configuration".equals(localName))
+ {
+ ProducerRegistrationRequirements registrationRequirements = configuration.getRegistrationRequirements();
+ if (registrationRequirements != null && registrationRequirements.isRegistrationRequired())
+ {
+ return registrationRequirements;
+ }
+ }
+ else if ("producer-configuration".equals(localName))
+ {
+ return configuration;
+ }
+
+ return null;
+ }
+
+ public Object getChildren(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
+ {
+ if ("registration-property-description".equals(localName))
+ {
+ return regReq.getRegistrationProperties().values();
+ }
+
+ return null;
+ }
+
+ public Object getAttributeValue(ProducerConfigurationImpl configuration, String namespaceUri, String localName)
+ {
+ if ("useStrictMode".equals(localName))
+ {
+ return configuration.isUsingStrictMode();
+ }
+
+ return null;
+ }
+
+ public Object getAttributeValue(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
+ {
+ if ("fullServiceDescriptionRequiresRegistration".equals(localName))
+ {
+ return regReq.isRegistrationRequiredForFullDescription();
+ }
+
+ return null;
+ }
+
+ public Object getElementValue(ProducerRegistrationRequirementsImpl regReq, String namespaceUri, String localName)
+ {
+ Object value = null;
+ if ("registration-policy".equals(localName))
+ {
+ RegistrationPolicy policy = regReq.getPolicy();
+ if (policy != null)
+ {
+ value = policy.getClass().getName();
+ }
+ }
+ else if ("registration-property-validator".equals(localName))
+ {
+ RegistrationPolicy policy = regReq.getPolicy();
+ if (policy instanceof DefaultRegistrationPolicy)
+ {
+ DefaultRegistrationPolicy defaultRegistrationPolicy = (DefaultRegistrationPolicy)policy;
+ value = defaultRegistrationPolicy.getValidator().getClass().getName();
+ }
+ }
+ else
+ {
+ value = null;
+ }
+ return value;
+ }
+
+ public Object getElementValue(RegistrationPropertyDescription propertyDescription, String namespaceUri, String localName)
+ {
+ Object value = null;
+ if ("name".equals(localName))
+ {
+ value = propertyDescription.getName();
+ }
+ else if ("type".equals(localName))
+ {
+ value = propertyDescription.getType();
+ }
+ else if ("label".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getLabel());
+ }
+ else if ("hint".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getHint());
+ }
+ else if ("description".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getDescription());
+ }
+ return value;
+ }
+
+ private LocalizedString getLocalizedStringOrNull(LocalizedString string)
+ {
+ if (string != null)
+ {
+ String value = string.getValue();
+ if (value == null || value.length() == 0)
+ {
+ return null;
+ }
+ else
+ {
+ return string;
+ }
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public Object getAttributeValue(LocalizedString localizedString, String namespaceUri, String localName)
+ {
+ Object value = null;
+ if ("lang".equals(localName))
+ {
+ value = WSRPUtils.toString(localizedString.getLocale());
+ }
+ else if ("resourceName".equals(localName))
+ {
+ value = localizedString.getResourceName();
+ }
+ return value;
+ }
+
+ public Object getElementValue(LocalizedString localizedString, String namespaceUri, String localName)
+ {
+ return localizedString.getValue();
+ }
+}
Added: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java (rev 0)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/xml/SimpleXMLProducerConfigurationService.java 2009-09-24 16:07:57 UTC (rev 203)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.wsrp.producer.config.impl.xml;
+
+import org.gatein.wsrp.producer.config.ProducerConfiguration;
+import org.gatein.wsrp.producer.config.ProducerConfigurationFactory;
+import org.gatein.wsrp.producer.config.impl.AbstractProducerConfigurationService;
+import org.jboss.xb.binding.ObjectModelFactory;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+
+import java.io.InputStream;
+
+/**
+ * A simple configuration service that only supports manually edits to an external XML configuration file. Reloading and
+ * saving modifications are therefore not supported.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision: 12276 $
+ * @since 2.6
+ */
+public class SimpleXMLProducerConfigurationService extends AbstractProducerConfigurationService
+{
+
+ @Override
+ protected ProducerConfiguration parseConfigurationFrom(InputStream inputStream) throws Exception
+ {
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ ObjectModelFactory factory = new ProducerConfigurationFactory();
+ return (ProducerConfiguration)unmarshaller.unmarshal(inputStream, factory, null);
+ }
+
+ public void reloadConfiguration() throws Exception
+ {
+ throw new UnsupportedOperationException("reloadConfiguration is not supported!");
+ }
+
+ public void saveConfiguration() throws Exception
+ {
+ throw new UnsupportedOperationException("saveConfiguration is not supported!");
+ }
+}
16 years, 7 months
gatein SVN: r202 - components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-09-24 10:52:08 -0400 (Thu, 24 Sep 2009)
New Revision: 202
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java
Log:
- Minor documentation before removal.
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java 2009-09-24 13:00:59 UTC (rev 201)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/ProducerConfigurationProvider.java 2009-09-24 14:52:08 UTC (rev 202)
@@ -34,6 +34,8 @@
import org.jboss.xb.binding.ObjectModelProvider;
/**
+ * Used to marshall Producer configuration to XML via JBoss XB.
+ *
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
* @version $Revision: 10408 $
* @since 2.6.3
16 years, 7 months
gatein SVN: r201 - tools/maven/parent/trunk.
by do-not-reply@jboss.org
Author: mpodolin
Date: 2009-09-24 09:00:59 -0400 (Thu, 24 Sep 2009)
New Revision: 201
Added:
tools/maven/parent/trunk/pom.xml
Removed:
tools/maven/parent/trunk/gatein-parent.pom
Log:
DependencyManagement part has been extracted to the separated gatein-dep module.
Deleted: tools/maven/parent/trunk/gatein-parent.pom
===================================================================
--- tools/maven/parent/trunk/gatein-parent.pom 2009-09-24 11:57:45 UTC (rev 200)
+++ tools/maven/parent/trunk/gatein-parent.pom 2009-09-24 13:00:59 UTC (rev 201)
@@ -1,486 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <name>GateIn</name>
- <description>Parent POM for GateIn components project.</description>
- <url>www.jboss.org/gatein</url>
-
- <groupId>org.gatein</groupId>
- <artifactId>gatein-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>pom</packaging>
-
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>5-beta-1</version>
- </parent>
-
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/tools/maven/parent/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/tools/maven/parent/trunk/</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/tools/maven/parent/trunk/</url>
- </scm>
-
- <properties>
- <!-- Dependencies versions -->
- <version.chromattic>1.0.0-beta3</version.chromattic>
- <version.log4j>1.2.14</version.log4j>
- <version.junit>3.8.2</version.junit>
- <version.javax.servlet>2.5</version.javax.servlet>
- <version.cargo>1.0.1-alpha-1</version.cargo>
- <version.ant>1.7.0</version.ant>
-
-<!-- next two needs to be synchronized within modules - pc vs wcl -->
- <version.apache.tomcat>6.0.16</version.apache.tomcat>
- <version.apache.commons-logging>1.1.1</version.apache.commons-logging>
- <version.apache.commons-httpclient>3.0.1</version.apache.commons-httpclient>
-
- <version.jboss.logging>2.0.4.GA</version.jboss.logging>
- <version.jboss.remoting>2.5.0.GA</version.jboss.remoting>
- <version.jboss.unit>1.2.3</version.jboss.unit>
- <version.jboss.serialization>1.0.3.GA</version.jboss.serialization>
- <version.jboss.reflect>2.0.2.GA</version.jboss.reflect>
- <version.jboss.microcontainer>2.0.6.GA</version.jboss.microcontainer>
-
- <!-- Plugins settings -->
-
- <!-- Cross plugins settings -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-
- <!-- maven-compiler-plugin -->
- <maven.compiler.target>1.5</maven.compiler.target>
- <maven.compiler.source>1.5</maven.compiler.source>
-
- <!-- maven-release-plugin -->
- <useReleaseProfile>false</useReleaseProfile>
- <arguments>-Prelease</arguments>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- </properties>
-
- <!-- ********************* -->
- <!-- Dependency Management -->
- <!-- ********************* -->
-
- <dependencyManagement>
- <dependencies>
- <!-- Internal dependencies -->
- <dependency>
- <groupId>org.gatein.mop</groupId>
- <artifactId>mop-api</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.gatein.mop</groupId>
- <artifactId>mop-spi</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
-
- <!-- External dependencies -->
- <dependency>
- <groupId>javax.jcr</groupId>
- <artifactId>jcr</artifactId>
- <version>1.0</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${version.junit}</version>
- </dependency>
-
- <dependency>
- <groupId>org.chromattic</groupId>
- <artifactId>chromattic.api</artifactId>
- <version>${version.chromattic}</version>
- </dependency>
- <dependency>
- <groupId>org.chromattic</groupId>
- <artifactId>chromattic.core</artifactId>
- <version>${version.chromattic}</version>
- </dependency>
- <dependency>
- <groupId>org.chromattic</groupId>
- <artifactId>chromattic.apt</artifactId>
- <version>${version.chromattic}</version>
- </dependency>
- <dependency>
- <groupId>org.chromattic</groupId>
- <artifactId>chromattic.exo</artifactId>
- <version>${version.chromattic}</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.5.8</version>
- </dependency>
-
- <dependency>
- <groupId>apache-log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>${version.log4j}</version>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>${version.javax.servlet}</version>
- </dependency>
-
- <dependency>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-core-uberjar</artifactId>
- <version>${version.cargo}</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-jetty-deployer</artifactId>
- <type>war</type>
- <version>${version.cargo}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>${version.ant}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-junit</artifactId>
- <version>${version.ant}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-nodeps</artifactId>
- <version>${version.ant}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-launcher</artifactId>
- <version>${version.ant}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>catalina</artifactId>
- <version>${version.apache.tomcat}</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>${version.apache.commons-logging}</version>
- </dependency>
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <version>${version.apache.commons-httpclient}</version>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>jboss-unit</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>jboss-unit-remote</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>jboss-unit-mc</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>jboss-unit-tooling-ant</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>portal-test</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.unit</groupId>
- <artifactId>portal-test-generic</artifactId>
- <version>${version.jboss.unit}</version>
- </dependency>
-
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-common-logging-jdk</artifactId>
- <version>${version.jboss.logging}</version>
- </dependency>
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-common-logging-log4j</artifactId>
- <version>${version.jboss.logging}</version>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.remoting</groupId>
- <artifactId>jboss-remoting</artifactId>
- <version>${version.jboss.remoting}</version>
- </dependency>
-
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-serialization</artifactId>
- <version>${version.jboss.serialization}</version>
- </dependency>
-
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-reflect</artifactId>
- <version>${version.jboss.reflect}</version>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.microcontainer</groupId>
- <artifactId>jboss-dependency</artifactId>
- <version>${version.jboss.microcontainer}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.microcontainer</groupId>
- <artifactId>jboss-kernel</artifactId>
- <version>${version.jboss.microcontainer}</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <!-- **************** -->
- <!-- Build Definition -->
- <!-- **************** -->
-
- <build>
- <pluginManagement>
- <!-- All plugins versions have to be set -->
- <!-- Plugins are sorted by shortname : clean, deploy, ... -->
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>1.0-beta-3</version>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jboss-packaging-maven-plugin</artifactId>
- <version>2.0-beta-1</version>
- <extensions>true</extensions>
- </plugin>
-
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-1</version>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.3</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>${maven.compiler.source}</source>
- <target>${maven.compiler.target}</target>
- <showDeprecation>true</showDeprecation>
- <showWarnings>true</showWarnings>
- <optimize>true</optimize>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.0</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.4</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0-beta-1</version>
- </plugin>
-
- <plugin>
- <artifactId>maven-idea-plugin</artifactId>
- <configuration>
- <downloadSources>true</downloadSources>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.3</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <addClasspath>true</addClasspath>
- </manifest>
- </archive>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- </manifest>
- </archive>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-9</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.4</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>2.0.1</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1</version>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- </manifest>
- </archive>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <!-- **************** -->
- <!-- Repositiories -->
- <!-- **************** -->
-
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <layout>default</layout>
- <url>http://repository.jboss.org/maven2/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshots Repository</name>
- <layout>default</layout>
- <url>http://snapshots.jboss.org/maven2/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>apache.org</id>
- <name>Maven Plugin Snapshots</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>repository.jboss.org</id>
- <url>http://repository.jboss.org/maven2</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>java.net maven repository</id>
- <url>http://download.java.net/maven/2</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
-
-
- <!-- **************** -->
- <!-- Reporting -->
- <!-- **************** -->
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <aggregate>true</aggregate>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
-</project>
-
-
Copied: tools/maven/parent/trunk/pom.xml (from rev 196, tools/maven/parent/trunk/gatein-parent.pom)
===================================================================
--- tools/maven/parent/trunk/pom.xml (rev 0)
+++ tools/maven/parent/trunk/pom.xml 2009-09-24 13:00:59 UTC (rev 201)
@@ -0,0 +1,262 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>GateIn parent</name>
+ <description>Parent POM for GateIn components project.</description>
+ <url>www.jboss.org/gatein</url>
+
+ <groupId>org.gatein</groupId>
+ <artifactId>gatein-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>5-beta-1</version>
+ </parent>
+
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/tools/maven/parent/trunk/</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/tools/maven/parent/trunk/</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/tools/maven/parent/trunk/</url>
+ </scm>
+
+ <properties>
+ <!-- Plugins settings -->
+
+ <!-- Cross plugins settings -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ <!-- maven-compiler-plugin -->
+ <maven.compiler.target>1.5</maven.compiler.target>
+ <maven.compiler.source>1.5</maven.compiler.source>
+
+ <!-- maven-release-plugin -->
+ <useReleaseProfile>false</useReleaseProfile>
+ <arguments>-Prelease</arguments>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ </properties>
+
+ <!-- **************** -->
+ <!-- Build Definition -->
+ <!-- **************** -->
+
+ <build>
+ <pluginManagement>
+ <!-- All plugins versions have to be set -->
+ <!-- Plugins are sorted by shortname : clean, deploy, ... -->
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.0-beta-3</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jboss-packaging-maven-plugin</artifactId>
+ <version>2.0-beta-1</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-1</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>${maven.compiler.source}</source>
+ <target>${maven.compiler.target}</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-idea-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-9</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <!-- **************** -->
+ <!-- Repositiories -->
+ <!-- **************** -->
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache.org</id>
+ <name>Maven Plugin Snapshots</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>repository.jboss.org</id>
+ <url>http://repository.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>java.net maven repository</id>
+ <url>http://download.java.net/maven/2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+
+ <!-- **************** -->
+ <!-- Reporting -->
+ <!-- **************** -->
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
+
+
16 years, 7 months
gatein SVN: r200 - in tools/maven/dep: trunk and 1 other directory.
by do-not-reply@jboss.org
Author: mpodolin
Date: 2009-09-24 07:57:45 -0400 (Thu, 24 Sep 2009)
New Revision: 200
Added:
tools/maven/dep/branches/
tools/maven/dep/tags/
tools/maven/dep/trunk/
tools/maven/dep/trunk/pom.xml
Log:
Initial commit of GateIn dependencies configuiration
Added: tools/maven/dep/trunk/pom.xml
===================================================================
--- tools/maven/dep/trunk/pom.xml (rev 0)
+++ tools/maven/dep/trunk/pom.xml 2009-09-24 11:57:45 UTC (rev 200)
@@ -0,0 +1,275 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>GateIn dependencies</name>
+ <description>GateIn dependencies configuration</description>
+ <url>www.jboss.org/gatein</url>
+
+ <groupId>org.gatein</groupId>
+ <artifactId>gatein-dep</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <parent>
+ <artifactId>jboss-parent</artifactId>
+ <groupId>org.jboss</groupId>
+ <version>5-beta-1</version>
+ </parent>
+
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/tools/maven/dep/trunk/</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/tools/maven/dep/trunk/</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/tools/maven/dep/trunk/</url>
+ </scm>
+
+ <properties>
+ <!-- Dependencies versions -->
+ <version.activation>1.1</version.activation>
+ <version.chromattic>1.0.0-beta3</version.chromattic>
+ <version.log4j>1.2.14</version.log4j>
+ <version.junit>3.8.2</version.junit>
+ <version.javax.servlet>2.5</version.javax.servlet>
+ <version.cargo>1.0.1-alpha-1</version.cargo>
+ <version.ant>1.7.0</version.ant>
+
+<!-- next two needs to be synchronized within modules - pc vs wcl -->
+ <version.apache.tomcat>6.0.16</version.apache.tomcat>
+ <version.apache.commons-logging>1.1.1</version.apache.commons-logging>
+ <version.apache.commons-httpclient>3.0.1</version.apache.commons-httpclient>
+
+ <version.jboss.logging>2.0.4.GA</version.jboss.logging>
+ <version.jboss.remoting>2.5.0.GA</version.jboss.remoting>
+ <version.jboss.unit>1.2.3</version.jboss.unit>
+ <version.jboss.serialization>1.0.3.GA</version.jboss.serialization>
+ <version.jboss.reflect>2.0.2.GA</version.jboss.reflect>
+ <version.jboss.microcontainer>2.0.6.GA</version.jboss.microcontainer>
+ <version.jboss.j2ee>4.2.3.GA</version.jboss.j2ee>
+ <version.jboss.jmx>4.2.3.GA</version.jboss.jmx>
+ <version.jboss.man>2.0.0.GA</version.jboss.man>
+ <version.jboss.vfs>2.1.0.GA</version.jboss.vfs>
+ </properties>
+
+
+ <!-- ********************* -->
+ <!-- Dependency Management -->
+ <!-- ********************* -->
+
+ <dependencyManagement>
+ <dependencies>
+ <!-- Internal dependencies -->
+ <dependency>
+ <groupId>org.gatein.mop</groupId>
+ <artifactId>mop-api</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.gatein.mop</groupId>
+ <artifactId>mop-spi</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <!-- External dependencies -->
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>${version.activation}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.jcr</groupId>
+ <artifactId>jcr</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${version.junit}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.chromattic</groupId>
+ <artifactId>chromattic.api</artifactId>
+ <version>${version.chromattic}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.chromattic</groupId>
+ <artifactId>chromattic.core</artifactId>
+ <version>${version.chromattic}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.chromattic</groupId>
+ <artifactId>chromattic.apt</artifactId>
+ <version>${version.chromattic}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.chromattic</groupId>
+ <artifactId>chromattic.exo</artifactId>
+ <version>${version.chromattic}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.8</version>
+ </dependency>
+
+ <dependency>
+ <groupId>apache-log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${version.log4j}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>${version.javax.servlet}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-core-uberjar</artifactId>
+ <version>${version.cargo}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-jetty-deployer</artifactId>
+ <type>war</type>
+ <version>${version.cargo}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>${version.ant}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-junit</artifactId>
+ <version>${version.ant}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-nodeps</artifactId>
+ <version>${version.ant}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-launcher</artifactId>
+ <version>${version.ant}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>catalina</artifactId>
+ <version>${version.apache.tomcat}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${version.apache.commons-logging}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-httpclient</groupId>
+ <artifactId>commons-httpclient</artifactId>
+ <version>${version.apache.commons-httpclient}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-remote</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-mc</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-ant</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>portal-test</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>portal-test-generic</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-j2ee</artifactId>
+ <version>${version.jboss.j2ee}</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-jmx</artifactId>
+ <version>${version.jboss.jmx}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-vfs</artifactId>
+ <version>${version.jboss.vfs}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-managed</artifactId>
+ <version>${version.jboss.man}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-common-logging-jdk</artifactId>
+ <version>${version.jboss.logging}</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-common-logging-log4j</artifactId>
+ <version>${version.jboss.logging}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.remoting</groupId>
+ <artifactId>jboss-remoting</artifactId>
+ <version>${version.jboss.remoting}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-serialization</artifactId>
+ <version>${version.jboss.serialization}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-reflect</artifactId>
+ <version>${version.jboss.reflect}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.microcontainer</groupId>
+ <artifactId>jboss-dependency</artifactId>
+ <version>${version.jboss.microcontainer}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer</groupId>
+ <artifactId>jboss-kernel</artifactId>
+ <version>${version.jboss.microcontainer}</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+</project>
\ No newline at end of file
16 years, 7 months
gatein SVN: r199 - tools/maven.
by do-not-reply@jboss.org
Author: mpodolin
Date: 2009-09-24 07:31:07 -0400 (Thu, 24 Sep 2009)
New Revision: 199
Added:
tools/maven/dep/
Log:
Creating gatein-dep directory structure
16 years, 7 months