Author: chris.laprun(a)jboss.com
Date: 2009-08-05 13:58:32 -0400 (Wed, 05 Aug 2009)
New Revision: 13681
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ProducerHolder.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupInterface.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementInterface.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationInterface.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionInterface.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/
jbossexo/modules/wsrp/trunk/wsrp1-ws/pom.xml
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDenied.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDeniedFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/BlockingInteractionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CacheControl.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClientData.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClonePortlet.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Contact.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CookieProtocol.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyFailed.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortlets.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortletsResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/EmployerInfo.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Extension.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Fault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetMarkup.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletProperties.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletPropertyDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetServiceDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParameters.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParametersFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InitCookie.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InteractionParams.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookie.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookieFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandle.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandleFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistration.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistrationFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSession.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSessionFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategory.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategoryFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ItemDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/LocalizedString.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupParams.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParameters.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParametersFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelTypes.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModifyRegistration.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedString.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedStringArray.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ObjectFactory.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Online.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailed.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailedFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PerformBlockingInteraction.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PersonName.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescriptionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletPropertyDescriptionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequired.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequiredFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Postal.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Property.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyList.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationData.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationState.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReleaseSessions.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResetProperty.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Resource.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceList.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceValue.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReturnAny.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RuntimeContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ServiceDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SessionContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SetPortletProperties.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StateChange.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StringArray.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Telecom.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/TelephoneNum.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Templates.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocale.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocaleFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeTypeFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMode.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedModeFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowState.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowStateFault.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UpdateResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UploadContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserContext.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserProfile.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPService.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1MarkupPortType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1PortletManagementPortType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1RegistrationPortType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1ServiceDescriptionPortType.java
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/package-info.java
Removed:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java
Modified:
jbossexo/modules/wsrp/trunk/common/pom.xml
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPExceptionFactory.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPUtils.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/UserAccess.java
jbossexo/modules/wsrp/trunk/pom.xml
jbossexo/modules/wsrp/trunk/producer/pom.xml
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/WSRPBaseEndpoint.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/ExoKernelIntegration.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ActionRequestProcessor.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupRequest.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementHandler.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationHandler.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RequestProcessor.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/Utils.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerRegistrationRequirements.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
Log:
- Started switch to JAX-WS. Still requires work on the endpoints most notably but most of
the API changes have been made.
- Removed ResponseDebugFactory.
Modified: jbossexo/modules/wsrp/trunk/common/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/common/pom.xml 2009-08-05 16:45:20 UTC (rev 13680)
+++ jbossexo/modules/wsrp/trunk/common/pom.xml 2009-08-05 17:58:32 UTC (rev 13681)
@@ -37,7 +37,7 @@
<dependencies>
<dependency>
<groupId>org.jboss.portal.wsrp</groupId>
- <artifactId>wsrp1-rpc</artifactId>
+ <artifactId>wsrp1-ws</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
Deleted:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -1,100 +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.jboss.portal.wsrp;
-
-import org.jboss.portal.wsrp.core.LocalizedString;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.ServiceDescription;
-
-/**
- * Helper class to extract information from WSRP objects in readable manner
- *
- * @author <a href="mailto:boleslaw.dawidowicz@jboss.org">Boleslaw
Dawidowicz</a>
- * @version $Revision: 9360 $
- */
-public class ResponseDebugFactory
-{
- private ResponseDebugFactory()
- {
- }
-
- /**
- * Extracts information from ServiceDescription and puts into StringBuffer object
- *
- * @param sd
- * @return StringBuffer containing ServiceDescription content
- */
- public static StringBuffer extractServiceDescription(final ServiceDescription sd)
- {
- StringBuffer buffer = new StringBuffer();
- if (sd == null)
- {
- buffer.append("Empty service description");
- return buffer;
- }
-
-
- buffer.append("# ServiceDescription content:\n");
-
- //TODO: for now only simple property + offered portlets - extend this when needed
-
- buffer.append("isRequiresRegistration :
").append(sd.isRequiresRegistration()).append("\n");
-
- buffer.append("### List of offered portlets: \n");
- PortletDescription[] portlets = sd.getOfferedPortlets();
- if (portlets != null)
- {
- for (int i = 0; i < portlets.length; i++)
- {
- PortletDescription portlet = portlets[i];
- String index = "[" + i + "]";
- buffer.append(index).append("portletHandle :
").append(portlet.getPortletHandle()).append("\n");
- buffer.append(index).append("description :
").append(toString(portlet.getDescription())).append("\n");
- buffer.append(index).append("shortTitle :
").append(toString(portlet.getShortTitle())).append("\n");
- buffer.append(index).append("title :
").append(toString(portlet.getTitle())).append("\n");
- buffer.append(index).append("displayName :
").append(toString(portlet.getDisplayName())).append("\n");
- }
- }
- else
- {
- buffer.append("no offered portlets");
- }
-
- return buffer;
- }
-
- public static String toString(LocalizedString ls)
- {
- if (ls != null)
- {
- return ls.getLang() + "; " + ls.getResourceName() + "; " +
ls.getValue();
- }
- else
- {
- return "";
- }
-
- }
-
-}
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -26,18 +26,19 @@
import org.jboss.portal.common.NotYetImplemented;
import static org.jboss.portal.common.p3p.P3PConstants.*;
import org.jboss.portal.portlet.api.spi.UserContext;
-import org.jboss.portal.wsrp.core.Contact;
-import org.jboss.portal.wsrp.core.EmployerInfo;
-import org.jboss.portal.wsrp.core.Online;
-import org.jboss.portal.wsrp.core.PersonName;
-import org.jboss.portal.wsrp.core.Postal;
-import org.jboss.portal.wsrp.core.Telecom;
-import org.jboss.portal.wsrp.core.TelephoneNum;
-import org.jboss.portal.wsrp.core.UserProfile;
-import org.jboss.xb.binding.SimpleTypeBindings;
+import org.oasis.wsrp.v1.Contact;
+import org.oasis.wsrp.v1.EmployerInfo;
+import org.oasis.wsrp.v1.Online;
+import org.oasis.wsrp.v1.PersonName;
+import org.oasis.wsrp.v1.Postal;
+import org.oasis.wsrp.v1.Telecom;
+import org.oasis.wsrp.v1.TelephoneNum;
+import org.oasis.wsrp.v1.UserProfile;
+import javax.xml.datatype.DatatypeConfigurationException;
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
import java.util.ArrayList;
-import java.util.Calendar;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -55,25 +56,25 @@
{
}
- public static UserContext
createPortalUserContextFrom(org.jboss.portal.wsrp.core.UserContext userContext,
- String[] desiredLocales, String
preferredLocale)
+ public static UserContext createPortalUserContextFrom(org.oasis.wsrp.v1.UserContext
userContext,
+ List<String>
desiredLocales, String preferredLocale)
{
return new WSRPMappedUserContext(userContext, desiredLocales, preferredLocale);
}
- public static org.jboss.portal.wsrp.core.UserContext
createWSRPUserContextFrom(UserContext userContext,
- String
userContextKey,
-
String[] userCategories)
+ /*public static org.oasis.wsrp.v1.UserContext createWSRPUserContextFrom(UserContext
userContext,
+ String
userContextKey,
+ String[]
userCategories)
{
- org.jboss.portal.wsrp.core.UserContext wsrpUserContext =
WSRPTypeFactory.createUserContext(userContextKey);
+ org.oasis.wsrp.v1.UserContext wsrpUserContext =
WSRPTypeFactory.createUserContext(userContextKey);
wsrpUserContext.setProfile(createUserProfileFrom(userContext));
- wsrpUserContext.setUserCategories(userCategories);
+ wsrpUserContext.getUserCategories().addAll(userCategories);
return wsrpUserContext;
- }
+ }*/
private static UserProfile createUserProfileFrom(UserContext userContext)
{
- Map userInfos = userContext.getInformations();
+ Map<String, String> userInfos = userContext.getInformations();
if (userInfos == null || userInfos.isEmpty())
{
@@ -82,67 +83,94 @@
PersonName name = createNameFrom(userInfos);
- Calendar bdate = null;
- String bdateAsString = (String)userInfos.get(INFO_USER_BDATE);
+ XMLGregorianCalendar bdate = null;
+ String bdateAsString = userInfos.get(INFO_USER_BDATE);
if (bdateAsString != null)
{
- bdate = SimpleTypeBindings.unmarshalDateTime(bdateAsString);
+ DatatypeFactory datatypeFactory = null;
+ try
+ {
+ datatypeFactory = DatatypeFactory.newInstance();
+ bdate = datatypeFactory.newXMLGregorianCalendar(bdateAsString);
+ }
+ catch (DatatypeConfigurationException e)
+ {
+ // todo: do something better here
+ e.printStackTrace();
+ }
}
- EmployerInfo employerInfo = new
EmployerInfo((String)userInfos.get(INFO_USER_EMPLOYER),
- (String)userInfos.get(INFO_USER_DEPARTMENT),
- (String)userInfos.get(INFO_USER_JOB_TITLE), null);
+ EmployerInfo employerInfo = new EmployerInfo();
+ employerInfo.setEmployer(userInfos.get(INFO_USER_EMPLOYER));
+ employerInfo.setDepartment(userInfos.get(INFO_USER_DEPARTMENT));
+ employerInfo.setJobtitle(userInfos.get(INFO_USER_JOB_TITLE));
- return new UserProfile(name, bdate, (String)userInfos.get(INFO_USER_GENDER),
employerInfo,
- createContactFrom(userInfos, false), createContactFrom(userInfos, true), null);
+ UserProfile userProfile = new UserProfile();
+ userProfile.setName(name);
+ userProfile.setBdate(bdate);
+ userProfile.setGender(userInfos.get(INFO_USER_GENDER));
+ userProfile.setEmployerInfo(employerInfo);
+ userProfile.setHomeInfo(createContactFrom(userInfos, false));
+ userProfile.setBusinessInfo(createContactFrom(userInfos, true));
+ return userProfile;
}
- private static PersonName createNameFrom(Map userInfos)
+ private static PersonName createNameFrom(Map<String, String> userInfos)
{
- return new PersonName(
- (String)userInfos.get(INFO_USER_NAME_PREFIX),
- (String)userInfos.get(INFO_USER_NAME_GIVEN),
- (String)userInfos.get(INFO_USER_NAME_FAMILY),
- (String)userInfos.get(INFO_USER_NAME_MIDDLE),
- (String)userInfos.get(INFO_USER_NAME_SUFFIX),
- (String)userInfos.get(INFO_USER_NAME_NICKNAME), null);
+ PersonName name = new PersonName();
+ name.setPrefix(userInfos.get(INFO_USER_NAME_PREFIX));
+ name.setFamily(userInfos.get(INFO_USER_NAME_FAMILY));
+ name.setGiven(userInfos.get(INFO_USER_NAME_GIVEN));
+ name.setMiddle(userInfos.get(INFO_USER_NAME_MIDDLE));
+ name.setSuffix(userInfos.get(INFO_USER_NAME_SUFFIX));
+ name.setNickname(userInfos.get(INFO_USER_NAME_NICKNAME));
+ return name;
}
- private static Contact createContactFrom(Map infos, boolean isBusiness)
+ private static Contact createContactFrom(Map<String, String> infos, boolean
isBusiness)
{
- Online online = new Online((String)infos.get(getOnlineUserInfoKey(OnlineInfo.EMAIL,
isBusiness)),
- (String)infos.get(getOnlineUserInfoKey(OnlineInfo.URI, isBusiness)), null);
+ Online online = new Online();
+ online.setEmail(infos.get(getOnlineUserInfoKey(OnlineInfo.EMAIL, isBusiness)));
+ online.setUri(infos.get(getOnlineUserInfoKey(OnlineInfo.URI, isBusiness)));
- Postal postal = new Postal(
- (String)infos.get(getPostalUserInfoKey(PostalInfo.NAME, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.STREET, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.CITY, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.STATEPROV, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.POSTALCODE, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.COUNTRY, isBusiness)),
- (String)infos.get(getPostalUserInfoKey(PostalInfo.ORGANIZATION, isBusiness)),
null);
+ Postal postal = new Postal();
+ postal.setName(infos.get(getPostalUserInfoKey(PostalInfo.NAME, isBusiness)));
+ postal.setStreet(infos.get(getPostalUserInfoKey(PostalInfo.STREET, isBusiness)));
+ postal.setCity(infos.get(getPostalUserInfoKey(PostalInfo.CITY, isBusiness)));
+ postal.setStateprov(infos.get(getPostalUserInfoKey(PostalInfo.STATEPROV,
isBusiness)));
+ postal.setPostalcode(infos.get(getPostalUserInfoKey(PostalInfo.POSTALCODE,
isBusiness)));
+ postal.setCountry(infos.get(getPostalUserInfoKey(PostalInfo.COUNTRY,
isBusiness)));
+ postal.setOrganization(infos.get(getPostalUserInfoKey(PostalInfo.ORGANIZATION,
isBusiness)));
- Telecom telecom = new Telecom(createTelephoneNumFrom(infos, TelecomType.TELEPHONE,
isBusiness),
- createTelephoneNumFrom(infos, TelecomType.FAX, isBusiness),
- createTelephoneNumFrom(infos, TelecomType.MOBILE, isBusiness),
- createTelephoneNumFrom(infos, TelecomType.PAGER, isBusiness), null);
+ Telecom telecom = new Telecom();
+ telecom.setTelephone(createTelephoneNumFrom(infos, TelecomType.TELEPHONE,
isBusiness));
+ telecom.setFax(createTelephoneNumFrom(infos, TelecomType.FAX, isBusiness));
+ telecom.setMobile(createTelephoneNumFrom(infos, TelecomType.MOBILE, isBusiness));
+ telecom.setPager(createTelephoneNumFrom(infos, TelecomType.PAGER, isBusiness));
- return new Contact(postal, telecom, online, null);
+ Contact contact = new Contact();
+ contact.setPostal(postal);
+ contact.setTelecom(telecom);
+ contact.setOnline(online);
+
+ return contact;
}
- private static TelephoneNum createTelephoneNumFrom(Map infos, TelecomType type,
boolean isBusiness)
+ private static TelephoneNum createTelephoneNumFrom(Map<String, String> infos,
TelecomType type, boolean isBusiness)
{
- return new TelephoneNum(
- (String)infos.get(getTelecomInfoKey(type, TelecomInfo.INTCODE, isBusiness)),
- (String)infos.get(getTelecomInfoKey(type, TelecomInfo.LOCCODE, isBusiness)),
- (String)infos.get(getTelecomInfoKey(type, TelecomInfo.NUMBER, isBusiness)),
- (String)infos.get(getTelecomInfoKey(type, TelecomInfo.EXT, isBusiness)),
- (String)infos.get(getTelecomInfoKey(type, TelecomInfo.COMMENT, isBusiness)),
null);
+ TelephoneNum num = new TelephoneNum();
+ num.setIntcode(infos.get(getTelecomInfoKey(type, TelecomInfo.INTCODE,
isBusiness)));
+ num.setLoccode(infos.get(getTelecomInfoKey(type, TelecomInfo.LOCCODE,
isBusiness)));
+ num.setNumber(infos.get(getTelecomInfoKey(type, TelecomInfo.NUMBER, isBusiness)));
+ num.setExt(infos.get(getTelecomInfoKey(type, TelecomInfo.EXT, isBusiness)));
+ num.setComment(infos.get(getTelecomInfoKey(type, TelecomInfo.COMMENT,
isBusiness)));
+
+ return num;
}
/**
- * Builds a Portal {@link org.jboss.portal.portlet.spi.UserContext} from a WSRP
{@link
- * org.jboss.portal.wsrp.core.UserContext}.
+ * Builds a Portal {@link org.jboss.portal.portlet.api.spi.UserContext} from a WSRP
{@link
+ * org.oasis.wsrp.v1.UserContext}.
*
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @since 2.4 (May 8, 2006)
@@ -150,11 +178,11 @@
static class WSRPMappedUserContext implements UserContext
{
private Map<String, String> infos;
- private String[] desiredLocales;
+ private List<String> desiredLocales;
private Locale locale;
private String id;
- public WSRPMappedUserContext(org.jboss.portal.wsrp.core.UserContext userContext,
String[] desiredLocales, String preferredLocale)
+ public WSRPMappedUserContext(org.oasis.wsrp.v1.UserContext userContext,
List<String> desiredLocales, String preferredLocale)
{
this.desiredLocales = desiredLocales;
this.locale = WSRPUtils.getLocale(preferredLocale);
@@ -164,10 +192,10 @@
if (profile != null)
{
infos = new HashMap<String, String>();
- Calendar bdate = profile.getBdate();
+ XMLGregorianCalendar bdate = profile.getBdate();
if (bdate != null)
{
- infos.put(INFO_USER_BDATE, SimpleTypeBindings.marshalDateTime(bdate));
+ infos.put(INFO_USER_BDATE, bdate.toString());
}
infos.put(INFO_USER_GENDER, profile.getGender());
@@ -270,22 +298,22 @@
return locale;
}
- public List getLocales()
+ public List<Locale> getLocales()
{
- int length = desiredLocales.length;
+ int length = desiredLocales.size();
if (length > 0)
{
List<Locale> locales = new ArrayList<Locale>(length);
- for (int i = 0; i < length; i++)
+ for (String desiredLocale : desiredLocales)
{
- Locale locale = WSRPUtils.getLocale(desiredLocales[i]);
+ Locale locale = WSRPUtils.getLocale(desiredLocale);
locales.add(locale);
}
return locales;
}
else
{
- return Collections.EMPTY_LIST;
+ return Collections.emptyList();
}
}
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -28,6 +28,9 @@
import javax.xml.namespace.QName;
import java.net.InetAddress;
import java.net.UnknownHostException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
import java.util.Locale;
import java.util.Random;
@@ -174,13 +177,17 @@
// init default locale at loading time as it is slow
private static String defaultLocale = WSRPUtils.toString(Locale.getDefault());
- public static String[] getDefaultLocales()
+ public static List<String> getDefaultLocales()
{
- return new String[]{defaultLocale, "en"}; // return copy to prevent
modifications by client code
+ // return copy to prevent modifications by client code
+ ArrayList<String> locales = new ArrayList<String>(2);
+ locales.add(defaultLocale);
+ locales.add("en");
+ return locales;
}
- public static String[] getDefaultMimeTypes()
+ public static List<String> getDefaultMimeTypes()
{
- return new String[]{"text/html"}; // return copy to prevent modifications
by client code
+ return Collections.singletonList("text/html");
}
}
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPExceptionFactory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPExceptionFactory.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPExceptionFactory.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,16 +23,42 @@
package org.jboss.portal.wsrp;
-import org.jboss.portal.wsrp.servlet.ServletAccess;
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.AccessDeniedFault;
+import org.oasis.wsrp.v1.Fault;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InconsistentParametersFault;
+import org.oasis.wsrp.v1.InvalidCookie;
+import org.oasis.wsrp.v1.InvalidCookieFault;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidHandleFault;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidRegistrationFault;
+import org.oasis.wsrp.v1.InvalidSession;
+import org.oasis.wsrp.v1.InvalidSessionFault;
+import org.oasis.wsrp.v1.InvalidUserCategory;
+import org.oasis.wsrp.v1.InvalidUserCategoryFault;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.MissingParametersFault;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+import org.oasis.wsrp.v1.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.PortletStateChangeRequiredFault;
+import org.oasis.wsrp.v1.UnsupportedLocale;
+import org.oasis.wsrp.v1.UnsupportedLocaleFault;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMimeTypeFault;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedModeFault;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
+import org.oasis.wsrp.v1.UnsupportedWindowStateFault;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import javax.servlet.http.HttpServletRequest;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.soap.Detail;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.ParameterizedType;
+import java.util.HashMap;
+import java.util.Map;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
@@ -61,69 +87,120 @@
public static final String UNSUPPORTED_WINDOW_STATE =
"UnsupportedWindowState";
private static final String NS_PREFIX = "wsrp";
+ private static final Map<String, ExceptionFactory<? extends Exception, ? extends
Fault>> errorCodeToExceptions =
+ new HashMap<String, ExceptionFactory<? extends Exception, ? extends
Fault>>(17);
+
+ static
+ {
+ try
+ {
+ errorCodeToExceptions.put(ACCESS_DENIED, new ExceptionFactory<AccessDenied,
AccessDeniedFault>()
+ {
+ });
+ errorCodeToExceptions.put(INCONSISTENT_PARAMETERS, new
ExceptionFactory<InconsistentParameters, InconsistentParametersFault>()
+ {
+ });
+ errorCodeToExceptions.put(INVALID_COOKIE, new ExceptionFactory<InvalidCookie,
InvalidCookieFault>()
+ {
+ });
+ errorCodeToExceptions.put(INVALID_HANDLE, new ExceptionFactory<InvalidHandle,
InvalidHandleFault>()
+ {
+ });
+ errorCodeToExceptions.put(INVALID_REGISTRATION, new
ExceptionFactory<InvalidRegistration, InvalidRegistrationFault>()
+ {
+ });
+ errorCodeToExceptions.put(INVALID_SESSION, new
ExceptionFactory<InvalidSession, InvalidSessionFault>()
+ {
+ });
+ errorCodeToExceptions.put(INVALID_USER_CATEGORY, new
ExceptionFactory<InvalidUserCategory, InvalidUserCategoryFault>()
+ {
+ });
+ errorCodeToExceptions.put(MISSING_PARAMETERS, new
ExceptionFactory<MissingParameters, MissingParametersFault>()
+ {
+ });
+ errorCodeToExceptions.put(OPERATION_FAILED, new
ExceptionFactory<OperationFailed, OperationFailedFault>()
+ {
+ });
+ errorCodeToExceptions.put(PORTLET_STATE_CHANGE_REQUIRED, new
ExceptionFactory<PortletStateChangeRequired, PortletStateChangeRequiredFault>()
+ {
+ });
+ errorCodeToExceptions.put(UNSUPPORTED_LOCALE, new
ExceptionFactory<UnsupportedLocale, UnsupportedLocaleFault>()
+ {
+ });
+ errorCodeToExceptions.put(UNSUPPORTED_MIME_TYPE, new
ExceptionFactory<UnsupportedMimeType, UnsupportedMimeTypeFault>()
+ {
+ });
+ errorCodeToExceptions.put(UNSUPPORTED_MODE, new
ExceptionFactory<UnsupportedMode, UnsupportedModeFault>()
+ {
+ });
+ errorCodeToExceptions.put(UNSUPPORTED_WINDOW_STATE, new
ExceptionFactory<UnsupportedWindowState, UnsupportedWindowStateFault>()
+ {
+ });
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Error initializing WSRPExceptionFactory",
e);
+ }
+ }
+
private WSRPExceptionFactory()
{
}
- public static void throwMissingParametersFaultIfValueIsMissing(Object valueToCheck,
String valueName, String context)
- throws SOAPFaultException
+ public static void throwMissingParametersIfValueIsMissing(Object valueToCheck, String
valueName, String context)
+ throws MissingParameters
{
if (valueToCheck == null)
{
- throw createSOAPFaultException(MISSING_PARAMETERS, "Missing required "
+ valueName
- + (context != null ? " in " + context : ""), null);
+ throw new MissingParameters("Missing required " + valueName + (context
!= null ? " in " + context : ""), new MissingParametersFault());
}
}
- public static void throwOperationFailedFaultIfValueIsMissing(Object valueToCheck,
String valueName)
- throws SOAPFaultException
+ public static void throwOperationFailedIfValueIsMissing(Object valueToCheck, String
valueName) throws OperationFailed
{
if (valueToCheck == null)
{
- throw createSOAPFaultException(OPERATION_FAILED, "Missing required " +
valueName, null);
+ throw new OperationFailed("Missing required " + valueName, new
OperationFailedFault());
}
}
- public static SOAPFaultException throwSOAPFaultException(String errorCode, String
message, Throwable cause)
+ public static <E extends Exception, F extends Fault> E throwWSException(String
errorCode, String message, Throwable cause) throws E
{
- throw createSOAPFaultException(errorCode, message, cause);
+ ExceptionFactory<E, F> exceptionFactory = (ExceptionFactory<E,
F>)errorCodeToExceptions.get(errorCode);
+ if (exceptionFactory == null)
+ {
+ throw new IllegalArgumentException("Unknown error code: " +
errorCode);
+ }
+
+ throw exceptionFactory.newInstance(message, cause);
}
- private static SOAPFaultException createSOAPFaultException(String errorCode, String
message, Throwable cause)
+ private abstract static class ExceptionFactory<E extends Exception, F extends
Fault>
{
- Detail detail = null;
- if (cause != null)
- {
- String causeMessage = cause.getLocalizedMessage();
- if (causeMessage != null)
- {
- message += ". " + causeMessage;
- }
- }
+ private final Constructor<E> exceptionConstructor;
+ private final Fault fault;
- try
+ public ExceptionFactory() throws NoSuchMethodException, IllegalAccessException,
InstantiationException
{
- SOAPFactory soapFactory = SOAPFactory.newInstance();
- detail = soapFactory.createDetail();
-
- // using a DetailEntry with the proper errorCode and NS will cause JBossWS to
create a user created exception
- // for ex: errorCode == InvalidRegistration => InvalidRegistrationFault on
the client side...
- // however, due to the crappy nature of faults in WSRP, this is highly
uninformative as all extra information
- // is not propagated once the user exception is created :(
- detail.addDetailEntry(soapFactory.createName(errorCode, NS_PREFIX, NS));
+ ParameterizedType pt = (ParameterizedType)getClass().getGenericSuperclass();
+ Class<E> exceptionClass = (Class<E>)pt.getActualTypeArguments()[0];
+ Class<F> faultClass = (Class<F>)pt.getActualTypeArguments()[1];
+ exceptionConstructor = exceptionClass.getConstructor(String.class, faultClass,
Throwable.class);
+ fault = faultClass.newInstance();
}
- catch (SOAPException e)
- {
- log.debug("Couldn't create exception detail: ", e);
- }
- String actor = null;
- HttpServletRequest req = ServletAccess.getRequest();
- if (req != null)
+ public E newInstance(String message, Throwable cause)
{
- actor = req.getScheme() + "://" + req.getServerName() + ":"
+ req.getServerPort() + req.getContextPath() + req.getServletPath();
+ try
+ {
+ return exceptionConstructor.newInstance(message, fault, cause);
+ }
+ catch (Exception e)
+ {
+ log.debug("Couldn't instantiate Exception associated with " +
fault.getClass().getSimpleName()
+ + ", message: " + message + ", cause: " + cause);
+ return null;
+ }
}
-
- return new SOAPFaultException(new QName(NS, errorCode), message, actor, detail);
}
}
\ No newline at end of file
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -34,50 +34,51 @@
import org.jboss.portal.portlet.api.StateString;
import org.jboss.portal.portlet.api.URLFormat;
import org.jboss.portal.portlet.api.spi.PortletInvocationContext;
-import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
-import org.jboss.portal.wsrp.core.CacheControl;
-import org.jboss.portal.wsrp.core.ClientData;
-import org.jboss.portal.wsrp.core.ClonePortlet;
-import org.jboss.portal.wsrp.core.DestroyFailed;
-import org.jboss.portal.wsrp.core.DestroyPortlets;
-import org.jboss.portal.wsrp.core.DestroyPortletsResponse;
-import org.jboss.portal.wsrp.core.GetMarkup;
-import org.jboss.portal.wsrp.core.GetPortletDescription;
-import org.jboss.portal.wsrp.core.GetPortletProperties;
-import org.jboss.portal.wsrp.core.GetPortletPropertyDescription;
-import org.jboss.portal.wsrp.core.GetServiceDescription;
-import org.jboss.portal.wsrp.core.InitCookie;
-import org.jboss.portal.wsrp.core.InteractionParams;
-import org.jboss.portal.wsrp.core.LocalizedString;
-import org.jboss.portal.wsrp.core.MarkupContext;
-import org.jboss.portal.wsrp.core.MarkupParams;
-import org.jboss.portal.wsrp.core.MarkupResponse;
-import org.jboss.portal.wsrp.core.MarkupType;
-import org.jboss.portal.wsrp.core.ModelDescription;
-import org.jboss.portal.wsrp.core.ModifyRegistration;
-import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.PortletDescriptionResponse;
-import org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse;
-import org.jboss.portal.wsrp.core.Property;
-import org.jboss.portal.wsrp.core.PropertyDescription;
-import org.jboss.portal.wsrp.core.PropertyList;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.core.ReleaseSessions;
-import org.jboss.portal.wsrp.core.ResetProperty;
-import org.jboss.portal.wsrp.core.RuntimeContext;
-import org.jboss.portal.wsrp.core.ServiceDescription;
-import org.jboss.portal.wsrp.core.SessionContext;
-import org.jboss.portal.wsrp.core.SetPortletProperties;
-import org.jboss.portal.wsrp.core.StateChange;
-import org.jboss.portal.wsrp.core.Templates;
-import org.jboss.portal.wsrp.core.UpdateResponse;
-import org.jboss.portal.wsrp.core.UploadContext;
-import org.jboss.portal.wsrp.core.UserContext;
+import org.oasis.wsrp.v1.BlockingInteractionResponse;
+import org.oasis.wsrp.v1.CacheControl;
+import org.oasis.wsrp.v1.ClientData;
+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.GetMarkup;
+import org.oasis.wsrp.v1.GetPortletDescription;
+import org.oasis.wsrp.v1.GetPortletProperties;
+import org.oasis.wsrp.v1.GetPortletPropertyDescription;
+import org.oasis.wsrp.v1.GetServiceDescription;
+import org.oasis.wsrp.v1.InitCookie;
+import org.oasis.wsrp.v1.InteractionParams;
+import org.oasis.wsrp.v1.LocalizedString;
+import org.oasis.wsrp.v1.MarkupContext;
+import org.oasis.wsrp.v1.MarkupParams;
+import org.oasis.wsrp.v1.MarkupResponse;
+import org.oasis.wsrp.v1.MarkupType;
+import org.oasis.wsrp.v1.ModelDescription;
+import org.oasis.wsrp.v1.ModifyRegistration;
+import org.oasis.wsrp.v1.PerformBlockingInteraction;
+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.PropertyDescription;
+import org.oasis.wsrp.v1.PropertyList;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.RegistrationData;
+import org.oasis.wsrp.v1.ReleaseSessions;
+import org.oasis.wsrp.v1.ResetProperty;
+import org.oasis.wsrp.v1.RuntimeContext;
+import org.oasis.wsrp.v1.ServiceDescription;
+import org.oasis.wsrp.v1.SessionContext;
+import org.oasis.wsrp.v1.SetPortletProperties;
+import org.oasis.wsrp.v1.StateChange;
+import org.oasis.wsrp.v1.Templates;
+import org.oasis.wsrp.v1.UpdateResponse;
+import org.oasis.wsrp.v1.UploadContext;
+import org.oasis.wsrp.v1.UserContext;
import javax.xml.namespace.QName;
+import java.util.List;
import java.util.Map;
/**
@@ -133,7 +134,11 @@
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
ParameterValidation.throwIllegalArgExceptionIfNull(markupParams,
"MarkupParams");
- return new GetMarkup(null, portletContext, runtimeContext, null, markupParams);
+ GetMarkup getMarkup = new GetMarkup();
+ getMarkup.setPortletContext(portletContext);
+ getMarkup.setRuntimeContext(runtimeContext);
+ getMarkup.setMarkupParams(markupParams);
+ return getMarkup;
}
/**
@@ -150,8 +155,8 @@
}
/**
- * {@link org.jboss.portal.wsrp.core.RegistrationContext}?, {@link PortletContext},
{@link RuntimeContext}, {@link
- * org.jboss.portal.wsrp.core.UserContext}?, {@link MarkupParams}, {@link
InteractionParams}
+ * {@link RegistrationContext}?, {@link PortletContext}, {@link RuntimeContext},
{@link UserContext}?, {@link
+ * MarkupParams}, {@link InteractionParams}
*
* @param portletContext
* @param runtimeContext
@@ -170,8 +175,12 @@
ParameterValidation.throwIllegalArgExceptionIfNull(markupParams,
"MarkupParams");
ParameterValidation.throwIllegalArgExceptionIfNull(interactionParams,
"InteractionParams");
- return new PerformBlockingInteraction(null, portletContext, runtimeContext, null,
- markupParams, interactionParams);
+ PerformBlockingInteraction performBlockingInteraction = new
PerformBlockingInteraction();
+ performBlockingInteraction.setPortletContext(portletContext);
+ performBlockingInteraction.setRuntimeContext(runtimeContext);
+ performBlockingInteraction.setMarkupParams(markupParams);
+ performBlockingInteraction.setInteractionParams(interactionParams);
+ return performBlockingInteraction;
}
/**
@@ -185,7 +194,10 @@
*/
public static GetPortletDescription createGetPortletDescription(RegistrationContext
registrationContext, String portletHandle)
{
- return new GetPortletDescription(registrationContext,
createPortletContext(portletHandle), null, null);
+ GetPortletDescription description = new GetPortletDescription();
+ description.setPortletContext(createPortletContext(portletHandle));
+ description.setRegistrationContext(registrationContext);
+ return description;
}
/**
@@ -199,7 +211,10 @@
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "portlet
context");
PortletContext wsrpPC = createPortletContext(portletContext.getId(),
portletContext.getState());
- return new GetPortletDescription(registrationContext, wsrpPC, null, null);
+ GetPortletDescription getPortletDescription = new GetPortletDescription();
+ getPortletDescription.setRegistrationContext(registrationContext);
+ getPortletDescription.setPortletContext(wsrpPC);
+ return getPortletDescription;
}
/**
@@ -214,7 +229,10 @@
public static GetPortletProperties createGetPortletProperties(RegistrationContext
registrationContext, PortletContext portletContext)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
- return new GetPortletProperties(registrationContext, portletContext, null, null);
+ GetPortletProperties properties = new GetPortletProperties();
+ properties.setRegistrationContext(registrationContext);
+ properties.setPortletContext(portletContext);
+ return properties;
}
/** ====== WSRP Response objects ====== **/
@@ -230,7 +248,9 @@
{
throw new IllegalArgumentException("BlockingInteractionResponse requires
either an UpdateResponse or a redirect URL.");
}
- return new BlockingInteractionResponse(updateResponse, null, null);
+ BlockingInteractionResponse interactionResponse = new
BlockingInteractionResponse();
+ interactionResponse.setUpdateResponse(updateResponse);
+ return interactionResponse;
}
/**
@@ -244,7 +264,9 @@
{
throw new IllegalArgumentException("BlockingInteractionResponse requires
either an UpdateResponse or a redirect URL.");
}
- return new BlockingInteractionResponse(null, redirectURL, null);
+ BlockingInteractionResponse interactionResponse = new
BlockingInteractionResponse();
+ interactionResponse.setRedirectURL(redirectURL);
+ return interactionResponse;
}
/**
@@ -268,15 +290,19 @@
*
* @return
*/
- public static PortletDescription createPortletDescription(String portletHandle,
MarkupType[] markupTypes)
+ public static PortletDescription createPortletDescription(String portletHandle,
List<MarkupType> markupTypes)
{
checkPortletHandle(portletHandle);
- ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(markupTypes,
"MarkupType");
+ ParameterValidation.throwIllegalArgExceptionIfNull(markupTypes,
"MarkupType");
+ if (markupTypes.isEmpty())
+ {
+ throw new IllegalArgumentException("Cannot create a PortletDescription with
an empty list of MarkupTypes!");
+ }
PortletDescription portletDescription = new PortletDescription();
portletDescription.setPortletHandle(portletHandle);
- portletDescription.setMarkupTypes(markupTypes);
+ portletDescription.getMarkupTypes().addAll(markupTypes);
return portletDescription;
}
@@ -304,23 +330,32 @@
/**
* secureClientCommunication(xsd:boolean), locales(xsd:string)+,
mimeTypes(xsd:string)+, mode(xsd:string),
- * windowState(xsd:string), clientData({@link
org.jboss.portal.wsrp.core.ClientData})?,
- * navigationalState(xsd:string)?, markupCharacterSets(xsd:string)*,
validateTag(xsd:string)?,
- * validNewModes(xsd:string)*, validNewWindowStates(xsd:string)*, extensions({@link
- * org.jboss.portal.wsrp.core.Extension})*
+ * windowState(xsd:string), clientData({@link ClientData})?,
navigationalState(xsd:string)?,
+ * markupCharacterSets(xsd:string)*, validateTag(xsd:string)?,
validNewModes(xsd:string)*,
+ * validNewWindowStates(xsd:string)*, extensions({@link Extension})*
*
* @return
*/
- public static MarkupParams createMarkupParams(boolean secureClientCommunication,
String[] locales,
- String[] mimeTypes, String mode, String
windowState)
+ public static MarkupParams createMarkupParams(boolean secureClientCommunication,
List<String> locales,
+ List<String> mimeTypes, String
mode, String windowState)
{
- ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(locales,
"locales");
+ ParameterValidation.throwIllegalArgExceptionIfNull(locales, "locales");
+ if (locales.isEmpty())
+ {
+ throw new IllegalArgumentException("Cannot create a MarkupParams with an
empty list of locales!");
+ }
+
ParameterValidation.throwIllegalArgExceptionIfNull(mimeTypes, "MIME
types");
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(mode, "mode",
"MarkupParams");
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(windowState, "window
state", "MarkupParams");
- return new MarkupParams(secureClientCommunication, locales, mimeTypes, mode,
windowState, null, null, null,
- null, null, null, null);
+ MarkupParams markupParams = new MarkupParams();
+ markupParams.setSecureClientCommunication(secureClientCommunication);
+ markupParams.setMode(mode);
+ markupParams.setWindowState(windowState);
+ markupParams.getLocales().addAll(locales);
+ markupParams.getMimeTypes().addAll(mimeTypes);
+ return markupParams;
}
/**
@@ -349,8 +384,7 @@
}
/**
- * portletHandle(xsd:string), portletState(xsd:base64Binary)?, extensions({@link
- * org.jboss.portal.wsrp.core.Extension})*
+ * portletHandle(xsd:string), portletState(xsd:base64Binary)?, extensions({@link
Extension})*
*
* @param portletHandle
* @return
@@ -385,7 +419,7 @@
*/
public static InteractionParams createDefaultInteractionParams()
{
- return createInteractionParams(StateChange.readOnly);
+ return createInteractionParams(StateChange.READ_ONLY);
}
/**
@@ -411,7 +445,9 @@
*/
public static InitCookie createInitCookie(RegistrationContext registrationContext)
{
- return new InitCookie(registrationContext);
+ InitCookie initCookie = new InitCookie();
+ initCookie.setRegistrationContext(registrationContext);
+ return initCookie;
}
/**
@@ -439,7 +475,9 @@
{
ParameterValidation.throwIllegalArgExceptionIfNull(markupContext,
"MarkupContext");
- return new MarkupResponse(markupContext, null, null);
+ MarkupResponse markupResponse = new MarkupResponse();
+ markupResponse.setMarkupContext(markupContext);
+ return markupResponse;
}
/**
@@ -461,7 +499,10 @@
{
throw new IllegalArgumentException("MarkupContext requires either a
non-null markup string or binary markup.");
}
- return new MarkupContext(Boolean.FALSE, mediaType, markupString, null, null,
Boolean.FALSE, null, null, null);
+ MarkupContext markupContext = new MarkupContext();
+ markupContext.setMimeType(mediaType);
+ markupContext.setMarkupString(markupString);
+ return markupContext;
}
/**
@@ -483,7 +524,10 @@
{
throw new IllegalArgumentException("MarkupContext requires either a
non-null markup string or binary markup.");
}
- return new MarkupContext(Boolean.FALSE, mediaType, null, markupBinary, null,
Boolean.FALSE, null, null, null);
+ MarkupContext markupContext = new MarkupContext();
+ markupContext.setMimeType(mediaType);
+ markupContext.setMarkupBinary(markupBinary);
+ return markupContext;
}
/**
@@ -503,7 +547,10 @@
{
throw new IllegalArgumentException("SessionContext requires a positive
expiration time.");
}
- return new SessionContext(sessionID, expires, null);
+ SessionContext sessionContext = new SessionContext();
+ sessionContext.setSessionID(sessionID);
+ sessionContext.setExpires(expires);
+ return sessionContext;
}
/**
@@ -516,7 +563,9 @@
public static UserContext createUserContext(String userContextKey)
{
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userContextKey,
"user context key", "UserContext");
- return new UserContext(userContextKey, null, null, null);
+ UserContext userContext = new UserContext();
+ userContext.setUserContextKey(userContextKey);
+ return userContext;
}
/**
@@ -550,8 +599,9 @@
*/
public static RegistrationData createDefaultRegistrationData()
{
- return new RegistrationData(WSRPConstants.DEFAULT_CONSUMER_NAME,
WSRPConstants.CONSUMER_AGENT, false, null, null,
- null, null, null, null);
+ RegistrationData registrationData =
createRegistrationData(WSRPConstants.DEFAULT_CONSUMER_NAME, false);
+ registrationData.setConsumerAgent(WSRPConstants.CONSUMER_AGENT);
+ return registrationData;
}
/**
@@ -565,7 +615,11 @@
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang,
"language", "Property");
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(stringValue, "String
value", "Property");
- return new Property(name, lang, stringValue, null);
+ Property property = new Property();
+ property.setName(name);
+ property.setLang(lang);
+ property.setStringValue(stringValue);
+ return property;
}
private static final ActionURL ACTION_URL = new ActionURL()
@@ -655,7 +709,9 @@
public static ClientData createClientData(String userAgent)
{
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userAgent, "user
agent", "ClientData");
- return new ClientData(userAgent, null);
+ ClientData clientData = new ClientData();
+ clientData.setUserAgent(userAgent);
+ return clientData;
}
/**
@@ -675,7 +731,10 @@
"-1 indicating that the cache will never expire.");
}
- return new CacheControl(expires, userScope, null, null);
+ CacheControl cacheControl = new CacheControl();
+ cacheControl.setExpires(expires);
+ cacheControl.setUserScope(userScope);
+ return cacheControl;
}
/**
@@ -688,7 +747,9 @@
public static RegistrationContext createRegistrationContext(String
registrationHandle)
{
ParameterValidation.throwIllegalArgExceptionIfNull(registrationHandle,
"Registration handle");
- return new RegistrationContext(registrationHandle, null, null);
+ RegistrationContext registrationContext = new RegistrationContext();
+ registrationContext.setRegistrationHandle(registrationHandle);
+ return registrationContext;
}
/**
@@ -697,9 +758,11 @@
* @return
* @since 2.6
*/
- public static ModelDescription createModelDescription(PropertyDescription[]
propertyDescriptions)
+ public static ModelDescription createModelDescription(List<PropertyDescription>
propertyDescriptions)
{
- return new ModelDescription(propertyDescriptions, null, null);
+ ModelDescription description = new ModelDescription();
+ description.getPropertyDescriptions().addAll(propertyDescriptions);
+ return description;
}
/**
@@ -712,7 +775,10 @@
{
ParameterValidation.throwIllegalArgExceptionIfNull(name, "PropertyDescription
name");
ParameterValidation.throwIllegalArgExceptionIfNull(type, "PropertyDescription
type");
- return new PropertyDescription(name, type, null, null, null);
+ PropertyDescription description = new PropertyDescription();
+ description.setName(name);
+ description.setType(type);
+ return description;
}
/**
@@ -725,7 +791,11 @@
{
ParameterValidation.throwIllegalArgExceptionIfNull(lang, "LocalizedString
language");
ParameterValidation.throwIllegalArgExceptionIfNull(value, "LocalizedString
value");
- return new LocalizedString(lang, resourceName, value);
+ LocalizedString localizedString = new LocalizedString();
+ localizedString.setLang(lang);
+ localizedString.setResourceName(resourceName);
+ localizedString.setValue(value);
+ return localizedString;
}
/**
@@ -750,7 +820,9 @@
public static PortletDescriptionResponse
createPortletDescriptionResponse(PortletDescription portletDescription)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletDescription,
"PortletDescription");
- return new PortletDescriptionResponse(portletDescription, null, null);
+ PortletDescriptionResponse response = new PortletDescriptionResponse();
+ response.setPortletDescription(portletDescription);
+ return response;
}
/**
@@ -760,10 +832,12 @@
* @return
* @since 2.6
*/
- public static PortletPropertyDescriptionResponse
createPortletPropertyDescriptionResponse(PropertyDescription[] propertyDescriptions)
+ public static PortletPropertyDescriptionResponse
createPortletPropertyDescriptionResponse(List<PropertyDescription>
propertyDescriptions)
{
ModelDescription modelDescription = propertyDescriptions == null ? null :
createModelDescription(propertyDescriptions);
- return new PortletPropertyDescriptionResponse(modelDescription, null, null);
+ PortletPropertyDescriptionResponse portletPropertyDescriptionResponse = new
PortletPropertyDescriptionResponse();
+ portletPropertyDescriptionResponse.setModelDescription(modelDescription);
+ return portletPropertyDescriptionResponse;
}
/**
@@ -775,10 +849,15 @@
*/
public static GetPortletPropertyDescription
createGetPortletPropertyDescription(RegistrationContext registrationContext,
PortletContext portletContext,
-
UserContext userContext, String[] desiredLocales)
+
UserContext userContext, List<String> desiredLocales)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
- return new GetPortletPropertyDescription(registrationContext, portletContext,
userContext, desiredLocales);
+ GetPortletPropertyDescription description = new GetPortletPropertyDescription();
+ description.setRegistrationContext(registrationContext);
+ description.setPortletContext(portletContext);
+ description.setUserContext(userContext);
+ description.getDesiredLocales().addAll(desiredLocales);
+ return description;
}
/**
@@ -806,8 +885,11 @@
{
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(portletHandle,
"Portlet handle", "DestroyFailed");
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(reason, "Reason for
failure", "DestroyFailed");
- // todo: check reason should be a fault code from Section 13 of spec but this is
not clear...
- return new DestroyFailed(portletHandle, reason);
+ // todo: check reason should be a fault code from Section 13 of spec but this is
not clear...
+ DestroyFailed destroyFailed = new DestroyFailed();
+ destroyFailed.setPortletHandle(portletHandle);
+ destroyFailed.setReason(reason);
+ return destroyFailed;
}
/**
@@ -817,9 +899,11 @@
* @return
* @since 2.6
*/
- public static DestroyPortletsResponse createDestroyPortletsResponse(DestroyFailed[]
destroyFailed)
+ public static DestroyPortletsResponse
createDestroyPortletsResponse(List<DestroyFailed> destroyFailed)
{
- return new DestroyPortletsResponse(destroyFailed, null);
+ DestroyPortletsResponse destroyPortletsResponse = new DestroyPortletsResponse();
+ destroyPortletsResponse.getDestroyFailed().addAll(destroyFailed);
+ return destroyPortletsResponse;
}
/**
@@ -839,7 +923,11 @@
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
ParameterValidation.throwIllegalArgExceptionIfNull(propertyList,
"PropertyList");
- return new SetPortletProperties(registrationContext, portletContext, null,
propertyList);
+ SetPortletProperties properties = new SetPortletProperties();
+ properties.setRegistrationContext(registrationContext);
+ properties.setPortletContext(portletContext);
+ properties.setPropertyList(propertyList);
+ return properties;
}
/**
@@ -863,7 +951,11 @@
public static ClonePortlet createClonePortlet(RegistrationContext registrationContext,
PortletContext portletContext, UserContext userContext)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
- return new ClonePortlet(registrationContext, portletContext, userContext);
+ ClonePortlet clonePortlet = new ClonePortlet();
+ clonePortlet.setPortletContext(portletContext);
+ clonePortlet.setRegistrationContext(registrationContext);
+ clonePortlet.setUserContext(userContext);
+ return clonePortlet;
}
/**
@@ -872,10 +964,18 @@
* @return
* @since 2.6
*/
- public static DestroyPortlets createDestroyPortlets(RegistrationContext
registrationContext, String[] portletHandles)
+ public static DestroyPortlets createDestroyPortlets(RegistrationContext
registrationContext, List<String> portletHandles)
{
- ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(portletHandles,
"Portlet handles");
- return new DestroyPortlets(registrationContext, portletHandles);
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletHandles, "Portlet
handles");
+ if (portletHandles.isEmpty())
+ {
+ throw new IllegalArgumentException("Cannot create a DestroyPortlets with an
empty list of portlet handles!");
+ }
+
+ DestroyPortlets destroyPortlets = new DestroyPortlets();
+ destroyPortlets.setRegistrationContext(registrationContext);
+ destroyPortlets.getPortletHandles().addAll(portletHandles);
+ return destroyPortlets;
}
/**
@@ -900,7 +1000,9 @@
{
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "Property
name", "ResetProperty");
- return new ResetProperty(name);
+ ResetProperty resetProperty = new ResetProperty();
+ resetProperty.setName(name);
+ return resetProperty;
}
/**
@@ -909,11 +1011,18 @@
* @return
* @since 2.6
*/
- public static ReleaseSessions createReleaseSessions(RegistrationContext
registrationContext, String[] sessionIDs)
+ public static ReleaseSessions createReleaseSessions(RegistrationContext
registrationContext, List<String> sessionIDs)
{
- ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(sessionIDs, "Session
IDs");
+ ParameterValidation.throwIllegalArgExceptionIfNull(sessionIDs, "Session
IDs");
+ if (sessionIDs.isEmpty())
+ {
+ throw new IllegalArgumentException("Cannot create a ReleaseSessions with an
empty list of session IDs!");
+ }
- return new ReleaseSessions(registrationContext, sessionIDs);
+ ReleaseSessions sessions = new ReleaseSessions();
+ sessions.setRegistrationContext(registrationContext);
+ sessions.getSessionIDs().addAll(sessionIDs);
+ return sessions;
}
/**
@@ -927,7 +1036,10 @@
{
ParameterValidation.throwIllegalArgExceptionIfNull(registrationData,
"RegistrationData");
- return new ModifyRegistration(registrationContext, registrationData);
+ ModifyRegistration registration = new ModifyRegistration();
+ registration.setRegistrationContext(registrationContext);
+ registration.setRegistrationData(registrationData);
+ return registration;
}
/**
@@ -946,6 +1058,19 @@
throw new IllegalArgumentException("Must pass non-null, non-empty upload
data");
}
- return new UploadContext(mimeType, uploadData, null, null);
+ UploadContext uploadContext = new UploadContext();
+ uploadContext.setMimeType(mimeType);
+ uploadContext.setUploadData(uploadData);
+ return uploadContext;
}
+
+ public static MarkupType createMarkupType(String mimeType, List<String>
modeNames, List<String> windowStateNames, List<String> localeNames)
+ {
+ MarkupType markupType = new MarkupType();
+ markupType.setMimeType(mimeType);
+ markupType.getModes().addAll(modeNames);
+ markupType.getWindowStates().addAll(windowStateNames);
+ markupType.getLocales().addAll(localeNames);
+ return markupType;
+ }
}
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPUtils.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPUtils.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPUtils.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -33,10 +33,10 @@
import org.jboss.portal.portlet.api.PortletURL;
import org.jboss.portal.portlet.api.RenderURL;
import org.jboss.portal.portlet.api.state.AccessMode;
-import org.jboss.portal.wsrp.core.InteractionParams;
-import org.jboss.portal.wsrp.core.MarkupParams;
-import org.jboss.portal.wsrp.core.NamedString;
-import org.jboss.portal.wsrp.core.StateChange;
+import org.oasis.wsrp.v1.InteractionParams;
+import org.oasis.wsrp.v1.MarkupParams;
+import org.oasis.wsrp.v1.NamedString;
+import org.oasis.wsrp.v1.StateChange;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -168,15 +168,15 @@
public static AccessMode getAccessModeFromStateChange(StateChange stateChange)
{
- if (StateChange.readOnly.equals(stateChange))
+ if (StateChange.READ_ONLY.equals(stateChange))
{
return AccessMode.READ_ONLY;
}
- if (StateChange.cloneBeforeWrite.equals(stateChange))
+ if (StateChange.CLONE_BEFORE_WRITE.equals(stateChange))
{
return AccessMode.CLONE_BEFORE_WRITE;
}
- if (StateChange.readWrite.equals(stateChange))
+ if (StateChange.READ_WRITE.equals(stateChange))
{
return AccessMode.READ_WRITE;
}
@@ -187,15 +187,15 @@
{
if (AccessMode.READ_ONLY.equals(accessMode))
{
- return StateChange.readOnly;
+ return StateChange.READ_ONLY;
}
if (AccessMode.READ_WRITE.equals(accessMode))
{
- return StateChange.readWrite;
+ return StateChange.READ_WRITE;
}
if (AccessMode.CLONE_BEFORE_WRITE.equals(accessMode))
{
- return StateChange.cloneBeforeWrite;
+ return StateChange.CLONE_BEFORE_WRITE;
}
throw new IllegalArgumentException("Unsupported AccessMode: " +
accessMode);
}
@@ -252,7 +252,7 @@
return desiredLocales;
}
- public static PortletContext
convertToPortalPortletContext(org.jboss.portal.wsrp.core.PortletContext portletContext)
+ public static PortletContext
convertToPortalPortletContext(org.oasis.wsrp.v1.PortletContext portletContext)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
String handle = portletContext.getPortletHandle();
@@ -269,13 +269,13 @@
* @param portletContext
* @return Since 2.6
*/
- public static org.jboss.portal.wsrp.core.PortletContext
convertToWSRPPortletContext(PortletContext portletContext)
+ public static org.oasis.wsrp.v1.PortletContext
convertToWSRPPortletContext(PortletContext portletContext)
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
String id = portletContext.getId();
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(id, "portlet
id", "PortletContext");
- org.jboss.portal.wsrp.core.PortletContext result =
WSRPTypeFactory.createPortletContext(id);
+ org.oasis.wsrp.v1.PortletContext result =
WSRPTypeFactory.createPortletContext(id);
result.setPortletState(portletContext.getState());
return result;
}
@@ -366,8 +366,8 @@
{
StringBuffer sb = new StringBuffer("InteractionParams");
sb.append("[IS=").append(interactionParams.getInteractionState()).append("]")
-
.append("[StateChange=").append(interactionParams.getPortletStateChange().getValue()).append("]");
- NamedString[] formParams = interactionParams.getFormParameters();
+
.append("[StateChange=").append(interactionParams.getPortletStateChange().value()).append("]");
+ List<NamedString> formParams = interactionParams.getFormParameters();
if (formParams != null)
{
sb.append("\n\tForm params:\n");
Modified:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/UserAccess.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/UserAccess.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/UserAccess.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -24,7 +24,7 @@
package org.jboss.portal.wsrp.servlet;
import org.jboss.portal.wsrp.WSRPTypeFactory;
-import org.jboss.portal.wsrp.core.UserContext;
+import org.oasis.wsrp.v1.UserContext;
import javax.servlet.http.HttpServletRequest;
Modified: jbossexo/modules/wsrp/trunk/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/pom.xml 2009-08-05 16:45:20 UTC (rev 13680)
+++ jbossexo/modules/wsrp/trunk/pom.xml 2009-08-05 17:58:32 UTC (rev 13681)
@@ -50,7 +50,8 @@
<modules>
<module>build</module>
<!--<module>api</module>-->
- <module>wsrp1-rpc</module>
+ <!--<module>wsrp1-rpc</module>-->
+ <module>wsrp1-ws</module>
<module>common</module>
<!--<module>test-support</module>-->
<module>producer</module>
Modified: jbossexo/modules/wsrp/trunk/producer/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/pom.xml 2009-08-05 16:45:20 UTC (rev 13680)
+++ jbossexo/modules/wsrp/trunk/producer/pom.xml 2009-08-05 17:58:32 UTC (rev 13681)
@@ -37,7 +37,7 @@
<dependencies>
<dependency>
<groupId>org.jboss.portal.wsrp</groupId>
- <artifactId>wsrp1-rpc</artifactId>
+ <artifactId>wsrp1-ws</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
@@ -112,12 +112,12 @@
<!-- other dependencies -->
- <dependency>
+ <!-- <dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxrpc-api</artifactId>
<version>${version.jaxrpc}</version>
<scope>provided</scope>
- </dependency>
+ </dependency>-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
@@ -155,11 +155,6 @@
<artifactId>exo.kernel.container</artifactId>
<version>2.1.1</version>
</dependency>
- <dependency>
- <groupId>org.jboss.portal.wsrp</groupId>
- <artifactId>wsrp1-rpc</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
</dependencies>
<build>
@@ -173,26 +168,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/portal-wsrp-client-jar.xml</descriptor>–>
-
<descriptor>src/assemble/wsrp-producer-war.xml</descriptor>
- <!–<descriptor>src/assemble/portal-wsr
p-tests-jar.xml</descriptor>–>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>-->
</plugins>
</build>
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -24,25 +24,21 @@
package org.jboss.portal.wsrp;
import org.jboss.portal.registration.RegistrationManager;
-import org.jboss.portal.wsrp.core.CookieProtocol;
-import org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType;
-import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
-import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
-import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
+import org.jboss.portal.wsrp.producer.MarkupInterface;
+import org.jboss.portal.wsrp.producer.ServiceDescriptionInterface;
import org.jboss.portal.wsrp.producer.config.ProducerConfiguration;
import org.jboss.portal.wsrp.producer.config.ProducerConfigurationChangeListener;
import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.oasis.wsrp.v1.CookieProtocol;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision: 12020 $
* @since 2.4
*/
-public interface WSRPProducer
- extends WSRP_v1_ServiceDescription_PortType, WSRP_v1_Markup_PortType,
WSRP_v1_Registration_PortType,
- WSRP_v1_PortletManagement_PortType, ProducerConfigurationChangeListener
+public interface WSRPProducer extends ServiceDescriptionInterface, MarkupInterface,
ProducerConfigurationChangeListener
{
- /** The default session expiration time in mili seconds. */
+ /** The default session expiration time in milliseconds. */
int DEFAULT_SESSION_EXPIRATION_TIME = 300000;
/** The value used to specify that a session will never expire. */
@@ -50,16 +46,15 @@
/**
* Indicates whether or not the Producer requires the Consumer to assist with cookie
support of the HTTP protocol.
- * Supported values and semantics: <ul> <li>{@link
org.jboss.portal.wsrp.core.CookieProtocol#none}: The Producer does
- * not need the Consumer to ever invoke {@link
org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)}.</li>
- * <li>{@link org.jboss.portal.wsrp.core.CookieProtocol#perUser}: The Consumer
MUST invoke {@link
- *
org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)}
once per
- * user of the Consumer, and associate any returned cookies with subsequent
invocations on behalf of that user.</li>
- * <li>{@link org.jboss.portal.wsrp.core.CookieProtocol#perGroup}: The Consumer
MUST invoke {@link
- *
org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)}
once per
- * unique groupID from the PortletDescriptions for the Portlets it is aggregating on a
page for each user of the
- * Consumer, and associate any returned cookies with subsequent invocations on behalf
of that user targeting Portlets
- * with identical groupIDs.</li> </ul>
+ * Supported values and semantics: <ul> <li>{@link CookieProtocol#NONE}:
The Producer does not need the Consumer to
+ * ever invoke {@link
org.oasis.wsrp.v1.WSRPV1MarkupPortType#initCookie(org.oasis.wsrp.v1.RegistrationContext)}.</li>
+ * <li>{@link CookieProtocol#PER_USER}: The Consumer MUST invoke {@link
org.oasis.wsrp.v1.WSRPV1MarkupPortType#initCookie(org.oasis.wsrp.v1.RegistrationContext)}
+ * once per user of the Consumer, and associate any returned cookies with subsequent
invocations on behalf of that
+ * user.</li> <li>{@link CookieProtocol#PER_GROUP}: The Consumer MUST
invoke {@link
+ *
org.oasis.wsrp.v1.WSRPV1MarkupPortType#initCookie(org.oasis.wsrp.v1.RegistrationContext)}
once per unique groupID
+ * from the PortletDescriptions for the Portlets it is aggregating on a page for each
user of the Consumer, and
+ * associate any returned cookies with subsequent invocations on behalf of that user
targeting Portlets with
+ * identical groupIDs.</li> </ul>
*
* @return the level of cookie support required from the Consumer
*/
@@ -68,9 +63,8 @@
/**
* Sets the level of cookie support required by the Consumer.
*
- * @param requiresInitCookie either {@link
org.jboss.portal.wsrp.core.CookieProtocol#none}, {@link
- * org.jboss.portal.wsrp.core.CookieProtocol#perUser} or
{@link
- * org.jboss.portal.wsrp.core.CookieProtocol#perGroup}
+ * @param requiresInitCookie either {@link CookieProtocol#NONE}, {@link
CookieProtocol#PER_USER} or {@link
+ * CookieProtocol#PER_GROUP}
*/
void setRequiresInitCookie(CookieProtocol requiresInitCookie);
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,30 +23,35 @@
package org.jboss.portal.wsrp.endpoints;
-import org.jboss.portal.wsrp.core.AccessDeniedFault;
-import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
-import org.jboss.portal.wsrp.core.GetMarkup;
-import org.jboss.portal.wsrp.core.InconsistentParametersFault;
-import org.jboss.portal.wsrp.core.InitCookie;
-import org.jboss.portal.wsrp.core.InvalidCookieFault;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.InvalidSessionFault;
-import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
-import org.jboss.portal.wsrp.core.MarkupResponse;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
-import org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault;
-import org.jboss.portal.wsrp.core.ReleaseSessions;
-import org.jboss.portal.wsrp.core.ReturnAny;
-import org.jboss.portal.wsrp.core.UnsupportedLocaleFault;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
-import org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType;
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.InconsistentParameters;
+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.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.RegistrationContext;
+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 java.rmi.RemoteException;
+import javax.jws.WebParam;
+import javax.xml.ws.Holder;
+import java.util.List;
/**
* @author <a href="mailto:palber@novell.com">Polina Alber</a>
@@ -54,29 +59,59 @@
* @version $Revision: 8784 $
* @since 2.4
*/
-public class MarkupEndpoint extends WSRPBaseEndpoint implements WSRP_v1_Markup_PortType
+public class MarkupEndpoint extends WSRPBaseEndpoint implements WSRPV1MarkupPortType
{
- public MarkupResponse getMarkup(GetMarkup getMarkup) throws
UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault, AccessDeniedFault,
InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault, OperationFailedFault, MissingParametersFault,
InvalidUserCategoryFault, InvalidRegistrationFault, UnsupportedMimeTypeFault,
RemoteException
+ 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();
- return producer.getMarkup(getMarkup);
+// producer.performBlockingInteraction();
}
- public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction) throws
InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault, OperationFailedFault,
UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault,
PortletStateChangeRequiredFault, InvalidRegistrationFault, MissingParametersFault,
InvalidUserCategoryFault, InconsistentParametersFault, InvalidHandleFault,
InvalidCookieFault, RemoteException
+ 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();
- return producer.performBlockingInteraction(performBlockingInteraction);
+// producer.releaseSessions();
+ return null;
}
- public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws
InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, AccessDeniedFault,
RemoteException
+ 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();
- return producer.releaseSessions(releaseSessions);
+// producer.getMarkup();
}
- public ReturnAny initCookie(InitCookie initCookie) throws AccessDeniedFault,
OperationFailedFault, InvalidRegistrationFault, RemoteException
+ public List<Extension> initCookie(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types") RegistrationContext registrationContext
+ ) throws InvalidRegistration, AccessDenied, OperationFailed
{
forceSessionAccess();
- return producer.initCookie(initCookie);
+// producer.initCookie();
+ return null;
}
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,63 +23,72 @@
package org.jboss.portal.wsrp.endpoints;
-import org.jboss.portal.wsrp.core.AccessDeniedFault;
-import org.jboss.portal.wsrp.core.ClonePortlet;
-import org.jboss.portal.wsrp.core.DestroyPortlets;
-import org.jboss.portal.wsrp.core.DestroyPortletsResponse;
-import org.jboss.portal.wsrp.core.GetPortletDescription;
-import org.jboss.portal.wsrp.core.GetPortletProperties;
-import org.jboss.portal.wsrp.core.GetPortletPropertyDescription;
-import org.jboss.portal.wsrp.core.InconsistentParametersFault;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescriptionResponse;
-import org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse;
-import org.jboss.portal.wsrp.core.PropertyList;
-import org.jboss.portal.wsrp.core.SetPortletProperties;
-import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.DestroyFailed;
+import org.oasis.wsrp.v1.Extension;
+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.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.UserContext;
+import org.oasis.wsrp.v1.WSRPV1PortletManagementPortType;
-import java.rmi.RemoteException;
+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
*/
-public class PortletManagementEndpoint extends WSRPBaseEndpoint implements
WSRP_v1_PortletManagement_PortType
+public class PortletManagementEndpoint extends WSRPBaseEndpoint implements
WSRPV1PortletManagementPortType
{
-
- public PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription) throws AccessDeniedFault, InvalidHandleFault,
InvalidUserCategoryFault, InconsistentParametersFault, MissingParametersFault,
InvalidRegistrationFault, OperationFailedFault, RemoteException
+ 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
{
- return producer.getPortletDescription(getPortletDescription);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategoryFault, AccessDeniedFault, OperationFailedFault, InvalidHandleFault,
InvalidRegistrationFault, InconsistentParametersFault, MissingParametersFault,
RemoteException
+ 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, InconsistentP!
arameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied,
OperationFailed
{
- return producer.clonePortlet(clonePortlet);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParametersFault, MissingParametersFault, InvalidRegistrationFault,
OperationFailedFault, RemoteException
+ 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
{
- return producer.destroyPortlets(destroyPortlets);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailedFault, InvalidHandleFault, MissingParametersFault,
InconsistentParametersFault, InvalidUserCategoryFault, AccessDeniedFault,
InvalidRegistrationFault, RemoteException
+ 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
{
- return producer.setPortletProperties(setPortletProperties);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandleFault, MissingParametersFault, InvalidRegistrationFault,
AccessDeniedFault, OperationFailedFault, InconsistentParametersFault,
InvalidUserCategoryFault, RemoteException
+ 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, Incons!
istentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied,
OperationFailed
{
- return producer.getPortletProperties(getPortletProperties);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription getPortletPropertyDescription)
throws MissingParametersFault, InconsistentParametersFault, InvalidUserCategoryFault,
InvalidRegistrationFault, AccessDeniedFault, InvalidHandleFault, OperationFailedFault,
RemoteException
+ 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
{
- return producer.getPortletPropertyDescription(getPortletPropertyDescription);
+ //To change body of implemented methods use File | Settings | File Templates.
}
}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ProducerHolder.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ProducerHolder.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ProducerHolder.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,45 @@
+/*
+ * 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.jboss.portal.wsrp.endpoints;
+
+import org.jboss.portal.wsrp.WSRPProducer;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class ProducerHolder
+{
+ private static final ThreadLocal<WSRPProducer> PRODUCER_HOLDER = new
ThreadLocal<WSRPProducer>();
+
+ public static WSRPProducer getProducer()
+ {
+ return PRODUCER_HOLDER.get();
+ }
+
+ public static void setProducer(WSRPProducer producer)
+ {
+ PRODUCER_HOLDER.set(producer);
+ }
+}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,40 +23,39 @@
package org.jboss.portal.wsrp.endpoints;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.ModifyRegistration;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.core.RegistrationState;
-import org.jboss.portal.wsrp.core.ReturnAny;
-import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
+import org.oasis.wsrp.v1.Extension;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MissingParameters;
+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.WSRPV1RegistrationPortType;
-import java.rmi.RemoteException;
+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
*/
-public class RegistrationEndpoint extends WSRPBaseEndpoint implements
WSRP_v1_Registration_PortType
+public class RegistrationEndpoint extends WSRPBaseEndpoint implements
WSRPV1RegistrationPortType
{
- public RegistrationContext register(RegistrationData register)
- throws MissingParametersFault, OperationFailedFault, RemoteException
+
+ 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> registrat!
ionProperties, @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
{
- return producer.register(register);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public ReturnAny deregister(RegistrationContext deregister)
- throws OperationFailedFault, InvalidRegistrationFault, RemoteException
+ 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
{
- return producer.deregister(deregister);
+ //To change body of implemented methods use File | Settings | File Templates.
}
- public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
- throws MissingParametersFault, OperationFailedFault, InvalidRegistrationFault,
RemoteException
+ 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 producer.modifyRegistration(modifyRegistration);
+ return null; //To change body of implemented methods use File | Settings | File
Templates.
}
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,24 +23,30 @@
package org.jboss.portal.wsrp.endpoints;
-import org.jboss.portal.wsrp.core.GetServiceDescription;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.ServiceDescription;
-import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
+import org.oasis.wsrp.v1.CookieProtocol;
+import org.oasis.wsrp.v1.Extension;
+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.WSRPV1ServiceDescriptionPortType;
-import java.rmi.RemoteException;
+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 $
*/
-public class ServiceDescriptionEndpoint extends WSRPBaseEndpoint implements
WSRP_v1_ServiceDescription_PortType
+public class ServiceDescriptionEndpoint extends WSRPBaseEndpoint implements
WSRPV1ServiceDescriptionPortType
{
- public ServiceDescription getServiceDescription(GetServiceDescription gs)
- throws InvalidRegistrationFault, OperationFailedFault, RemoteException
+ 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>>
customUserProfileItemDescrip!
tions, @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<Res!
ourceList> resourceList, @WebParam(mode = WebParam.Mode.OUT, n!
ame = "e
xtensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
Holder<List<Extension>> extensions) throws InvalidRegistration,
OperationFailed
{
- return producer.getServiceDescription(gs);
+ //To change body of implemented methods use File | Settings | File Templates.
}
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/WSRPBaseEndpoint.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/WSRPBaseEndpoint.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/WSRPBaseEndpoint.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,48 +23,35 @@
package org.jboss.portal.wsrp.endpoints;
-import org.jboss.portal.wsrp.WSRPConstants;
import org.jboss.portal.wsrp.WSRPProducer;
import org.jboss.portal.wsrp.servlet.ServletAccess;
import javax.servlet.http.HttpSession;
-import javax.xml.rpc.ServiceException;
-import javax.xml.rpc.server.ServiceLifecycle;
-import javax.xml.rpc.server.ServletEndpointContext;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision: 13313 $
* @since 2.4
*/
-public class WSRPBaseEndpoint implements ServiceLifecycle
+public class WSRPBaseEndpoint
{
- public void init(Object object) throws ServiceException
- {
- context = (ServletEndpointContext)object; // per init javadoc
- }
-
- public void destroy()
- {
- context = null;
- }
-
public WSRPBaseEndpoint()
{
- producer = JMX.getMBeanProxy(WSRPProducer.class,
WSRPConstants.WSRP_PRODUCER_OBJECT_NAME);
+ producer = ProducerHolder.getProducer();
}
protected void forceSessionAccess()
{
// Check if there is a session associated with this thread
HttpSession portalSession = ServletAccess.getRequest().getSession(false);
- if (portalSession != null)
+
+ // 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;
- protected ServletEndpointContext context;
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/ExoKernelIntegration.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/ExoKernelIntegration.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/ExoKernelIntegration.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -30,6 +30,7 @@
import org.jboss.portal.registration.RegistrationPersistenceManager;
import org.jboss.portal.registration.impl.RegistrationManagerImpl;
import org.jboss.portal.registration.impl.RegistrationPersistenceManagerImpl;
+import org.jboss.portal.wsrp.endpoints.ProducerHolder;
import org.jboss.portal.wsrp.producer.WSRPProducerImpl;
import org.jboss.portal.wsrp.producer.config.impl.ProducerConfigurationServiceImpl;
@@ -76,12 +77,16 @@
producer.setProducerConfigurationService(producerConfigurationService);
producer.start();
+
+ ProducerHolder.setProducer(producer);
}
@Override
public void destroy()
{
producer.stop();
+
+ ProducerHolder.setProducer(null);
producer = null;
}
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ActionRequestProcessor.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ActionRequestProcessor.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ActionRequestProcessor.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -33,21 +33,21 @@
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.InteractionParams;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MarkupParams;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RuntimeContext;
-import org.jboss.portal.wsrp.core.StateChange;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
-import org.jboss.portal.wsrp.core.UpdateResponse;
+import org.oasis.wsrp.v1.InteractionParams;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MarkupParams;
+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.RegistrationContext;
+import org.oasis.wsrp.v1.RuntimeContext;
+import org.oasis.wsrp.v1.StateChange;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
+import org.oasis.wsrp.v1.UpdateResponse;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
@@ -60,8 +60,8 @@
private final InteractionParams interactionParams;
public ActionRequestProcessor(WSRPProducerImpl producer, PerformBlockingInteraction
performBlockingInteraction, InteractionParams interactionParams)
- throws UnsupportedMimeTypeFault, UnsupportedWindowStateFault, InvalidHandleFault,
UnsupportedModeFault,
- MissingParametersFault, InvalidRegistrationFault, OperationFailedFault
+ throws UnsupportedMimeType, UnsupportedWindowState, InvalidHandle, UnsupportedMode,
MissingParameters,
+ InvalidRegistration, OperationFailed
{
super(producer);
this.performBlockingInteraction = performBlockingInteraction;
@@ -89,7 +89,7 @@
return performBlockingInteraction.getPortletContext();
}
- org.jboss.portal.wsrp.core.UserContext getUserContext()
+ org.oasis.wsrp.v1.UserContext getUserContext()
{
return performBlockingInteraction.getUserContext();
}
@@ -99,10 +99,10 @@
return MarkupHandler.PBI;
}
- AccessMode getAccessMode()
+ AccessMode getAccessMode() throws MissingParameters
{
StateChange stateChange = interactionParams.getPortletStateChange();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(stateChange,
"portletStateChange", "InteractionParams");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(stateChange,
"portletStateChange", "InteractionParams");
return WSRPUtils.getAccessModeFromStateChange(stateChange);
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -31,30 +31,33 @@
import org.jboss.portal.portlet.api.invocation.response.UpdateNavigationalStateResponse;
import org.jboss.portal.portlet.state.producer.PortletStateChangeRequiredException;
import org.jboss.portal.wsrp.WSRPExceptionFactory;
-import org.jboss.portal.wsrp.core.AccessDeniedFault;
-import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
-import org.jboss.portal.wsrp.core.GetMarkup;
-import org.jboss.portal.wsrp.core.InconsistentParametersFault;
-import org.jboss.portal.wsrp.core.InitCookie;
-import org.jboss.portal.wsrp.core.InteractionParams;
-import org.jboss.portal.wsrp.core.InvalidCookieFault;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.InvalidSessionFault;
-import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
-import org.jboss.portal.wsrp.core.MarkupResponse;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
-import org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault;
-import org.jboss.portal.wsrp.core.ReleaseSessions;
-import org.jboss.portal.wsrp.core.ReturnAny;
-import org.jboss.portal.wsrp.core.UnsupportedLocaleFault;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
-import org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType;
import org.jboss.portal.wsrp.servlet.ServletAccess;
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.BlockingInteractionResponse;
+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.MarkupResponse;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+import org.oasis.wsrp.v1.PerformBlockingInteraction;
+import org.oasis.wsrp.v1.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.PortletStateChangeRequiredFault;
+import org.oasis.wsrp.v1.ReleaseSessions;
+import org.oasis.wsrp.v1.ReturnAny;
+import org.oasis.wsrp.v1.UnsupportedLocale;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedModeFault;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
+import org.oasis.wsrp.v1.UnsupportedWindowStateFault;
import javax.portlet.PortletModeException;
import javax.portlet.WindowStateException;
@@ -65,7 +68,7 @@
* @version $Revision: 10090 $
* @since 2.4
*/
-class MarkupHandler extends ServiceHandler implements WSRP_v1_Markup_PortType
+class MarkupHandler extends ServiceHandler implements MarkupInterface
{
static final String PBI = "PerformBlockingInteraction";
static final String GET_MARKUP = "GetMarkup";
@@ -77,13 +80,10 @@
// Markup implementation
********************************************************************************************
- public MarkupResponse getMarkup(GetMarkup getMarkup)
- throws UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault,
AccessDeniedFault,
- InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault,
- OperationFailedFault, MissingParametersFault, InvalidUserCategoryFault,
InvalidRegistrationFault,
- UnsupportedMimeTypeFault, RemoteException
+
+ public MarkupResponse getMarkup(GetMarkup getMarkup) throws UnsupportedWindowState,
InvalidCookie, InvalidSession, AccessDenied, InconsistentParameters, InvalidHandle,
UnsupportedLocale, UnsupportedMode, OperationFailed, MissingParameters,
InvalidUserCategory, InvalidRegistration, UnsupportedMimeType, RemoteException
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getMarkup,
GET_MARKUP);
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(getMarkup, GET_MARKUP);
RequestProcessor requestProcessor = new RenderRequestProcessor(producer,
getMarkup);
@@ -97,7 +97,7 @@
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Could not render portlet '" + handle + "'", e);
}
@@ -106,15 +106,11 @@
return (MarkupResponse)requestProcessor.processResponse(response);
}
- public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction)
- throws InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault,
OperationFailedFault,
- UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault,
PortletStateChangeRequiredFault,
- InvalidRegistrationFault, MissingParametersFault, InvalidUserCategoryFault,
InconsistentParametersFault,
- InvalidHandleFault, InvalidCookieFault, RemoteException
+ public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction) throws
InvalidSession, UnsupportedMode, UnsupportedMimeType, OperationFailed,
UnsupportedWindowState, UnsupportedLocale, AccessDenied, PortletStateChangeRequired,
InvalidRegistration, MissingParameters, InvalidUserCategory, InconsistentParameters,
InvalidHandle, InvalidCookie, RemoteException
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(performBlockingInteraction,
PBI);
+
WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(performBlockingInteraction,
PBI);
final InteractionParams interactionParams =
performBlockingInteraction.getInteractionParams();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(interactionParams,
"InteractionParams", PBI);
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(interactionParams,
"InteractionParams", PBI);
RequestProcessor requestProcessor = new ActionRequestProcessor(producer,
performBlockingInteraction, interactionParams);
@@ -128,12 +124,12 @@
}
catch (PortletStateChangeRequiredException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.PORTLET_STATE_CHANGE_REQUIRED,
+ throw WSRPExceptionFactory.<PortletStateChangeRequired,
PortletStateChangeRequiredFault>throwWSException(WSRPExceptionFactory.PORTLET_STATE_CHANGE_REQUIRED,
e.getLocalizedMessage(), e);
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Could not perform action on portlet '" + handle +
"'", e);
}
@@ -142,18 +138,16 @@
return (BlockingInteractionResponse)requestProcessor.processResponse(response);
}
- public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
- throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault,
AccessDeniedFault, RemoteException
+ public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws
InvalidRegistration, OperationFailed, MissingParameters, AccessDenied, RemoteException
{
// our producer never sends session ids so a Consumer trying to release sessions is
an error condition
throwOperationFaultOnSessionOperation();
return null;
}
- public ReturnAny initCookie(InitCookie initCookie)
- throws AccessDeniedFault, OperationFailedFault, InvalidRegistrationFault,
RemoteException
+ public ReturnAny initCookie(InitCookie initCookie) throws AccessDenied,
OperationFailed, InvalidRegistration, RemoteException
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(initCookie,
"InitCookie");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(initCookie,
"InitCookie");
producer.getRegistrationOrFailIfInvalid(initCookie.getRegistrationContext());
// Force HTTP session creation... this is required for BEA Weblogic version <
9.2.
@@ -164,15 +158,15 @@
return new ReturnAny();
}
- static void throwOperationFaultOnSessionOperation()
+ static void throwOperationFaultOnSessionOperation() throws OperationFailed
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
"JBoss Portal's Producer" +
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"JBoss Portal's Producer" +
" manages sessions completely on the server side, passing or trying to
release sessionIDs is therefore an error.",
null);
}
private void checkForError(PortletInvocationResponse response)
- throws UnsupportedModeFault, OperationFailedFault, UnsupportedWindowStateFault
+ throws UnsupportedMode, OperationFailed, UnsupportedWindowState
{
if (response instanceof ErrorResponse)
{
@@ -180,24 +174,24 @@
Throwable cause = errorResult.getCause();
if (cause instanceof PortletModeException)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MODE,
+ throw WSRPExceptionFactory.<UnsupportedMode,
UnsupportedModeFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_MODE,
"Unsupported mode: " + ((PortletModeException)cause).getMode(),
null);
}
if (cause instanceof WindowStateException)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_WINDOW_STATE,
+ throw WSRPExceptionFactory.<UnsupportedWindowState,
UnsupportedWindowStateFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_WINDOW_STATE,
"Unsupported window state: " +
((WindowStateException)cause).getState(), null);
}
// todo: deal with other exceptions
// we're not sure what happened so throw an OperationFailedFault
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
errorResult.getMessage(), cause);
}
else if (!(response instanceof HTTPRedirectionResponse || response instanceof
FragmentResponse || response instanceof UpdateNavigationalStateResponse))
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Unsupported result type: " + response.getClass().getName(),
null);
}
}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupInterface.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupInterface.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupInterface.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,73 @@
+/*
+ * 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.jboss.portal.wsrp.producer;
+
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.BlockingInteractionResponse;
+import org.oasis.wsrp.v1.GetMarkup;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InitCookie;
+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.MarkupResponse;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PerformBlockingInteraction;
+import org.oasis.wsrp.v1.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.ReleaseSessions;
+import org.oasis.wsrp.v1.ReturnAny;
+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 java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public interface MarkupInterface
+{
+ MarkupResponse getMarkup(GetMarkup getMarkup)
+ throws UnsupportedWindowState, InvalidCookie, InvalidSession, AccessDenied,
+ InconsistentParameters, InvalidHandle, UnsupportedLocale, UnsupportedMode,
+ OperationFailed, MissingParameters, InvalidUserCategory, InvalidRegistration,
+ UnsupportedMimeType, RemoteException;
+
+ BlockingInteractionResponse performBlockingInteraction(PerformBlockingInteraction
performBlockingInteraction)
+ throws InvalidSession, UnsupportedMode, UnsupportedMimeType, OperationFailed,
+ UnsupportedWindowState, UnsupportedLocale, AccessDenied,
PortletStateChangeRequired,
+ InvalidRegistration, MissingParameters, InvalidUserCategory,
InconsistentParameters,
+ InvalidHandle, InvalidCookie, RemoteException;
+
+ ReturnAny releaseSessions(ReleaseSessions releaseSessions)
+ throws InvalidRegistration, OperationFailed, MissingParameters, AccessDenied,
RemoteException;
+
+ ReturnAny initCookie(InitCookie initCookie)
+ throws AccessDenied, OperationFailed, InvalidRegistration, RemoteException;
+}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupRequest.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupRequest.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupRequest.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -27,9 +27,10 @@
import org.jboss.portal.WindowState;
import org.jboss.portal.portlet.api.Portlet;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.MarkupType;
+import org.oasis.wsrp.v1.MarkupType;
import java.util.HashSet;
+import java.util.List;
import java.util.Locale;
import java.util.Set;
@@ -69,10 +70,10 @@
public String getLocale()
{
- String[] locales = markupType.getLocales();
- if (locales != null && locales.length != 0)
+ List<String> locales = markupType.getLocales();
+ if (locales != null && !locales.isEmpty())
{
- return locales[0];
+ return locales.get(0);
}
else
{
@@ -107,24 +108,22 @@
public Set<Mode> getSupportedModes()
{
- String[] modes = markupType.getModes();
- int length = modes.length;
- Set<Mode> result = new HashSet<Mode>(length);
- for (int i = 0; i < length; i++)
+ List<String> modes = markupType.getModes();
+ Set<Mode> result = new HashSet<Mode>(modes.size());
+ for (String mode : modes)
{
- result.add(WSRPUtils.getJSR168PortletModeFromWSRPName(modes[i]));
+ result.add(WSRPUtils.getJSR168PortletModeFromWSRPName(mode));
}
return result;
}
public Set<WindowState> getSupportedWindowStates()
{
- String[] states = markupType.getWindowStates();
- int length = states.length;
- Set<WindowState> result = new HashSet<WindowState>(length);
- for (int i = 0; i < length; i++)
+ List<String> states = markupType.getWindowStates();
+ Set<WindowState> result = new HashSet<WindowState>(states.size());
+ for (String state : states)
{
- result.add(WSRPUtils.getJSR168WindowStateFromWSRPName(states[i]));
+ result.add(WSRPUtils.getJSR168WindowStateFromWSRPName(state));
}
return result;
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementHandler.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementHandler.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -24,7 +24,6 @@
package org.jboss.portal.wsrp.producer;
import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.common.util.Tools;
import org.jboss.portal.portlet.api.InvalidPortletIdException;
import org.jboss.portal.portlet.api.NoSuchPortletException;
import org.jboss.portal.portlet.api.Portlet;
@@ -41,37 +40,39 @@
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.AccessDeniedFault;
-import org.jboss.portal.wsrp.core.ClonePortlet;
-import org.jboss.portal.wsrp.core.DestroyFailed;
-import org.jboss.portal.wsrp.core.DestroyPortlets;
-import org.jboss.portal.wsrp.core.DestroyPortletsResponse;
-import org.jboss.portal.wsrp.core.GetPortletDescription;
-import org.jboss.portal.wsrp.core.GetPortletProperties;
-import org.jboss.portal.wsrp.core.GetPortletPropertyDescription;
-import org.jboss.portal.wsrp.core.InconsistentParametersFault;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.PortletDescriptionResponse;
-import org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse;
-import org.jboss.portal.wsrp.core.Property;
-import org.jboss.portal.wsrp.core.PropertyDescription;
-import org.jboss.portal.wsrp.core.PropertyList;
-import org.jboss.portal.wsrp.core.ResetProperty;
-import org.jboss.portal.wsrp.core.SetPortletProperties;
-import org.jboss.portal.wsrp.core.UserContext;
-import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
+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.GetPortletDescription;
+import org.oasis.wsrp.v1.GetPortletProperties;
+import org.oasis.wsrp.v1.GetPortletPropertyDescription;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InconsistentParametersFault;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidHandleFault;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidUserCategory;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+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.PropertyDescription;
+import org.oasis.wsrp.v1.PropertyList;
+import org.oasis.wsrp.v1.ResetProperty;
+import org.oasis.wsrp.v1.SetPortletProperties;
+import org.oasis.wsrp.v1.UserContext;
+import org.w3c.dom.Element;
-import javax.xml.soap.SOAPElement;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collections;
-import java.util.Iterator;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -81,7 +82,7 @@
* @version $Revision: 11147 $
* @since 2.4
*/
-class PortletManagementHandler extends ServiceHandler implements
WSRP_v1_PortletManagement_PortType
+class PortletManagementHandler extends ServiceHandler implements
PortletManagementInterface
{
private static final String GET_PORTLET_PROPERTY_DESCRIPTION =
"GetPortletPropertyDescription";
private static final String GET_PORTLET_PROPERTIES =
"GetPortletProperties";
@@ -94,14 +95,14 @@
}
public PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription)
- throws AccessDeniedFault, InvalidHandleFault, InvalidUserCategoryFault,
InconsistentParametersFault,
- MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
+ throws AccessDenied, InvalidHandle, InvalidUserCategory, InconsistentParameters,
+ MissingParameters, InvalidRegistration, OperationFailed, RemoteException
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletDescription,
GET_PORTLET_DESCRIPTION);
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(getPortletDescription,
GET_PORTLET_DESCRIPTION);
Registration registration =
producer.getRegistrationOrFailIfInvalid(getPortletDescription.getRegistrationContext());
PortletContext portletContext = getPortletDescription.getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_DESCRIPTION);
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_DESCRIPTION);
UserContext userContext = getPortletDescription.getUserContext();
checkUserAuthorization(userContext);
@@ -112,29 +113,29 @@
}
public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription
getPortletPropertyDescription)
- throws MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault, InvalidRegistrationFault,
- AccessDeniedFault, InvalidHandleFault, OperationFailedFault, RemoteException
+ throws MissingParameters, InconsistentParameters, InvalidUserCategory,
InvalidRegistration, AccessDenied,
+ InvalidHandle, OperationFailed, RemoteException
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletPropertyDescription,
GET_PORTLET_PROPERTY_DESCRIPTION);
+
WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(getPortletPropertyDescription,
GET_PORTLET_PROPERTY_DESCRIPTION);
PortletContext portletContext = getPortletPropertyDescription.getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_PROPERTY_DESCRIPTION);
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_PROPERTY_DESCRIPTION);
Registration registration =
producer.getRegistrationOrFailIfInvalid(getPortletPropertyDescription.getRegistrationContext());
UserContext userContext = getPortletPropertyDescription.getUserContext();
checkUserAuthorization(userContext);
- String[] desiredLocales = getPortletPropertyDescription.getDesiredLocales();
+ List<String> desiredLocales =
getPortletPropertyDescription.getDesiredLocales();
Portlet portlet = getPortletFrom(portletContext, registration);
PortletInfo info = portlet.getInfo();
PreferencesInfo prefsInfo = info.getPreferences();
- PropertyDescription[] descs = null;
+ List<PropertyDescription> descs = Collections.emptyList();
if (prefsInfo != null)
{
Set keySet = prefsInfo.getKeys();
- descs = new PropertyDescription[keySet.size()];
+ descs = new ArrayList<PropertyDescription>(keySet.size());
int index = 0;
for (Object key : keySet)
{
@@ -150,7 +151,7 @@
PropertyDescription desc =
WSRPTypeFactory.createPropertyDescription(prefInfo.getKey(), WSRPConstants.XSD_STRING);
desc.setLabel(Utils.convertToWSRPLocalizedString(prefInfo.getDisplayName(),
desiredLocales));
desc.setHint(Utils.convertToWSRPLocalizedString(prefInfo.getDescription(),
desiredLocales));
- descs[index++] = desc;
+ descs.add(desc);
}
}
}
@@ -158,14 +159,13 @@
return WSRPTypeFactory.createPortletPropertyDescriptionResponse(descs);
}
- public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategoryFault, AccessDeniedFault,
- OperationFailedFault, InvalidHandleFault, InvalidRegistrationFault,
InconsistentParametersFault,
- MissingParametersFault, RemoteException
+ public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategory, AccessDenied, OperationFailed,
+ InvalidHandle, InvalidRegistration, InconsistentParameters, MissingParameters,
RemoteException
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(clonePortlet,
"ClonePortlet");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(clonePortlet,
"ClonePortlet");
PortletContext portletContext = clonePortlet.getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
"PortletContext", "ClonePortlet");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(portletContext,
"PortletContext", "ClonePortlet");
Registration registration =
producer.getRegistrationOrFailIfInvalid(clonePortlet.getRegistrationContext());
@@ -181,17 +181,17 @@
}
catch (NoSuchPortletException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
}
catch (InvalidPortletIdException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
+ throw WSRPExceptionFactory.<InconsistentParameters,
InconsistentParametersFault>throwWSException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
"Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
}
finally
@@ -200,36 +200,35 @@
}
}
- public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParametersFault,
- MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
+ public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParameters,
+ MissingParameters, InvalidRegistration, OperationFailed, RemoteException
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(destroyPortlets,
"DestroyPortlets");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(destroyPortlets,
"DestroyPortlets");
- String[] handles = destroyPortlets.getPortletHandles();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(handles,
"portlet handles to be destroyed", "DestroyPortlets");
+ List<String> handles = destroyPortlets.getPortletHandles();
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(handles, "portlet
handles to be destroyed", "DestroyPortlets");
Registration registration =
producer.getRegistrationOrFailIfInvalid(destroyPortlets.getRegistrationContext());
- List portletContexts = new ArrayList(handles.length);
- for (int i = 0; i < handles.length; i++)
+ List<org.jboss.portal.portlet.api.PortletContext> portletContexts =
+ new
ArrayList<org.jboss.portal.portlet.api.PortletContext>(handles.size());
+ for (String handle : handles)
{
-
portletContexts.add(org.jboss.portal.portlet.api.PortletContext.createPortletContext(handles[i]));
+
portletContexts.add(org.jboss.portal.portlet.api.PortletContext.createPortletContext(handle));
}
try
{
RegistrationLocal.setRegistration(registration);
- List failuresList = producer.getInvoker().destroyClones(portletContexts);
+ List<DestroyCloneFailure> failuresList =
producer.getInvoker().destroyClones(portletContexts);
int failuresNumber = failuresList.size();
- DestroyFailed[] destroyFailed;
+ List<DestroyFailed> destroyFailed;
if (failuresNumber > 0)
{
- destroyFailed = new DestroyFailed[failuresNumber];
- int i = 0;
- for (Object aFailuresList : failuresList)
+ destroyFailed = new ArrayList<DestroyFailed>(failuresNumber);
+ for (DestroyCloneFailure failure : failuresList)
{
- DestroyCloneFailure failure = (DestroyCloneFailure)aFailuresList;
- destroyFailed[i++] =
WSRPTypeFactory.createDestroyFailed(failure.getPortletId(), failure.getMessage());
+
destroyFailed.add(WSRPTypeFactory.createDestroyFailed(failure.getPortletId(),
failure.getMessage()));
}
}
else
@@ -241,7 +240,7 @@
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Failed to destroy clones", e);
}
finally
@@ -250,47 +249,46 @@
}
}
- public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailedFault,
- InvalidHandleFault, MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault,
- AccessDeniedFault, InvalidRegistrationFault, RemoteException
+ public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailed,
+ InvalidHandle, MissingParameters, InconsistentParameters, InvalidUserCategory,
AccessDenied, InvalidRegistration,
+ RemoteException
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(setPortletProperties,
"SetPortletProperties");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(setPortletProperties,
"SetPortletProperties");
PortletContext portletContext = setPortletProperties.getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
"PortletContext", "SetPortletProperties");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(portletContext,
"PortletContext", "SetPortletProperties");
PropertyList propertyList = setPortletProperties.getPropertyList();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(propertyList,
"PropertyList", "SetPortletProperties");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(propertyList,
"PropertyList", "SetPortletProperties");
Registration registration =
producer.getRegistrationOrFailIfInvalid(setPortletProperties.getRegistrationContext());
checkUserAuthorization(setPortletProperties.getUserContext());
- Property[] properties = propertyList.getProperties();
- ResetProperty[] resetProperties = propertyList.getResetProperties();
+ List<Property> properties = propertyList.getProperties();
+ List<ResetProperty> resetProperties = propertyList.getResetProperties();
int changesCount = 0;
if (properties != null)
{
- changesCount += properties.length;
+ changesCount += properties.size();
}
if (resetProperties != null)
{
- changesCount += resetProperties.length;
+ changesCount += resetProperties.size();
}
if (changesCount > 0)
{
- List changes = new ArrayList(changesCount);
+ List<PropertyChange> changes = new
ArrayList<PropertyChange>(changesCount);
if (properties != null)
{
- for (int i = 0; i < properties.length; i++)
+ for (Property property : properties)
{
- Property property = properties[i];
String value = property.getStringValue();
// todo: deal with XML values...
- SOAPElement[] values = property.get_any();
+ List<Element> values = property.getAny();
String lang = property.getLang(); // todo: deal with language?
changes.add(PropertyChange.newUpdate(property.getName(), value));
@@ -299,9 +297,8 @@
if (resetProperties != null)
{
- for (int i = 0; i < resetProperties.length; i++)
+ for (ResetProperty resetProperty : resetProperties)
{
- ResetProperty resetProperty = resetProperties[i];
changes.add(PropertyChange.newReset(resetProperty.getName()));
}
}
@@ -311,22 +308,22 @@
RegistrationLocal.setRegistration(registration);
org.jboss.portal.portlet.api.PortletContext resultContext =
producer.getInvoker().setProperties(WSRPUtils.convertToPortalPortletContext(portletContext),
- (PropertyChange[])changes.toArray(new PropertyChange[0]));
+ changes.toArray(new PropertyChange[changes.size()]));
return WSRPUtils.convertToWSRPPortletContext(resultContext);
}
catch (NoSuchPortletException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
}
catch (InvalidPortletIdException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
+ throw WSRPExceptionFactory.<InconsistentParameters,
InconsistentParametersFault>throwWSException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
"Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
}
finally
@@ -338,22 +335,22 @@
return portletContext;
}
- public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandleFault,
- MissingParametersFault, InvalidRegistrationFault, AccessDeniedFault,
OperationFailedFault,
- InconsistentParametersFault, InvalidUserCategoryFault, RemoteException
+ public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandle,
+ MissingParameters, InvalidRegistration, AccessDenied, OperationFailed,
InconsistentParameters, InvalidUserCategory,
+ RemoteException
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletProperties,
GET_PORTLET_PROPERTIES);
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(getPortletProperties,
GET_PORTLET_PROPERTIES);
PortletContext portletContext = getPortletProperties.getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_PROPERTIES);
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_PROPERTIES);
Registration registration =
producer.getRegistrationOrFailIfInvalid(getPortletProperties.getRegistrationContext());
UserContext userContext = getPortletProperties.getUserContext();
checkUserAuthorization(userContext);
- String[] names = getPortletProperties.getNames();
- Set<String> keys = getKeysFromNames(names);
+ List<String> names = getPortletProperties.getNames();
+ Set<String> keys = new HashSet<String>(names);
try
{
@@ -379,18 +376,15 @@
if (propertyNb > 0)
{
- Property[] resProperties = new Property[propertyNb];
- int i = 0;
PreferenceInfo prefInfo;
String key;
List<String> values;
LocalizedString displayName;
- for (Iterator entries = properties.entrySet().iterator(); entries.hasNext();
i++)
+ for (Map.Entry<String, List<String>> entry :
properties.entrySet())
{
- Map.Entry entry = (Map.Entry)entries.next();
- key = (String)entry.getKey();
- values = (List<String>)entry.getValue();
+ key = entry.getKey();
+ values = entry.getValue();
prefInfo = info.getPreferences().getPreference(key);
displayName = prefInfo.getDisplayName();
String lang = WSRPUtils.toString(displayName.getDefaultLocale());
@@ -400,17 +394,15 @@
{
throw new UnsupportedOperationException("Currently doesn't
support multi-valued properties!");
}
- resProperties[i] = WSRPTypeFactory.createProperty(key, lang,
values.get(0)); //todo: check what we should use key
+ result.getProperties().add(WSRPTypeFactory.createProperty(key, lang,
values.get(0))); //todo: check what we should use key
}
-
- result.setProperties(resProperties);
}
return result;
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Could not retrieve properties for portlet '" + portletContext
+ "'", e);
}
finally
@@ -428,38 +420,8 @@
}
}
- private Set<String> getKeysFromNames(String[] names)
+ private Portlet getPortletFrom(PortletContext portletContext, Registration
registration) throws InvalidHandle
{
- Set<String> keys = null;
- if (names != null)
- {
- if (names.length == 0)
- {
- keys = Collections.emptySet();
- }
- else
- {
- // todo fix-me we need to work around
http://jira.jboss.com/jira/browse/JBWS-1300 for now:
- boolean allNamesNull = true;
- for (int i = 0; i < names.length && allNamesNull; i++)
- {
- allNamesNull = (names[i] == null);
- }
- if (allNamesNull)
- {
- keys = null;
- }
- else
- {
- keys = Tools.toSet(names);
- }
- }
- }
- return keys;
- }
-
- private Portlet getPortletFrom(PortletContext portletContext, Registration
registration) throws InvalidHandleFault
- {
Portlet portlet;
try
{
@@ -469,7 +431,7 @@
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Could not retrieve portlet '" +
portletContext.getPortletHandle() + "'", e);
}
finally
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementInterface.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementInterface.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementInterface.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,74 @@
+/*
+ * 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.jboss.portal.wsrp.producer;
+
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.ClonePortlet;
+import org.oasis.wsrp.v1.DestroyPortlets;
+import org.oasis.wsrp.v1.DestroyPortletsResponse;
+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.OperationFailed;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletDescriptionResponse;
+import org.oasis.wsrp.v1.PortletPropertyDescriptionResponse;
+import org.oasis.wsrp.v1.PropertyList;
+import org.oasis.wsrp.v1.SetPortletProperties;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public interface PortletManagementInterface
+{
+ PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription)
+ throws AccessDenied, InvalidHandle, InvalidUserCategory, InconsistentParameters,
MissingParameters,
+ InvalidRegistration, OperationFailed, RemoteException;
+
+ PortletContext clonePortlet(ClonePortlet clonePortlet) throws InvalidUserCategory,
AccessDenied,
+ OperationFailed, InvalidHandle, InvalidRegistration, InconsistentParameters,
MissingParameters, RemoteException;
+
+ DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParameters,
+ MissingParameters, InvalidRegistration, OperationFailed, RemoteException;
+
+ PortletContext setPortletProperties(SetPortletProperties setPortletProperties) throws
OperationFailed,
+ InvalidHandle, MissingParameters, InconsistentParameters, InvalidUserCategory,
AccessDenied, InvalidRegistration,
+ RemoteException;
+
+ PropertyList getPortletProperties(GetPortletProperties getPortletProperties) throws
InvalidHandle,
+ MissingParameters, InvalidRegistration, AccessDenied, OperationFailed,
InconsistentParameters, InvalidUserCategory,
+ RemoteException;
+
+ PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription
getPortletPropertyDescription)
+ throws MissingParameters, InconsistentParameters, InvalidUserCategory,
InvalidRegistration, AccessDenied,
+ InvalidHandle, OperationFailed, RemoteException;
+}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -23,6 +23,8 @@
package org.jboss.portal.wsrp.producer;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.common.util.ParameterValidation;
import org.jboss.portal.registration.Consumer;
import org.jboss.portal.registration.ConsumerCapabilities;
@@ -34,17 +36,18 @@
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.ModifyRegistration;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.Property;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.core.RegistrationState;
-import org.jboss.portal.wsrp.core.ReturnAny;
-import org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType;
import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidRegistrationFault;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.ModifyRegistration;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+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.ReturnAny;
import javax.xml.namespace.QName;
import java.rmi.RemoteException;
@@ -60,24 +63,24 @@
* @version $Revision: 13202 $
* @since 2.4
*/
-class RegistrationHandler extends ServiceHandler implements
WSRP_v1_Registration_PortType
+class RegistrationHandler extends ServiceHandler implements RegistrationInterface
{
RegistrationHandler(WSRPProducerImpl producer)
{
super(producer);
}
- public RegistrationContext register(RegistrationData registrationData) throws
MissingParametersFault, OperationFailedFault,
+ public RegistrationContext register(RegistrationData registrationData) throws
MissingParameters, OperationFailed,
RemoteException
{
if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(registrationData,
"RegistrationData");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(registrationData,
"RegistrationData");
String consumerName = registrationData.getConsumerName();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
String consumerAgent = registrationData.getConsumerAgent();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
Registration registration;
try
@@ -94,7 +97,7 @@
{
String msg = "Could not register consumer named '" +
consumerName + "'";
log.debug(msg, e);
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
msg, e);
}
@@ -103,7 +106,7 @@
return registrationContext;
}
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Registration shouldn't be attempted if registration is not
required", null);
}
@@ -114,45 +117,41 @@
consumer.setConsumerAgent(registrationData.getConsumerAgent());
ConsumerCapabilities capabilities = consumer.getCapabilities();
- String[] modeStrings = registrationData.getConsumerModes();
- if (modeStrings != null && modeStrings.length > 0)
+ List<String> modeStrings = registrationData.getConsumerModes();
+ int modesNb = modeStrings.size();
+ if (modesNb > 0)
{
- List modes = new ArrayList(modeStrings.length);
- for (int i = 0; i < modeStrings.length; i++)
+ List<Mode> modes = new ArrayList<Mode>(modesNb);
+ for (String modeString : modeStrings)
{
- modes.add(WSRPUtils.getJSR168PortletModeFromWSRPName(modeStrings[i]));
+ modes.add(WSRPUtils.getJSR168PortletModeFromWSRPName(modeString));
}
capabilities.setSupportedModes(modes);
}
- String[] wsStrings = registrationData.getConsumerWindowStates();
- if (wsStrings != null && wsStrings.length > 0)
+ List<String> wsStrings = registrationData.getConsumerWindowStates();
+ int wsNb = wsStrings.size();
+ if (wsNb > 0)
{
- List windowStates = new ArrayList(wsStrings.length);
- for (int i = 0; i < wsStrings.length; i++)
+ List<WindowState> windowStates = new ArrayList<WindowState>(wsNb);
+ for (String wsString : wsStrings)
{
- windowStates.add(WSRPUtils.getJSR168WindowStateFromWSRPName(wsStrings[i]));
+ windowStates.add(WSRPUtils.getJSR168WindowStateFromWSRPName(wsString));
}
capabilities.setSupportedWindowStates(windowStates);
}
- //
- String[] customUserProfileData = registrationData.getCustomUserProfileData();
- String[] consumerUserScopes = registrationData.getConsumerUserScopes();
- boolean isMethodGetSupported = registrationData.isMethodGetSupported();
-
- //
- capabilities.setSupportedUserProfileData(getListFromArray(customUserProfileData,
false));
- capabilities.setSupportedUserScopes(getListFromArray(consumerUserScopes, false));
- capabilities.setSupportsGetMethod(isMethodGetSupported);
+
capabilities.setSupportedUserProfileData(registrationData.getCustomUserProfileData());
+ capabilities.setSupportedUserScopes(registrationData.getConsumerUserScopes());
+ capabilities.setSupportsGetMethod(registrationData.isMethodGetSupported());
}
- public ReturnAny deregister(RegistrationContext deregister) throws
OperationFailedFault, InvalidRegistrationFault,
+ public ReturnAny deregister(RegistrationContext deregister) throws OperationFailed,
InvalidRegistration,
RemoteException
{
if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(deregister,
"RegistrationContext");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(deregister,
"RegistrationContext");
String registrationHandle = deregister.getRegistrationHandle();
if (ParameterValidation.isNullOrEmpty(registrationHandle))
@@ -175,26 +174,26 @@
catch (RegistrationException e)
{
log.debug(msg, e);
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
msg, e);
}
return new ReturnAny();
}
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Deregistration shouldn't be attempted if registration is not
required", null);
}
- public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParametersFault,
- OperationFailedFault, InvalidRegistrationFault, RemoteException
+ public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParameters,
+ OperationFailed, InvalidRegistration, RemoteException
{
if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
{
-
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(modifyRegistration,
"ModifyRegistration");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(modifyRegistration,
"ModifyRegistration");
RegistrationContext registrationContext =
modifyRegistration.getRegistrationContext();
-
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(registrationContext,
"RegistrationContext", "ModifyRegistration");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(registrationContext,
"RegistrationContext", "ModifyRegistration");
String registrationHandle = registrationContext.getRegistrationHandle();
if (ParameterValidation.isNullOrEmpty(registrationHandle))
{
@@ -202,13 +201,13 @@
}
RegistrationData registrationData = modifyRegistration.getRegistrationData();
-
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(registrationData,
"RegistrationData", "ModifyRegistration");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(registrationData,
"RegistrationData", "ModifyRegistration");
String consumerName = registrationData.getConsumerName();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
String consumerAgent = registrationData.getConsumerAgent();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
log.debug("Attempting to modify registration with handle '" +
registrationHandle + "'");
String msg = "Could not modify registration with handle '" +
registrationHandle + "'";
@@ -233,7 +232,7 @@
catch (RegistrationException e)
{
log.debug(msg, e);
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
msg, e);
}
@@ -242,7 +241,7 @@
return null;
}
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Modifying a registration shouldn't be attempted if registration is not
required", null);
}
@@ -252,7 +251,7 @@
* @return
* @since 2.6.2
*/
- boolean isRegistrationValid(Registration reg, boolean throwExceptionIfInvalid) throws
InvalidRegistrationFault
+ boolean isRegistrationValid(Registration reg, boolean throwExceptionIfInvalid) throws
InvalidRegistration, OperationFailed
{
if (reg == null)
{
@@ -300,7 +299,7 @@
* @return
* @since 2.6.2
*/
- Registration getRegistrationFrom(RegistrationContext registrationContext)
+ Registration getRegistrationFrom(RegistrationContext registrationContext) throws
InvalidRegistration, OperationFailed
{
if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
{
@@ -340,24 +339,24 @@
}
}
- private void throwOperationFailedFault(String message, RegistrationException e)
+ private void throwOperationFailedFault(String message, RegistrationException e) throws
OperationFailed
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
message, e);
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED, message,
e);
}
- boolean throwInvalidRegistrationFault(String message)
+ boolean throwInvalidRegistrationFault(String message) throws InvalidRegistration
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_REGISTRATION,
+ throw WSRPExceptionFactory.<InvalidRegistration,
InvalidRegistrationFault>throwWSException(WSRPExceptionFactory.INVALID_REGISTRATION,
"Invalid registration: " + message, null);
}
private Map<QName, Object> createRegistrationProperties(RegistrationData
registrationData)
{
- Property[] regProperties = registrationData.getRegistrationProperties();
+ List<Property> regProperties = registrationData.getRegistrationProperties();
Map<QName, Object> properties;
if (regProperties != null)
{
- properties = new HashMap<QName, Object>(regProperties.length);
+ properties = new HashMap<QName, Object>(regProperties.size());
for (Property property : regProperties)
{
// todo: should be more detailed here... use the language, allow other value
types...
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationInterface.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationInterface.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationInterface.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,51 @@
+/*
+ * 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.jboss.portal.wsrp.producer;
+
+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.RegistrationContext;
+import org.oasis.wsrp.v1.RegistrationData;
+import org.oasis.wsrp.v1.RegistrationState;
+import org.oasis.wsrp.v1.ReturnAny;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public interface RegistrationInterface
+{
+ RegistrationContext register(RegistrationData register) throws MissingParameters,
OperationFailed,
+ RemoteException;
+
+ ReturnAny deregister(RegistrationContext deregister) throws OperationFailed,
InvalidRegistration,
+ RemoteException;
+
+ RegistrationState modifyRegistration(ModifyRegistration modifyRegistration) throws
MissingParameters,
+ OperationFailed, InvalidRegistration, RemoteException;
+}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -33,21 +33,20 @@
import org.jboss.portal.wsrp.WSRPConstants;
import org.jboss.portal.wsrp.WSRPRewritingConstants;
import org.jboss.portal.wsrp.WSRPTypeFactory;
-import org.jboss.portal.wsrp.core.GetMarkup;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MarkupContext;
-import org.jboss.portal.wsrp.core.MarkupParams;
-import org.jboss.portal.wsrp.core.MarkupResponse;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RuntimeContext;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
import org.jboss.portal.wsrp.servlet.ServletAccess;
+import org.oasis.wsrp.v1.GetMarkup;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MarkupContext;
+import org.oasis.wsrp.v1.MarkupParams;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.RuntimeContext;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
@@ -60,9 +59,8 @@
private final GetMarkup getMarkup;
private String namespace;
- public RenderRequestProcessor(WSRPProducerImpl producer, GetMarkup getMarkup) throws
UnsupportedMimeTypeFault,
- UnsupportedWindowStateFault, InvalidHandleFault, UnsupportedModeFault,
MissingParametersFault,
- InvalidRegistrationFault, OperationFailedFault
+ public RenderRequestProcessor(WSRPProducerImpl producer, GetMarkup getMarkup) throws
UnsupportedMimeType,
+ UnsupportedWindowState, InvalidHandle, UnsupportedMode, MissingParameters,
InvalidRegistration, OperationFailed
{
super(producer);
this.getMarkup = getMarkup;
@@ -89,7 +87,7 @@
return getMarkup.getPortletContext();
}
- org.jboss.portal.wsrp.core.UserContext getUserContext()
+ org.oasis.wsrp.v1.UserContext getUserContext()
{
return getMarkup.getUserContext();
}
@@ -158,7 +156,7 @@
markupContext.setCacheControl(WSRPTypeFactory.createCacheControl(expires,
WSRPConstants.CACHE_PER_USER));
}
- return new MarkupResponse(markupContext, null, null);
+ return WSRPTypeFactory.createMarkupResponse(markupContext);
}
/**
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RequestProcessor.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RequestProcessor.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RequestProcessor.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -27,7 +27,6 @@
import org.jboss.portal.WindowState;
import org.jboss.portal.common.net.media.MediaType;
import org.jboss.portal.common.util.MarkupInfo;
-import org.jboss.portal.common.util.Tools;
import org.jboss.portal.portlet.api.Portlet;
import org.jboss.portal.portlet.api.PortletInvokerException;
import org.jboss.portal.portlet.api.StateString;
@@ -43,21 +42,25 @@
import org.jboss.portal.wsrp.WSRPConstants;
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MarkupParams;
-import org.jboss.portal.wsrp.core.MarkupType;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RuntimeContext;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MarkupParams;
+import org.oasis.wsrp.v1.MarkupType;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletDescription;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.RuntimeContext;
+import org.oasis.wsrp.v1.UnsupportedMimeType;
+import org.oasis.wsrp.v1.UnsupportedMimeTypeFault;
+import org.oasis.wsrp.v1.UnsupportedMode;
+import org.oasis.wsrp.v1.UnsupportedModeFault;
+import org.oasis.wsrp.v1.UnsupportedWindowState;
+import org.oasis.wsrp.v1.UnsupportedWindowStateFault;
import java.security.Principal;
-import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
@@ -87,24 +90,24 @@
this.producer = producer;
}
- void prepareInvocation() throws InvalidRegistrationFault, OperationFailedFault,
InvalidHandleFault,
- UnsupportedMimeTypeFault, UnsupportedWindowStateFault, UnsupportedModeFault
+ void prepareInvocation() throws InvalidRegistration, OperationFailed, InvalidHandle,
+ UnsupportedMimeType, UnsupportedWindowState, UnsupportedMode, MissingParameters
{
Registration registration =
producer.getRegistrationOrFailIfInvalid(getRegistrationContext());
// get session information and deal with it
final RuntimeContext runtimeContext = getRuntimeContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(runtimeContext,
"RuntimeContext", getContextName());
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(runtimeContext,
"RuntimeContext", getContextName());
checkForSessionIDs(runtimeContext);
// get markup parameters
final MarkupParams params = getMarkupParams();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(params,
"MarkupParams", getContextName());
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(params,
"MarkupParams", getContextName());
// get portlet handle
PortletContext wsrpPC = getPortletContext();
- WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(wsrpPC,
"PortletContext", getContextName());
+ WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(wsrpPC,
"PortletContext", getContextName());
org.jboss.portal.portlet.api.PortletContext portletContext =
WSRPUtils.convertToPortalPortletContext(wsrpPC);
// retrieve the portlet
@@ -115,27 +118,28 @@
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Could not retrieve portlet '" + portletContext +
"'", e);
}
// get portlet description for the desired portlet...
- final String[] desiredLocales = params.getLocales();
+ final List<String> desiredLocales = params.getLocales();
portletDescription = producer.getPortletDescription(portlet, desiredLocales);
- if (Boolean.TRUE.equals(portletDescription.getUsesMethodGet()))
+ if (Boolean.TRUE.equals(portletDescription.isUsesMethodGet()))
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Portlets using GET method in forms are not currently supported.",
null);
}
- MarkupType[] markupTypes = portletDescription.getMarkupTypes();
+ List<MarkupType> markupTypes = portletDescription.getMarkupTypes();
+
// based on the markup parameters and portlet description generate the most
appropriate markup request
markupRequest = createMarkupRequestFrom(markupTypes, params, portlet);
// prepare information for invocation
StateString navigationalState =
createNavigationalState(params.getNavigationalState());
- final org.jboss.portal.wsrp.core.UserContext wsrpUserContext = getUserContext();
+ final org.oasis.wsrp.v1.UserContext wsrpUserContext = getUserContext();
checkUserContext(wsrpUserContext);
SecurityContext securityContext = createSecurityContext(params, runtimeContext,
wsrpUserContext);
@@ -166,11 +170,11 @@
abstract PortletContext getPortletContext();
- abstract org.jboss.portal.wsrp.core.UserContext getUserContext();
+ abstract org.oasis.wsrp.v1.UserContext getUserContext();
abstract String getContextName();
- abstract AccessMode getAccessMode();
+ abstract AccessMode getAccessMode() throws MissingParameters;
abstract PortletInvocation initInvocation(WSRPPortletInvocationContext context);
@@ -186,16 +190,15 @@
* @param portlet
* @return a MarkupRequest containing the most appropriate information to base markup
generation for this request
*/
- private MarkupRequest createMarkupRequestFrom(MarkupType[] markupTypes, MarkupParams
params, Portlet portlet)
- throws UnsupportedMimeTypeFault, UnsupportedModeFault, UnsupportedWindowStateFault
+ private MarkupRequest createMarkupRequestFrom(List<MarkupType> markupTypes,
MarkupParams params, Portlet portlet)
+ throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState
{
- String[] desiredMIMETypes = params.getMimeTypes();
+ List<String> desiredMIMETypes = params.getMimeTypes();
MarkupType markupType = null;
// Get the MIME type to use
- for (int i = 0; markupType == null && i < desiredMIMETypes.length; i++)
+ for (String desiredMIMEType : desiredMIMETypes)
{
- String desiredMIMEType = desiredMIMETypes[i];
for (MarkupType type : markupTypes)
{
if (desiredMIMEType.equals(type.getMimeType()))
@@ -209,17 +212,17 @@
// no MIME type was found: error!
if (markupType == null)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MIME_TYPE,
+ throw WSRPExceptionFactory.<UnsupportedMimeType,
UnsupportedMimeTypeFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_MIME_TYPE,
"None of the specified MIME types are supported by portlet '" +
portlet.getContext().getId() + "'", null);
}
// use user-desired locales
- String[] locales = params.getLocales();
- String[] supportedLocales = markupType.getLocales();
+ List<String> locales = params.getLocales();
+ List<String> supportedLocales = markupType.getLocales();
if (supportedLocales != null)
{
// reset markup type locales
- markupType.setLocales(null);
+ markupType.getLocales().clear();
boolean found = false;
// find the best match
@@ -229,7 +232,7 @@
{
if (locale.equals(supportedLocale))
{
- markupType.setLocales(new String[]{locale});
+ markupType.getLocales().add(locale);
found = true;
break;
}
@@ -244,12 +247,12 @@
// if no best match was found, use whatever the user gave us
if (!found)
{
- markupType.setLocales(locales);
+ markupType.getLocales().addAll(locales);
}
}
else
{
- markupType.setLocales(locales);
+ markupType.getLocales().addAll(locales);
}
// get the mode
@@ -260,7 +263,7 @@
}
catch (IllegalArgumentException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MODE,
+ throw WSRPExceptionFactory.<UnsupportedMode,
UnsupportedModeFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_MODE,
"Unsupported mode '" + params.getMode() + "'",
e);
}
@@ -272,12 +275,12 @@
}
catch (IllegalArgumentException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_WINDOW_STATE,
+ throw WSRPExceptionFactory.<UnsupportedWindowState,
UnsupportedWindowStateFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_WINDOW_STATE,
"Unsupported window state '" + params.getMode() +
"'", e);
}
// get the character set
- String characterSet = getMatchingOrDefaultFrom(new String[0],
params.getMarkupCharacterSets(), WSRPConstants.DEFAULT_CHARACTER_SET);
+ String characterSet =
getMatchingOrDefaultFrom(Collections.<String>emptyList(),
params.getMarkupCharacterSets(), WSRPConstants.DEFAULT_CHARACTER_SET);
return new MarkupRequest(markupType, mode, windowState, characterSet, portlet);
}
@@ -292,10 +295,9 @@
* @return the desired value
* @throws IllegalArgumentException if the desired value is not found in the set of
possible values
*/
- private String getMatchingOrFailFrom(String[] possibleValues, String desired, String
valueType) throws IllegalArgumentException
+ private String getMatchingOrFailFrom(List<String> possibleValues, String
desired, String valueType) throws IllegalArgumentException
{
- List possibleList = Arrays.asList(possibleValues);
- if (possibleList.contains(desired))
+ if (possibleValues.contains(desired))
{
return desired;
}
@@ -312,15 +314,13 @@
* @return the first match in the set of possible values from the ordered set of
preferred values or the default
* value if no such value can be found
*/
- private String getMatchingOrDefaultFrom(String[] possibleValues, String[]
preferredValues, String defaultValue)
+ private String getMatchingOrDefaultFrom(List<String> possibleValues,
List<String> preferredValues, String defaultValue)
{
if (preferredValues != null && possibleValues != null)
{
- List possibleList = Arrays.asList(possibleValues);
-
for (String preferredValue : preferredValues)
{
- if (possibleList.contains(preferredValue))
+ if (possibleValues.contains(preferredValue))
{
return preferredValue;
}
@@ -330,16 +330,16 @@
return defaultValue;
}
- private void checkUserContext(org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
+ private void checkUserContext(org.oasis.wsrp.v1.UserContext wsrpUserContext) throws
MissingParameters
{
if (wsrpUserContext != null)
{
-
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(wsrpUserContext.getUserContextKey(),
"User Context Key", "UserContext");
+
WSRPExceptionFactory.throwMissingParametersIfValueIsMissing(wsrpUserContext.getUserContextKey(),
"User Context Key", "UserContext");
}
}
- private void checkForSessionIDs(RuntimeContext runtimeContext)
+ private void checkForSessionIDs(RuntimeContext runtimeContext) throws OperationFailed
{
if (runtimeContext.getSessionID() != null)
{
@@ -384,8 +384,8 @@
};
}
- private UserContext createUserContext(final org.jboss.portal.wsrp.core.UserContext
userContext,
- String preferredLocale, final String[]
supportedLocales)
+ private UserContext createUserContext(final org.oasis.wsrp.v1.UserContext
userContext,
+ String preferredLocale, final List<String>
supportedLocales)
{
// todo: investigate ways to cache this information?
// fix-me: should getInformations be put in the request attribute
PortletRequest.USER_INFO?
@@ -404,10 +404,10 @@
public Set<WindowState> getWindowStates()
{
- String[] validNewWindowStates = params.getValidNewWindowStates();
+ List<String> validNewWindowStates = params.getValidNewWindowStates();
if (validNewWindowStates != null)
{
- Set<WindowState> states = new
HashSet<WindowState>(validNewWindowStates.length);
+ Set<WindowState> states = new
HashSet<WindowState>(validNewWindowStates.size());
for (String state : validNewWindowStates)
{
states.add(WSRPUtils.getJSR168WindowStateFromWSRPName(state));
@@ -419,10 +419,10 @@
public Set<Mode> getModes()
{
- String[] validNewModes = params.getValidNewModes();
+ List<String> validNewModes = params.getValidNewModes();
if (validNewModes != null)
{
- Set<Mode> modes = new HashSet<Mode>(validNewModes.length);
+ Set<Mode> modes = new HashSet<Mode>(validNewModes.size());
for (String mode : validNewModes)
{
modes.add(WSRPUtils.getJSR168PortletModeFromWSRPName(mode));
@@ -439,7 +439,7 @@
};
}
- private MarkupInfo createStreamInfo(MarkupRequest markupRequest)
+ private MarkupInfo createStreamInfo(MarkupRequest markupRequest) throws
UnsupportedMimeType
{
MarkupInfo markupInfo;
try
@@ -448,7 +448,7 @@
}
catch (IllegalArgumentException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MIME_TYPE,
+ throw WSRPExceptionFactory.<UnsupportedMimeType,
UnsupportedMimeTypeFault>throwWSException(WSRPExceptionFactory.UNSUPPORTED_MIME_TYPE,
e.getLocalizedMessage(), e);
}
return markupInfo;
@@ -456,7 +456,7 @@
// fix-me: check that the correct semantics is used.
private SecurityContext createSecurityContext(final MarkupParams params, final
RuntimeContext runtimeContext,
- final
org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
+ final org.oasis.wsrp.v1.UserContext
wsrpUserContext)
{
return new SecurityContext()
{
@@ -486,7 +486,7 @@
public boolean isUserInRole(String roleName)
{
- return wsrpUserContext != null && Tools.isContainedIn(roleName,
wsrpUserContext.getUserCategories());
+ return wsrpUserContext != null &&
wsrpUserContext.getUserCategories().contains(roleName);
}
public boolean isAuthenticated()
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -36,25 +36,28 @@
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.CookieProtocol;
-import org.jboss.portal.wsrp.core.GetServiceDescription;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.MarkupType;
-import org.jboss.portal.wsrp.core.ModelDescription;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.ServiceDescription;
-import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+import org.oasis.wsrp.v1.CookieProtocol;
+import org.oasis.wsrp.v1.GetServiceDescription;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.MarkupType;
+import org.oasis.wsrp.v1.ModelDescription;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.OperationFailedFault;
+import org.oasis.wsrp.v1.PortletContext;
+import org.oasis.wsrp.v1.PortletDescription;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.ServiceDescription;
+import javax.xml.namespace.QName;
import java.rmi.RemoteException;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
-import java.util.Iterator;
+import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
@@ -64,10 +67,10 @@
* @version $Revision: 12017 $
* @since 2.4
*/
-class ServiceDescriptionHandler extends ServiceHandler implements
WSRP_v1_ServiceDescription_PortType
+class ServiceDescriptionHandler extends ServiceHandler implements
ServiceDescriptionInterface
{
// JBPORTAL-1220: force call to initCookie... Required so that BEA version < 9.2
will behave properly as a Consumer
- private final CookieProtocol BEA_8_CONSUMER_FIX = CookieProtocol.perUser;
+ private final CookieProtocol BEA_8_CONSUMER_FIX = CookieProtocol.PER_USER;
ServiceDescriptionHandler(WSRPProducerImpl producer)
{
@@ -75,17 +78,16 @@
}
public ServiceDescription getServiceDescription(GetServiceDescription gs)
- throws InvalidRegistrationFault, OperationFailedFault, RemoteException
+ throws InvalidRegistration, OperationFailed, RemoteException
{
- WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(gs,
"GetServiceDescription");
+ WSRPExceptionFactory.throwOperationFailedIfValueIsMissing(gs,
"GetServiceDescription");
RegistrationContext registrationContext = gs.getRegistrationContext();
ProducerRegistrationRequirements requirements =
producer.getProducerRegistrationRequirements();
- PortletDescription[] offeredPortlets;
ServiceDescription serviceDescription =
WSRPTypeFactory.createServiceDescription(requirements.isRegistrationRequired());
serviceDescription.setRequiresInitCookie(BEA_8_CONSUMER_FIX);
- serviceDescription.setLocales(producer.getSupportedLocales());
+ serviceDescription.getLocales().addAll(producer.getSupportedLocales());
// if a RegistrationContext is provided, we need to validate the registration
information
Registration registration = null;
@@ -95,8 +97,8 @@
}
// get the portlet descriptions based on registration information
- offeredPortlets = getPortletDescriptions(gs.getDesiredLocales(), registration);
- serviceDescription.setOfferedPortlets(offeredPortlets);
+ List<PortletDescription> offeredPortlets =
getPortletDescriptions(gs.getDesiredLocales(), registration);
+ serviceDescription.getOfferedPortlets().addAll(offeredPortlets);
// if we don't have registration information but a registration is required,
send registration props information
if (registration == null && requirements.isRegistrationRequired())
@@ -104,7 +106,7 @@
log.debug("Unregistered consumer while registration is required. Sending
registration information.");
// do not create a ModelDescription if there is no registration properties
- Map info = requirements.getRegistrationProperties();
+ Map<QName, RegistrationPropertyDescription> info =
requirements.getRegistrationProperties();
ModelDescription description = null;
if (info != null && !info.isEmpty())
{
@@ -114,12 +116,11 @@
serviceDescription.setRegistrationPropertyDescription(description);
}
- serviceDescription.setOfferedPortlets(offeredPortlets);
return serviceDescription;
}
- public Set<PortletDescription> getOfferedPortletDescriptions(String[]
desiredLocales)
+ private Set<PortletDescription> getOfferedPortletDescriptions(List<String>
desiredLocales)
{
Set<Portlet> portlets;
try
@@ -143,7 +144,7 @@
return offeredPortletDescriptions;
}
- public PortletDescription getPortletDescription(PortletContext portletContext,
String[] desiredLocales, Registration registration) throws InvalidHandleFault,
OperationFailedFault
+ public PortletDescription getPortletDescription(PortletContext portletContext,
List<String> desiredLocales, Registration registration) throws InvalidHandle,
OperationFailed
{
ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "portlet
context");
Portlet portlet;
@@ -154,8 +155,7 @@
}
catch (PortletInvokerException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
- "Could not retrieve portlet '" + portletContext +
"'", e);
+ throw WSRPExceptionFactory.<OperationFailed,
OperationFailedFault>throwWSException(WSRPExceptionFactory.OPERATION_FAILED,
"Could not retrieve portlet '" + portletContext + "'", e);
}
}
@@ -166,7 +166,7 @@
* registration information) or <code>null</code> if no
registration is provided and the producer requires
* registration to access the full service description.
*/
- private PortletDescription[] getPortletDescriptions(String[] desiredLocales,
Registration registration)
+ private List<PortletDescription> getPortletDescriptions(List<String>
desiredLocales, Registration registration)
{
ProducerRegistrationRequirements registrationReq =
producer.getProducerRegistrationRequirements();
if (registration == null && registrationReq.isRegistrationRequired()
&& registrationReq.isRegistrationRequiredForFullDescription())
@@ -175,7 +175,7 @@
}
Set<PortletDescription> descriptions =
getOfferedPortletDescriptions(desiredLocales);
- return descriptions.toArray(new PortletDescription[descriptions.size()]);
+ return new ArrayList<PortletDescription>(descriptions);
}
/**
@@ -186,7 +186,7 @@
* @param desiredLocales the user desired locales (ordered according to user
preferences) to use for the description
* @return a PortletDescription describing the specified portlet
*/
- PortletDescription getPortletDescription(Portlet portlet, String[] desiredLocales)
+ PortletDescription getPortletDescription(Portlet portlet, List<String>
desiredLocales)
{
String id = portlet.getContext().getId();
PortletInfo info = portlet.getInfo();
@@ -194,17 +194,13 @@
CapabilitiesInfo capInfo = info.getCapabilities();
Collection<MediaType> allMediaTypes = capInfo.getMediaTypes();
- MarkupType[] markupTypes = new MarkupType[allMediaTypes.size()];
- Iterator<MediaType> mediaTypes = allMediaTypes.iterator();
- for (int i = 0; mediaTypes.hasNext(); i++)
+ List<MarkupType> markupTypes = new
ArrayList<MarkupType>(allMediaTypes.size());
+ for (MediaType mediaType : allMediaTypes)
{
- MediaType mimeType = mediaTypes.next();
- markupTypes[i] = new MarkupType(
- mimeType.getValue(),
- getModeNamesFrom(capInfo.getModes(mimeType)),
- getWindowStateNamesFrom(capInfo.getWindowStates(mimeType)),
- getLocaleNamesFrom(capInfo.getLocales(mimeType)),
- null);
+ MarkupType markupType = WSRPTypeFactory.createMarkupType(mediaType.getValue(),
+ getModeNamesFrom(capInfo.getModes(mediaType)),
getWindowStateNamesFrom(capInfo.getWindowStates(mediaType)),
+ getLocaleNamesFrom(capInfo.getLocales(mediaType)));
+ markupTypes.add(markupType);
}
//todo generate a valid and better portlet handle
@@ -227,8 +223,8 @@
desc.setDisplayName(Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.DISPLAY_NAME),
desiredLocales));
// keywords
- // metaInfo contains comma-separated keywords: we need to extract them into an
array
- org.jboss.portal.wsrp.core.LocalizedString concatenatedKeywords =
+ // metaInfo contains comma-separated keywords: we need to extract them into a list
+ org.oasis.wsrp.v1.LocalizedString concatenatedKeywords =
Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.KEYWORDS),
desiredLocales);
if (concatenatedKeywords != null)
{
@@ -237,13 +233,11 @@
{
String lang = concatenatedKeywords.getLang();
String[] keywordArray = commaSeparatedKeywords.split(",");
- org.jboss.portal.wsrp.core.LocalizedString[] keywords =
- new org.jboss.portal.wsrp.core.LocalizedString[keywordArray.length];
- for (int i = 0; i < keywordArray.length; i++)
+ for (String keyword : keywordArray)
{
- keywords[i] = WSRPTypeFactory.createLocalizedString(lang, null,
keywordArray[i].trim()); // fix-me: resource name
+ // todo: fix resource name
+ desc.getKeywords().add(WSRPTypeFactory.createLocalizedString(lang,
concatenatedKeywords.getResourceName(), keyword.trim()));
}
- desc.setKeywords(keywords);
}
}
@@ -262,40 +256,37 @@
return desc;
}
- private String[] getLocaleNamesFrom(Collection<Locale> locales)
+ private List<String> getLocaleNamesFrom(Collection<Locale> locales)
{
if (locales == null || locales.isEmpty())
{
return null;
}
- String[] localeNames = new String[locales.size()];
- int i = 0;
+ List<String> localeNames = new ArrayList<String>(locales.size());
for (Locale locale : locales)
{
- localeNames[i++] = WSRPUtils.toString(locale);
+ localeNames.add(WSRPUtils.toString(locale));
}
return localeNames;
}
- private String[] getWindowStateNamesFrom(Collection<WindowStateInfo>
windowStates)
+ private List<String> getWindowStateNamesFrom(Collection<WindowStateInfo>
windowStates)
{
- String[] result = new String[windowStates.size()];
- int i = 0;
+ List<String> result = new ArrayList<String>(windowStates.size());
for (WindowStateInfo windowStateInfo : windowStates)
{
- result[i++] =
WSRPUtils.convertJSR168WindowStateNameToWSRPName(windowStateInfo.getWindowStateName());
+
result.add(WSRPUtils.convertJSR168WindowStateNameToWSRPName(windowStateInfo.getWindowStateName()));
}
return result;
}
- private String[] getModeNamesFrom(Collection<ModeInfo> modes)
+ private List<String> getModeNamesFrom(Collection<ModeInfo> modes)
{
- String[] result = new String[modes.size()];
- int i = 0;
+ List<String> result = new ArrayList<String>(modes.size());
for (ModeInfo modeInfo : modes)
{
- result[i++] =
WSRPUtils.convertJSR168PortletModeNameToWSRPName(modeInfo.getModeName());
+
result.add(WSRPUtils.convertJSR168PortletModeNameToWSRPName(modeInfo.getModeName()));
}
return result;
}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionInterface.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionInterface.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionInterface.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -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.
+ */
+
+package org.jboss.portal.wsrp.producer;
+
+import org.oasis.wsrp.v1.GetServiceDescription;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.ServiceDescription;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public interface ServiceDescriptionInterface
+{
+ ServiceDescription getServiceDescription(GetServiceDescription gs) throws
InvalidRegistration, OperationFailed, RemoteException;
+}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/Utils.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/Utils.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/Utils.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -26,11 +26,15 @@
import org.jboss.portal.common.util.ParameterValidation;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.WSRPUtils;
-import org.jboss.portal.wsrp.core.ModelDescription;
-import org.jboss.portal.wsrp.core.PropertyDescription;
import org.jboss.portal.wsrp.registration.LocalizedString;
import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+import org.oasis.wsrp.v1.ModelDescription;
+import org.oasis.wsrp.v1.PropertyDescription;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -45,7 +49,7 @@
* @return
* @since 2.6
*/
- public static ModelDescription convertRegistrationPropertiesToModelDescription(Map
registrationInfo)
+ public static ModelDescription
convertRegistrationPropertiesToModelDescription(Map<QName,
RegistrationPropertyDescription> registrationInfo)
{
ParameterValidation.throwIllegalArgExceptionIfNull(registrationInfo,
"registration info");
if (registrationInfo.isEmpty())
@@ -53,13 +57,11 @@
return WSRPTypeFactory.createModelDescription(null);
}
- int size = registrationInfo.size();
- PropertyDescription[] propertyDescriptions = new PropertyDescription[size];
- int i = 0;
- for (Object o : registrationInfo.values())
+
+ List<PropertyDescription> propertyDescriptions = new
ArrayList<PropertyDescription>(registrationInfo.size());
+ for (RegistrationPropertyDescription property : registrationInfo.values())
{
- RegistrationPropertyDescription property = (RegistrationPropertyDescription)o;
- propertyDescriptions[i++] = convertToPropertyDescription(property);
+ propertyDescriptions.add(convertToPropertyDescription(property));
}
return WSRPTypeFactory.createModelDescription(propertyDescriptions);
@@ -106,7 +108,7 @@
return desc;
}
- private static LocalizedString
getLocalizedStringOrNull(org.jboss.portal.wsrp.core.LocalizedString wsrpLocalizedString)
+ private static LocalizedString
getLocalizedStringOrNull(org.oasis.wsrp.v1.LocalizedString wsrpLocalizedString)
{
if (wsrpLocalizedString == null)
{
@@ -123,7 +125,7 @@
* @return
* @since 2.6
*/
- public static LocalizedString
convertToLocalizedString(org.jboss.portal.wsrp.core.LocalizedString wsrpLocalizedString)
+ public static LocalizedString
convertToLocalizedString(org.oasis.wsrp.v1.LocalizedString wsrpLocalizedString)
{
ParameterValidation.throwIllegalArgExceptionIfNull(wsrpLocalizedString, "WSRP
LocalizedString");
String lang = wsrpLocalizedString.getLang();
@@ -147,7 +149,7 @@
* @return
* @since 2.6
*/
- public static org.jboss.portal.wsrp.core.LocalizedString
convertToWSRPLocalizedString(LocalizedString regLocalizedString)
+ public static org.oasis.wsrp.v1.LocalizedString
convertToWSRPLocalizedString(LocalizedString regLocalizedString)
{
ParameterValidation.throwIllegalArgExceptionIfNull(regLocalizedString,
"LocalizedString");
return
WSRPTypeFactory.createLocalizedString(WSRPUtils.toString(regLocalizedString.getLocale()),
@@ -165,20 +167,22 @@
* <code>null</code> if no such value can be found.
* @since 2.6
*/
- public static org.jboss.portal.wsrp.core.LocalizedString
convertToWSRPLocalizedString(org.jboss.portal.common.i18n.LocalizedString
localizedString,
-
String[] desiredLocales)
+ public static org.oasis.wsrp.v1.LocalizedString
convertToWSRPLocalizedString(org.jboss.portal.common.i18n.LocalizedString
localizedString,
+
List<String> desiredLocales)
{
if (localizedString == null)
{
return null;
}
- if (desiredLocales == null || desiredLocales.length == 0)
+ if (desiredLocales == null || desiredLocales.isEmpty())
{
- desiredLocales = new String[]{WSRPUtils.toString(Locale.getDefault())};
+ desiredLocales =
Collections.singletonList(WSRPUtils.toString(Locale.getDefault()));
}
- org.jboss.portal.common.i18n.LocalizedString.Value bestMapping =
localizedString.getPreferredOrBestLocalizedMappingFor(desiredLocales);
+ // todo: rewrite getPreferredOrBestLocalizedMappingFor to take a List as argument
+ org.jboss.portal.common.i18n.LocalizedString.Value bestMapping =
+ localizedString.getPreferredOrBestLocalizedMappingFor(desiredLocales.toArray(new
String[desiredLocales.size()]));
if (bestMapping != null)
{
Locale locale = bestMapping.getLocale();
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -31,59 +31,60 @@
import org.jboss.portal.registration.Registration;
import org.jboss.portal.registration.RegistrationLocal;
import org.jboss.portal.registration.RegistrationManager;
-import org.jboss.portal.wsrp.ResponseDebugFactory;
import org.jboss.portal.wsrp.WSRPConstants;
import org.jboss.portal.wsrp.WSRPExceptionFactory;
import org.jboss.portal.wsrp.WSRPProducer;
-import org.jboss.portal.wsrp.core.AccessDeniedFault;
-import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
-import org.jboss.portal.wsrp.core.ClonePortlet;
-import org.jboss.portal.wsrp.core.CookieProtocol;
-import org.jboss.portal.wsrp.core.DestroyPortlets;
-import org.jboss.portal.wsrp.core.DestroyPortletsResponse;
-import org.jboss.portal.wsrp.core.GetMarkup;
-import org.jboss.portal.wsrp.core.GetPortletDescription;
-import org.jboss.portal.wsrp.core.GetPortletProperties;
-import org.jboss.portal.wsrp.core.GetPortletPropertyDescription;
-import org.jboss.portal.wsrp.core.GetServiceDescription;
-import org.jboss.portal.wsrp.core.InconsistentParametersFault;
-import org.jboss.portal.wsrp.core.InitCookie;
-import org.jboss.portal.wsrp.core.InvalidCookieFault;
-import org.jboss.portal.wsrp.core.InvalidHandleFault;
-import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
-import org.jboss.portal.wsrp.core.InvalidSessionFault;
-import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
-import org.jboss.portal.wsrp.core.MarkupResponse;
-import org.jboss.portal.wsrp.core.MissingParametersFault;
-import org.jboss.portal.wsrp.core.ModifyRegistration;
-import org.jboss.portal.wsrp.core.OperationFailedFault;
-import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
-import org.jboss.portal.wsrp.core.PortletContext;
-import org.jboss.portal.wsrp.core.PortletDescription;
-import org.jboss.portal.wsrp.core.PortletDescriptionResponse;
-import org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse;
-import org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault;
-import org.jboss.portal.wsrp.core.PropertyList;
-import org.jboss.portal.wsrp.core.RegistrationContext;
-import org.jboss.portal.wsrp.core.RegistrationData;
-import org.jboss.portal.wsrp.core.RegistrationState;
-import org.jboss.portal.wsrp.core.ReleaseSessions;
-import org.jboss.portal.wsrp.core.ReturnAny;
-import org.jboss.portal.wsrp.core.ServiceDescription;
-import org.jboss.portal.wsrp.core.SetPortletProperties;
-import org.jboss.portal.wsrp.core.UnsupportedLocaleFault;
-import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
-import org.jboss.portal.wsrp.core.UnsupportedModeFault;
-import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
import org.jboss.portal.wsrp.producer.config.ProducerConfiguration;
import org.jboss.portal.wsrp.producer.config.ProducerConfigurationService;
import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.oasis.wsrp.v1.AccessDenied;
+import org.oasis.wsrp.v1.BlockingInteractionResponse;
+import org.oasis.wsrp.v1.ClonePortlet;
+import org.oasis.wsrp.v1.CookieProtocol;
+import org.oasis.wsrp.v1.DestroyPortlets;
+import org.oasis.wsrp.v1.DestroyPortletsResponse;
+import org.oasis.wsrp.v1.GetMarkup;
+import org.oasis.wsrp.v1.GetPortletDescription;
+import org.oasis.wsrp.v1.GetPortletProperties;
+import org.oasis.wsrp.v1.GetPortletPropertyDescription;
+import org.oasis.wsrp.v1.GetServiceDescription;
+import org.oasis.wsrp.v1.InconsistentParameters;
+import org.oasis.wsrp.v1.InitCookie;
+import org.oasis.wsrp.v1.InvalidCookie;
+import org.oasis.wsrp.v1.InvalidHandle;
+import org.oasis.wsrp.v1.InvalidHandleFault;
+import org.oasis.wsrp.v1.InvalidRegistration;
+import org.oasis.wsrp.v1.InvalidSession;
+import org.oasis.wsrp.v1.InvalidUserCategory;
+import org.oasis.wsrp.v1.MarkupResponse;
+import org.oasis.wsrp.v1.MissingParameters;
+import org.oasis.wsrp.v1.ModifyRegistration;
+import org.oasis.wsrp.v1.OperationFailed;
+import org.oasis.wsrp.v1.PerformBlockingInteraction;
+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.PortletStateChangeRequired;
+import org.oasis.wsrp.v1.PropertyList;
+import org.oasis.wsrp.v1.RegistrationContext;
+import org.oasis.wsrp.v1.RegistrationData;
+import org.oasis.wsrp.v1.RegistrationState;
+import org.oasis.wsrp.v1.ReleaseSessions;
+import org.oasis.wsrp.v1.ReturnAny;
+import org.oasis.wsrp.v1.ServiceDescription;
+import org.oasis.wsrp.v1.SetPortletProperties;
+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.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.rmi.RemoteException;
import java.util.Collections;
import java.util.HashSet;
+import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -92,7 +93,7 @@
* @version $Revision: 12286 $
* @since 2.4
*/
-public class WSRPProducerImpl implements WSRPProducer
+public class WSRPProducerImpl implements WSRPProducer, MarkupInterface,
ServiceDescriptionInterface, RegistrationInterface, PortletManagementInterface
{
/** logger used for logging ;) */
private static final Logger log = LoggerFactory.getLogger(WSRPProducerImpl.class);
@@ -117,10 +118,10 @@
private int sessionExpirationTime = DEFAULT_SESSION_EXPIRATION_TIME;
- private CookieProtocol requiresInitCookie = CookieProtocol.none;
+ private CookieProtocol requiresInitCookie = CookieProtocol.NONE;
/** Supported locales. */
- private String[] supportedLocales = WSRPConstants.getDefaultLocales();
+ private List<String> supportedLocales = WSRPConstants.getDefaultLocales();
/** configuration service */
private ProducerConfigurationService configurationService;
@@ -141,37 +142,18 @@
// ServiceDescription implementation
********************************************************************************
public ServiceDescription getServiceDescription(GetServiceDescription gs)
- throws InvalidRegistrationFault, OperationFailedFault, RemoteException
+ throws InvalidRegistration, OperationFailed, RemoteException
{
log.debug("getServiceDescription invoked");
ServiceDescription sd = serviceDescriptionHandler.getServiceDescription(gs);
-
- //to avoid unnesessary processing
- if (log.isDebugEnabled())
- {
- //catch all exceptions as we don't wan't to blow producer flow
- try
- {
- log.debug("getServiceDescription() response data: ");
- log.debug(ResponseDebugFactory.extractServiceDescription(sd).toString());
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
log.debug("end getServiceDescription");
return sd;
}
// MarkupService implementation
*************************************************************************************
- public MarkupResponse getMarkup(GetMarkup getMarkup)
- throws UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault,
AccessDeniedFault,
- InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault,
- OperationFailedFault, MissingParametersFault, InvalidUserCategoryFault,
InvalidRegistrationFault,
- UnsupportedMimeTypeFault, RemoteException
+
+ public MarkupResponse getMarkup(GetMarkup getMarkup) throws UnsupportedWindowState,
InvalidCookie, InvalidSession, AccessDenied, InconsistentParameters, InvalidHandle,
UnsupportedLocale, UnsupportedMode, OperationFailed, MissingParameters,
InvalidUserCategory, InvalidRegistration, UnsupportedMimeType, RemoteException
{
log.debug("getMarkup invoked");
MarkupResponse response = markupHandler.getMarkup(getMarkup);
@@ -179,11 +161,7 @@
return response;
}
- public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction)
- throws InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault,
OperationFailedFault,
- UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault,
PortletStateChangeRequiredFault,
- InvalidRegistrationFault, MissingParametersFault, InvalidUserCategoryFault,
InconsistentParametersFault,
- InvalidHandleFault, InvalidCookieFault, RemoteException
+ public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction) throws
InvalidSession, UnsupportedMode, UnsupportedMimeType, OperationFailed,
UnsupportedWindowState, UnsupportedLocale, AccessDenied, PortletStateChangeRequired,
InvalidRegistration, MissingParameters, InvalidUserCategory, InconsistentParameters,
InvalidHandle, InvalidCookie, RemoteException
{
log.debug("performBlockingInteraction invoked");
BlockingInteractionResponse interactionResponse =
markupHandler.performBlockingInteraction(performBlockingInteraction);
@@ -191,8 +169,7 @@
return interactionResponse;
}
- public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
- throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault,
AccessDeniedFault, RemoteException
+ public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws
InvalidRegistration, OperationFailed, MissingParameters, AccessDenied, RemoteException
{
log.debug("releaseSessions invoked");
ReturnAny returnAny = markupHandler.releaseSessions(releaseSessions);
@@ -200,8 +177,7 @@
return returnAny;
}
- public ReturnAny initCookie(InitCookie initCookie)
- throws AccessDeniedFault, OperationFailedFault, InvalidRegistrationFault,
RemoteException
+ public ReturnAny initCookie(InitCookie initCookie) throws AccessDenied,
OperationFailed, InvalidRegistration, RemoteException
{
log.debug("initCookie invoked");
ReturnAny returnAny = markupHandler.initCookie(initCookie);
@@ -211,7 +187,7 @@
// Registration implementation
**************************************************************************************
- public RegistrationContext register(RegistrationData register) throws
MissingParametersFault, OperationFailedFault,
+ public RegistrationContext register(RegistrationData register) throws
MissingParameters, OperationFailed,
RemoteException
{
log.debug("register invoked");
@@ -220,7 +196,7 @@
return registrationContext;
}
- public ReturnAny deregister(RegistrationContext deregister) throws
OperationFailedFault, InvalidRegistrationFault,
+ public ReturnAny deregister(RegistrationContext deregister) throws OperationFailed,
InvalidRegistration,
RemoteException
{
log.debug("deregister invoked");
@@ -229,8 +205,8 @@
return returnAny;
}
- public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParametersFault,
- OperationFailedFault, InvalidRegistrationFault, RemoteException
+ public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParameters,
+ OperationFailed, InvalidRegistration, RemoteException
{
log.debug("modifyRegistration invoked");
RegistrationState registrationState =
registrationHandler.modifyRegistration(modifyRegistration);
@@ -238,6 +214,66 @@
return registrationState;
}
+// PortletManagement implementation
*********************************************************************************
+
+ public PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription)
+ throws AccessDenied, InvalidHandle, InvalidUserCategory, InconsistentParameters,
MissingParameters,
+ InvalidRegistration, OperationFailed, RemoteException
+ {
+ log.debug("getPortletDescription invoked");
+ PortletDescriptionResponse description =
portletManagementHandler.getPortletDescription(getPortletDescription);
+ log.debug("end getPortletDescription");
+ return description;
+ }
+
+ public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategory, AccessDenied,
+ OperationFailed, InvalidHandle, InvalidRegistration, InconsistentParameters,
MissingParameters, RemoteException
+ {
+ log.debug("clonePortlet invoked");
+ PortletContext portletContext =
portletManagementHandler.clonePortlet(clonePortlet);
+ log.debug("end clonePortlet");
+ return portletContext;
+ }
+
+ public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParameters,
+ MissingParameters, InvalidRegistration, OperationFailed, RemoteException
+ {
+ log.debug("destroyPortlets invoked");
+ DestroyPortletsResponse destroyPortletsResponse =
portletManagementHandler.destroyPortlets(destroyPortlets);
+ log.debug("end destroyPortlets");
+ return destroyPortletsResponse;
+ }
+
+ public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailed,
+ InvalidHandle, MissingParameters, InconsistentParameters, InvalidUserCategory,
AccessDenied, InvalidRegistration,
+ RemoteException
+ {
+ log.debug("setPortletProperties invoked");
+ PortletContext portletContext =
portletManagementHandler.setPortletProperties(setPortletProperties);
+ log.debug("end setPortletProperties");
+ return portletContext;
+ }
+
+ public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandle,
+ MissingParameters, InvalidRegistration, AccessDenied, OperationFailed,
InconsistentParameters, InvalidUserCategory,
+ RemoteException
+ {
+ log.debug("getPortletProperties invoked");
+ PropertyList list =
portletManagementHandler.getPortletProperties(getPortletProperties);
+ log.debug("end getPortletProperties");
+ return list;
+ }
+
+ public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription
getPortletPropertyDescription)
+ throws MissingParameters, InconsistentParameters, InvalidUserCategory,
InvalidRegistration, AccessDenied,
+ InvalidHandle, OperationFailed, RemoteException
+ {
+ log.debug("getPortletPropertyDescription invoked");
+ PortletPropertyDescriptionResponse descriptionResponse =
portletManagementHandler.getPortletPropertyDescription(getPortletPropertyDescription);
+ log.debug("end getPortletPropertyDescription");
+ return descriptionResponse;
+ }
+
public ProducerConfiguration getProducerConfiguration()
{
return configurationService.getConfiguration();
@@ -290,67 +326,6 @@
getProducerConfiguration().removeChangeListener(this);
}
- // PortletManagement implementation
*********************************************************************************
-
- public PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription)
- throws AccessDeniedFault, InvalidHandleFault, InvalidUserCategoryFault,
InconsistentParametersFault,
- MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
- {
- log.debug("getPortletDescription invoked");
- PortletDescriptionResponse description =
portletManagementHandler.getPortletDescription(getPortletDescription);
- log.debug("end getPortletDescription");
- return description;
- }
-
- public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategoryFault, AccessDeniedFault,
- OperationFailedFault, InvalidHandleFault, InvalidRegistrationFault,
InconsistentParametersFault,
- MissingParametersFault, RemoteException
- {
- log.debug("clonePortlet invoked");
- PortletContext portletContext =
portletManagementHandler.clonePortlet(clonePortlet);
- log.debug("end clonePortlet");
- return portletContext;
- }
-
- public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParametersFault,
- MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
- {
- log.debug("destroyPortlets invoked");
- DestroyPortletsResponse destroyPortletsResponse =
portletManagementHandler.destroyPortlets(destroyPortlets);
- log.debug("end destroyPortlets");
- return destroyPortletsResponse;
- }
-
- public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailedFault,
- InvalidHandleFault, MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault,
- AccessDeniedFault, InvalidRegistrationFault, RemoteException
- {
- log.debug("setPortletProperties invoked");
- PortletContext portletContext =
portletManagementHandler.setPortletProperties(setPortletProperties);
- log.debug("end setPortletProperties");
- return portletContext;
- }
-
- public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandleFault,
- MissingParametersFault, InvalidRegistrationFault, AccessDeniedFault,
OperationFailedFault,
- InconsistentParametersFault, InvalidUserCategoryFault, RemoteException
- {
- log.debug("getPortletProperties invoked");
- PropertyList list =
portletManagementHandler.getPortletProperties(getPortletProperties);
- log.debug("end getPortletProperties");
- return list;
- }
-
- public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription
getPortletPropertyDescription)
- throws MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault, InvalidRegistrationFault,
- AccessDeniedFault, InvalidHandleFault, OperationFailedFault, RemoteException
- {
- log.debug("getPortletPropertyDescription invoked");
- PortletPropertyDescriptionResponse descriptionResponse =
portletManagementHandler.getPortletPropertyDescription(getPortletPropertyDescription);
- log.debug("end getPortletPropertyDescription");
- return descriptionResponse;
- }
-
// Producer implementation
******************************************************************************************
public CookieProtocol getRequiresInitCookie()
@@ -384,7 +359,7 @@
this.invoker = invoker;
}
- Portlet getPortletWith(org.jboss.portal.portlet.api.PortletContext portletContext,
Registration registration) throws InvalidHandleFault, PortletInvokerException
+ Portlet getPortletWith(org.jboss.portal.portlet.api.PortletContext portletContext,
Registration registration) throws InvalidHandle, PortletInvokerException
{
Portlet portlet;
try
@@ -394,7 +369,7 @@
}
catch (NoSuchPortletException e)
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Couldn't find portlet with handle '" +
portletContext.getId() + "'", null);
}
finally
@@ -404,7 +379,7 @@
if (!isRemotable(portlet))
{
- throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ throw WSRPExceptionFactory.<InvalidHandle,
InvalidHandleFault>throwWSException(WSRPExceptionFactory.INVALID_HANDLE,
"Portlet '" + portletContext.getId() + "' is not
remotely available.", null);
}
@@ -433,24 +408,17 @@
return remotablePortlets;
}
- public PortletDescription getPortletDescription(PortletContext portletContext,
String[] locales, Registration registration) throws InvalidHandleFault,
OperationFailedFault
+ public PortletDescription getPortletDescription(PortletContext portletContext,
List<String> locales, Registration registration) throws InvalidHandle,
OperationFailed
{
return serviceDescriptionHandler.getPortletDescription(portletContext, locales,
registration);
}
- public PortletDescription getPortletDescription(Portlet portlet, String[] locales)
+ public PortletDescription getPortletDescription(Portlet portlet, List<String>
locales)
{
return serviceDescriptionHandler.getPortletDescription(portlet, locales);
}
- /**
- * @param registrationContext
- * @return
- * @throws InvalidRegistrationFault
- * @throws OperationFailedFault
- * @since 2.6.2
- */
- Registration getRegistrationOrFailIfInvalid(RegistrationContext registrationContext)
throws InvalidRegistrationFault, OperationFailedFault
+ Registration getRegistrationOrFailIfInvalid(RegistrationContext registrationContext)
throws InvalidRegistration, OperationFailed
{
Registration registration =
registrationHandler.getRegistrationFrom(registrationContext);
registrationHandler.isRegistrationValid(registration, true);
@@ -494,7 +462,7 @@
return false;*/
}
- public String[] getSupportedLocales()
+ public List<String> getSupportedLocales()
{
return supportedLocales; // todo: avoid hardcoding this at some point...
}
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -26,9 +26,9 @@
import org.apache.commons.fileupload.FileUpload;
import org.jboss.portal.common.util.ParameterMap;
import org.jboss.portal.portlet.api.spi.RequestContext;
-import org.jboss.portal.wsrp.core.InteractionParams;
-import org.jboss.portal.wsrp.core.NamedString;
-import org.jboss.portal.wsrp.core.UploadContext;
+import org.oasis.wsrp.v1.InteractionParams;
+import org.oasis.wsrp.v1.NamedString;
+import org.oasis.wsrp.v1.UploadContext;
import javax.mail.MessagingException;
import javax.mail.internet.InternetHeaders;
@@ -41,6 +41,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
/**
@@ -83,24 +84,22 @@
private ParameterMap formParameters;
private String contentType;
- protected WSRPSimpleRequestContext(String characterEncoding, String contentType,
NamedString[] formParams)
+ protected WSRPSimpleRequestContext(String characterEncoding, String contentType,
List<NamedString> formParams)
{
super(characterEncoding);
this.contentType = contentType;
- if (formParams != null && formParams.length > 0)
+ if (formParams != null && !formParams.isEmpty())
{
- int length = formParams.length;
- Map params = new HashMap(length);
- for (int i = 0; i < length; i++)
+ Map<String, String[]> params = new HashMap<String,
String[]>(formParams.size());
+ for (NamedString formParam : formParams)
{
- NamedString formParam = formParams[i];
String paramName = formParam.getName();
String paramValue = formParam.getValue();
if (params.containsKey(paramName))
{
// handle multi-valued parameters...
- String[] oldValues = (String[])params.get(paramName);
+ String[] oldValues = params.get(paramName);
int valuesLength = oldValues.length;
String[] newValues = new String[valuesLength + 1];
System.arraycopy(oldValues, 0, newValues, 0, valuesLength);
@@ -111,8 +110,8 @@
{
params.put(paramName, new String[]{paramValue});
}
+ formParameters = new ParameterMap(params);
}
- formParameters = new ParameterMap(params);
}
else
{
@@ -139,20 +138,20 @@
private boolean usingReader;
private String contentType;
- protected WSRPMultiRequestContext(String characterEncoding, NamedString[]
formParams, UploadContext[] uploadContexts) throws IOException, MessagingException
+ protected WSRPMultiRequestContext(String characterEncoding, List<NamedString>
formParams, List<UploadContext> uploadContexts) throws IOException,
MessagingException
{
super(characterEncoding);
MimeMultipart parts = new MimeMultipart();
- if (uploadContexts != null && uploadContexts.length > 0)
+ if (uploadContexts != null && !uploadContexts.isEmpty())
{
for (UploadContext uploadContext : uploadContexts)
{
InternetHeaders headers = new InternetHeaders();
headers.addHeader(FileUpload.CONTENT_TYPE, uploadContext.getMimeType());
- NamedString[] attributes = uploadContext.getMimeAttributes();
- if (attributes != null && attributes.length > 0)
+ List<NamedString> attributes = uploadContext.getMimeAttributes();
+ if (attributes != null && !attributes.isEmpty())
{
for (NamedString attribute : attributes)
{
@@ -232,11 +231,11 @@
public static WSRPRequestContext createRequestContext(MarkupRequest markupRequest,
InteractionParams interactionParams)
{
- NamedString[] formParams = interactionParams.getFormParameters();
- UploadContext[] uploadContexts = interactionParams.getUploadContexts();
+ List<NamedString> formParams = interactionParams.getFormParameters();
+ List<UploadContext> uploadContexts = interactionParams.getUploadContexts();
- if (uploadContexts != null && uploadContexts.length > 0)
+ if (uploadContexts != null && !uploadContexts.isEmpty())
{
try
{
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerRegistrationRequirements.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerRegistrationRequirements.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerRegistrationRequirements.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -50,7 +50,7 @@
void setRegistrationRequiredForFullDescription(boolean
fullServiceDescriptionRequiresRegistration);
- Map getRegistrationProperties();
+ Map<QName, RegistrationPropertyDescription> getRegistrationProperties();
void addRegistrationProperty(RegistrationPropertyDescription propertyDescription);
Modified:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2009-08-05
16:45:20 UTC (rev 13680)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -101,7 +101,7 @@
this.fullServiceDescriptionRequiresRegistration =
fullServiceDescriptionRequiresRegistration;
}
- public Map getRegistrationProperties()
+ public Map<QName, RegistrationPropertyDescription> getRegistrationProperties()
{
return Collections.unmodifiableMap(registrationProperties);
}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/wsrp1-ws/pom.xml 2009-08-05 17:58:32 UTC (rev 13681)
@@ -0,0 +1,59 @@
+<!--
+ ~ 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/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>wsrp1-ws</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal WSRP Generated JAX-WS Classes</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.ws</groupId>
+ <artifactId>jaxws-api</artifactId>
+ <version>2.1</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>wsrp1-ws</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDenied.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDenied.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDenied.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "AccessDenied", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class AccessDenied extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.AccessDeniedFault accessDenied;
+
+ public AccessDenied()
+ {
+ super();
+ }
+
+ public AccessDenied(String message)
+ {
+ super(message);
+ }
+
+ public AccessDenied(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public AccessDenied(String message, org.oasis.wsrp.v1.AccessDeniedFault accessDenied)
+ {
+ super(message);
+ this.accessDenied = accessDenied;
+ }
+
+ public AccessDenied(String message, org.oasis.wsrp.v1.AccessDeniedFault accessDenied,
Throwable cause)
+ {
+ super(message, cause);
+ this.accessDenied = accessDenied;
+ }
+
+ public org.oasis.wsrp.v1.AccessDeniedFault getFaultInfo()
+ {
+ return this.accessDenied;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDeniedFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDeniedFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/AccessDeniedFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for AccessDeniedFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="AccessDeniedFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AccessDeniedFault")
+public class AccessDeniedFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/BlockingInteractionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/BlockingInteractionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/BlockingInteractionResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,133 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for BlockingInteractionResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="BlockingInteractionResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="updateResponse"
type="{urn:oasis:names:tc:wsrp:v1:types}UpdateResponse"
minOccurs="0"/>
+ * <element name="redirectURL"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "BlockingInteractionResponse", propOrder = {
+ "updateResponse",
+ "redirectURL",
+ "extensions"
+})
+public class BlockingInteractionResponse
+{
+
+ protected UpdateResponse updateResponse;
+ protected String redirectURL;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the updateResponse property.
+ *
+ * @return possible object is {@link UpdateResponse }
+ */
+ public UpdateResponse getUpdateResponse()
+ {
+ return updateResponse;
+ }
+
+ /**
+ * Sets the value of the updateResponse property.
+ *
+ * @param value allowed object is {@link UpdateResponse }
+ */
+ public void setUpdateResponse(UpdateResponse value)
+ {
+ this.updateResponse = value;
+ }
+
+ /**
+ * Gets the value of the redirectURL property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getRedirectURL()
+ {
+ return redirectURL;
+ }
+
+ /**
+ * Sets the value of the redirectURL property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setRedirectURL(String value)
+ {
+ this.redirectURL = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CacheControl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CacheControl.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CacheControl.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,150 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for CacheControl complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="CacheControl">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="expires"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="userScope"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="validateTag"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CacheControl", propOrder = {
+ "expires",
+ "userScope",
+ "validateTag",
+ "extensions"
+})
+public class CacheControl
+{
+
+ protected int expires;
+ @XmlElement(required = true)
+ protected String userScope;
+ protected String validateTag;
+ protected List<Extension> extensions;
+
+ /** Gets the value of the expires property. */
+ public int getExpires()
+ {
+ return expires;
+ }
+
+ /** Sets the value of the expires property. */
+ public void setExpires(int value)
+ {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the userScope property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getUserScope()
+ {
+ return userScope;
+ }
+
+ /**
+ * Sets the value of the userScope property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setUserScope(String value)
+ {
+ this.userScope = value;
+ }
+
+ /**
+ * Gets the value of the validateTag property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getValidateTag()
+ {
+ return validateTag;
+ }
+
+ /**
+ * Sets the value of the validateTag property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setValidateTag(String value)
+ {
+ this.validateTag = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClientData.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClientData.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClientData.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,110 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ClientData complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ClientData">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="userAgent"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ClientData", propOrder = {
+ "userAgent",
+ "extensions"
+})
+public class ClientData
+{
+
+ protected String userAgent;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the userAgent property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getUserAgent()
+ {
+ return userAgent;
+ }
+
+ /**
+ * Sets the value of the userAgent property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setUserAgent(String value)
+ {
+ this.userAgent = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClonePortlet.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClonePortlet.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ClonePortlet.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,129 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "userContext"
+})
+@XmlRootElement(name = "clonePortlet")
+public class ClonePortlet
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Contact.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Contact.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Contact.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,156 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Contact complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Contact">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="postal"
type="{urn:oasis:names:tc:wsrp:v1:types}Postal" minOccurs="0"/>
+ * <element name="telecom"
type="{urn:oasis:names:tc:wsrp:v1:types}Telecom" minOccurs="0"/>
+ * <element name="online"
type="{urn:oasis:names:tc:wsrp:v1:types}Online" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Contact", propOrder = {
+ "postal",
+ "telecom",
+ "online",
+ "extensions"
+})
+public class Contact
+{
+
+ protected Postal postal;
+ protected Telecom telecom;
+ protected Online online;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the postal property.
+ *
+ * @return possible object is {@link Postal }
+ */
+ public Postal getPostal()
+ {
+ return postal;
+ }
+
+ /**
+ * Sets the value of the postal property.
+ *
+ * @param value allowed object is {@link Postal }
+ */
+ public void setPostal(Postal value)
+ {
+ this.postal = value;
+ }
+
+ /**
+ * Gets the value of the telecom property.
+ *
+ * @return possible object is {@link Telecom }
+ */
+ public Telecom getTelecom()
+ {
+ return telecom;
+ }
+
+ /**
+ * Sets the value of the telecom property.
+ *
+ * @param value allowed object is {@link Telecom }
+ */
+ public void setTelecom(Telecom value)
+ {
+ this.telecom = value;
+ }
+
+ /**
+ * Gets the value of the online property.
+ *
+ * @return possible object is {@link Online }
+ */
+ public Online getOnline()
+ {
+ return online;
+ }
+
+ /**
+ * Sets the value of the online property.
+ *
+ * @param value allowed object is {@link Online }
+ */
+ public void setOnline(Online value)
+ {
+ this.online = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CookieProtocol.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CookieProtocol.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/CookieProtocol.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,81 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for CookieProtocol.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <simpleType name="CookieProtocol">
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="none"/>
+ * <enumeration value="perUser"/>
+ * <enumeration value="perGroup"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ */
+@XmlType(name = "CookieProtocol")
+@XmlEnum
+public enum CookieProtocol
+{
+
+ @XmlEnumValue("none")
+ NONE("none"),
+ @XmlEnumValue("perUser")
+ PER_USER("perUser"),
+ @XmlEnumValue("perGroup")
+ PER_GROUP("perGroup");
+ private final String value;
+
+ CookieProtocol(String v)
+ {
+ value = v;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public static CookieProtocol fromValue(String v)
+ {
+ for (CookieProtocol c : CookieProtocol.values())
+ {
+ if (c.value.equals(v))
+ {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyFailed.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyFailed.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyFailed.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,103 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for DestroyFailed complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="DestroyFailed">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="portletHandle"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="reason"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DestroyFailed", propOrder = {
+ "portletHandle",
+ "reason"
+})
+public class DestroyFailed
+{
+
+ @XmlElement(required = true)
+ protected String portletHandle;
+ @XmlElement(required = true)
+ protected String reason;
+
+ /**
+ * Gets the value of the portletHandle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ /**
+ * Sets the value of the portletHandle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPortletHandle(String value)
+ {
+ this.portletHandle = value;
+ }
+
+ /**
+ * Gets the value of the reason property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getReason()
+ {
+ return reason;
+ }
+
+ /**
+ * Sets the value of the reason property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setReason(String value)
+ {
+ this.reason = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortlets.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortlets.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortlets.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,114 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletHandles"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletHandles"
+})
+@XmlRootElement(name = "destroyPortlets")
+public class DestroyPortlets
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected List<String> portletHandles;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletHandles property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the portletHandles property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPortletHandles().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getPortletHandles()
+ {
+ if (portletHandles == null)
+ {
+ portletHandles = new ArrayList<String>();
+ }
+ return this.portletHandles;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortletsResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortletsResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/DestroyPortletsResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,127 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for DestroyPortletsResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="DestroyPortletsResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="destroyFailed"
type="{urn:oasis:names:tc:wsrp:v1:types}DestroyFailed"
+ * maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DestroyPortletsResponse", propOrder = {
+ "destroyFailed",
+ "extensions"
+})
+public class DestroyPortletsResponse
+{
+
+ protected List<DestroyFailed> destroyFailed;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the destroyFailed property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
destroyFailed property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDestroyFailed().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DestroyFailed }
+ *
+ *
+ */
+ public List<DestroyFailed> getDestroyFailed()
+ {
+ if (destroyFailed == null)
+ {
+ destroyFailed = new ArrayList<DestroyFailed>();
+ }
+ return this.destroyFailed;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the extensions
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Extension }
+ *
+ *
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/EmployerInfo.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/EmployerInfo.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/EmployerInfo.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,156 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for EmployerInfo complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EmployerInfo">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="employer"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="department"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="jobtitle"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EmployerInfo", propOrder = {
+ "employer",
+ "department",
+ "jobtitle",
+ "extensions"
+})
+public class EmployerInfo
+{
+
+ protected String employer;
+ protected String department;
+ protected String jobtitle;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the employer property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getEmployer()
+ {
+ return employer;
+ }
+
+ /**
+ * Sets the value of the employer property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setEmployer(String value)
+ {
+ this.employer = value;
+ }
+
+ /**
+ * Gets the value of the department property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getDepartment()
+ {
+ return department;
+ }
+
+ /**
+ * Sets the value of the department property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setDepartment(String value)
+ {
+ this.department = value;
+ }
+
+ /**
+ * Gets the value of the jobtitle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getJobtitle()
+ {
+ return jobtitle;
+ }
+
+ /**
+ * Sets the value of the jobtitle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setJobtitle(String value)
+ {
+ this.jobtitle = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Extension.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Extension.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Extension.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,81 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for Extension complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Extension">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Extension", propOrder = {
+ "any"
+})
+public class Extension
+{
+
+ @XmlAnyElement
+ protected Element any;
+
+ /**
+ * Gets the value of the any property.
+ *
+ * @return possible object is {@link Element }
+ */
+ public Element getAny()
+ {
+ return any;
+ }
+
+ /**
+ * Sets the value of the any property.
+ *
+ * @param value allowed object is {@link Element }
+ */
+ public void setAny(Element value)
+ {
+ this.any = value;
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Fault.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Fault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Fault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,70 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for Fault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Fault">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Fault")
+@XmlSeeAlso({
+ MissingParametersFault.class,
+ PortletStateChangeRequiredFault.class,
+ UnsupportedMimeTypeFault.class,
+ InvalidCookieFault.class,
+ UnsupportedWindowStateFault.class,
+ InvalidUserCategoryFault.class,
+ InvalidHandleFault.class,
+ InvalidSessionFault.class,
+ InconsistentParametersFault.class,
+ InvalidRegistrationFault.class,
+ OperationFailedFault.class,
+ UnsupportedModeFault.class,
+ AccessDeniedFault.class,
+ UnsupportedLocaleFault.class
+})
+public class Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetMarkup.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetMarkup.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetMarkup.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,177 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="runtimeContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RuntimeContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="markupParams"
type="{urn:oasis:names:tc:wsrp:v1:types}MarkupParams"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "runtimeContext",
+ "userContext",
+ "markupParams"
+})
+@XmlRootElement(name = "getMarkup")
+public class GetMarkup
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true)
+ protected RuntimeContext runtimeContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ @XmlElement(required = true)
+ protected MarkupParams markupParams;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the runtimeContext property.
+ *
+ * @return possible object is {@link RuntimeContext }
+ */
+ public RuntimeContext getRuntimeContext()
+ {
+ return runtimeContext;
+ }
+
+ /**
+ * Sets the value of the runtimeContext property.
+ *
+ * @param value allowed object is {@link RuntimeContext }
+ */
+ public void setRuntimeContext(RuntimeContext value)
+ {
+ this.runtimeContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the markupParams property.
+ *
+ * @return possible object is {@link MarkupParams }
+ */
+ public MarkupParams getMarkupParams()
+ {
+ return markupParams;
+ }
+
+ /**
+ * Sets the value of the markupParams property.
+ *
+ * @param value allowed object is {@link MarkupParams }
+ */
+ public void setMarkupParams(MarkupParams value)
+ {
+ this.markupParams = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,162 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="desiredLocales"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "userContext",
+ "desiredLocales"
+})
+@XmlRootElement(name = "getPortletDescription")
+public class GetPortletDescription
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ protected List<String> desiredLocales;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the desiredLocales property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the desiredLocales property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDesiredLocales().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getDesiredLocales()
+ {
+ if (desiredLocales == null)
+ {
+ desiredLocales = new ArrayList<String>();
+ }
+ return this.desiredLocales;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletProperties.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletProperties.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletProperties.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,162 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="names"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "userContext",
+ "names"
+})
+@XmlRootElement(name = "getPortletProperties")
+public class GetPortletProperties
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ @XmlElement(required = true, nillable = true)
+ protected List<String> names;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the names property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the names property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getNames().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getNames()
+ {
+ if (names == null)
+ {
+ names = new ArrayList<String>();
+ }
+ return this.names;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletPropertyDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletPropertyDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetPortletPropertyDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,162 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="desiredLocales"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "userContext",
+ "desiredLocales"
+})
+@XmlRootElement(name = "getPortletPropertyDescription")
+public class GetPortletPropertyDescription
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ protected List<String> desiredLocales;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the desiredLocales property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the desiredLocales property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDesiredLocales().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getDesiredLocales()
+ {
+ if (desiredLocales == null)
+ {
+ desiredLocales = new ArrayList<String>();
+ }
+ return this.desiredLocales;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetServiceDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetServiceDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/GetServiceDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,114 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="desiredLocales"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "desiredLocales"
+})
+@XmlRootElement(name = "getServiceDescription")
+public class GetServiceDescription
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ protected List<String> desiredLocales;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the desiredLocales property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the desiredLocales property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDesiredLocales().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getDesiredLocales()
+ {
+ if (desiredLocales == null)
+ {
+ desiredLocales = new ArrayList<String>();
+ }
+ return this.desiredLocales;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParameters.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParameters.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParameters.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InconsistentParameters", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InconsistentParameters extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InconsistentParametersFault inconsistentParameters;
+
+ public InconsistentParameters()
+ {
+ super();
+ }
+
+ public InconsistentParameters(String message)
+ {
+ super(message);
+ }
+
+ public InconsistentParameters(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InconsistentParameters(String message,
org.oasis.wsrp.v1.InconsistentParametersFault inconsistentParameters)
+ {
+ super(message);
+ this.inconsistentParameters = inconsistentParameters;
+ }
+
+ public InconsistentParameters(String message,
org.oasis.wsrp.v1.InconsistentParametersFault inconsistentParameters, Throwable cause)
+ {
+ super(message, cause);
+ this.inconsistentParameters = inconsistentParameters;
+ }
+
+ public org.oasis.wsrp.v1.InconsistentParametersFault getFaultInfo()
+ {
+ return this.inconsistentParameters;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParametersFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParametersFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InconsistentParametersFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InconsistentParametersFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InconsistentParametersFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InconsistentParametersFault")
+public class InconsistentParametersFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InitCookie.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InitCookie.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InitCookie.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,81 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext"
+})
+@XmlRootElement(name = "initCookie")
+public class InitCookie
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InteractionParams.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InteractionParams.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InteractionParams.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,197 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for InteractionParams complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InteractionParams">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="portletStateChange"
type="{urn:oasis:names:tc:wsrp:v1:types}StateChange"/>
+ * <element name="interactionState"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="formParameters"
type="{urn:oasis:names:tc:wsrp:v1:types}NamedString"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="uploadContexts"
type="{urn:oasis:names:tc:wsrp:v1:types}UploadContext"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InteractionParams", propOrder = {
+ "portletStateChange",
+ "interactionState",
+ "formParameters",
+ "uploadContexts",
+ "extensions"
+})
+public class InteractionParams
+{
+
+ @XmlElement(required = true)
+ protected StateChange portletStateChange;
+ protected String interactionState;
+ protected List<NamedString> formParameters;
+ protected List<UploadContext> uploadContexts;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the portletStateChange property.
+ *
+ * @return possible object is {@link StateChange }
+ */
+ public StateChange getPortletStateChange()
+ {
+ return portletStateChange;
+ }
+
+ /**
+ * Sets the value of the portletStateChange property.
+ *
+ * @param value allowed object is {@link StateChange }
+ */
+ public void setPortletStateChange(StateChange value)
+ {
+ this.portletStateChange = value;
+ }
+
+ /**
+ * Gets the value of the interactionState property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getInteractionState()
+ {
+ return interactionState;
+ }
+
+ /**
+ * Sets the value of the interactionState property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setInteractionState(String value)
+ {
+ this.interactionState = value;
+ }
+
+ /**
+ * Gets the value of the formParameters property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the formParameters property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getFormParameters().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link NamedString }
+ */
+ public List<NamedString> getFormParameters()
+ {
+ if (formParameters == null)
+ {
+ formParameters = new ArrayList<NamedString>();
+ }
+ return this.formParameters;
+ }
+
+ /**
+ * Gets the value of the uploadContexts property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the uploadContexts property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUploadContexts().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link UploadContext }
+ */
+ public List<UploadContext> getUploadContexts()
+ {
+ if (uploadContexts == null)
+ {
+ uploadContexts = new ArrayList<UploadContext>();
+ }
+ return this.uploadContexts;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookie.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookie.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookie.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InvalidCookie", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InvalidCookie extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InvalidCookieFault invalidCookie;
+
+ public InvalidCookie()
+ {
+ super();
+ }
+
+ public InvalidCookie(String message)
+ {
+ super(message);
+ }
+
+ public InvalidCookie(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InvalidCookie(String message, org.oasis.wsrp.v1.InvalidCookieFault
invalidCookie)
+ {
+ super(message);
+ this.invalidCookie = invalidCookie;
+ }
+
+ public InvalidCookie(String message, org.oasis.wsrp.v1.InvalidCookieFault
invalidCookie, Throwable cause)
+ {
+ super(message, cause);
+ this.invalidCookie = invalidCookie;
+ }
+
+ public org.oasis.wsrp.v1.InvalidCookieFault getFaultInfo()
+ {
+ return this.invalidCookie;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookieFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookieFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidCookieFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InvalidCookieFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InvalidCookieFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InvalidCookieFault")
+public class InvalidCookieFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandle.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandle.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandle.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InvalidHandle", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InvalidHandle extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InvalidHandleFault invalidHandle;
+
+ public InvalidHandle()
+ {
+ super();
+ }
+
+ public InvalidHandle(String message)
+ {
+ super(message);
+ }
+
+ public InvalidHandle(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InvalidHandle(String message, org.oasis.wsrp.v1.InvalidHandleFault
invalidHandle)
+ {
+ super(message);
+ this.invalidHandle = invalidHandle;
+ }
+
+ public InvalidHandle(String message, org.oasis.wsrp.v1.InvalidHandleFault
invalidHandle, Throwable cause)
+ {
+ super(message, cause);
+ this.invalidHandle = invalidHandle;
+ }
+
+ public org.oasis.wsrp.v1.InvalidHandleFault getFaultInfo()
+ {
+ return this.invalidHandle;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandleFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandleFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidHandleFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InvalidHandleFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InvalidHandleFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InvalidHandleFault")
+public class InvalidHandleFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistration.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistration.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistration.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InvalidRegistration", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InvalidRegistration extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InvalidRegistrationFault invalidRegistration;
+
+ public InvalidRegistration()
+ {
+ super();
+ }
+
+ public InvalidRegistration(String message)
+ {
+ super(message);
+ }
+
+ public InvalidRegistration(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InvalidRegistration(String message, org.oasis.wsrp.v1.InvalidRegistrationFault
invalidRegistration)
+ {
+ super(message);
+ this.invalidRegistration = invalidRegistration;
+ }
+
+ public InvalidRegistration(String message, org.oasis.wsrp.v1.InvalidRegistrationFault
invalidRegistration, Throwable cause)
+ {
+ super(message, cause);
+ this.invalidRegistration = invalidRegistration;
+ }
+
+ public org.oasis.wsrp.v1.InvalidRegistrationFault getFaultInfo()
+ {
+ return this.invalidRegistration;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistrationFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistrationFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidRegistrationFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InvalidRegistrationFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InvalidRegistrationFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InvalidRegistrationFault")
+public class InvalidRegistrationFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSession.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSession.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSession.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InvalidSession", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InvalidSession extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InvalidSessionFault invalidSession;
+
+ public InvalidSession()
+ {
+ super();
+ }
+
+ public InvalidSession(String message)
+ {
+ super(message);
+ }
+
+ public InvalidSession(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InvalidSession(String message, org.oasis.wsrp.v1.InvalidSessionFault
invalidSession)
+ {
+ super(message);
+ this.invalidSession = invalidSession;
+ }
+
+ public InvalidSession(String message, org.oasis.wsrp.v1.InvalidSessionFault
invalidSession, Throwable cause)
+ {
+ super(message, cause);
+ this.invalidSession = invalidSession;
+ }
+
+ public org.oasis.wsrp.v1.InvalidSessionFault getFaultInfo()
+ {
+ return this.invalidSession;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSessionFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSessionFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidSessionFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InvalidSessionFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InvalidSessionFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InvalidSessionFault")
+public class InvalidSessionFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategory.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategory.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "InvalidUserCategory", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class InvalidUserCategory extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.InvalidUserCategoryFault invalidUserCategory;
+
+ public InvalidUserCategory()
+ {
+ super();
+ }
+
+ public InvalidUserCategory(String message)
+ {
+ super(message);
+ }
+
+ public InvalidUserCategory(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public InvalidUserCategory(String message, org.oasis.wsrp.v1.InvalidUserCategoryFault
invalidUserCategory)
+ {
+ super(message);
+ this.invalidUserCategory = invalidUserCategory;
+ }
+
+ public InvalidUserCategory(String message, org.oasis.wsrp.v1.InvalidUserCategoryFault
invalidUserCategory, Throwable cause)
+ {
+ super(message, cause);
+ this.invalidUserCategory = invalidUserCategory;
+ }
+
+ public org.oasis.wsrp.v1.InvalidUserCategoryFault getFaultInfo()
+ {
+ return this.invalidUserCategory;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategoryFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategoryFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/InvalidUserCategoryFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for InvalidUserCategoryFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="InvalidUserCategoryFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InvalidUserCategoryFault")
+public class InvalidUserCategoryFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ItemDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ItemDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ItemDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,136 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ItemDescription complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ItemDescription">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * <attribute name="itemName" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ItemDescription", propOrder = {
+ "description",
+ "extensions"
+})
+public class ItemDescription
+{
+
+ @XmlElement(required = true)
+ protected LocalizedString description;
+ protected List<Extension> extensions;
+ @XmlAttribute(required = true)
+ protected String itemName;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setDescription(LocalizedString value)
+ {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+ /**
+ * Gets the value of the itemName property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getItemName()
+ {
+ return itemName;
+ }
+
+ /**
+ * Sets the value of the itemName property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setItemName(String value)
+ {
+ this.itemName = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/LocalizedString.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/LocalizedString.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/LocalizedString.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,126 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for LocalizedString complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="LocalizedString">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="value"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang
use="required""/>
+ * <attribute name="resourceName"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "LocalizedString", propOrder = {
+ "value"
+})
+public class LocalizedString
+{
+
+ @XmlElement(required = true)
+ protected String value;
+ @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace", required =
true)
+ protected String lang;
+ @XmlAttribute
+ protected String resourceName;
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getLang()
+ {
+ return lang;
+ }
+
+ /**
+ * Sets the value of the lang property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setLang(String value)
+ {
+ this.lang = value;
+ }
+
+ /**
+ * Gets the value of the resourceName property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getResourceName()
+ {
+ return resourceName;
+ }
+
+ /**
+ * Sets the value of the resourceName property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setResourceName(String value)
+ {
+ this.resourceName = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,274 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for MarkupContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="MarkupContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="useCachedMarkup"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="mimeType"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="markupString"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="markupBinary"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"
minOccurs="0"/>
+ * <element name="locale"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="requiresUrlRewriting"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="cacheControl"
type="{urn:oasis:names:tc:wsrp:v1:types}CacheControl"
minOccurs="0"/>
+ * <element name="preferredTitle"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MarkupContext", propOrder = {
+ "useCachedMarkup",
+ "mimeType",
+ "markupString",
+ "markupBinary",
+ "locale",
+ "requiresUrlRewriting",
+ "cacheControl",
+ "preferredTitle",
+ "extensions"
+})
+public class MarkupContext
+{
+
+ @XmlElement(defaultValue = "false")
+ protected Boolean useCachedMarkup;
+ protected String mimeType;
+ protected String markupString;
+ protected byte[] markupBinary;
+ protected String locale;
+ @XmlElement(defaultValue = "false")
+ protected Boolean requiresUrlRewriting;
+ protected CacheControl cacheControl;
+ protected String preferredTitle;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the useCachedMarkup property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isUseCachedMarkup()
+ {
+ return useCachedMarkup;
+ }
+
+ /**
+ * Sets the value of the useCachedMarkup property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setUseCachedMarkup(Boolean value)
+ {
+ this.useCachedMarkup = value;
+ }
+
+ /**
+ * Gets the value of the mimeType property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getMimeType()
+ {
+ return mimeType;
+ }
+
+ /**
+ * Sets the value of the mimeType property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setMimeType(String value)
+ {
+ this.mimeType = value;
+ }
+
+ /**
+ * Gets the value of the markupString property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getMarkupString()
+ {
+ return markupString;
+ }
+
+ /**
+ * Sets the value of the markupString property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setMarkupString(String value)
+ {
+ this.markupString = value;
+ }
+
+ /**
+ * Gets the value of the markupBinary property.
+ *
+ * @return possible object is byte[]
+ */
+ public byte[] getMarkupBinary()
+ {
+ return markupBinary;
+ }
+
+ /**
+ * Sets the value of the markupBinary property.
+ *
+ * @param value allowed object is byte[]
+ */
+ public void setMarkupBinary(byte[] value)
+ {
+ this.markupBinary = ((byte[])value);
+ }
+
+ /**
+ * Gets the value of the locale property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getLocale()
+ {
+ return locale;
+ }
+
+ /**
+ * Sets the value of the locale property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setLocale(String value)
+ {
+ this.locale = value;
+ }
+
+ /**
+ * Gets the value of the requiresUrlRewriting property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isRequiresUrlRewriting()
+ {
+ return requiresUrlRewriting;
+ }
+
+ /**
+ * Sets the value of the requiresUrlRewriting property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setRequiresUrlRewriting(Boolean value)
+ {
+ this.requiresUrlRewriting = value;
+ }
+
+ /**
+ * Gets the value of the cacheControl property.
+ *
+ * @return possible object is {@link CacheControl }
+ */
+ public CacheControl getCacheControl()
+ {
+ return cacheControl;
+ }
+
+ /**
+ * Sets the value of the cacheControl property.
+ *
+ * @param value allowed object is {@link CacheControl }
+ */
+ public void setCacheControl(CacheControl value)
+ {
+ this.cacheControl = value;
+ }
+
+ /**
+ * Gets the value of the preferredTitle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPreferredTitle()
+ {
+ return preferredTitle;
+ }
+
+ /**
+ * Sets the value of the preferredTitle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPreferredTitle(String value)
+ {
+ this.preferredTitle = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupParams.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupParams.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupParams.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,436 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for MarkupParams complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="MarkupParams">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="secureClientCommunication"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * <element name="locales"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * <element name="mimeTypes"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * <element name="mode"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="windowState"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="clientData"
type="{urn:oasis:names:tc:wsrp:v1:types}ClientData"
minOccurs="0"/>
+ * <element name="navigationalState"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="markupCharacterSets"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="validateTag"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="validNewModes"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="validNewWindowStates"
type="{http://www.w3.org/2001/XMLSchema}string"
+ * maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MarkupParams", propOrder = {
+ "secureClientCommunication",
+ "locales",
+ "mimeTypes",
+ "mode",
+ "windowState",
+ "clientData",
+ "navigationalState",
+ "markupCharacterSets",
+ "validateTag",
+ "validNewModes",
+ "validNewWindowStates",
+ "extensions"
+})
+public class MarkupParams
+{
+
+ protected boolean secureClientCommunication;
+ @XmlElement(required = true)
+ protected List<String> locales;
+ @XmlElement(required = true)
+ protected List<String> mimeTypes;
+ @XmlElement(required = true)
+ protected String mode;
+ @XmlElement(required = true)
+ protected String windowState;
+ protected ClientData clientData;
+ protected String navigationalState;
+ protected List<String> markupCharacterSets;
+ protected String validateTag;
+ protected List<String> validNewModes;
+ protected List<String> validNewWindowStates;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the secureClientCommunication property.
+ *
+ */
+ public boolean isSecureClientCommunication()
+ {
+ return secureClientCommunication;
+ }
+
+ /**
+ * Sets the value of the secureClientCommunication property.
+ *
+ */
+ public void setSecureClientCommunication(boolean value)
+ {
+ this.secureClientCommunication = value;
+ }
+
+ /**
+ * Gets the value of the locales property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the locales
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLocales().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getLocales()
+ {
+ if (locales == null)
+ {
+ locales = new ArrayList<String>();
+ }
+ return this.locales;
+ }
+
+ /**
+ * Gets the value of the mimeTypes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the mimeTypes
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMimeTypes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getMimeTypes()
+ {
+ if (mimeTypes == null)
+ {
+ mimeTypes = new ArrayList<String>();
+ }
+ return this.mimeTypes;
+ }
+
+ /**
+ * Gets the value of the mode property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMode()
+ {
+ return mode;
+ }
+
+ /**
+ * Sets the value of the mode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMode(String value)
+ {
+ this.mode = value;
+ }
+
+ /**
+ * Gets the value of the windowState property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getWindowState()
+ {
+ return windowState;
+ }
+
+ /**
+ * Sets the value of the windowState property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setWindowState(String value)
+ {
+ this.windowState = value;
+ }
+
+ /**
+ * Gets the value of the clientData property.
+ *
+ * @return
+ * possible object is
+ * {@link ClientData }
+ *
+ */
+ public ClientData getClientData()
+ {
+ return clientData;
+ }
+
+ /**
+ * Sets the value of the clientData property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ClientData }
+ *
+ */
+ public void setClientData(ClientData value)
+ {
+ this.clientData = value;
+ }
+
+ /**
+ * Gets the value of the navigationalState property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ /**
+ * Sets the value of the navigationalState property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setNavigationalState(String value)
+ {
+ this.navigationalState = value;
+ }
+
+ /**
+ * Gets the value of the markupCharacterSets property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
markupCharacterSets property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMarkupCharacterSets().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getMarkupCharacterSets()
+ {
+ if (markupCharacterSets == null)
+ {
+ markupCharacterSets = new ArrayList<String>();
+ }
+ return this.markupCharacterSets;
+ }
+
+ /**
+ * Gets the value of the validateTag property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValidateTag()
+ {
+ return validateTag;
+ }
+
+ /**
+ * Sets the value of the validateTag property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValidateTag(String value)
+ {
+ this.validateTag = value;
+ }
+
+ /**
+ * Gets the value of the validNewModes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
validNewModes property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValidNewModes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getValidNewModes()
+ {
+ if (validNewModes == null)
+ {
+ validNewModes = new ArrayList<String>();
+ }
+ return this.validNewModes;
+ }
+
+ /**
+ * Gets the value of the validNewWindowStates property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
validNewWindowStates property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValidNewWindowStates().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getValidNewWindowStates()
+ {
+ if (validNewWindowStates == null)
+ {
+ validNewWindowStates = new ArrayList<String>();
+ }
+ return this.validNewWindowStates;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the extensions
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Extension }
+ *
+ *
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,135 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for MarkupResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="MarkupResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="markupContext"
type="{urn:oasis:names:tc:wsrp:v1:types}MarkupContext"/>
+ * <element name="sessionContext"
type="{urn:oasis:names:tc:wsrp:v1:types}SessionContext"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MarkupResponse", propOrder = {
+ "markupContext",
+ "sessionContext",
+ "extensions"
+})
+public class MarkupResponse
+{
+
+ @XmlElement(required = true)
+ protected MarkupContext markupContext;
+ protected SessionContext sessionContext;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the markupContext property.
+ *
+ * @return possible object is {@link MarkupContext }
+ */
+ public MarkupContext getMarkupContext()
+ {
+ return markupContext;
+ }
+
+ /**
+ * Sets the value of the markupContext property.
+ *
+ * @param value allowed object is {@link MarkupContext }
+ */
+ public void setMarkupContext(MarkupContext value)
+ {
+ this.markupContext = value;
+ }
+
+ /**
+ * Gets the value of the sessionContext property.
+ *
+ * @return possible object is {@link SessionContext }
+ */
+ public SessionContext getSessionContext()
+ {
+ return sessionContext;
+ }
+
+ /**
+ * Sets the value of the sessionContext property.
+ *
+ * @param value allowed object is {@link SessionContext }
+ */
+ public void setSessionContext(SessionContext value)
+ {
+ this.sessionContext = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupType.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MarkupType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for MarkupType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="MarkupType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="mimeType"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="modes"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * <element name="windowStates"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * <element name="locales"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MarkupType", propOrder = {
+ "mimeType",
+ "modes",
+ "windowStates",
+ "locales",
+ "extensions"
+})
+public class MarkupType
+{
+
+ @XmlElement(required = true)
+ protected String mimeType;
+ @XmlElement(required = true)
+ protected List<String> modes;
+ @XmlElement(required = true)
+ protected List<String> windowStates;
+ protected List<String> locales;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the mimeType property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getMimeType()
+ {
+ return mimeType;
+ }
+
+ /**
+ * Sets the value of the mimeType property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setMimeType(String value)
+ {
+ this.mimeType = value;
+ }
+
+ /**
+ * Gets the value of the modes property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the modes property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getModes().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getModes()
+ {
+ if (modes == null)
+ {
+ modes = new ArrayList<String>();
+ }
+ return this.modes;
+ }
+
+ /**
+ * Gets the value of the windowStates property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the windowStates property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getWindowStates().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getWindowStates()
+ {
+ if (windowStates == null)
+ {
+ windowStates = new ArrayList<String>();
+ }
+ return this.windowStates;
+ }
+
+ /**
+ * Gets the value of the locales property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the locales property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLocales().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getLocales()
+ {
+ if (locales == null)
+ {
+ locales = new ArrayList<String>();
+ }
+ return this.locales;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParameters.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParameters.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParameters.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "MissingParameters", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class MissingParameters extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.MissingParametersFault missingParameters;
+
+ public MissingParameters()
+ {
+ super();
+ }
+
+ public MissingParameters(String message)
+ {
+ super(message);
+ }
+
+ public MissingParameters(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public MissingParameters(String message, org.oasis.wsrp.v1.MissingParametersFault
missingParameters)
+ {
+ super(message);
+ this.missingParameters = missingParameters;
+ }
+
+ public MissingParameters(String message, org.oasis.wsrp.v1.MissingParametersFault
missingParameters, Throwable cause)
+ {
+ super(message, cause);
+ this.missingParameters = missingParameters;
+ }
+
+ public org.oasis.wsrp.v1.MissingParametersFault getFaultInfo()
+ {
+ return this.missingParameters;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParametersFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParametersFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/MissingParametersFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for MissingParametersFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="MissingParametersFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MissingParametersFault")
+public class MissingParametersFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,141 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ModelDescription complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ModelDescription">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="propertyDescriptions"
type="{urn:oasis:names:tc:wsrp:v1:types}PropertyDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="modelTypes"
type="{urn:oasis:names:tc:wsrp:v1:types}ModelTypes"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ModelDescription", propOrder = {
+ "propertyDescriptions",
+ "modelTypes",
+ "extensions"
+})
+public class ModelDescription
+{
+
+ protected List<PropertyDescription> propertyDescriptions;
+ protected ModelTypes modelTypes;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the propertyDescriptions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the propertyDescriptions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPropertyDescriptions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link PropertyDescription
}
+ */
+ public List<PropertyDescription> getPropertyDescriptions()
+ {
+ if (propertyDescriptions == null)
+ {
+ propertyDescriptions = new ArrayList<PropertyDescription>();
+ }
+ return this.propertyDescriptions;
+ }
+
+ /**
+ * Gets the value of the modelTypes property.
+ *
+ * @return possible object is {@link ModelTypes }
+ */
+ public ModelTypes getModelTypes()
+ {
+ return modelTypes;
+ }
+
+ /**
+ * Sets the value of the modelTypes property.
+ *
+ * @param value allowed object is {@link ModelTypes }
+ */
+ public void setModelTypes(ModelTypes value)
+ {
+ this.modelTypes = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelTypes.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelTypes.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModelTypes.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,81 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for ModelTypes complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ModelTypes">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ModelTypes", propOrder = {
+ "any"
+})
+public class ModelTypes
+{
+
+ @XmlAnyElement
+ protected Element any;
+
+ /**
+ * Gets the value of the any property.
+ *
+ * @return possible object is {@link Element }
+ */
+ public Element getAny()
+ {
+ return any;
+ }
+
+ /**
+ * Sets the value of the any property.
+ *
+ * @param value allowed object is {@link Element }
+ */
+ public void setAny(Element value)
+ {
+ this.any = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModifyRegistration.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModifyRegistration.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ModifyRegistration.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,105 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="registrationData"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationData"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "registrationData"
+})
+@XmlRootElement(name = "modifyRegistration")
+public class ModifyRegistration
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected RegistrationData registrationData;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the registrationData property.
+ *
+ * @return possible object is {@link RegistrationData }
+ */
+ public RegistrationData getRegistrationData()
+ {
+ return registrationData;
+ }
+
+ /**
+ * Sets the value of the registrationData property.
+ *
+ * @param value allowed object is {@link RegistrationData }
+ */
+ public void setRegistrationData(RegistrationData value)
+ {
+ this.registrationData = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedString.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedString.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedString.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,103 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for NamedString complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="NamedString">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="value"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * <attribute name="name" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "NamedString", propOrder = {
+ "value"
+})
+public class NamedString
+{
+
+ @XmlElement(required = true)
+ protected String value;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedStringArray.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedStringArray.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/NamedStringArray.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,89 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for NamedStringArray complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="NamedStringArray">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="NamedString"
type="{urn:oasis:names:tc:wsrp:v1:types}NamedString"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "NamedStringArray", propOrder = {
+ "namedString"
+})
+public class NamedStringArray
+{
+
+ @XmlElement(name = "NamedString")
+ protected List<NamedString> namedString;
+
+ /**
+ * Gets the value of the namedString property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the namedString property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getNamedString().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link NamedString }
+ */
+ public List<NamedString> getNamedString()
+ {
+ if (namedString == null)
+ {
+ namedString = new ArrayList<NamedString>();
+ }
+ return this.namedString;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ObjectFactory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ObjectFactory.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ObjectFactory.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,910 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each Java content interface and Java element
interface generated in the
+ * org.oasis.wsrp.v1 package. <p>An ObjectFactory allows you to programatically
construct new instances of the Java
+ * representation for XML content. The Java representation of XML content can consist of
schema derived interfaces and
+ * classes representing the binding of schema type definitions, element declarations and
model groups. Factory methods
+ * for each of these are provided in this class.
+ */
+@XmlRegistry
+public class ObjectFactory
+{
+
+ private final static QName _RuntimeContext_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "RuntimeContext");
+ private final static QName _PortletContext_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "PortletContext");
+ private final static QName _ServiceDescription_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "ServiceDescription");
+ private final static QName _Deregister_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "deregister");
+ private final static QName _UserContext_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "UserContext");
+ private final static QName _UnsupportedMimeType_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "UnsupportedMimeType");
+ private final static QName _GetMarkupResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "getMarkupResponse");
+ private final static QName _RegistrationData_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationData");
+ private final static QName _NamedStringArray_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "NamedStringArray");
+ private final static QName _ModelDescription_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "ModelDescription");
+ private final static QName _ClonePortletResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "clonePortletResponse");
+ private final static QName _MissingParameters_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "MissingParameters");
+ private final static QName _DeregisterResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "deregisterResponse");
+ private final static QName _Key_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "Key");
+ private final static QName _InteractionParams_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InteractionParams");
+ private final static QName _PerformBlockingInteractionResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"performBlockingInteractionResponse");
+ private final static QName _PropertyList_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "PropertyList");
+ private final static QName _DestroyPortletsResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "destroyPortletsResponse");
+ private final static QName _RegisterResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "registerResponse");
+ private final static QName _ID_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "ID");
+ private final static QName _RegistrationContext_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext");
+ private final static QName _PortletStateChangeRequired_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"PortletStateChangeRequired");
+ private final static QName _InvalidRegistration_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InvalidRegistration");
+ private final static QName _InconsistentParameters_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InconsistentParameters");
+ private final static QName _GetPortletDescriptionResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"getPortletDescriptionResponse");
+ private final static QName _InvalidSession_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InvalidSession");
+ private final static QName _Templates_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "Templates");
+ private final static QName _Contact_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "Contact");
+ private final static QName _BlockingInteractionResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"BlockingInteractionResponse");
+ private final static QName _SetPortletPropertiesResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"setPortletPropertiesResponse");
+ private final static QName _RegistrationState_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationState");
+ private final static QName _UnsupportedLocale_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "UnsupportedLocale");
+ private final static QName _AccessDenied_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "AccessDenied");
+ private final static QName _GetServiceDescriptionResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"getServiceDescriptionResponse");
+ private final static QName _UnsupportedMode_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "UnsupportedMode");
+ private final static QName _OperationFailed_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "OperationFailed");
+ private final static QName _InitCookieResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "initCookieResponse");
+ private final static QName _Register_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "register");
+ private final static QName _UnsupportedWindowState_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "UnsupportedWindowState");
+ private final static QName _InvalidUserCategory_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InvalidUserCategory");
+ private final static QName _StringArray_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "StringArray");
+ private final static QName _SessionContext_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "SessionContext");
+ private final static QName _MarkupParams_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "MarkupParams");
+ private final static QName _ClientData_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "ClientData");
+ private final static QName _ReleaseSessionsResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "releaseSessionsResponse");
+ private final static QName _InvalidCookie_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InvalidCookie");
+ private final static QName _GetPortletPropertiesResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"getPortletPropertiesResponse");
+ private final static QName _GetPortletPropertyDescriptionResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"getPortletPropertyDescriptionResponse");
+ private final static QName _InvalidHandle_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "InvalidHandle");
+ private final static QName _Handle_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types", "Handle");
+ private final static QName _ModifyRegistrationResponse_QNAME = new
QName("urn:oasis:names:tc:wsrp:v1:types",
"modifyRegistrationResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package:
+ * org.oasis.wsrp.v1
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /** Create an instance of {@link UserProfile } */
+ public UserProfile createUserProfile()
+ {
+ return new UserProfile();
+ }
+
+ /** Create an instance of {@link Templates } */
+ public Templates createTemplates()
+ {
+ return new Templates();
+ }
+
+ /** Create an instance of {@link PortletContext } */
+ public PortletContext createPortletContext()
+ {
+ return new PortletContext();
+ }
+
+ /** Create an instance of {@link InvalidRegistrationFault } */
+ public InvalidRegistrationFault createInvalidRegistrationFault()
+ {
+ return new InvalidRegistrationFault();
+ }
+
+ /** Create an instance of {@link InitCookie } */
+ public InitCookie createInitCookie()
+ {
+ return new InitCookie();
+ }
+
+ /** Create an instance of {@link Telecom } */
+ public Telecom createTelecom()
+ {
+ return new Telecom();
+ }
+
+ /** Create an instance of {@link PortletDescriptionResponse } */
+ public PortletDescriptionResponse createPortletDescriptionResponse()
+ {
+ return new PortletDescriptionResponse();
+ }
+
+ /** Create an instance of {@link Resource } */
+ public Resource createResource()
+ {
+ return new Resource();
+ }
+
+ /** Create an instance of {@link Postal } */
+ public Postal createPostal()
+ {
+ return new Postal();
+ }
+
+ /** Create an instance of {@link SessionContext } */
+ public SessionContext createSessionContext()
+ {
+ return new SessionContext();
+ }
+
+ /** Create an instance of {@link Fault } */
+ public Fault createFault()
+ {
+ return new Fault();
+ }
+
+ /** Create an instance of {@link Online } */
+ public Online createOnline()
+ {
+ return new Online();
+ }
+
+ /** Create an instance of {@link ReleaseSessions } */
+ public ReleaseSessions createReleaseSessions()
+ {
+ return new ReleaseSessions();
+ }
+
+ /** Create an instance of {@link UploadContext } */
+ public UploadContext createUploadContext()
+ {
+ return new UploadContext();
+ }
+
+ /** Create an instance of {@link Extension } */
+ public Extension createExtension()
+ {
+ return new Extension();
+ }
+
+ /** Create an instance of {@link PortletDescription } */
+ public PortletDescription createPortletDescription()
+ {
+ return new PortletDescription();
+ }
+
+ /** Create an instance of {@link PersonName } */
+ public PersonName createPersonName()
+ {
+ return new PersonName();
+ }
+
+ /** Create an instance of {@link InvalidCookieFault } */
+ public InvalidCookieFault createInvalidCookieFault()
+ {
+ return new InvalidCookieFault();
+ }
+
+ /** Create an instance of {@link RuntimeContext } */
+ public RuntimeContext createRuntimeContext()
+ {
+ return new RuntimeContext();
+ }
+
+ /** Create an instance of {@link ClientData } */
+ public ClientData createClientData()
+ {
+ return new ClientData();
+ }
+
+ /** Create an instance of {@link MarkupParams } */
+ public MarkupParams createMarkupParams()
+ {
+ return new MarkupParams();
+ }
+
+ /** Create an instance of {@link ModifyRegistration } */
+ public ModifyRegistration createModifyRegistration()
+ {
+ return new ModifyRegistration();
+ }
+
+ /** Create an instance of {@link MissingParametersFault } */
+ public MissingParametersFault createMissingParametersFault()
+ {
+ return new MissingParametersFault();
+ }
+
+ /** Create an instance of {@link GetMarkup } */
+ public GetMarkup createGetMarkup()
+ {
+ return new GetMarkup();
+ }
+
+ /** Create an instance of {@link RegistrationData } */
+ public RegistrationData createRegistrationData()
+ {
+ return new RegistrationData();
+ }
+
+ /** Create an instance of {@link ServiceDescription } */
+ public ServiceDescription createServiceDescription()
+ {
+ return new ServiceDescription();
+ }
+
+ /** Create an instance of {@link GetPortletProperties } */
+ public GetPortletProperties createGetPortletProperties()
+ {
+ return new GetPortletProperties();
+ }
+
+ /** Create an instance of {@link BlockingInteractionResponse } */
+ public BlockingInteractionResponse createBlockingInteractionResponse()
+ {
+ return new BlockingInteractionResponse();
+ }
+
+ /** Create an instance of {@link OperationFailedFault } */
+ public OperationFailedFault createOperationFailedFault()
+ {
+ return new OperationFailedFault();
+ }
+
+ /** Create an instance of {@link InteractionParams } */
+ public InteractionParams createInteractionParams()
+ {
+ return new InteractionParams();
+ }
+
+ /** Create an instance of {@link ItemDescription } */
+ public ItemDescription createItemDescription()
+ {
+ return new ItemDescription();
+ }
+
+ /** Create an instance of {@link ResourceList } */
+ public ResourceList createResourceList()
+ {
+ return new ResourceList();
+ }
+
+ /** Create an instance of {@link AccessDeniedFault } */
+ public AccessDeniedFault createAccessDeniedFault()
+ {
+ return new AccessDeniedFault();
+ }
+
+ /** Create an instance of {@link SetPortletProperties } */
+ public SetPortletProperties createSetPortletProperties()
+ {
+ return new SetPortletProperties();
+ }
+
+ /** Create an instance of {@link ResetProperty } */
+ public ResetProperty createResetProperty()
+ {
+ return new ResetProperty();
+ }
+
+ /** Create an instance of {@link DestroyFailed } */
+ public DestroyFailed createDestroyFailed()
+ {
+ return new DestroyFailed();
+ }
+
+ /** Create an instance of {@link GetPortletPropertyDescription } */
+ public GetPortletPropertyDescription createGetPortletPropertyDescription()
+ {
+ return new GetPortletPropertyDescription();
+ }
+
+ /** Create an instance of {@link Contact } */
+ public Contact createContact()
+ {
+ return new Contact();
+ }
+
+ /** Create an instance of {@link UnsupportedMimeTypeFault } */
+ public UnsupportedMimeTypeFault createUnsupportedMimeTypeFault()
+ {
+ return new UnsupportedMimeTypeFault();
+ }
+
+ /** Create an instance of {@link MarkupResponse } */
+ public MarkupResponse createMarkupResponse()
+ {
+ return new MarkupResponse();
+ }
+
+ /** Create an instance of {@link InvalidHandleFault } */
+ public InvalidHandleFault createInvalidHandleFault()
+ {
+ return new InvalidHandleFault();
+ }
+
+ /** Create an instance of {@link InvalidUserCategoryFault } */
+ public InvalidUserCategoryFault createInvalidUserCategoryFault()
+ {
+ return new InvalidUserCategoryFault();
+ }
+
+ /** Create an instance of {@link RegistrationContext } */
+ public RegistrationContext createRegistrationContext()
+ {
+ return new RegistrationContext();
+ }
+
+ /** Create an instance of {@link ModelDescription } */
+ public ModelDescription createModelDescription()
+ {
+ return new ModelDescription();
+ }
+
+ /** Create an instance of {@link PropertyList } */
+ public PropertyList createPropertyList()
+ {
+ return new PropertyList();
+ }
+
+ /** Create an instance of {@link UserContext } */
+ public UserContext createUserContext()
+ {
+ return new UserContext();
+ }
+
+ /** Create an instance of {@link GetServiceDescription } */
+ public GetServiceDescription createGetServiceDescription()
+ {
+ return new GetServiceDescription();
+ }
+
+ /** Create an instance of {@link InconsistentParametersFault } */
+ public InconsistentParametersFault createInconsistentParametersFault()
+ {
+ return new InconsistentParametersFault();
+ }
+
+ /** Create an instance of {@link LocalizedString } */
+ public LocalizedString createLocalizedString()
+ {
+ return new LocalizedString();
+ }
+
+ /** Create an instance of {@link UpdateResponse } */
+ public UpdateResponse createUpdateResponse()
+ {
+ return new UpdateResponse();
+ }
+
+ /** Create an instance of {@link MarkupType } */
+ public MarkupType createMarkupType()
+ {
+ return new MarkupType();
+ }
+
+ /** Create an instance of {@link GetPortletDescription } */
+ public GetPortletDescription createGetPortletDescription()
+ {
+ return new GetPortletDescription();
+ }
+
+ /** Create an instance of {@link ModelTypes } */
+ public ModelTypes createModelTypes()
+ {
+ return new ModelTypes();
+ }
+
+ /** Create an instance of {@link MarkupContext } */
+ public MarkupContext createMarkupContext()
+ {
+ return new MarkupContext();
+ }
+
+ /** Create an instance of {@link PortletPropertyDescriptionResponse } */
+ public PortletPropertyDescriptionResponse createPortletPropertyDescriptionResponse()
+ {
+ return new PortletPropertyDescriptionResponse();
+ }
+
+ /** Create an instance of {@link EmployerInfo } */
+ public EmployerInfo createEmployerInfo()
+ {
+ return new EmployerInfo();
+ }
+
+ /** Create an instance of {@link DestroyPortletsResponse } */
+ public DestroyPortletsResponse createDestroyPortletsResponse()
+ {
+ return new DestroyPortletsResponse();
+ }
+
+ /** Create an instance of {@link ClonePortlet } */
+ public ClonePortlet createClonePortlet()
+ {
+ return new ClonePortlet();
+ }
+
+ /** Create an instance of {@link UnsupportedModeFault } */
+ public UnsupportedModeFault createUnsupportedModeFault()
+ {
+ return new UnsupportedModeFault();
+ }
+
+ /** Create an instance of {@link ResourceValue } */
+ public ResourceValue createResourceValue()
+ {
+ return new ResourceValue();
+ }
+
+ /** Create an instance of {@link Property } */
+ public Property createProperty()
+ {
+ return new Property();
+ }
+
+ /** Create an instance of {@link RegistrationState } */
+ public RegistrationState createRegistrationState()
+ {
+ return new RegistrationState();
+ }
+
+ /** Create an instance of {@link TelephoneNum } */
+ public TelephoneNum createTelephoneNum()
+ {
+ return new TelephoneNum();
+ }
+
+ /** Create an instance of {@link UnsupportedWindowStateFault } */
+ public UnsupportedWindowStateFault createUnsupportedWindowStateFault()
+ {
+ return new UnsupportedWindowStateFault();
+ }
+
+ /** Create an instance of {@link UnsupportedLocaleFault } */
+ public UnsupportedLocaleFault createUnsupportedLocaleFault()
+ {
+ return new UnsupportedLocaleFault();
+ }
+
+ /** Create an instance of {@link NamedStringArray } */
+ public NamedStringArray createNamedStringArray()
+ {
+ return new NamedStringArray();
+ }
+
+ /** Create an instance of {@link CacheControl } */
+ public CacheControl createCacheControl()
+ {
+ return new CacheControl();
+ }
+
+ /** Create an instance of {@link InvalidSessionFault } */
+ public InvalidSessionFault createInvalidSessionFault()
+ {
+ return new InvalidSessionFault();
+ }
+
+ /** Create an instance of {@link PerformBlockingInteraction } */
+ public PerformBlockingInteraction createPerformBlockingInteraction()
+ {
+ return new PerformBlockingInteraction();
+ }
+
+ /** Create an instance of {@link StringArray } */
+ public StringArray createStringArray()
+ {
+ return new StringArray();
+ }
+
+ /** Create an instance of {@link PropertyDescription } */
+ public PropertyDescription createPropertyDescription()
+ {
+ return new PropertyDescription();
+ }
+
+ /** Create an instance of {@link DestroyPortlets } */
+ public DestroyPortlets createDestroyPortlets()
+ {
+ return new DestroyPortlets();
+ }
+
+ /** Create an instance of {@link NamedString } */
+ public NamedString createNamedString()
+ {
+ return new NamedString();
+ }
+
+ /** Create an instance of {@link ReturnAny } */
+ public ReturnAny createReturnAny()
+ {
+ return new ReturnAny();
+ }
+
+ /** Create an instance of {@link PortletStateChangeRequiredFault } */
+ public PortletStateChangeRequiredFault createPortletStateChangeRequiredFault()
+ {
+ return new PortletStateChangeRequiredFault();
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RuntimeContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"RuntimeContext")
+ public JAXBElement<RuntimeContext> createRuntimeContext(RuntimeContext value)
+ {
+ return new JAXBElement<RuntimeContext>(_RuntimeContext_QNAME,
RuntimeContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link PortletContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"PortletContext")
+ public JAXBElement<PortletContext> createPortletContext(PortletContext value)
+ {
+ return new JAXBElement<PortletContext>(_PortletContext_QNAME,
PortletContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ServiceDescription
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"ServiceDescription")
+ public JAXBElement<ServiceDescription>
createServiceDescription(ServiceDescription value)
+ {
+ return new JAXBElement<ServiceDescription>(_ServiceDescription_QNAME,
ServiceDescription.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"deregister")
+ public JAXBElement<RegistrationContext> createDeregister(RegistrationContext
value)
+ {
+ return new JAXBElement<RegistrationContext>(_Deregister_QNAME,
RegistrationContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link UserContext }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"UserContext")
+ public JAXBElement<UserContext> createUserContext(UserContext value)
+ {
+ return new JAXBElement<UserContext>(_UserContext_QNAME, UserContext.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
UnsupportedMimeTypeFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"UnsupportedMimeType")
+ public JAXBElement<UnsupportedMimeTypeFault>
createUnsupportedMimeType(UnsupportedMimeTypeFault value)
+ {
+ return new JAXBElement<UnsupportedMimeTypeFault>(_UnsupportedMimeType_QNAME,
UnsupportedMimeTypeFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link MarkupResponse
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"getMarkupResponse")
+ public JAXBElement<MarkupResponse> createGetMarkupResponse(MarkupResponse
value)
+ {
+ return new JAXBElement<MarkupResponse>(_GetMarkupResponse_QNAME,
MarkupResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationData
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"RegistrationData")
+ public JAXBElement<RegistrationData> createRegistrationData(RegistrationData
value)
+ {
+ return new JAXBElement<RegistrationData>(_RegistrationData_QNAME,
RegistrationData.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link NamedStringArray
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"NamedStringArray")
+ public JAXBElement<NamedStringArray> createNamedStringArray(NamedStringArray
value)
+ {
+ return new JAXBElement<NamedStringArray>(_NamedStringArray_QNAME,
NamedStringArray.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ModelDescription
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"ModelDescription")
+ public JAXBElement<ModelDescription> createModelDescription(ModelDescription
value)
+ {
+ return new JAXBElement<ModelDescription>(_ModelDescription_QNAME,
ModelDescription.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link PortletContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"clonePortletResponse")
+ public JAXBElement<PortletContext> createClonePortletResponse(PortletContext
value)
+ {
+ return new JAXBElement<PortletContext>(_ClonePortletResponse_QNAME,
PortletContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
MissingParametersFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"MissingParameters")
+ public JAXBElement<MissingParametersFault>
createMissingParameters(MissingParametersFault value)
+ {
+ return new JAXBElement<MissingParametersFault>(_MissingParameters_QNAME,
MissingParametersFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ReturnAny }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"deregisterResponse")
+ public JAXBElement<ReturnAny> createDeregisterResponse(ReturnAny value)
+ {
+ return new JAXBElement<ReturnAny>(_DeregisterResponse_QNAME, ReturnAny.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
*/
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"Key")
+ public JAXBElement<String> createKey(String value)
+ {
+ return new JAXBElement<String>(_Key_QNAME, String.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link InteractionParams
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InteractionParams")
+ public JAXBElement<InteractionParams> createInteractionParams(InteractionParams
value)
+ {
+ return new JAXBElement<InteractionParams>(_InteractionParams_QNAME,
InteractionParams.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
BlockingInteractionResponse }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"performBlockingInteractionResponse")
+ public JAXBElement<BlockingInteractionResponse>
createPerformBlockingInteractionResponse(BlockingInteractionResponse value)
+ {
+ return new
JAXBElement<BlockingInteractionResponse>(_PerformBlockingInteractionResponse_QNAME,
BlockingInteractionResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link PropertyList }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"PropertyList")
+ public JAXBElement<PropertyList> createPropertyList(PropertyList value)
+ {
+ return new JAXBElement<PropertyList>(_PropertyList_QNAME, PropertyList.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
DestroyPortletsResponse }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"destroyPortletsResponse")
+ public JAXBElement<DestroyPortletsResponse>
createDestroyPortletsResponse(DestroyPortletsResponse value)
+ {
+ return new
JAXBElement<DestroyPortletsResponse>(_DestroyPortletsResponse_QNAME,
DestroyPortletsResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"registerResponse")
+ public JAXBElement<RegistrationContext>
createRegisterResponse(RegistrationContext value)
+ {
+ return new JAXBElement<RegistrationContext>(_RegisterResponse_QNAME,
RegistrationContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
*/
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"ID")
+ public JAXBElement<String> createID(String value)
+ {
+ return new JAXBElement<String>(_ID_QNAME, String.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"RegistrationContext")
+ public JAXBElement<RegistrationContext>
createRegistrationContext(RegistrationContext value)
+ {
+ return new JAXBElement<RegistrationContext>(_RegistrationContext_QNAME,
RegistrationContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
PortletStateChangeRequiredFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"PortletStateChangeRequired")
+ public JAXBElement<PortletStateChangeRequiredFault>
createPortletStateChangeRequired(PortletStateChangeRequiredFault value)
+ {
+ return new
JAXBElement<PortletStateChangeRequiredFault>(_PortletStateChangeRequired_QNAME,
PortletStateChangeRequiredFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
InvalidRegistrationFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InvalidRegistration")
+ public JAXBElement<InvalidRegistrationFault>
createInvalidRegistration(InvalidRegistrationFault value)
+ {
+ return new JAXBElement<InvalidRegistrationFault>(_InvalidRegistration_QNAME,
InvalidRegistrationFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
InconsistentParametersFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InconsistentParameters")
+ public JAXBElement<InconsistentParametersFault>
createInconsistentParameters(InconsistentParametersFault value)
+ {
+ return new
JAXBElement<InconsistentParametersFault>(_InconsistentParameters_QNAME,
InconsistentParametersFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
PortletDescriptionResponse }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"getPortletDescriptionResponse")
+ public JAXBElement<PortletDescriptionResponse>
createGetPortletDescriptionResponse(PortletDescriptionResponse value)
+ {
+ return new
JAXBElement<PortletDescriptionResponse>(_GetPortletDescriptionResponse_QNAME,
PortletDescriptionResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link InvalidSessionFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InvalidSession")
+ public JAXBElement<InvalidSessionFault> createInvalidSession(InvalidSessionFault
value)
+ {
+ return new JAXBElement<InvalidSessionFault>(_InvalidSession_QNAME,
InvalidSessionFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link Templates }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"Templates")
+ public JAXBElement<Templates> createTemplates(Templates value)
+ {
+ return new JAXBElement<Templates>(_Templates_QNAME, Templates.class, null,
value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link Contact }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"Contact")
+ public JAXBElement<Contact> createContact(Contact value)
+ {
+ return new JAXBElement<Contact>(_Contact_QNAME, Contact.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
BlockingInteractionResponse }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"BlockingInteractionResponse")
+ public JAXBElement<BlockingInteractionResponse>
createBlockingInteractionResponse(BlockingInteractionResponse value)
+ {
+ return new
JAXBElement<BlockingInteractionResponse>(_BlockingInteractionResponse_QNAME,
BlockingInteractionResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link PortletContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"setPortletPropertiesResponse")
+ public JAXBElement<PortletContext>
createSetPortletPropertiesResponse(PortletContext value)
+ {
+ return new JAXBElement<PortletContext>(_SetPortletPropertiesResponse_QNAME,
PortletContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationState
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"RegistrationState")
+ public JAXBElement<RegistrationState> createRegistrationState(RegistrationState
value)
+ {
+ return new JAXBElement<RegistrationState>(_RegistrationState_QNAME,
RegistrationState.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
UnsupportedLocaleFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"UnsupportedLocale")
+ public JAXBElement<UnsupportedLocaleFault>
createUnsupportedLocale(UnsupportedLocaleFault value)
+ {
+ return new JAXBElement<UnsupportedLocaleFault>(_UnsupportedLocale_QNAME,
UnsupportedLocaleFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link AccessDeniedFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"AccessDenied")
+ public JAXBElement<AccessDeniedFault> createAccessDenied(AccessDeniedFault
value)
+ {
+ return new JAXBElement<AccessDeniedFault>(_AccessDenied_QNAME,
AccessDeniedFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ServiceDescription
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"getServiceDescriptionResponse")
+ public JAXBElement<ServiceDescription>
createGetServiceDescriptionResponse(ServiceDescription value)
+ {
+ return new
JAXBElement<ServiceDescription>(_GetServiceDescriptionResponse_QNAME,
ServiceDescription.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link UnsupportedModeFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"UnsupportedMode")
+ public JAXBElement<UnsupportedModeFault>
createUnsupportedMode(UnsupportedModeFault value)
+ {
+ return new JAXBElement<UnsupportedModeFault>(_UnsupportedMode_QNAME,
UnsupportedModeFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link OperationFailedFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"OperationFailed")
+ public JAXBElement<OperationFailedFault>
createOperationFailed(OperationFailedFault value)
+ {
+ return new JAXBElement<OperationFailedFault>(_OperationFailed_QNAME,
OperationFailedFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ReturnAny }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"initCookieResponse")
+ public JAXBElement<ReturnAny> createInitCookieResponse(ReturnAny value)
+ {
+ return new JAXBElement<ReturnAny>(_InitCookieResponse_QNAME, ReturnAny.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationData
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"register")
+ public JAXBElement<RegistrationData> createRegister(RegistrationData value)
+ {
+ return new JAXBElement<RegistrationData>(_Register_QNAME,
RegistrationData.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
UnsupportedWindowStateFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"UnsupportedWindowState")
+ public JAXBElement<UnsupportedWindowStateFault>
createUnsupportedWindowState(UnsupportedWindowStateFault value)
+ {
+ return new
JAXBElement<UnsupportedWindowStateFault>(_UnsupportedWindowState_QNAME,
UnsupportedWindowStateFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
InvalidUserCategoryFault }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InvalidUserCategory")
+ public JAXBElement<InvalidUserCategoryFault>
createInvalidUserCategory(InvalidUserCategoryFault value)
+ {
+ return new JAXBElement<InvalidUserCategoryFault>(_InvalidUserCategory_QNAME,
InvalidUserCategoryFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link StringArray }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"StringArray")
+ public JAXBElement<StringArray> createStringArray(StringArray value)
+ {
+ return new JAXBElement<StringArray>(_StringArray_QNAME, StringArray.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link SessionContext
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"SessionContext")
+ public JAXBElement<SessionContext> createSessionContext(SessionContext value)
+ {
+ return new JAXBElement<SessionContext>(_SessionContext_QNAME,
SessionContext.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link MarkupParams }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"MarkupParams")
+ public JAXBElement<MarkupParams> createMarkupParams(MarkupParams value)
+ {
+ return new JAXBElement<MarkupParams>(_MarkupParams_QNAME, MarkupParams.class,
null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ClientData }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"ClientData")
+ public JAXBElement<ClientData> createClientData(ClientData value)
+ {
+ return new JAXBElement<ClientData>(_ClientData_QNAME, ClientData.class, null,
value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link ReturnAny }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"releaseSessionsResponse")
+ public JAXBElement<ReturnAny> createReleaseSessionsResponse(ReturnAny value)
+ {
+ return new JAXBElement<ReturnAny>(_ReleaseSessionsResponse_QNAME,
ReturnAny.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link InvalidCookieFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InvalidCookie")
+ public JAXBElement<InvalidCookieFault> createInvalidCookie(InvalidCookieFault
value)
+ {
+ return new JAXBElement<InvalidCookieFault>(_InvalidCookie_QNAME,
InvalidCookieFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link PropertyList }{@code
>}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"getPortletPropertiesResponse")
+ public JAXBElement<PropertyList> createGetPortletPropertiesResponse(PropertyList
value)
+ {
+ return new JAXBElement<PropertyList>(_GetPortletPropertiesResponse_QNAME,
PropertyList.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link
PortletPropertyDescriptionResponse }{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"getPortletPropertyDescriptionResponse")
+ public JAXBElement<PortletPropertyDescriptionResponse>
createGetPortletPropertyDescriptionResponse(PortletPropertyDescriptionResponse value)
+ {
+ return new
JAXBElement<PortletPropertyDescriptionResponse>(_GetPortletPropertyDescriptionResponse_QNAME,
PortletPropertyDescriptionResponse.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link InvalidHandleFault
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"InvalidHandle")
+ public JAXBElement<InvalidHandleFault> createInvalidHandle(InvalidHandleFault
value)
+ {
+ return new JAXBElement<InvalidHandleFault>(_InvalidHandle_QNAME,
InvalidHandleFault.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
*/
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"Handle")
+ public JAXBElement<String> createHandle(String value)
+ {
+ return new JAXBElement<String>(_Handle_QNAME, String.class, null, value);
+ }
+
+ /** Create an instance of {@link JAXBElement }{@code <}{@link RegistrationState
}{@code >}} */
+ @XmlElementDecl(namespace = "urn:oasis:names:tc:wsrp:v1:types", name =
"modifyRegistrationResponse")
+ public JAXBElement<RegistrationState>
createModifyRegistrationResponse(RegistrationState value)
+ {
+ return new JAXBElement<RegistrationState>(_ModifyRegistrationResponse_QNAME,
RegistrationState.class, null, value);
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Online.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Online.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Online.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,133 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Online complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Online">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="email"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="uri"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Online", propOrder = {
+ "email",
+ "uri",
+ "extensions"
+})
+public class Online
+{
+
+ protected String email;
+ protected String uri;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the email property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getEmail()
+ {
+ return email;
+ }
+
+ /**
+ * Sets the value of the email property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setEmail(String value)
+ {
+ this.email = value;
+ }
+
+ /**
+ * Gets the value of the uri property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getUri()
+ {
+ return uri;
+ }
+
+ /**
+ * Sets the value of the uri property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setUri(String value)
+ {
+ this.uri = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailed.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailed.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailed.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "OperationFailed", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class OperationFailed extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.OperationFailedFault operationFailed;
+
+ public OperationFailed()
+ {
+ super();
+ }
+
+ public OperationFailed(String message)
+ {
+ super(message);
+ }
+
+ public OperationFailed(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public OperationFailed(String message, org.oasis.wsrp.v1.OperationFailedFault
operationFailed)
+ {
+ super(message);
+ this.operationFailed = operationFailed;
+ }
+
+ public OperationFailed(String message, org.oasis.wsrp.v1.OperationFailedFault
operationFailed, Throwable cause)
+ {
+ super(message, cause);
+ this.operationFailed = operationFailed;
+ }
+
+ public org.oasis.wsrp.v1.OperationFailedFault getFaultInfo()
+ {
+ return this.operationFailed;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailedFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailedFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/OperationFailedFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for OperationFailedFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="OperationFailedFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "OperationFailedFault")
+public class OperationFailedFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PerformBlockingInteraction.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PerformBlockingInteraction.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PerformBlockingInteraction.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,201 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="runtimeContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RuntimeContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="markupParams"
type="{urn:oasis:names:tc:wsrp:v1:types}MarkupParams"/>
+ * <element name="interactionParams"
type="{urn:oasis:names:tc:wsrp:v1:types}InteractionParams"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "runtimeContext",
+ "userContext",
+ "markupParams",
+ "interactionParams"
+})
+@XmlRootElement(name = "performBlockingInteraction")
+public class PerformBlockingInteraction
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true)
+ protected RuntimeContext runtimeContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ @XmlElement(required = true)
+ protected MarkupParams markupParams;
+ @XmlElement(required = true)
+ protected InteractionParams interactionParams;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the runtimeContext property.
+ *
+ * @return possible object is {@link RuntimeContext }
+ */
+ public RuntimeContext getRuntimeContext()
+ {
+ return runtimeContext;
+ }
+
+ /**
+ * Sets the value of the runtimeContext property.
+ *
+ * @param value allowed object is {@link RuntimeContext }
+ */
+ public void setRuntimeContext(RuntimeContext value)
+ {
+ this.runtimeContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the markupParams property.
+ *
+ * @return possible object is {@link MarkupParams }
+ */
+ public MarkupParams getMarkupParams()
+ {
+ return markupParams;
+ }
+
+ /**
+ * Sets the value of the markupParams property.
+ *
+ * @param value allowed object is {@link MarkupParams }
+ */
+ public void setMarkupParams(MarkupParams value)
+ {
+ this.markupParams = value;
+ }
+
+ /**
+ * Gets the value of the interactionParams property.
+ *
+ * @return possible object is {@link InteractionParams }
+ */
+ public InteractionParams getInteractionParams()
+ {
+ return interactionParams;
+ }
+
+ /**
+ * Sets the value of the interactionParams property.
+ *
+ * @param value allowed object is {@link InteractionParams }
+ */
+ public void setInteractionParams(InteractionParams value)
+ {
+ this.interactionParams = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PersonName.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PersonName.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PersonName.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,225 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PersonName complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PersonName">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="prefix"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="given"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="family"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="middle"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="suffix"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="nickname"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PersonName", propOrder = {
+ "prefix",
+ "given",
+ "family",
+ "middle",
+ "suffix",
+ "nickname",
+ "extensions"
+})
+public class PersonName
+{
+
+ protected String prefix;
+ protected String given;
+ protected String family;
+ protected String middle;
+ protected String suffix;
+ protected String nickname;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the prefix property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPrefix()
+ {
+ return prefix;
+ }
+
+ /**
+ * Sets the value of the prefix property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPrefix(String value)
+ {
+ this.prefix = value;
+ }
+
+ /**
+ * Gets the value of the given property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getGiven()
+ {
+ return given;
+ }
+
+ /**
+ * Sets the value of the given property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setGiven(String value)
+ {
+ this.given = value;
+ }
+
+ /**
+ * Gets the value of the family property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getFamily()
+ {
+ return family;
+ }
+
+ /**
+ * Sets the value of the family property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setFamily(String value)
+ {
+ this.family = value;
+ }
+
+ /**
+ * Gets the value of the middle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getMiddle()
+ {
+ return middle;
+ }
+
+ /**
+ * Sets the value of the middle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setMiddle(String value)
+ {
+ this.middle = value;
+ }
+
+ /**
+ * Gets the value of the suffix property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSuffix()
+ {
+ return suffix;
+ }
+
+ /**
+ * Sets the value of the suffix property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSuffix(String value)
+ {
+ this.suffix = value;
+ }
+
+ /**
+ * Gets the value of the nickname property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNickname()
+ {
+ return nickname;
+ }
+
+ /**
+ * Sets the value of the nickname property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNickname(String value)
+ {
+ this.nickname = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,135 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PortletContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PortletContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="portletHandle"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="portletState"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PortletContext", propOrder = {
+ "portletHandle",
+ "portletState",
+ "extensions"
+})
+public class PortletContext
+{
+
+ @XmlElement(required = true)
+ protected String portletHandle;
+ protected byte[] portletState;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the portletHandle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ /**
+ * Sets the value of the portletHandle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPortletHandle(String value)
+ {
+ this.portletHandle = value;
+ }
+
+ /**
+ * Gets the value of the portletState property.
+ *
+ * @return possible object is byte[]
+ */
+ public byte[] getPortletState()
+ {
+ return portletState;
+ }
+
+ /**
+ * Sets the value of the portletState property.
+ *
+ * @param value allowed object is byte[]
+ */
+ public void setPortletState(byte[] value)
+ {
+ this.portletState = ((byte[])value);
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,521 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PortletDescription complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PortletDescription">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="portletHandle"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="markupTypes"
type="{urn:oasis:names:tc:wsrp:v1:types}MarkupType"
maxOccurs="unbounded"/>
+ * <element name="groupID"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="description"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="shortTitle"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="title"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="displayName"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="keywords"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="userCategories"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="userProfileItems"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="usesMethodGet"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="defaultMarkupSecure"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="onlySecure"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="userContextStoredInSession"
type="{http://www.w3.org/2001/XMLSchema}boolean"
+ * minOccurs="0"/>
+ * <element name="templatesStoredInSession"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="hasUserSpecificState"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="doesUrlTemplateProcessing"
type="{http://www.w3.org/2001/XMLSchema}boolean"
+ * minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PortletDescription", propOrder = {
+ "portletHandle",
+ "markupTypes",
+ "groupID",
+ "description",
+ "shortTitle",
+ "title",
+ "displayName",
+ "keywords",
+ "userCategories",
+ "userProfileItems",
+ "usesMethodGet",
+ "defaultMarkupSecure",
+ "onlySecure",
+ "userContextStoredInSession",
+ "templatesStoredInSession",
+ "hasUserSpecificState",
+ "doesUrlTemplateProcessing",
+ "extensions"
+})
+public class PortletDescription
+{
+
+ @XmlElement(required = true)
+ protected String portletHandle;
+ @XmlElement(required = true)
+ protected List<MarkupType> markupTypes;
+ protected String groupID;
+ protected LocalizedString description;
+ protected LocalizedString shortTitle;
+ protected LocalizedString title;
+ protected LocalizedString displayName;
+ protected List<LocalizedString> keywords;
+ protected List<String> userCategories;
+ protected List<String> userProfileItems;
+ @XmlElement(defaultValue = "false")
+ protected Boolean usesMethodGet;
+ @XmlElement(defaultValue = "false")
+ protected Boolean defaultMarkupSecure;
+ @XmlElement(defaultValue = "false")
+ protected Boolean onlySecure;
+ @XmlElement(defaultValue = "false")
+ protected Boolean userContextStoredInSession;
+ @XmlElement(defaultValue = "false")
+ protected Boolean templatesStoredInSession;
+ @XmlElement(defaultValue = "false")
+ protected Boolean hasUserSpecificState;
+ @XmlElement(defaultValue = "false")
+ protected Boolean doesUrlTemplateProcessing;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the portletHandle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ /**
+ * Sets the value of the portletHandle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPortletHandle(String value)
+ {
+ this.portletHandle = value;
+ }
+
+ /**
+ * Gets the value of the markupTypes property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the markupTypes property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMarkupTypes().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link MarkupType }
+ */
+ public List<MarkupType> getMarkupTypes()
+ {
+ if (markupTypes == null)
+ {
+ markupTypes = new ArrayList<MarkupType>();
+ }
+ return this.markupTypes;
+ }
+
+ /**
+ * Gets the value of the groupID property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getGroupID()
+ {
+ return groupID;
+ }
+
+ /**
+ * Sets the value of the groupID property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setGroupID(String value)
+ {
+ this.groupID = value;
+ }
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setDescription(LocalizedString value)
+ {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the shortTitle property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getShortTitle()
+ {
+ return shortTitle;
+ }
+
+ /**
+ * Sets the value of the shortTitle property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setShortTitle(LocalizedString value)
+ {
+ this.shortTitle = value;
+ }
+
+ /**
+ * Gets the value of the title property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getTitle()
+ {
+ return title;
+ }
+
+ /**
+ * Sets the value of the title property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setTitle(LocalizedString value)
+ {
+ this.title = value;
+ }
+
+ /**
+ * Gets the value of the displayName property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ /**
+ * Sets the value of the displayName property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setDisplayName(LocalizedString value)
+ {
+ this.displayName = value;
+ }
+
+ /**
+ * Gets the value of the keywords property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the keywords property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeywords().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link LocalizedString }
+ */
+ public List<LocalizedString> getKeywords()
+ {
+ if (keywords == null)
+ {
+ keywords = new ArrayList<LocalizedString>();
+ }
+ return this.keywords;
+ }
+
+ /**
+ * Gets the value of the userCategories property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the userCategories property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUserCategories().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getUserCategories()
+ {
+ if (userCategories == null)
+ {
+ userCategories = new ArrayList<String>();
+ }
+ return this.userCategories;
+ }
+
+ /**
+ * Gets the value of the userProfileItems property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the userProfileItems property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUserProfileItems().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getUserProfileItems()
+ {
+ if (userProfileItems == null)
+ {
+ userProfileItems = new ArrayList<String>();
+ }
+ return this.userProfileItems;
+ }
+
+ /**
+ * Gets the value of the usesMethodGet property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isUsesMethodGet()
+ {
+ return usesMethodGet;
+ }
+
+ /**
+ * Sets the value of the usesMethodGet property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setUsesMethodGet(Boolean value)
+ {
+ this.usesMethodGet = value;
+ }
+
+ /**
+ * Gets the value of the defaultMarkupSecure property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isDefaultMarkupSecure()
+ {
+ return defaultMarkupSecure;
+ }
+
+ /**
+ * Sets the value of the defaultMarkupSecure property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setDefaultMarkupSecure(Boolean value)
+ {
+ this.defaultMarkupSecure = value;
+ }
+
+ /**
+ * Gets the value of the onlySecure property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isOnlySecure()
+ {
+ return onlySecure;
+ }
+
+ /**
+ * Sets the value of the onlySecure property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setOnlySecure(Boolean value)
+ {
+ this.onlySecure = value;
+ }
+
+ /**
+ * Gets the value of the userContextStoredInSession property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isUserContextStoredInSession()
+ {
+ return userContextStoredInSession;
+ }
+
+ /**
+ * Sets the value of the userContextStoredInSession property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setUserContextStoredInSession(Boolean value)
+ {
+ this.userContextStoredInSession = value;
+ }
+
+ /**
+ * Gets the value of the templatesStoredInSession property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isTemplatesStoredInSession()
+ {
+ return templatesStoredInSession;
+ }
+
+ /**
+ * Sets the value of the templatesStoredInSession property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setTemplatesStoredInSession(Boolean value)
+ {
+ this.templatesStoredInSession = value;
+ }
+
+ /**
+ * Gets the value of the hasUserSpecificState property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isHasUserSpecificState()
+ {
+ return hasUserSpecificState;
+ }
+
+ /**
+ * Sets the value of the hasUserSpecificState property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setHasUserSpecificState(Boolean value)
+ {
+ this.hasUserSpecificState = value;
+ }
+
+ /**
+ * Gets the value of the doesUrlTemplateProcessing property.
+ *
+ * @return possible object is {@link Boolean }
+ */
+ public Boolean isDoesUrlTemplateProcessing()
+ {
+ return doesUrlTemplateProcessing;
+ }
+
+ /**
+ * Sets the value of the doesUrlTemplateProcessing property.
+ *
+ * @param value allowed object is {@link Boolean }
+ */
+ public void setDoesUrlTemplateProcessing(Boolean value)
+ {
+ this.doesUrlTemplateProcessing = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescriptionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescriptionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletDescriptionResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,135 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PortletDescriptionResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PortletDescriptionResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="portletDescription"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletDescription"/>
+ * <element name="resourceList"
type="{urn:oasis:names:tc:wsrp:v1:types}ResourceList"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PortletDescriptionResponse", propOrder = {
+ "portletDescription",
+ "resourceList",
+ "extensions"
+})
+public class PortletDescriptionResponse
+{
+
+ @XmlElement(required = true)
+ protected PortletDescription portletDescription;
+ protected ResourceList resourceList;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the portletDescription property.
+ *
+ * @return possible object is {@link PortletDescription }
+ */
+ public PortletDescription getPortletDescription()
+ {
+ return portletDescription;
+ }
+
+ /**
+ * Sets the value of the portletDescription property.
+ *
+ * @param value allowed object is {@link PortletDescription }
+ */
+ public void setPortletDescription(PortletDescription value)
+ {
+ this.portletDescription = value;
+ }
+
+ /**
+ * Gets the value of the resourceList property.
+ *
+ * @return possible object is {@link ResourceList }
+ */
+ public ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ /**
+ * Sets the value of the resourceList property.
+ *
+ * @param value allowed object is {@link ResourceList }
+ */
+ public void setResourceList(ResourceList value)
+ {
+ this.resourceList = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletPropertyDescriptionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletPropertyDescriptionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletPropertyDescriptionResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,134 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PortletPropertyDescriptionResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PortletPropertyDescriptionResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="modelDescription"
type="{urn:oasis:names:tc:wsrp:v1:types}ModelDescription"
+ * minOccurs="0"/>
+ * <element name="resourceList"
type="{urn:oasis:names:tc:wsrp:v1:types}ResourceList"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PortletPropertyDescriptionResponse", propOrder = {
+ "modelDescription",
+ "resourceList",
+ "extensions"
+})
+public class PortletPropertyDescriptionResponse
+{
+
+ protected ModelDescription modelDescription;
+ protected ResourceList resourceList;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the modelDescription property.
+ *
+ * @return possible object is {@link ModelDescription }
+ */
+ public ModelDescription getModelDescription()
+ {
+ return modelDescription;
+ }
+
+ /**
+ * Sets the value of the modelDescription property.
+ *
+ * @param value allowed object is {@link ModelDescription }
+ */
+ public void setModelDescription(ModelDescription value)
+ {
+ this.modelDescription = value;
+ }
+
+ /**
+ * Gets the value of the resourceList property.
+ *
+ * @return possible object is {@link ResourceList }
+ */
+ public ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ /**
+ * Sets the value of the resourceList property.
+ *
+ * @param value allowed object is {@link ResourceList }
+ */
+ public void setResourceList(ResourceList value)
+ {
+ this.resourceList = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequired.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequired.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequired.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "PortletStateChangeRequired", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class PortletStateChangeRequired extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.PortletStateChangeRequiredFault portletStateChangeRequired;
+
+ public PortletStateChangeRequired()
+ {
+ super();
+ }
+
+ public PortletStateChangeRequired(String message)
+ {
+ super(message);
+ }
+
+ public PortletStateChangeRequired(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public PortletStateChangeRequired(String message,
org.oasis.wsrp.v1.PortletStateChangeRequiredFault portletStateChangeRequired)
+ {
+ super(message);
+ this.portletStateChangeRequired = portletStateChangeRequired;
+ }
+
+ public PortletStateChangeRequired(String message,
org.oasis.wsrp.v1.PortletStateChangeRequiredFault portletStateChangeRequired, Throwable
cause)
+ {
+ super(message, cause);
+ this.portletStateChangeRequired = portletStateChangeRequired;
+ }
+
+ public org.oasis.wsrp.v1.PortletStateChangeRequiredFault getFaultInfo()
+ {
+ return this.portletStateChangeRequired;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequiredFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequiredFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PortletStateChangeRequiredFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for PortletStateChangeRequiredFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PortletStateChangeRequiredFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PortletStateChangeRequiredFault")
+public class PortletStateChangeRequiredFault
+ extends Fault
+{
+
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Postal.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Postal.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Postal.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,248 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Postal complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Postal">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="street"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="city"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="stateprov"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="postalcode"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="country"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="organization"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Postal", propOrder = {
+ "name",
+ "street",
+ "city",
+ "stateprov",
+ "postalcode",
+ "country",
+ "organization",
+ "extensions"
+})
+public class Postal
+{
+
+ protected String name;
+ protected String street;
+ protected String city;
+ protected String stateprov;
+ protected String postalcode;
+ protected String country;
+ protected String organization;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the street property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getStreet()
+ {
+ return street;
+ }
+
+ /**
+ * Sets the value of the street property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setStreet(String value)
+ {
+ this.street = value;
+ }
+
+ /**
+ * Gets the value of the city property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCity()
+ {
+ return city;
+ }
+
+ /**
+ * Sets the value of the city property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCity(String value)
+ {
+ this.city = value;
+ }
+
+ /**
+ * Gets the value of the stateprov property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getStateprov()
+ {
+ return stateprov;
+ }
+
+ /**
+ * Sets the value of the stateprov property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setStateprov(String value)
+ {
+ this.stateprov = value;
+ }
+
+ /**
+ * Gets the value of the postalcode property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPostalcode()
+ {
+ return postalcode;
+ }
+
+ /**
+ * Sets the value of the postalcode property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPostalcode(String value)
+ {
+ this.postalcode = value;
+ }
+
+ /**
+ * Gets the value of the country property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCountry()
+ {
+ return country;
+ }
+
+ /**
+ * Sets the value of the country property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCountry(String value)
+ {
+ this.country = value;
+ }
+
+ /**
+ * Gets the value of the organization property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getOrganization()
+ {
+ return organization;
+ }
+
+ /**
+ * Sets the value of the organization property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setOrganization(String value)
+ {
+ this.organization = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Property.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Property.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Property.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,160 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Property complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Property">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="stringValue"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * <attribute name="name" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Property", propOrder = {
+ "stringValue",
+ "any"
+})
+public class Property
+{
+
+ protected String stringValue;
+ @XmlAnyElement
+ protected List<Element> any;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
+ protected String lang;
+
+ /**
+ * Gets the value of the stringValue property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getStringValue()
+ {
+ return stringValue;
+ }
+
+ /**
+ * Sets the value of the stringValue property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setStringValue(String value)
+ {
+ this.stringValue = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the any property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Element }
+ */
+ public List<Element> getAny()
+ {
+ if (any == null)
+ {
+ any = new ArrayList<Element>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getLang()
+ {
+ return lang;
+ }
+
+ /**
+ * Sets the value of the lang property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setLang(String value)
+ {
+ this.lang = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,181 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PropertyDescription complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PropertyDescription">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="label"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="hint"
type="{urn:oasis:names:tc:wsrp:v1:types}LocalizedString"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * <attribute name="name" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="type" use="required"
type="{http://www.w3.org/2001/XMLSchema}QName" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PropertyDescription", propOrder = {
+ "label",
+ "hint",
+ "extensions"
+})
+public class PropertyDescription
+{
+
+ protected LocalizedString label;
+ protected LocalizedString hint;
+ protected List<Extension> extensions;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute(required = true)
+ protected QName type;
+
+ /**
+ * Gets the value of the label property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getLabel()
+ {
+ return label;
+ }
+
+ /**
+ * Sets the value of the label property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setLabel(LocalizedString value)
+ {
+ this.label = value;
+ }
+
+ /**
+ * Gets the value of the hint property.
+ *
+ * @return possible object is {@link LocalizedString }
+ */
+ public LocalizedString getHint()
+ {
+ return hint;
+ }
+
+ /**
+ * Sets the value of the hint property.
+ *
+ * @param value allowed object is {@link LocalizedString }
+ */
+ public void setHint(LocalizedString value)
+ {
+ this.hint = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return possible object is {@link QName }
+ */
+ public QName getType()
+ {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value allowed object is {@link QName }
+ */
+ public void setType(QName value)
+ {
+ this.type = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyList.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyList.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/PropertyList.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,149 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for PropertyList complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="PropertyList">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="properties"
type="{urn:oasis:names:tc:wsrp:v1:types}Property"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="resetProperties"
type="{urn:oasis:names:tc:wsrp:v1:types}ResetProperty"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PropertyList", propOrder = {
+ "properties",
+ "resetProperties",
+ "extensions"
+})
+public class PropertyList
+{
+
+ protected List<Property> properties;
+ protected List<ResetProperty> resetProperties;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the properties property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the properties property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getProperties().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Property }
+ */
+ public List<Property> getProperties()
+ {
+ if (properties == null)
+ {
+ properties = new ArrayList<Property>();
+ }
+ return this.properties;
+ }
+
+ /**
+ * Gets the value of the resetProperties property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the resetProperties property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getResetProperties().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ResetProperty }
+ */
+ public List<ResetProperty> getResetProperties()
+ {
+ if (resetProperties == null)
+ {
+ resetProperties = new ArrayList<ResetProperty>();
+ }
+ return this.resetProperties;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,135 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for RegistrationContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="RegistrationContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationHandle"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="registrationState"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RegistrationContext", propOrder = {
+ "registrationHandle",
+ "registrationState",
+ "extensions"
+})
+public class RegistrationContext
+{
+
+ @XmlElement(required = true)
+ protected String registrationHandle;
+ protected byte[] registrationState;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the registrationHandle property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getRegistrationHandle()
+ {
+ return registrationHandle;
+ }
+
+ /**
+ * Sets the value of the registrationHandle property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setRegistrationHandle(String value)
+ {
+ this.registrationHandle = value;
+ }
+
+ /**
+ * Gets the value of the registrationState property.
+ *
+ * @return possible object is byte[]
+ */
+ public byte[] getRegistrationState()
+ {
+ return registrationState;
+ }
+
+ /**
+ * Sets the value of the registrationState property.
+ *
+ * @param value allowed object is byte[]
+ */
+ public void setRegistrationState(byte[] value)
+ {
+ this.registrationState = ((byte[])value);
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationData.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationData.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationData.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,349 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for RegistrationData complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="RegistrationData">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="consumerName"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="consumerAgent"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="methodGetSupported"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * <element name="consumerModes"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="consumerWindowStates"
type="{http://www.w3.org/2001/XMLSchema}string"
+ * maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="consumerUserScopes"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="customUserProfileData"
type="{http://www.w3.org/2001/XMLSchema}string"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="registrationProperties"
type="{urn:oasis:names:tc:wsrp:v1:types}Property"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RegistrationData", propOrder = {
+ "consumerName",
+ "consumerAgent",
+ "methodGetSupported",
+ "consumerModes",
+ "consumerWindowStates",
+ "consumerUserScopes",
+ "customUserProfileData",
+ "registrationProperties",
+ "extensions"
+})
+public class RegistrationData
+{
+
+ @XmlElement(required = true)
+ protected String consumerName;
+ @XmlElement(required = true)
+ protected String consumerAgent;
+ protected boolean methodGetSupported;
+ protected List<String> consumerModes;
+ protected List<String> consumerWindowStates;
+ protected List<String> consumerUserScopes;
+ protected List<String> customUserProfileData;
+ protected List<Property> registrationProperties;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the consumerName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getConsumerName()
+ {
+ return consumerName;
+ }
+
+ /**
+ * Sets the value of the consumerName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setConsumerName(String value)
+ {
+ this.consumerName = value;
+ }
+
+ /**
+ * Gets the value of the consumerAgent property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getConsumerAgent()
+ {
+ return consumerAgent;
+ }
+
+ /**
+ * Sets the value of the consumerAgent property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setConsumerAgent(String value)
+ {
+ this.consumerAgent = value;
+ }
+
+ /**
+ * Gets the value of the methodGetSupported property.
+ *
+ */
+ public boolean isMethodGetSupported()
+ {
+ return methodGetSupported;
+ }
+
+ /**
+ * Sets the value of the methodGetSupported property.
+ *
+ */
+ public void setMethodGetSupported(boolean value)
+ {
+ this.methodGetSupported = value;
+ }
+
+ /**
+ * Gets the value of the consumerModes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
consumerModes property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getConsumerModes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getConsumerModes()
+ {
+ if (consumerModes == null)
+ {
+ consumerModes = new ArrayList<String>();
+ }
+ return this.consumerModes;
+ }
+
+ /**
+ * Gets the value of the consumerWindowStates property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
consumerWindowStates property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getConsumerWindowStates().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getConsumerWindowStates()
+ {
+ if (consumerWindowStates == null)
+ {
+ consumerWindowStates = new ArrayList<String>();
+ }
+ return this.consumerWindowStates;
+ }
+
+ /**
+ * Gets the value of the consumerUserScopes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
consumerUserScopes property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getConsumerUserScopes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getConsumerUserScopes()
+ {
+ if (consumerUserScopes == null)
+ {
+ consumerUserScopes = new ArrayList<String>();
+ }
+ return this.consumerUserScopes;
+ }
+
+ /**
+ * Gets the value of the customUserProfileData property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
customUserProfileData property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getCustomUserProfileData().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getCustomUserProfileData()
+ {
+ if (customUserProfileData == null)
+ {
+ customUserProfileData = new ArrayList<String>();
+ }
+ return this.customUserProfileData;
+ }
+
+ /**
+ * Gets the value of the registrationProperties property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
registrationProperties property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRegistrationProperties().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Property }
+ *
+ *
+ */
+ public List<Property> getRegistrationProperties()
+ {
+ if (registrationProperties == null)
+ {
+ registrationProperties = new ArrayList<Property>();
+ }
+ return this.registrationProperties;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the extensions
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Extension }
+ *
+ *
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationState.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationState.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RegistrationState.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,110 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for RegistrationState complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="RegistrationState">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationState"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RegistrationState", propOrder = {
+ "registrationState",
+ "extensions"
+})
+public class RegistrationState
+{
+
+ protected byte[] registrationState;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the registrationState property.
+ *
+ * @return possible object is byte[]
+ */
+ public byte[] getRegistrationState()
+ {
+ return registrationState;
+ }
+
+ /**
+ * Sets the value of the registrationState property.
+ *
+ * @param value allowed object is byte[]
+ */
+ public void setRegistrationState(byte[] value)
+ {
+ this.registrationState = ((byte[])value);
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReleaseSessions.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReleaseSessions.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReleaseSessions.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,114 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="sessionIDs"
type="{http://www.w3.org/2001/XMLSchema}string"
maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "sessionIDs"
+})
+@XmlRootElement(name = "releaseSessions")
+public class ReleaseSessions
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected List<String> sessionIDs;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the sessionIDs property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the sessionIDs property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getSessionIDs().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getSessionIDs()
+ {
+ if (sessionIDs == null)
+ {
+ sessionIDs = new ArrayList<String>();
+ }
+ return this.sessionIDs;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResetProperty.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResetProperty.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResetProperty.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,77 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for ResetProperty complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ResetProperty">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * <attribute name="name" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ResetProperty")
+public class ResetProperty
+{
+
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Resource.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Resource.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Resource.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,143 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Resource complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Resource">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="values"
type="{urn:oasis:names:tc:wsrp:v1:types}ResourceValue"
maxOccurs="unbounded"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * <attribute name="resourceName" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Resource", propOrder = {
+ "values",
+ "extensions"
+})
+public class Resource
+{
+
+ @XmlElement(required = true)
+ protected List<ResourceValue> values;
+ protected List<Extension> extensions;
+ @XmlAttribute(required = true)
+ protected String resourceName;
+
+ /**
+ * Gets the value of the values property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the values property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValues().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ResourceValue }
+ */
+ public List<ResourceValue> getValues()
+ {
+ if (values == null)
+ {
+ values = new ArrayList<ResourceValue>();
+ }
+ return this.values;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+ /**
+ * Gets the value of the resourceName property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getResourceName()
+ {
+ return resourceName;
+ }
+
+ /**
+ * Sets the value of the resourceName property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setResourceName(String value)
+ {
+ this.resourceName = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceList.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceList.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceList.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,119 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ResourceList complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ResourceList">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="resources"
type="{urn:oasis:names:tc:wsrp:v1:types}Resource"
maxOccurs="unbounded"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ResourceList", propOrder = {
+ "resources",
+ "extensions"
+})
+public class ResourceList
+{
+
+ @XmlElement(required = true)
+ protected List<Resource> resources;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the resources property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the resources property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getResources().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Resource }
+ */
+ public List<Resource> getResources()
+ {
+ if (resources == null)
+ {
+ resources = new ArrayList<Resource>();
+ }
+ return this.resources;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceValue.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceValue.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ResourceValue.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,136 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ResourceValue complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ResourceValue">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="value"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang
use="required""/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ResourceValue", propOrder = {
+ "value",
+ "extensions"
+})
+public class ResourceValue
+{
+
+ @XmlElement(required = true)
+ protected String value;
+ protected List<Extension> extensions;
+ @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace", required =
true)
+ protected String lang;
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getLang()
+ {
+ return lang;
+ }
+
+ /**
+ * Sets the value of the lang property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setLang(String value)
+ {
+ this.lang = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReturnAny.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReturnAny.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ReturnAny.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,87 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ReturnAny complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ReturnAny">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ReturnAny", propOrder = {
+ "extensions"
+})
+public class ReturnAny
+{
+
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RuntimeContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RuntimeContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/RuntimeContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,204 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for RuntimeContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="RuntimeContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="userAuthentication"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="portletInstanceKey"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="namespacePrefix"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="templates"
type="{urn:oasis:names:tc:wsrp:v1:types}Templates" minOccurs="0"/>
+ * <element name="sessionID"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RuntimeContext", propOrder = {
+ "userAuthentication",
+ "portletInstanceKey",
+ "namespacePrefix",
+ "templates",
+ "sessionID",
+ "extensions"
+})
+public class RuntimeContext
+{
+
+ @XmlElement(required = true)
+ protected String userAuthentication;
+ protected String portletInstanceKey;
+ protected String namespacePrefix;
+ protected Templates templates;
+ protected String sessionID;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the userAuthentication property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getUserAuthentication()
+ {
+ return userAuthentication;
+ }
+
+ /**
+ * Sets the value of the userAuthentication property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setUserAuthentication(String value)
+ {
+ this.userAuthentication = value;
+ }
+
+ /**
+ * Gets the value of the portletInstanceKey property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getPortletInstanceKey()
+ {
+ return portletInstanceKey;
+ }
+
+ /**
+ * Sets the value of the portletInstanceKey property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setPortletInstanceKey(String value)
+ {
+ this.portletInstanceKey = value;
+ }
+
+ /**
+ * Gets the value of the namespacePrefix property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNamespacePrefix()
+ {
+ return namespacePrefix;
+ }
+
+ /**
+ * Sets the value of the namespacePrefix property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNamespacePrefix(String value)
+ {
+ this.namespacePrefix = value;
+ }
+
+ /**
+ * Gets the value of the templates property.
+ *
+ * @return possible object is {@link Templates }
+ */
+ public Templates getTemplates()
+ {
+ return templates;
+ }
+
+ /**
+ * Sets the value of the templates property.
+ *
+ * @param value allowed object is {@link Templates }
+ */
+ public void setTemplates(Templates value)
+ {
+ this.templates = value;
+ }
+
+ /**
+ * Gets the value of the sessionID property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSessionID()
+ {
+ return sessionID;
+ }
+
+ /**
+ * Sets the value of the sessionID property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSessionID(String value)
+ {
+ this.sessionID = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ServiceDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ServiceDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/ServiceDescription.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,361 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ServiceDescription complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ServiceDescription">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="requiresRegistration"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * <element name="offeredPortlets"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="userCategoryDescriptions"
type="{urn:oasis:names:tc:wsrp:v1:types}ItemDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="customUserProfileItemDescriptions"
type="{urn:oasis:names:tc:wsrp:v1:types}ItemDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="customWindowStateDescriptions"
type="{urn:oasis:names:tc:wsrp:v1:types}ItemDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="customModeDescriptions"
type="{urn:oasis:names:tc:wsrp:v1:types}ItemDescription"
+ * maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="requiresInitCookie"
type="{urn:oasis:names:tc:wsrp:v1:types}CookieProtocol"
+ * minOccurs="0"/>
+ * <element name="registrationPropertyDescription"
type="{urn:oasis:names:tc:wsrp:v1:types}ModelDescription"
+ * minOccurs="0"/>
+ * <element name="locales"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="resourceList"
type="{urn:oasis:names:tc:wsrp:v1:types}ResourceList"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ServiceDescription", propOrder = {
+ "requiresRegistration",
+ "offeredPortlets",
+ "userCategoryDescriptions",
+ "customUserProfileItemDescriptions",
+ "customWindowStateDescriptions",
+ "customModeDescriptions",
+ "requiresInitCookie",
+ "registrationPropertyDescription",
+ "locales",
+ "resourceList",
+ "extensions"
+})
+public class ServiceDescription
+{
+
+ protected boolean requiresRegistration;
+ protected List<PortletDescription> offeredPortlets;
+ protected List<ItemDescription> userCategoryDescriptions;
+ protected List<ItemDescription> customUserProfileItemDescriptions;
+ protected List<ItemDescription> customWindowStateDescriptions;
+ protected List<ItemDescription> customModeDescriptions;
+ @XmlElement(defaultValue = "none")
+ protected CookieProtocol requiresInitCookie;
+ protected ModelDescription registrationPropertyDescription;
+ protected List<String> locales;
+ protected ResourceList resourceList;
+ protected List<Extension> extensions;
+
+ /** Gets the value of the requiresRegistration property. */
+ public boolean isRequiresRegistration()
+ {
+ return requiresRegistration;
+ }
+
+ /** Sets the value of the requiresRegistration property. */
+ public void setRequiresRegistration(boolean value)
+ {
+ this.requiresRegistration = value;
+ }
+
+ /**
+ * Gets the value of the offeredPortlets property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the offeredPortlets property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getOfferedPortlets().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link PortletDescription
}
+ */
+ public List<PortletDescription> getOfferedPortlets()
+ {
+ if (offeredPortlets == null)
+ {
+ offeredPortlets = new ArrayList<PortletDescription>();
+ }
+ return this.offeredPortlets;
+ }
+
+ /**
+ * Gets the value of the userCategoryDescriptions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the userCategoryDescriptions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUserCategoryDescriptions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ItemDescription }
+ */
+ public List<ItemDescription> getUserCategoryDescriptions()
+ {
+ if (userCategoryDescriptions == null)
+ {
+ userCategoryDescriptions = new ArrayList<ItemDescription>();
+ }
+ return this.userCategoryDescriptions;
+ }
+
+ /**
+ * Gets the value of the customUserProfileItemDescriptions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the customUserProfileItemDescriptions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getCustomUserProfileItemDescriptions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ItemDescription }
+ */
+ public List<ItemDescription> getCustomUserProfileItemDescriptions()
+ {
+ if (customUserProfileItemDescriptions == null)
+ {
+ customUserProfileItemDescriptions = new ArrayList<ItemDescription>();
+ }
+ return this.customUserProfileItemDescriptions;
+ }
+
+ /**
+ * Gets the value of the customWindowStateDescriptions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the customWindowStateDescriptions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getCustomWindowStateDescriptions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ItemDescription }
+ */
+ public List<ItemDescription> getCustomWindowStateDescriptions()
+ {
+ if (customWindowStateDescriptions == null)
+ {
+ customWindowStateDescriptions = new ArrayList<ItemDescription>();
+ }
+ return this.customWindowStateDescriptions;
+ }
+
+ /**
+ * Gets the value of the customModeDescriptions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the customModeDescriptions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getCustomModeDescriptions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link ItemDescription }
+ */
+ public List<ItemDescription> getCustomModeDescriptions()
+ {
+ if (customModeDescriptions == null)
+ {
+ customModeDescriptions = new ArrayList<ItemDescription>();
+ }
+ return this.customModeDescriptions;
+ }
+
+ /**
+ * Gets the value of the requiresInitCookie property.
+ *
+ * @return possible object is {@link CookieProtocol }
+ */
+ public CookieProtocol getRequiresInitCookie()
+ {
+ return requiresInitCookie;
+ }
+
+ /**
+ * Sets the value of the requiresInitCookie property.
+ *
+ * @param value allowed object is {@link CookieProtocol }
+ */
+ public void setRequiresInitCookie(CookieProtocol value)
+ {
+ this.requiresInitCookie = value;
+ }
+
+ /**
+ * Gets the value of the registrationPropertyDescription property.
+ *
+ * @return possible object is {@link ModelDescription }
+ */
+ public ModelDescription getRegistrationPropertyDescription()
+ {
+ return registrationPropertyDescription;
+ }
+
+ /**
+ * Sets the value of the registrationPropertyDescription property.
+ *
+ * @param value allowed object is {@link ModelDescription }
+ */
+ public void setRegistrationPropertyDescription(ModelDescription value)
+ {
+ this.registrationPropertyDescription = value;
+ }
+
+ /**
+ * Gets the value of the locales property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the locales property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLocales().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getLocales()
+ {
+ if (locales == null)
+ {
+ locales = new ArrayList<String>();
+ }
+ return this.locales;
+ }
+
+ /**
+ * Gets the value of the resourceList property.
+ *
+ * @return possible object is {@link ResourceList }
+ */
+ public ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ /**
+ * Sets the value of the resourceList property.
+ *
+ * @param value allowed object is {@link ResourceList }
+ */
+ public void setResourceList(ResourceList value)
+ {
+ this.resourceList = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SessionContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SessionContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SessionContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,127 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for SessionContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="SessionContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sessionID"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="expires"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "SessionContext", propOrder = {
+ "sessionID",
+ "expires",
+ "extensions"
+})
+public class SessionContext
+{
+
+ @XmlElement(required = true)
+ protected String sessionID;
+ protected int expires;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the sessionID property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSessionID()
+ {
+ return sessionID;
+ }
+
+ /**
+ * Sets the value of the sessionID property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSessionID(String value)
+ {
+ this.sessionID = value;
+ }
+
+ /** Gets the value of the expires property. */
+ public int getExpires()
+ {
+ return expires;
+ }
+
+ /** Sets the value of the expires property. */
+ public void setExpires(int value)
+ {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SetPortletProperties.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SetPortletProperties.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/SetPortletProperties.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,153 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="registrationContext"
type="{urn:oasis:names:tc:wsrp:v1:types}RegistrationContext"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"/>
+ * <element name="userContext"
type="{urn:oasis:names:tc:wsrp:v1:types}UserContext"/>
+ * <element name="propertyList"
type="{urn:oasis:names:tc:wsrp:v1:types}PropertyList"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "registrationContext",
+ "portletContext",
+ "userContext",
+ "propertyList"
+})
+@XmlRootElement(name = "setPortletProperties")
+public class SetPortletProperties
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected RegistrationContext registrationContext;
+ @XmlElement(required = true)
+ protected PortletContext portletContext;
+ @XmlElement(required = true, nillable = true)
+ protected UserContext userContext;
+ @XmlElement(required = true)
+ protected PropertyList propertyList;
+
+ /**
+ * Gets the value of the registrationContext property.
+ *
+ * @return possible object is {@link RegistrationContext }
+ */
+ public RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ /**
+ * Sets the value of the registrationContext property.
+ *
+ * @param value allowed object is {@link RegistrationContext }
+ */
+ public void setRegistrationContext(RegistrationContext value)
+ {
+ this.registrationContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the userContext property.
+ *
+ * @return possible object is {@link UserContext }
+ */
+ public UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ /**
+ * Sets the value of the userContext property.
+ *
+ * @param value allowed object is {@link UserContext }
+ */
+ public void setUserContext(UserContext value)
+ {
+ this.userContext = value;
+ }
+
+ /**
+ * Gets the value of the propertyList property.
+ *
+ * @return possible object is {@link PropertyList }
+ */
+ public PropertyList getPropertyList()
+ {
+ return propertyList;
+ }
+
+ /**
+ * Sets the value of the propertyList property.
+ *
+ * @param value allowed object is {@link PropertyList }
+ */
+ public void setPropertyList(PropertyList value)
+ {
+ this.propertyList = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StateChange.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StateChange.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StateChange.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,81 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for StateChange.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <simpleType name="StateChange">
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="readWrite"/>
+ * <enumeration value="cloneBeforeWrite"/>
+ * <enumeration value="readOnly"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ */
+@XmlType(name = "StateChange")
+@XmlEnum
+public enum StateChange
+{
+
+ @XmlEnumValue("readWrite")
+ READ_WRITE("readWrite"),
+ @XmlEnumValue("cloneBeforeWrite")
+ CLONE_BEFORE_WRITE("cloneBeforeWrite"),
+ @XmlEnumValue("readOnly")
+ READ_ONLY("readOnly");
+ private final String value;
+
+ StateChange(String v)
+ {
+ value = v;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public static StateChange fromValue(String v)
+ {
+ for (StateChange c : StateChange.values())
+ {
+ if (c.value.equals(v))
+ {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StringArray.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StringArray.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/StringArray.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,89 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for StringArray complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="StringArray">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="String"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StringArray", propOrder = {
+ "string"
+})
+public class StringArray
+{
+
+ @XmlElement(name = "String")
+ protected List<String> string;
+
+ /**
+ * Gets the value of the string property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the string property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getString().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getString()
+ {
+ if (string == null)
+ {
+ string = new ArrayList<String>();
+ }
+ return this.string;
+ }
+
+}
Added: jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Telecom.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Telecom.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Telecom.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,179 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Telecom complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Telecom">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="telephone"
type="{urn:oasis:names:tc:wsrp:v1:types}TelephoneNum"
minOccurs="0"/>
+ * <element name="fax"
type="{urn:oasis:names:tc:wsrp:v1:types}TelephoneNum"
minOccurs="0"/>
+ * <element name="mobile"
type="{urn:oasis:names:tc:wsrp:v1:types}TelephoneNum"
minOccurs="0"/>
+ * <element name="pager"
type="{urn:oasis:names:tc:wsrp:v1:types}TelephoneNum"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Telecom", propOrder = {
+ "telephone",
+ "fax",
+ "mobile",
+ "pager",
+ "extensions"
+})
+public class Telecom
+{
+
+ protected TelephoneNum telephone;
+ protected TelephoneNum fax;
+ protected TelephoneNum mobile;
+ protected TelephoneNum pager;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the telephone property.
+ *
+ * @return possible object is {@link TelephoneNum }
+ */
+ public TelephoneNum getTelephone()
+ {
+ return telephone;
+ }
+
+ /**
+ * Sets the value of the telephone property.
+ *
+ * @param value allowed object is {@link TelephoneNum }
+ */
+ public void setTelephone(TelephoneNum value)
+ {
+ this.telephone = value;
+ }
+
+ /**
+ * Gets the value of the fax property.
+ *
+ * @return possible object is {@link TelephoneNum }
+ */
+ public TelephoneNum getFax()
+ {
+ return fax;
+ }
+
+ /**
+ * Sets the value of the fax property.
+ *
+ * @param value allowed object is {@link TelephoneNum }
+ */
+ public void setFax(TelephoneNum value)
+ {
+ this.fax = value;
+ }
+
+ /**
+ * Gets the value of the mobile property.
+ *
+ * @return possible object is {@link TelephoneNum }
+ */
+ public TelephoneNum getMobile()
+ {
+ return mobile;
+ }
+
+ /**
+ * Sets the value of the mobile property.
+ *
+ * @param value allowed object is {@link TelephoneNum }
+ */
+ public void setMobile(TelephoneNum value)
+ {
+ this.mobile = value;
+ }
+
+ /**
+ * Gets the value of the pager property.
+ *
+ * @return possible object is {@link TelephoneNum }
+ */
+ public TelephoneNum getPager()
+ {
+ return pager;
+ }
+
+ /**
+ * Sets the value of the pager property.
+ *
+ * @param value allowed object is {@link TelephoneNum }
+ */
+ public void setPager(TelephoneNum value)
+ {
+ this.pager = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/TelephoneNum.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/TelephoneNum.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/TelephoneNum.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,202 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for TelephoneNum complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="TelephoneNum">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="intcode"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="loccode"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="number"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="ext"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="comment"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TelephoneNum", propOrder = {
+ "intcode",
+ "loccode",
+ "number",
+ "ext",
+ "comment",
+ "extensions"
+})
+public class TelephoneNum
+{
+
+ protected String intcode;
+ protected String loccode;
+ protected String number;
+ protected String ext;
+ protected String comment;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the intcode property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getIntcode()
+ {
+ return intcode;
+ }
+
+ /**
+ * Sets the value of the intcode property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setIntcode(String value)
+ {
+ this.intcode = value;
+ }
+
+ /**
+ * Gets the value of the loccode property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getLoccode()
+ {
+ return loccode;
+ }
+
+ /**
+ * Sets the value of the loccode property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setLoccode(String value)
+ {
+ this.loccode = value;
+ }
+
+ /**
+ * Gets the value of the number property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNumber()
+ {
+ return number;
+ }
+
+ /**
+ * Sets the value of the number property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNumber(String value)
+ {
+ this.number = value;
+ }
+
+ /**
+ * Gets the value of the ext property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getExt()
+ {
+ return ext;
+ }
+
+ /**
+ * Sets the value of the ext property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setExt(String value)
+ {
+ this.ext = value;
+ }
+
+ /**
+ * Gets the value of the comment property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getComment()
+ {
+ return comment;
+ }
+
+ /**
+ * Sets the value of the comment property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setComment(String value)
+ {
+ this.comment = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Templates.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Templates.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/Templates.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,275 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Templates complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="Templates">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="defaultTemplate"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="blockingActionTemplate"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="renderTemplate"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="resourceTemplate"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="secureDefaultTemplate"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="secureBlockingActionTemplate"
type="{http://www.w3.org/2001/XMLSchema}string"
+ * minOccurs="0"/>
+ * <element name="secureRenderTemplate"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="secureResourceTemplate"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Templates", propOrder = {
+ "defaultTemplate",
+ "blockingActionTemplate",
+ "renderTemplate",
+ "resourceTemplate",
+ "secureDefaultTemplate",
+ "secureBlockingActionTemplate",
+ "secureRenderTemplate",
+ "secureResourceTemplate",
+ "extensions"
+})
+public class Templates
+{
+
+ @XmlElement(required = true, nillable = true)
+ protected String defaultTemplate;
+ protected String blockingActionTemplate;
+ protected String renderTemplate;
+ protected String resourceTemplate;
+ @XmlElement(required = true, nillable = true)
+ protected String secureDefaultTemplate;
+ protected String secureBlockingActionTemplate;
+ protected String secureRenderTemplate;
+ protected String secureResourceTemplate;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the defaultTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getDefaultTemplate()
+ {
+ return defaultTemplate;
+ }
+
+ /**
+ * Sets the value of the defaultTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setDefaultTemplate(String value)
+ {
+ this.defaultTemplate = value;
+ }
+
+ /**
+ * Gets the value of the blockingActionTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getBlockingActionTemplate()
+ {
+ return blockingActionTemplate;
+ }
+
+ /**
+ * Sets the value of the blockingActionTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setBlockingActionTemplate(String value)
+ {
+ this.blockingActionTemplate = value;
+ }
+
+ /**
+ * Gets the value of the renderTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getRenderTemplate()
+ {
+ return renderTemplate;
+ }
+
+ /**
+ * Sets the value of the renderTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setRenderTemplate(String value)
+ {
+ this.renderTemplate = value;
+ }
+
+ /**
+ * Gets the value of the resourceTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getResourceTemplate()
+ {
+ return resourceTemplate;
+ }
+
+ /**
+ * Sets the value of the resourceTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setResourceTemplate(String value)
+ {
+ this.resourceTemplate = value;
+ }
+
+ /**
+ * Gets the value of the secureDefaultTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSecureDefaultTemplate()
+ {
+ return secureDefaultTemplate;
+ }
+
+ /**
+ * Sets the value of the secureDefaultTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSecureDefaultTemplate(String value)
+ {
+ this.secureDefaultTemplate = value;
+ }
+
+ /**
+ * Gets the value of the secureBlockingActionTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSecureBlockingActionTemplate()
+ {
+ return secureBlockingActionTemplate;
+ }
+
+ /**
+ * Sets the value of the secureBlockingActionTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSecureBlockingActionTemplate(String value)
+ {
+ this.secureBlockingActionTemplate = value;
+ }
+
+ /**
+ * Gets the value of the secureRenderTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSecureRenderTemplate()
+ {
+ return secureRenderTemplate;
+ }
+
+ /**
+ * Sets the value of the secureRenderTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSecureRenderTemplate(String value)
+ {
+ this.secureRenderTemplate = value;
+ }
+
+ /**
+ * Gets the value of the secureResourceTemplate property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getSecureResourceTemplate()
+ {
+ return secureResourceTemplate;
+ }
+
+ /**
+ * Sets the value of the secureResourceTemplate property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setSecureResourceTemplate(String value)
+ {
+ this.secureResourceTemplate = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocale.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocale.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocale.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "UnsupportedLocale", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class UnsupportedLocale extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.UnsupportedLocaleFault unsupportedLocale;
+
+ public UnsupportedLocale()
+ {
+ super();
+ }
+
+ public UnsupportedLocale(String message)
+ {
+ super(message);
+ }
+
+ public UnsupportedLocale(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public UnsupportedLocale(String message, org.oasis.wsrp.v1.UnsupportedLocaleFault
unsupportedLocale)
+ {
+ super(message);
+ this.unsupportedLocale = unsupportedLocale;
+ }
+
+ public UnsupportedLocale(String message, org.oasis.wsrp.v1.UnsupportedLocaleFault
unsupportedLocale, Throwable cause)
+ {
+ super(message, cause);
+ this.unsupportedLocale = unsupportedLocale;
+ }
+
+ public org.oasis.wsrp.v1.UnsupportedLocaleFault getFaultInfo()
+ {
+ return this.unsupportedLocale;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocaleFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocaleFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedLocaleFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UnsupportedLocaleFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UnsupportedLocaleFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UnsupportedLocaleFault")
+public class UnsupportedLocaleFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "UnsupportedMimeType", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class UnsupportedMimeType extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.UnsupportedMimeTypeFault unsupportedMimeType;
+
+ public UnsupportedMimeType()
+ {
+ super();
+ }
+
+ public UnsupportedMimeType(String message)
+ {
+ super(message);
+ }
+
+ public UnsupportedMimeType(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public UnsupportedMimeType(String message, org.oasis.wsrp.v1.UnsupportedMimeTypeFault
unsupportedMimeType)
+ {
+ super(message);
+ this.unsupportedMimeType = unsupportedMimeType;
+ }
+
+ public UnsupportedMimeType(String message, org.oasis.wsrp.v1.UnsupportedMimeTypeFault
unsupportedMimeType, Throwable cause)
+ {
+ super(message, cause);
+ this.unsupportedMimeType = unsupportedMimeType;
+ }
+
+ public org.oasis.wsrp.v1.UnsupportedMimeTypeFault getFaultInfo()
+ {
+ return this.unsupportedMimeType;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeTypeFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeTypeFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMimeTypeFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UnsupportedMimeTypeFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UnsupportedMimeTypeFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UnsupportedMimeTypeFault")
+public class UnsupportedMimeTypeFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMode.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMode.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedMode.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "UnsupportedMode", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class UnsupportedMode extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.UnsupportedModeFault unsupportedMode;
+
+ public UnsupportedMode()
+ {
+ super();
+ }
+
+ public UnsupportedMode(String message)
+ {
+ super(message);
+ }
+
+ public UnsupportedMode(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public UnsupportedMode(String message, org.oasis.wsrp.v1.UnsupportedModeFault
unsupportedMode)
+ {
+ super(message);
+ this.unsupportedMode = unsupportedMode;
+ }
+
+ public UnsupportedMode(String message, org.oasis.wsrp.v1.UnsupportedModeFault
unsupportedMode, Throwable cause)
+ {
+ super(message, cause);
+ this.unsupportedMode = unsupportedMode;
+ }
+
+ public org.oasis.wsrp.v1.UnsupportedModeFault getFaultInfo()
+ {
+ return this.unsupportedMode;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedModeFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedModeFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedModeFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UnsupportedModeFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UnsupportedModeFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UnsupportedModeFault")
+public class UnsupportedModeFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowState.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowState.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowState.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,69 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.ws.WebFault;
+
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebFault(name = "UnsupportedWindowState", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+public class UnsupportedWindowState extends Exception
+{
+ public static final long serialVersionUID = 20090803232729L;
+
+ private org.oasis.wsrp.v1.UnsupportedWindowStateFault unsupportedWindowState;
+
+ public UnsupportedWindowState()
+ {
+ super();
+ }
+
+ public UnsupportedWindowState(String message)
+ {
+ super(message);
+ }
+
+ public UnsupportedWindowState(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public UnsupportedWindowState(String message,
org.oasis.wsrp.v1.UnsupportedWindowStateFault unsupportedWindowState)
+ {
+ super(message);
+ this.unsupportedWindowState = unsupportedWindowState;
+ }
+
+ public UnsupportedWindowState(String message,
org.oasis.wsrp.v1.UnsupportedWindowStateFault unsupportedWindowState, Throwable cause)
+ {
+ super(message, cause);
+ this.unsupportedWindowState = unsupportedWindowState;
+ }
+
+ public org.oasis.wsrp.v1.UnsupportedWindowStateFault getFaultInfo()
+ {
+ return this.unsupportedWindowState;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowStateFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowStateFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UnsupportedWindowStateFault.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,54 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UnsupportedWindowStateFault complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UnsupportedWindowStateFault">
+ * <complexContent>
+ * <extension base="{urn:oasis:names:tc:wsrp:v1:types}Fault">
+ * <sequence>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UnsupportedWindowStateFault")
+public class UnsupportedWindowStateFault
+ extends Fault
+{
+
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UpdateResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UpdateResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UpdateResponse.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,194 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UpdateResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UpdateResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sessionContext"
type="{urn:oasis:names:tc:wsrp:v1:types}SessionContext"
minOccurs="0"/>
+ * <element name="portletContext"
type="{urn:oasis:names:tc:wsrp:v1:types}PortletContext"
minOccurs="0"/>
+ * <element name="markupContext"
type="{urn:oasis:names:tc:wsrp:v1:types}MarkupContext"
minOccurs="0"/>
+ * <element name="navigationalState"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="newWindowState"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="newMode"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UpdateResponse", propOrder = {
+ "sessionContext",
+ "portletContext",
+ "markupContext",
+ "navigationalState",
+ "newWindowState",
+ "newMode"
+})
+public class UpdateResponse
+{
+
+ protected SessionContext sessionContext;
+ protected PortletContext portletContext;
+ protected MarkupContext markupContext;
+ @XmlElement(required = true, nillable = true)
+ protected String navigationalState;
+ protected String newWindowState;
+ protected String newMode;
+
+ /**
+ * Gets the value of the sessionContext property.
+ *
+ * @return possible object is {@link SessionContext }
+ */
+ public SessionContext getSessionContext()
+ {
+ return sessionContext;
+ }
+
+ /**
+ * Sets the value of the sessionContext property.
+ *
+ * @param value allowed object is {@link SessionContext }
+ */
+ public void setSessionContext(SessionContext value)
+ {
+ this.sessionContext = value;
+ }
+
+ /**
+ * Gets the value of the portletContext property.
+ *
+ * @return possible object is {@link PortletContext }
+ */
+ public PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ /**
+ * Sets the value of the portletContext property.
+ *
+ * @param value allowed object is {@link PortletContext }
+ */
+ public void setPortletContext(PortletContext value)
+ {
+ this.portletContext = value;
+ }
+
+ /**
+ * Gets the value of the markupContext property.
+ *
+ * @return possible object is {@link MarkupContext }
+ */
+ public MarkupContext getMarkupContext()
+ {
+ return markupContext;
+ }
+
+ /**
+ * Sets the value of the markupContext property.
+ *
+ * @param value allowed object is {@link MarkupContext }
+ */
+ public void setMarkupContext(MarkupContext value)
+ {
+ this.markupContext = value;
+ }
+
+ /**
+ * Gets the value of the navigationalState property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ /**
+ * Sets the value of the navigationalState property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNavigationalState(String value)
+ {
+ this.navigationalState = value;
+ }
+
+ /**
+ * Gets the value of the newWindowState property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNewWindowState()
+ {
+ return newWindowState;
+ }
+
+ /**
+ * Sets the value of the newWindowState property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNewWindowState(String value)
+ {
+ this.newWindowState = value;
+ }
+
+ /**
+ * Gets the value of the newMode property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getNewMode()
+ {
+ return newMode;
+ }
+
+ /**
+ * Sets the value of the newMode property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setNewMode(String value)
+ {
+ this.newMode = value;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UploadContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UploadContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UploadContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,167 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for UploadContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UploadContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="mimeType"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="uploadData"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element name="mimeAttributes"
type="{urn:oasis:names:tc:wsrp:v1:types}NamedString"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UploadContext", propOrder = {
+ "mimeType",
+ "uploadData",
+ "mimeAttributes",
+ "extensions"
+})
+public class UploadContext
+{
+
+ @XmlElement(required = true)
+ protected String mimeType;
+ @XmlElement(required = true)
+ protected byte[] uploadData;
+ protected List<NamedString> mimeAttributes;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the mimeType property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getMimeType()
+ {
+ return mimeType;
+ }
+
+ /**
+ * Sets the value of the mimeType property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setMimeType(String value)
+ {
+ this.mimeType = value;
+ }
+
+ /**
+ * Gets the value of the uploadData property.
+ *
+ * @return possible object is byte[]
+ */
+ public byte[] getUploadData()
+ {
+ return uploadData;
+ }
+
+ /**
+ * Sets the value of the uploadData property.
+ *
+ * @param value allowed object is byte[]
+ */
+ public void setUploadData(byte[] value)
+ {
+ this.uploadData = ((byte[])value);
+ }
+
+ /**
+ * Gets the value of the mimeAttributes property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the mimeAttributes property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMimeAttributes().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link NamedString }
+ */
+ public List<NamedString> getMimeAttributes()
+ {
+ if (mimeAttributes == null)
+ {
+ mimeAttributes = new ArrayList<NamedString>();
+ }
+ return this.mimeAttributes;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserContext.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserContext.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,166 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for UserContext complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UserContext">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="userContextKey"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="userCategories"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * <element name="profile"
type="{urn:oasis:names:tc:wsrp:v1:types}UserProfile"
minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UserContext", propOrder = {
+ "userContextKey",
+ "userCategories",
+ "profile",
+ "extensions"
+})
+public class UserContext
+{
+
+ @XmlElement(required = true)
+ protected String userContextKey;
+ protected List<String> userCategories;
+ protected UserProfile profile;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the userContextKey property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getUserContextKey()
+ {
+ return userContextKey;
+ }
+
+ /**
+ * Sets the value of the userContextKey property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setUserContextKey(String value)
+ {
+ this.userContextKey = value;
+ }
+
+ /**
+ * Gets the value of the userCategories property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the userCategories property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUserCategories().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link String }
+ */
+ public List<String> getUserCategories()
+ {
+ if (userCategories == null)
+ {
+ userCategories = new ArrayList<String>();
+ }
+ return this.userCategories;
+ }
+
+ /**
+ * Gets the value of the profile property.
+ *
+ * @return possible object is {@link UserProfile }
+ */
+ public UserProfile getProfile()
+ {
+ return profile;
+ }
+
+ /**
+ * Sets the value of the profile property.
+ *
+ * @param value allowed object is {@link UserProfile }
+ */
+ public void setProfile(UserProfile value)
+ {
+ this.profile = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserProfile.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserProfile.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/UserProfile.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,228 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for UserProfile complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p/>
+ * <pre>
+ * <complexType name="UserProfile">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="name"
type="{urn:oasis:names:tc:wsrp:v1:types}PersonName"
minOccurs="0"/>
+ * <element name="bdate"
type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * <element name="gender"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="employerInfo"
type="{urn:oasis:names:tc:wsrp:v1:types}EmployerInfo"
minOccurs="0"/>
+ * <element name="homeInfo"
type="{urn:oasis:names:tc:wsrp:v1:types}Contact" minOccurs="0"/>
+ * <element name="businessInfo"
type="{urn:oasis:names:tc:wsrp:v1:types}Contact" minOccurs="0"/>
+ * <element name="extensions"
type="{urn:oasis:names:tc:wsrp:v1:types}Extension"
maxOccurs="unbounded"
+ * minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "UserProfile", propOrder = {
+ "name",
+ "bdate",
+ "gender",
+ "employerInfo",
+ "homeInfo",
+ "businessInfo",
+ "extensions"
+})
+public class UserProfile
+{
+
+ protected PersonName name;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar bdate;
+ protected String gender;
+ protected EmployerInfo employerInfo;
+ protected Contact homeInfo;
+ protected Contact businessInfo;
+ protected List<Extension> extensions;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link PersonName }
+ */
+ public PersonName getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link PersonName }
+ */
+ public void setName(PersonName value)
+ {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the bdate property.
+ *
+ * @return possible object is {@link XMLGregorianCalendar }
+ */
+ public XMLGregorianCalendar getBdate()
+ {
+ return bdate;
+ }
+
+ /**
+ * Sets the value of the bdate property.
+ *
+ * @param value allowed object is {@link XMLGregorianCalendar }
+ */
+ public void setBdate(XMLGregorianCalendar value)
+ {
+ this.bdate = value;
+ }
+
+ /**
+ * Gets the value of the gender property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getGender()
+ {
+ return gender;
+ }
+
+ /**
+ * Sets the value of the gender property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setGender(String value)
+ {
+ this.gender = value;
+ }
+
+ /**
+ * Gets the value of the employerInfo property.
+ *
+ * @return possible object is {@link EmployerInfo }
+ */
+ public EmployerInfo getEmployerInfo()
+ {
+ return employerInfo;
+ }
+
+ /**
+ * Sets the value of the employerInfo property.
+ *
+ * @param value allowed object is {@link EmployerInfo }
+ */
+ public void setEmployerInfo(EmployerInfo value)
+ {
+ this.employerInfo = value;
+ }
+
+ /**
+ * Gets the value of the homeInfo property.
+ *
+ * @return possible object is {@link Contact }
+ */
+ public Contact getHomeInfo()
+ {
+ return homeInfo;
+ }
+
+ /**
+ * Sets the value of the homeInfo property.
+ *
+ * @param value allowed object is {@link Contact }
+ */
+ public void setHomeInfo(Contact value)
+ {
+ this.homeInfo = value;
+ }
+
+ /**
+ * Gets the value of the businessInfo property.
+ *
+ * @return possible object is {@link Contact }
+ */
+ public Contact getBusinessInfo()
+ {
+ return businessInfo;
+ }
+
+ /**
+ * Sets the value of the businessInfo property.
+ *
+ * @param value allowed object is {@link Contact }
+ */
+ public void setBusinessInfo(Contact value)
+ {
+ this.businessInfo = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to
+ * the returned list will be present inside the JAXB object. This is why there is not
a <CODE>set</CODE> method for
+ * the extensions property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensions().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list {@link Extension }
+ */
+ public List<Extension> getExtensions()
+ {
+ if (extensions == null)
+ {
+ extensions = new ArrayList<Extension>();
+ }
+ return this.extensions;
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPService.java
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPService.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPService.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,156 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+
+@WebServiceClient(name = "WSRPService",
+ wsdlLocation =
"file:/Users/claprun/Dev/jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl",
+ targetNamespace = "urn:oasis:names:tc:wsrp:v1:wsdl")
+public class WSRPService extends Service
+{
+
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new
QName("urn:oasis:names:tc:wsrp:v1:wsdl", "WSRPService");
+ public final static QName WSRPServiceDescriptionService = new
QName("urn:oasis:names:tc:wsrp:v1:wsdl",
"WSRPServiceDescriptionService");
+ public final static QName WSRPBaseService = new
QName("urn:oasis:names:tc:wsrp:v1:wsdl", "WSRPBaseService");
+ public final static QName WSRPPortletManagementService = new
QName("urn:oasis:names:tc:wsrp:v1:wsdl",
"WSRPPortletManagementService");
+ public final static QName WSRPRegistrationService = new
QName("urn:oasis:names:tc:wsrp:v1:wsdl", "WSRPRegistrationService");
+
+ static
+ {
+ URL url = null;
+ try
+ {
+ url = new
URL("file:/Users/claprun/Dev/jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl");
+ }
+ catch (MalformedURLException e)
+ {
+ System.err.println("Can not initialize the default wsdl from
file:/Users/claprun/Dev/jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl");
+ // e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public WSRPService(URL wsdlLocation)
+ {
+ super(wsdlLocation, SERVICE);
+ }
+
+ public WSRPService(URL wsdlLocation, QName serviceName)
+ {
+ super(wsdlLocation, serviceName);
+ }
+
+ public WSRPService()
+ {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ /** @return returns WSRPV1ServiceDescriptionPortType */
+ @WebEndpoint(name = "WSRPServiceDescriptionService")
+ public WSRPV1ServiceDescriptionPortType getWSRPServiceDescriptionService()
+ {
+ return super.getPort(WSRPServiceDescriptionService,
WSRPV1ServiceDescriptionPortType.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on
the proxy. Supported features
+ * not in the <code>features</code> parameter will have
their default values.
+ * @return returns WSRPV1ServiceDescriptionPortType
+ */
+ @WebEndpoint(name = "WSRPServiceDescriptionService")
+ public WSRPV1ServiceDescriptionPortType
getWSRPServiceDescriptionService(WebServiceFeature... features)
+ {
+ return super.getPort(WSRPServiceDescriptionService,
WSRPV1ServiceDescriptionPortType.class, features);
+ }
+
+ /** @return returns WSRPV1MarkupPortType */
+ @WebEndpoint(name = "WSRPBaseService")
+ public WSRPV1MarkupPortType getWSRPBaseService()
+ {
+ return super.getPort(WSRPBaseService, WSRPV1MarkupPortType.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on
the proxy. Supported features
+ * not in the <code>features</code> parameter will have
their default values.
+ * @return returns WSRPV1MarkupPortType
+ */
+ @WebEndpoint(name = "WSRPBaseService")
+ public WSRPV1MarkupPortType getWSRPBaseService(WebServiceFeature... features)
+ {
+ return super.getPort(WSRPBaseService, WSRPV1MarkupPortType.class, features);
+ }
+
+ /** @return returns WSRPV1PortletManagementPortType */
+ @WebEndpoint(name = "WSRPPortletManagementService")
+ public WSRPV1PortletManagementPortType getWSRPPortletManagementService()
+ {
+ return super.getPort(WSRPPortletManagementService,
WSRPV1PortletManagementPortType.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on
the proxy. Supported features
+ * not in the <code>features</code> parameter will have
their default values.
+ * @return returns WSRPV1PortletManagementPortType
+ */
+ @WebEndpoint(name = "WSRPPortletManagementService")
+ public WSRPV1PortletManagementPortType
getWSRPPortletManagementService(WebServiceFeature... features)
+ {
+ return super.getPort(WSRPPortletManagementService,
WSRPV1PortletManagementPortType.class, features);
+ }
+
+ /** @return returns WSRPV1RegistrationPortType */
+ @WebEndpoint(name = "WSRPRegistrationService")
+ public WSRPV1RegistrationPortType getWSRPRegistrationService()
+ {
+ return super.getPort(WSRPRegistrationService, WSRPV1RegistrationPortType.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on
the proxy. Supported features
+ * not in the <code>features</code> parameter will have
their default values.
+ * @return returns WSRPV1RegistrationPortType
+ */
+ @WebEndpoint(name = "WSRPRegistrationService")
+ public WSRPV1RegistrationPortType getWSRPRegistrationService(WebServiceFeature...
features)
+ {
+ return super.getPort(WSRPRegistrationService, WSRPV1RegistrationPortType.class,
features);
+ }
+
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1MarkupPortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1MarkupPortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1MarkupPortType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,106 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebService(targetNamespace = "urn:oasis:names:tc:wsrp:v1:intf", name =
"WSRP_v1_Markup_PortType")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface WSRPV1MarkupPortType
+{
+
+ @RequestWrapper(localName = "performBlockingInteraction", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PerformBlockingInteraction")
+ @ResponseWrapper(localName = "performBlockingInteractionResponse",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.BlockingInteractionResponse")
+ @WebMethod(action =
"urn:oasis:names:tc:wsrp:v1:performBlockingInteraction")
+ public void performBlockingInteraction(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "runtimeContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RuntimeContext runtimeContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "markupParams", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.MarkupParams markupParams,
+ @WebParam(name = "interactionParams", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.InteractionParams interactionParams,
+ @WebParam(mode = WebParam.Mode.OUT, name = "updateResponse",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<UpdateResponse> updateResponse,
+ @WebParam(mode = WebParam.Mode.OUT, name = "redirectURL", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.lang.String> redirectURL,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie,
InvalidSession, MissingParameters, UnsupportedLocale, InconsistentParameters,
PortletStateChangeRequired, InvalidHandle, InvalidRegistration, InvalidUserCategory,
AccessDenied, OperationFailed;
+
+ @WebResult(name = "extensions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ @RequestWrapper(localName = "releaseSessions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ReleaseSessions")
+ @ResponseWrapper(localName = "releaseSessionsResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ReturnAny")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:releaseSessions")
+ public java.util.List<org.oasis.wsrp.v1.Extension> releaseSessions(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "sessionIDs", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> sessionIDs
+ ) throws MissingParameters, InvalidRegistration, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "getMarkup", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.GetMarkup")
+ @ResponseWrapper(localName = "getMarkupResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.MarkupResponse")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:getMarkup")
+ public void getMarkup(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "runtimeContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RuntimeContext runtimeContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "markupParams", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.MarkupParams markupParams,
+ @WebParam(mode = WebParam.Mode.OUT, name = "markupContext",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<MarkupContext> markupContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "sessionContext",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<SessionContext> sessionContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState, InvalidCookie,
InvalidSession, MissingParameters, UnsupportedLocale, InconsistentParameters,
InvalidHandle, InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @WebResult(name = "extensions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ @RequestWrapper(localName = "initCookie", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.InitCookie")
+ @ResponseWrapper(localName = "initCookieResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ReturnAny")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:initCookie")
+ public java.util.List<org.oasis.wsrp.v1.Extension> initCookie(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext
+ ) throws InvalidRegistration, AccessDenied, OperationFailed;
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1PortletManagementPortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1PortletManagementPortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1PortletManagementPortType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,151 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebService(targetNamespace = "urn:oasis:names:tc:wsrp:v1:intf", name =
"WSRP_v1_PortletManagement_PortType")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface WSRPV1PortletManagementPortType
+{
+
+ @RequestWrapper(localName = "getPortletPropertyDescription", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.GetPortletPropertyDescription")
+ @ResponseWrapper(localName = "getPortletPropertyDescriptionResponse",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PortletPropertyDescriptionResponse")
+ @WebMethod(action =
"urn:oasis:names:tc:wsrp:v1:getPortletPropertyDescription")
+ public void getPortletPropertyDescription(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "desiredLocales", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "modelDescription",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<ModelDescription> modelDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle,
InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "setPortletProperties", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.SetPortletProperties")
+ @ResponseWrapper(localName = "setPortletPropertiesResponse", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PortletContext")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:setPortletProperties")
+ public void setPortletProperties(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "propertyList", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PropertyList propertyList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.lang.String> portletHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletState",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<byte[]> portletState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle,
InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "clonePortlet", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ClonePortlet")
+ @ResponseWrapper(localName = "clonePortletResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PortletContext")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:clonePortlet")
+ public void clonePortlet(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletHandle",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.lang.String> portletHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletState",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<byte[]> portletState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle,
InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "getPortletDescription", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.GetPortletDescription")
+ @ResponseWrapper(localName = "getPortletDescriptionResponse",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PortletDescriptionResponse")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:getPortletDescription")
+ public void getPortletDescription(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "desiredLocales", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "portletDescription",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<PortletDescription> portletDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle,
InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "getPortletProperties", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.GetPortletProperties")
+ @ResponseWrapper(localName = "getPortletPropertiesResponse", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.PropertyList")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:getPortletProperties")
+ public void getPortletProperties(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.PortletContext portletContext,
+ @WebParam(name = "userContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.UserContext userContext,
+ @WebParam(name = "names", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> names,
+ @WebParam(mode = WebParam.Mode.OUT, name = "properties", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Property>>
properties,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resetProperties",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.ResetProperty>>
resetProperties,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidHandle,
InvalidRegistration, InvalidUserCategory, AccessDenied, OperationFailed;
+
+ @RequestWrapper(localName = "destroyPortlets", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.DestroyPortlets")
+ @ResponseWrapper(localName = "destroyPortletsResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.DestroyPortletsResponse")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:destroyPortlets")
+ public void destroyPortlets(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "portletHandles", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> portletHandles,
+ @WebParam(mode = WebParam.Mode.OUT, name = "destroyFailed",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.DestroyFailed>>
destroyFailed,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InconsistentParameters, InvalidRegistration,
OperationFailed;
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1RegistrationPortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1RegistrationPortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1RegistrationPortType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,95 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebService(targetNamespace = "urn:oasis:names:tc:wsrp:v1:intf", name =
"WSRP_v1_Registration_PortType")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface WSRPV1RegistrationPortType
+{
+
+ @RequestWrapper(localName = "register", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.RegistrationData")
+ @ResponseWrapper(localName = "registerResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.RegistrationContext")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:register")
+ public void register(
+ @WebParam(name = "consumerName", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.lang.String consumerName,
+ @WebParam(name = "consumerAgent", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.lang.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")
+ java.util.List<java.lang.String> consumerModes,
+ @WebParam(name = "consumerWindowStates", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> consumerWindowStates,
+ @WebParam(name = "consumerUserScopes", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> consumerUserScopes,
+ @WebParam(name = "customUserProfileData", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> customUserProfileData,
+ @WebParam(name = "registrationProperties", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<org.oasis.wsrp.v1.Property> registrationProperties,
+ @WebParam(mode = WebParam.Mode.INOUT, name = "extensions",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationHandle",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.lang.String> registrationHandle,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationState",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<byte[]> registrationState
+ ) throws MissingParameters, OperationFailed;
+
+ @RequestWrapper(localName = "modifyRegistration", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ModifyRegistration")
+ @ResponseWrapper(localName = "modifyRegistrationResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.RegistrationState")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:modifyRegistration")
+ public void modifyRegistration(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "registrationData", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationData registrationData,
+ @WebParam(mode = WebParam.Mode.OUT, name = "registrationState",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<byte[]> registrationState,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws MissingParameters, InvalidRegistration, OperationFailed;
+
+ @WebResult(name = "extensions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ @RequestWrapper(localName = "deregister", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.RegistrationContext")
+ @ResponseWrapper(localName = "deregisterResponse", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ReturnAny")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:deregister")
+ public java.util.List<org.oasis.wsrp.v1.Extension> deregister(
+ @WebParam(name = "registrationHandle", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.lang.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")
+ java.util.List<org.oasis.wsrp.v1.Extension> extensions
+ ) throws InvalidRegistration, OperationFailed;
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1ServiceDescriptionPortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1ServiceDescriptionPortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/WSRPV1ServiceDescriptionPortType.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,71 @@
+/*
+ * 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.oasis.wsrp.v1;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/** This class was generated by Apache CXF 2.2.2 Mon Aug 03 23:27:29 CEST 2009 Generated
source version: 2.2.2 */
+
+@WebService(targetNamespace = "urn:oasis:names:tc:wsrp:v1:intf", name =
"WSRP_v1_ServiceDescription_PortType")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface WSRPV1ServiceDescriptionPortType
+{
+
+ @RequestWrapper(localName = "getServiceDescription", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.GetServiceDescription")
+ @ResponseWrapper(localName = "getServiceDescriptionResponse",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", className =
"org.oasis.wsrp.v1.ServiceDescription")
+ @WebMethod(action = "urn:oasis:names:tc:wsrp:v1:getServiceDescription")
+ public void getServiceDescription(
+ @WebParam(name = "registrationContext", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ org.oasis.wsrp.v1.RegistrationContext registrationContext,
+ @WebParam(name = "desiredLocales", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ java.util.List<java.lang.String> desiredLocales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "requiresRegistration",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.lang.Boolean> requiresRegistration,
+ @WebParam(mode = WebParam.Mode.OUT, name = "offeredPortlets",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+
javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.PortletDescription>>
offeredPortlets,
+ @WebParam(mode = WebParam.Mode.OUT, name = "userCategoryDescriptions",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.ItemDescription>>
userCategoryDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name =
"customUserProfileItemDescriptions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.ItemDescription>>
customUserProfileItemDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name =
"customWindowStateDescriptions", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.ItemDescription>>
customWindowStateDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "customModeDescriptions",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.ItemDescription>>
customModeDescriptions,
+ @WebParam(mode = WebParam.Mode.OUT, name = "requiresInitCookie",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<CookieProtocol> requiresInitCookie,
+ @WebParam(mode = WebParam.Mode.OUT, name =
"registrationPropertyDescription", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<ModelDescription> registrationPropertyDescription,
+ @WebParam(mode = WebParam.Mode.OUT, name = "locales", targetNamespace =
"urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<java.lang.String>> locales,
+ @WebParam(mode = WebParam.Mode.OUT, name = "resourceList",
targetNamespace = "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<ResourceList> resourceList,
+ @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace
= "urn:oasis:names:tc:wsrp:v1:types")
+ javax.xml.ws.Holder<java.util.List<org.oasis.wsrp.v1.Extension>>
extensions
+ ) throws InvalidRegistration, OperationFailed;
+}
Added:
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/package-info.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/package-info.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-ws/src/main/java/org/oasis/wsrp/v1/package-info.java 2009-08-05
17:58:32 UTC (rev 13681)
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"urn:oasis:names:tc:wsrp:v1:types", elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.oasis.wsrp.v1;