Author: chris.laprun(a)jboss.com
Date: 2009-07-31 18:55:19 -0400 (Fri, 31 Jul 2009)
New Revision: 13649
Added:
jbossexo/modules/wsrp/
jbossexo/modules/wsrp/trunk/
jbossexo/modules/wsrp/trunk/build/
jbossexo/modules/wsrp/trunk/build/licences/
jbossexo/modules/wsrp/trunk/build/licences/JBossEULA.txt
jbossexo/modules/wsrp/trunk/build/misc/
jbossexo/modules/wsrp/trunk/build/misc/codeguide.html
jbossexo/modules/wsrp/trunk/build/pom.xml
jbossexo/modules/wsrp/trunk/common/
jbossexo/modules/wsrp/trunk/common/pom.xml
jbossexo/modules/wsrp/trunk/common/src/
jbossexo/modules/wsrp/trunk/common/src/main/
jbossexo/modules/wsrp/trunk/common/src/main/java/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/
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/UserContextConverter.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPActionURL.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/WSRPPortletURL.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRenderURL.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPResourceURL.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRewritingConstants.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/handler/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/handler/WSRPExtensionHandler.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/RequestDumperFilter.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccess.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccessFilter.java
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/TransactionFilter.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/
jbossexo/modules/wsrp/trunk/producer/pom.xml
jbossexo/modules/wsrp/trunk/producer/src/
jbossexo/modules/wsrp/trunk/producer/src/assemble/
jbossexo/modules/wsrp/trunk/producer/src/assemble/wsrp-producer-war.xml
jbossexo/modules/wsrp/trunk/producer/src/main/
jbossexo/modules/wsrp/trunk/producer/src/main/java/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/
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/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/JMX.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/
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/KernelListener.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/AbsoluteURLReplacementGenerator.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/ServiceHandler.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/WSRPInstanceContext.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPPortletInvocationContext.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/WSRPValidator.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfiguration.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationChangeListener.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationFactory.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationProvider.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationService.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/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationImpl.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java
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/registration/
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/LocalizedString.java
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/RegistrationPropertyDescription.java
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/context.xml
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/jaxrpc-mappings.xml
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/web.xml
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/webservices.xml
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
jbossexo/modules/wsrp/trunk/wsrp1-rpc/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/pom.xml
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/AccessDeniedFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/BlockingInteractionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CacheControl.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClientData.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClonePortlet.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Contact.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CookieProtocol.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyFailed.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortlets.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortletsResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/EmployerInfo.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Extension.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Fault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetMarkup.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletProperties.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletPropertyDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetServiceDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InconsistentParametersFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InitCookie.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InteractionParams.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidCookieFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidHandleFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidRegistrationFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidSessionFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidUserCategoryFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ItemDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/LocalizedString.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupParams.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupType.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MissingParametersFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelTypes.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModifyRegistration.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/NamedString.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Online.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/OperationFailedFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PerformBlockingInteraction.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PersonName.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescriptionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletPropertyDescriptionResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletStateChangeRequiredFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Postal.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Property.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyList.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationData.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationState.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReleaseSessions.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResetProperty.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Resource.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceList.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceValue.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReturnAny.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RuntimeContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ServiceDescription.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SessionContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SetPortletProperties.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/StateChange.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Telecom.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/TelephoneNum.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Templates.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedLocaleFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedMimeTypeFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedModeFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedWindowStateFault.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UpdateResponse.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UploadContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserContext.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserProfile.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRPService.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Markup_PortType.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_PortletManagement_PortType.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Registration_PortType.java
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_ServiceDescription_PortType.java
Log:
- Beginning of WSRP integration with eXo.
Added: jbossexo/modules/wsrp/trunk/build/licences/JBossEULA.txt
===================================================================
--- jbossexo/modules/wsrp/trunk/build/licences/JBossEULA.txt (rev
0)
+++ jbossexo/modules/wsrp/trunk/build/licences/JBossEULA.txt 2009-07-31 22:55:19 UTC (rev
13649)
@@ -0,0 +1,106 @@
+LICENSE AGREEMENT
+JBOSS(r)
+
+This License Agreement governs the use of the Software Packages and any updates to the
Software
+Packages, regardless of the delivery mechanism. Each Software Package is a collective
work
+under U.S. Copyright Law. Subject to the following terms, Red Hat, Inc. ("Red
Hat") grants to
+the user ("Client") a license to the applicable collective work(s) pursuant to
the
+GNU Lesser General Public License v. 2.1 except for the following Software Packages:
+(a) JBoss Portal Forums and JBoss Transactions JTS, each of which is licensed pursuant to
the
+GNU General Public License v.2;
+
+(b) JBoss Rules, which is licensed pursuant to the Apache License v.2.0;
+
+(c) an optional download for JBoss Cache for the Berkeley DB for Java database, which is
licensed under the
+(open source) Sleepycat License (if Client does not wish to use the open source version
of this database,
+it may purchase a license from Sleepycat Software);
+
+and (d) the BPEL extension for JBoss jBPM, which is licensed under the Common Public
License v.1,
+and, pursuant to the OASIS BPEL4WS standard, requires parties wishing to redistribute to
enter various
+royalty-free patent licenses.
+
+Each of the foregoing licenses is available at
http://www.opensource.org/licenses/index.php.
+
+1. The Software. "Software Packages" refer to the various software modules
that are created and made available
+for distribution by the
JBoss.org open source community at
http://www.jboss.org. Each
of the Software Packages
+may be comprised of hundreds of software components. The end user license agreement for
each component is located in
+the component's source code. With the exception of certain image files identified in
Section 2 below,
+the license terms for the components permit Client to copy, modify, and redistribute the
component,
+in both source code and binary code forms. This agreement does not limit Client's
rights under,
+or grant Client rights that supersede, the license terms of any particular component.
+
+2. Intellectual Property Rights. The Software Packages are owned by Red Hat and others
and are protected under copyright
+and other laws. Title to the Software Packages and any component, or to any copy,
modification, or merged portion shall
+remain with the aforementioned, subject to the applicable license. The "JBoss"
trademark, "Red Hat" trademark, the
+individual Software Package trademarks, and the "Shadowman" logo are registered
trademarks of Red Hat and its affiliates
+in the U.S. and other countries. This agreement permits Client to distribute unmodified
copies of the Software Packages
+using the Red Hat trademarks that Red Hat has inserted in the Software Packages on the
condition that Client follows Red Hat's
+trademark guidelines for those trademarks located at
http://www.redhat.com/about/corporate/trademark/. Client must abide by
+these trademark guidelines when distributing the Software Packages, regardless of whether
the Software Packages have been modified.
+If Client modifies the Software Packages, then Client must replace all Red Hat trademarks
and logos identified at
+http://www.jboss.com/company/logos, unless a separate agreement with Red Hat is executed
or other permission granted.
+Merely deleting the files containing the Red Hat trademarks may corrupt the Software
Packages.
+
+3. Limited Warranty. Except as specifically stated in this Paragraph 3 or a license for
a particular
+component, to the maximum extent permitted under applicable law, the Software Packages
and the
+components are provided and licensed "as is" without warranty of any kind,
expressed or implied,
+including the implied warranties of merchantability, non-infringement or fitness for a
particular purpose.
+Red Hat warrants that the media on which Software Packages may be furnished will be free
from defects in
+materials and manufacture under normal use for a period of 30 days from the date of
delivery to Client.
+Red Hat does not warrant that the functions contained in the Software Packages will meet
Client's requirements
+or that the operation of the Software Packages will be entirely error free or appear
precisely as described
+in the accompanying documentation. This warranty extends only to the party that purchases
the Services
+pertaining to the Software Packages from Red Hat or a Red Hat authorized distributor.
+
+4. Limitation of Remedies and Liability. To the maximum extent permitted by applicable
law, the remedies
+described below are accepted by Client as its only remedies. Red Hat's entire
liability, and Client's
+exclusive remedies, shall be: If the Software media is defective, Client may return it
within 30 days of
+delivery along with a copy of Client's payment receipt and Red Hat, at its option,
will replace it or
+refund the money paid by Client for the Software. To the maximum extent permitted by
applicable law,
+Red Hat or any Red Hat authorized dealer will not be liable to Client for any incidental
or consequential
+damages, including lost profits or lost savings arising out of the use or inability to
use the Software,
+even if Red Hat or such dealer has been advised of the possibility of such damages. In
no event shall
+Red Hat's liability under this agreement exceed the amount that Client paid to Red
Hat under this
+Agreement during the twelve months preceding the action.
+
+5. Export Control. As required by U.S. law, Client represents and warrants that it:
+(a) understands that the Software Packages are subject to export controls under the
+U.S. Commerce Department's Export Administration Regulations ("EAR");
+
+(b) is not located in a prohibited destination country under the EAR or U.S. sanctions
regulations
+(currently Cuba, Iran, Iraq, Libya, North Korea, Sudan and Syria);
+
+(c) will not export, re-export, or transfer the Software Packages to any prohibited
destination, entity,
+or individual without the necessary export license(s) or authorizations(s) from the U.S.
Government;
+
+(d) will not use or transfer the Software Packages for use in any sensitive nuclear,
chemical or
+biological weapons, or missile technology end-uses unless authorized by the U.S.
Government by
+regulation or specific license;
+
+(e) understands and agrees that if it is in the United States and exports or transfers
the Software
+Packages to eligible end users, it will, as required by EAR Section 740.17(e), submit
semi-annual
+reports to the Commerce Department's Bureau of Industry & Security (BIS), which
include the name and
+address (including country) of each transferee;
+
+and (f) understands that countries other than the United States may restrict the import,
use, or
+export of encryption products and that it shall be solely responsible for compliance with
any such
+import, use, or export restrictions.
+
+6. Third Party Programs. Red Hat may distribute third party software programs with the
Software Packages
+that are not part of the Software Packages and which Client must install separately.
These third party
+programs are subject to their own license terms. The license terms either accompany the
programs or
+can be viewed at
http://www.redhat.com/licenses/. If Client does not agree to abide by
the applicable
+license terms for such programs, then Client may not install them. If Client wishes to
install the programs
+on more than one system or transfer the programs to another party, then Client must
contact the licensor
+of the programs.
+
+7. General. If any provision of this agreement is held to be unenforceable, that shall
not affect the
+enforceability of the remaining provisions. This License Agreement shall be governed by
the laws of the
+State of North Carolina and of the United States, without regard to any conflict of laws
provisions,
+except that the United Nations Convention on the International Sale of Goods shall not
apply.
+
+Copyright 2006 Red Hat, Inc. All rights reserved.
+"JBoss" and the JBoss logo are registered trademarks of Red Hat, Inc.
+All other trademarks are the property of their respective owners.
+
+ Page 1 of 1 18 October 2006
Added: jbossexo/modules/wsrp/trunk/build/misc/codeguide.html
===================================================================
--- jbossexo/modules/wsrp/trunk/build/misc/codeguide.html (rev 0)
+++ jbossexo/modules/wsrp/trunk/build/misc/codeguide.html 2009-07-31 22:55:19 UTC (rev
13649)
@@ -0,0 +1,168 @@
+<!--
+ ~ 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.
+ -->
+
+<html>
+
+<head>
+ <style type="text/css">
+ pre {
+ border-style: solid;
+ border-width: thin;
+ padding: 5px;
+ background-color: #EEEEFF;
+ }
+
+ span.bad {
+ text-decoration: line-through;
+ }
+
+ span.important {
+ font-weight: bold;
+ color: red;
+ }
+ </style>
+</head>
+
+<body>
+
+<h2>Coding Conventions</h2>
+
+<h3>Some more general guidelines</h3>
+<ul>
+ <li>Fully qualified imports should be used, rather than importing
x.y.*.</li>
+ <li>Use newlines for opening braces, so that the top and bottom braces can be
visually matched.</li>
+ <li>Aid visual separation of logical steps by introducing newlines and
appropriate comments above them.</li>
+</ul>
+
+
+<h3>A class that conforms to JBoss coding guidelines</h3>
+
+<pre>
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2007, 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 x;
+
+// <span class="important">Explicit imports</span>
+import a.b.C1; // <span class="important">good</span>
+import a.b.C2;
+import a.b.C3;
+
+// <span class="important">Do not write</span>
+<span class="bad">import a.b.*;</span> // <span
class="important">bad</span>
+
+// <span class="important">DO NOT USE "TAB" TO INDENT CODE USE
*3* SPACES FOR PORTABILITY AMONG EDITORS</span>
+
+/**
+ * A description of this class.
+ *
+ * @see SomeRelatedClass.
+ *
+ * @version <tt>$Revision: 7755 $</tt>
+ * @author <a href="mailto:{email}">{full
name}</a>
+ */
+public class X
+ extends Y
+ implements Z
+{
+ public void startService() throws Exception
+ {
+ // Use the newline for the opening bracket so we can match top
+ // and bottom bracket visually
+
+ Class cls = Class.forName(dataSourceClass);
+ vendorSource = (XADataSource)cls.newInstance();
+
+ // Jump a line between logically distinct <span
class="important">steps</span> and add<
+ // line of comment to it
+ cls = vendorSource.getClass();
+
+ // Comment lines <span class="important">always</span> start
with an uppercase
+ // except if it is the second line
+ if(properties != null)
+ {
+
+ try
+ {
+ }
+ catch (IOException ioe)
+ {
+ }
+ for (Iterator i = props.entrySet().iterator(); i.hasNext();)
+ {
+
+ // Get the name and value for the attributes
+ Map.Entry entry = (Map.Entry) i.next();
+ String attributeName = (String) entry.getKey();
+ String attributeValue = (String) entry.getValue();
+
+ // Print the debug message
+ log.debug("Setting attribute '" + attributeName + "'
to '" + attributeValue + "'");
+
+ // get the attribute
+ Method setAttribute =
+ cls.getMethod("set" + attributeName, new Class[] { String.class
});
+
+ // And set the value
+ setAttribute.invoke(vendorSource, new Object[] { attributeValue });
+ }
+ }
+
+ <span class="bad">// this is a <span
class="important">bad</span> comment line because it starts with a
lower case</span>
+ vendorSource.getXAConnection().close();
+
+ // Bind in JNDI
+ bind(new InitialContext(), "java:/"+getPoolName(),
+ new Reference(vendorSource.getClass().getName(),
+ getClass().getName(), null));
+
+ // Block must always be delimited explicitely
+ if (0 == 0)
+ <span class="important">{</span>
+ System.out.println(true);
+ <span class="important">}</span>
+
+ }
+}
+</pre>
+</body>
+</html>
Property changes on: jbossexo/modules/wsrp/trunk/build/misc/codeguide.html
___________________________________________________________________
Name: svn:executable
+ *
Added: jbossexo/modules/wsrp/trunk/build/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/build/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/build/pom.xml 2009-07-31 22:55:19 UTC (rev 13649)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<!--
+ This pom functions as a default configuration. The subproject
+ poms each inherit configuration from this one.
+
+ When adding version information for an artifact please do the following
+ - add a version property for the specific version
+ - add a dependency in the dependencyManagement section which refers to
+ the property
+-->
+<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</groupId>
+ <artifactId>jboss-portal-parent</artifactId>
+ <version>1.0.0</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>JBoss Portal WSRP Parent</name>
+ <description>JBoss Portal WSRP</description>
+
+ <!--All artifacts versions should be defined here-->
+ <properties>
+ <version.portlet>trunk-SNAPSHOT</version.portlet>
+ <version.common>trunk-SNAPSHOT</version.common>
+ <version.web>1.2.0-SNAPSHOT</version.web>
+ <version.jaxrpc>1.1</version.jaxrpc>
+ <version.slf4j>1.5.6</version.slf4j>
+ <version.jbossas>4.2.3.GA</version.jbossas>
+ <version.jbossxb>2.0.0.GA</version.jbossxb>
+ </properties>
+
+
+ <!--JBoss reporitories to be able to grab jboss-portal-parent pom-->
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <
url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <
url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <!--<dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-common</artifactId>
+ <version>${version.common}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-portal</artifactId>
+ <version>${version.common}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-portlet</artifactId>
+ <version>${version.portlet}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${version.slf4j}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>-->
+</project>
Added: jbossexo/modules/wsrp/trunk/common/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/common/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/common/pom.xml 2009-07-31 22:55:19 UTC (rev 13649)
@@ -0,0 +1,94 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<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>common</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal WSRP Common Classes</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>wsrp1-rpc</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-common</artifactId>
+ <version>${version.common}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-portal</artifactId>
+ <version>${version.common}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-portlet</artifactId>
+ <version>${version.portlet}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${version.slf4j}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ <version>${version.jbossxb}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml</groupId>
+ <artifactId>jaxrpc-api</artifactId>
+ <version>${version.jaxrpc}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,100 @@
+/*
+ * 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 "";
+ }
+
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/ResponseDebugFactory.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,302 @@
+/*
+ * 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.common.NotYetImplemented;
+import static org.jboss.portal.common.p3p.P3PConstants.*;
+import org.jboss.portal.portlet.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 java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11352 $
+ * @since 2.4 (May 8, 2006)
+ */
+public class UserContextConverter
+{
+ private UserContextConverter()
+ {
+ }
+
+ public static UserContext
createPortalUserContextFrom(org.jboss.portal.wsrp.core.UserContext userContext,
+ 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)
+ {
+ org.jboss.portal.wsrp.core.UserContext wsrpUserContext =
WSRPTypeFactory.createUserContext(userContextKey);
+ wsrpUserContext.setProfile(createUserProfileFrom(userContext));
+ wsrpUserContext.setUserCategories(userCategories);
+ return wsrpUserContext;
+ }
+
+ private static UserProfile createUserProfileFrom(UserContext userContext)
+ {
+ Map userInfos = userContext.getInformations();
+
+ if (userInfos == null || userInfos.isEmpty())
+ {
+ return null;
+ }
+
+ PersonName name = createNameFrom(userInfos);
+
+ Calendar bdate = null;
+ String bdateAsString = (String)userInfos.get(INFO_USER_BDATE);
+ if (bdateAsString != null)
+ {
+ bdate = SimpleTypeBindings.unmarshalDateTime(bdateAsString);
+ }
+
+ EmployerInfo employerInfo = new
EmployerInfo((String)userInfos.get(INFO_USER_EMPLOYER),
+ (String)userInfos.get(INFO_USER_DEPARTMENT),
+ (String)userInfos.get(INFO_USER_JOB_TITLE), null);
+
+ return new UserProfile(name, bdate, (String)userInfos.get(INFO_USER_GENDER),
employerInfo,
+ createContactFrom(userInfos, false), createContactFrom(userInfos, true), null);
+ }
+
+ private static PersonName createNameFrom(Map 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);
+ }
+
+ private static Contact createContactFrom(Map infos, boolean isBusiness)
+ {
+ Online online = new Online((String)infos.get(getOnlineUserInfoKey(OnlineInfo.EMAIL,
isBusiness)),
+ (String)infos.get(getOnlineUserInfoKey(OnlineInfo.URI, isBusiness)), null);
+
+ 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);
+
+ 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);
+
+ return new Contact(postal, telecom, online, null);
+ }
+
+ private static TelephoneNum createTelephoneNumFrom(Map 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);
+ }
+
+ /**
+ * Builds a Portal {@link org.jboss.portal.portlet.spi.UserContext} from a WSRP
{@link
+ * org.jboss.portal.wsrp.core.UserContext}.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @since 2.4 (May 8, 2006)
+ */
+ static class WSRPMappedUserContext implements UserContext
+ {
+ private Map<String, String> infos;
+ private String[] desiredLocales;
+ private Locale locale;
+ private String id;
+
+ public WSRPMappedUserContext(org.jboss.portal.wsrp.core.UserContext userContext,
String[] desiredLocales, String preferredLocale)
+ {
+ this.desiredLocales = desiredLocales;
+ this.locale = WSRPUtils.getLocale(preferredLocale);
+ if (userContext != null)
+ {
+ UserProfile profile = userContext.getProfile();
+ if (profile != null)
+ {
+ infos = new HashMap<String, String>();
+ Calendar bdate = profile.getBdate();
+ if (bdate != null)
+ {
+ infos.put(INFO_USER_BDATE, SimpleTypeBindings.marshalDateTime(bdate));
+ }
+
+ infos.put(INFO_USER_GENDER, profile.getGender());
+
+ PersonName name = profile.getName();
+ if (name != null)
+ {
+ infos.put(INFO_USER_NAME_FAMILY, name.getFamily());
+ infos.put(INFO_USER_NAME_GIVEN, name.getGiven());
+ infos.put(INFO_USER_NAME_MIDDLE, name.getMiddle());
+ infos.put(INFO_USER_NAME_NICKNAME, name.getNickname());
+ infos.put(INFO_USER_NAME_PREFIX, name.getPrefix());
+ infos.put(INFO_USER_NAME_SUFFIX, name.getSuffix());
+ }
+
+ populateContactInfo(profile.getBusinessInfo(), true);
+
+ populateContactInfo(profile.getHomeInfo(), false);
+
+ EmployerInfo employerInfo = profile.getEmployerInfo();
+ if (employerInfo != null)
+ {
+ infos.put(INFO_USER_DEPARTMENT, employerInfo.getDepartment());
+ infos.put(INFO_USER_EMPLOYER, employerInfo.getEmployer());
+ infos.put(INFO_USER_JOB_TITLE, employerInfo.getJobtitle());
+ }
+ }
+
+ String key = userContext.getUserContextKey();
+ if (key == null)
+ {
+ throw new IllegalArgumentException("Missing required userContextKey
in UserContext!");
+ }
+ id = key;
+ }
+ else
+ {
+ infos = Collections.emptyMap();
+ }
+ }
+
+ public String getId()
+ {
+ return id;
+ }
+
+ public Map getInformations()
+ {
+ return infos;
+ }
+
+ private void populateContactInfo(Contact contact, boolean isBusiness)
+ {
+ if (contact != null)
+ {
+ Online online = contact.getOnline();
+ if (online != null)
+ {
+ infos.put(getOnlineUserInfoKey(OnlineInfo.EMAIL, isBusiness),
online.getEmail());
+ infos.put(getOnlineUserInfoKey(OnlineInfo.URI, isBusiness),
online.getUri());
+ }
+
+ Postal postal = contact.getPostal();
+ if (postal != null)
+ {
+ infos.put(getPostalUserInfoKey(PostalInfo.NAME, isBusiness),
postal.getName());
+ infos.put(getPostalUserInfoKey(PostalInfo.STREET, isBusiness),
postal.getStreet());
+ infos.put(getPostalUserInfoKey(PostalInfo.CITY, isBusiness),
postal.getCity());
+ infos.put(getPostalUserInfoKey(PostalInfo.STATEPROV, isBusiness),
postal.getStateprov());
+ infos.put(getPostalUserInfoKey(PostalInfo.POSTALCODE, isBusiness),
postal.getPostalcode());
+ infos.put(getPostalUserInfoKey(PostalInfo.COUNTRY, isBusiness),
postal.getCountry());
+ infos.put(getPostalUserInfoKey(PostalInfo.ORGANIZATION, isBusiness),
postal.getOrganization());
+ }
+
+ Telecom telecom = contact.getTelecom();
+ if (telecom != null)
+ {
+ populateTelephoneInfo(telecom.getFax(), TelecomType.FAX, isBusiness);
+ populateTelephoneInfo(telecom.getMobile(), TelecomType.MOBILE,
isBusiness);
+ populateTelephoneInfo(telecom.getPager(), TelecomType.PAGER, isBusiness);
+ populateTelephoneInfo(telecom.getTelephone(), TelecomType.TELEPHONE,
isBusiness);
+ }
+ }
+ }
+
+ private void populateTelephoneInfo(TelephoneNum telephoneNum, TelecomType type,
boolean isBusiness)
+ {
+ if (telephoneNum != null)
+ {
+ infos.put(getTelecomInfoKey(type, TelecomInfo.INTCODE, isBusiness),
telephoneNum.getIntcode());
+ infos.put(getTelecomInfoKey(type, TelecomInfo.LOCCODE, isBusiness),
telephoneNum.getLoccode());
+ infos.put(getTelecomInfoKey(type, TelecomInfo.NUMBER, isBusiness),
telephoneNum.getNumber());
+ infos.put(getTelecomInfoKey(type, TelecomInfo.EXT, isBusiness),
telephoneNum.getExt());
+ infos.put(getTelecomInfoKey(type, TelecomInfo.COMMENT, isBusiness),
telephoneNum.getComment());
+ }
+ }
+
+ public Locale getLocale()
+ {
+ return locale;
+ }
+
+ public List getLocales()
+ {
+ int length = desiredLocales.length;
+ if (length > 0)
+ {
+ List<Locale> locales = new ArrayList<Locale>(length);
+ for (int i = 0; i < length; i++)
+ {
+ Locale locale = WSRPUtils.getLocale(desiredLocales[i]);
+ locales.add(locale);
+ }
+ return locales;
+ }
+ else
+ {
+ return Collections.EMPTY_LIST;
+ }
+ }
+
+ public Object getAttribute(String arg0)
+ {
+ throw new NotYetImplemented();
+ }
+
+ public void setAttribute(String arg0, Object arg1)
+ {
+ throw new NotYetImplemented();
+ }
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/UserContextConverter.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPActionURL.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPActionURL.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPActionURL.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,102 @@
+/*
+ * 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.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.portlet.ActionURL;
+import org.jboss.portal.portlet.OpaqueStateString;
+import org.jboss.portal.portlet.StateString;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 12803 $
+ */
+public class WSRPActionURL extends WSRPPortletURL implements ActionURL
+{
+
+ private StateString navigationalState;
+ private StateString interactionState;
+
+ protected WSRPActionURL(Mode mode, WindowState windowState, boolean secure,
StateString navigationalState, StateString interactionState)
+ {
+ super(mode, windowState, secure);
+ this.navigationalState = navigationalState;
+ this.interactionState = interactionState;
+ }
+
+ protected WSRPActionURL()
+ {
+ }
+
+ @Override
+ protected void dealWithSpecificParams(Map<String, String> params, String
originalURL)
+ {
+ super.dealWithSpecificParams(params, originalURL);
+
+ String paramValue = getRawParameterValueFor(params,
WSRPRewritingConstants.INTERACTION_STATE);
+ if (paramValue != null)
+ {
+ interactionState = new OpaqueStateString(paramValue);
+ params.remove(WSRPRewritingConstants.INTERACTION_STATE);
+ }
+
+ paramValue = getRawParameterValueFor(params,
WSRPRewritingConstants.NAVIGATIONAL_STATE);
+ if (paramValue != null)
+ {
+ navigationalState = new OpaqueStateString(paramValue);
+ params.remove(WSRPRewritingConstants.NAVIGATIONAL_STATE);
+ }
+ }
+
+ protected String getURLType()
+ {
+ return WSRPRewritingConstants.URL_TYPE_BLOCKING_ACTION;
+ }
+
+ public StateString getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ public StateString getInteractionState()
+ {
+ return interactionState;
+ }
+
+ protected void appendEnd(StringBuffer sb)
+ {
+ if (interactionState != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.INTERACTION_STATE,
interactionState.getStringValue());
+ }
+
+ if (navigationalState != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.NAVIGATIONAL_STATE,
navigationalState.getStringValue());
+ }
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPActionURL.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,186 @@
+/*
+ * 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.portlet.spi.PortalContext;
+
+import javax.xml.namespace.QName;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+import java.util.Locale;
+import java.util.Random;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11317 $
+ * @since 2.4
+ */
+public final class WSRPConstants
+{
+ // JMX
**************************************************************************************************************
+ /** JMX object name for the Portal web app registry */
+ public static final String WEB_APP_REGISTRY_OBJECT_NAME =
"portal:service=WebAppRegistry";
+ /** JMX object name for the WSRP Producer */
+ public static final String WSRP_PRODUCER_OBJECT_NAME =
"portletcontainer.wsrp:service=WSRPProducer";
+
+ // Window State Names
***********************************************************************************************
+
+ /**
+ * <p/> The <code>wsrp:normal</code> window state indicates the
Portlet is likely sharing the aggregated page with
+ * other Portlets. The <code>wsrp:normal</code> window state MAY also
indicate that the target device has limited
+ * display capabilities. Therefore, a Portlet SHOULD restrict the size of its rendered
output in this window state.
+ * </p> <p>Conformant Portlets MUST support the
<code>wsrp:normal</code> window state.</p>
+ */
+ public static final String NORMAL_WINDOW_STATE = "wsrp:normal";
+ /**
+ * When the window state is <code>wsrp:minimized</code>, the Portlet
SHOULD NOT render visible markup, but is free to
+ * include non-visible data such as JavaScript or hidden forms. The
<code>getMarkup</code> operation can be invoked
+ * for the <code>wsrp:minimized</code> state just as for all other window
states.
+ */
+ public static final String MINIMIZED_WINDOW_STATE = "wsrp:minimized";
+ /**
+ * The <code>wsrp:maximized</code> window state is an indication the
Portlet is likely the only Portlet being
+ * rendered in the aggregated page, or that the Portlet has more space compared to
other Portlets in the aggregated
+ * page. A Portlet SHOULD generate richer content when its window state is
<code>wsrp:maximized</code>.
+ */
+ public static final String MAXIMIZED_WINDOW_STATE = "wsrp:maximized";
+ /**
+ * The <code>wsrp:solo</code> window state is an indication the Portlet is
the only Portlet being rendered in the
+ * aggregated page. A Portlet SHOULD generate richer content when its window state is
<code>wsrp:solo</code>.
+ */
+ public static final String SOLO_WINDOW_STATE = "wsrp:solo";
+
+ // Portlet mode names
***********************************************************************************************
+
+ /**
+ * <p>The expected functionality for a Portlet in
<code>wsrp:view</code> mode is to render markup reflecting the
+ * current state of the Portlet. The <code>wsrp:view</code> mode of a
Portlet will include one or more screens that
+ * the End-User can navigate and interact with or it may consist of static content
devoid of user interactions.</p>
+ * <p>The behavior and the generated content of a Portlet in the wsrp:view mode
may depend on configuration,
+ * personalization and all forms of state.</p> <p>Conformant Portlets MUST
support the <code>wsrp:view</code>
+ * mode.</p>
+ */
+ public static final String VIEW_MODE = "wsrp:view";
+ /**
+ * <p>Within the <code>wsrp:edit</code> mode, a Portlet should
provide content and logic that let a user customize
+ * the behavior of the Portlet , though such customizations are not limited to screens
generated while in this mode.
+ * The <code>wsrp:edit</code> mode can include one or more screens which
users can navigate to enter their
+ * customization data.</p> <p>Typically, Portlets in
<code>wsrp:edit</code> mode will set or update Portlet enduring
+ * state. How such changes impact Consumer management of Portlet usage by End-Users is
discussed in [Section
+ * 6.4.3].</p>
+ */
+ public static final String EDIT_MODE = "wsrp:edit";
+ /**
+ * <p>When in <code>wsrp:help</code> mode, a Portlet may provide
help screens that explains the Portlet and its
+ * expected usage. Some Portlets will provide context-sensitive help based on the
markup the End-User was viewing
+ * when entering this mode.</p>
+ */
+ public static final String HELP_MODE = "wsrp:help";
+ /**
+ * In <code>wsrp:preview</code> mode, a Portlet should provide a rendering
of its standard <code>wsrp:view</code>
+ * mode content, as a visual sample of how this Portlet will appear on the
End-User's page with the current
+ * configuration. This could be useful for a Consumer that offers an advanced layout
capability.
+ */
+ public static final String PREVIEW_MODE = "wsrp:preview";
+
+ // Standard user authentication values
******************************************************************************
+
+ /** No authentication was done, user information is asserted for informational
purposes only. */
+ public static final String NONE_USER_AUTHENTICATION = "wsrp:none";
+ /** The End-User identified themselves using the common userid/password scenario. */
+ public static final String PASSWORD_USER_AUTHENTICATION = "wsrp:password";
+ /** The End-User presented a security certificate to validate their identity. */
+ public static final String CERTIFICATE_USER_AUTHENTICATION =
"wsrp:certificate";
+
+ // WSRP Defaults
****************************************************************************************************
+
+ /** Default character set used to generate markup. */
+ public static final String DEFAULT_CHARACTER_SET = "UTF-8";
+
+ // Registration data related
****************************************************************************************
+
+ /** Default consumer name if none has been provided in the WSRP descriptor
(*-wsrp.xml) */
+ public static final String DEFAULT_CONSUMER_NAME;
+ /** The String identifying the portal consumer agent */
+ public static final String CONSUMER_AGENT = PortalContext.VERSION.getName() +
"."
+ + PortalContext.VERSION.getMajor() + "." +
PortalContext.VERSION.getMinor() + "."
+ + PortalContext.VERSION.getQualifier();
+
+ static
+ {
+ InetAddress localhost = null;
+ try
+ {
+ localhost = InetAddress.getLocalHost();
+ }
+ catch (UnknownHostException e)
+ {
+ e.printStackTrace();
+ }
+ if (localhost != null)
+ {
+ DEFAULT_CONSUMER_NAME = localhost.getCanonicalHostName();
+ }
+ else
+ {
+ Random random = new Random(System.currentTimeMillis());
+ DEFAULT_CONSUMER_NAME = CONSUMER_AGENT + " Unconfigured " +
random.nextInt();
+ }
+ }
+
+ // User scopes
+
+ /**
+ * The markup is specific to the userContext for which it was generated. Changes to
the data of the UserContext MUST
+ * invalidate the cached markup.
+ */
+ public static final String CACHE_PER_USER = "wsrp:perUser";
+
+ /** The markup is not specific to the UserContext and therefore may be supplied to all
users of the Consumer. */
+ public static final String CACHE_FOR_ALL = "wsrp:forAll";
+
+ /** The value of SessionContext.expires if the session will never expire. */
+ public static final int SESSION_NEVER_EXPIRES = -1;
+
+ /** A QName representing the string type defined as part of XML Schemas Part 2 */
+ public static final QName XSD_STRING = new
QName("http://www.w3.org/2001/XMLSchema", "string");
+
+
+ private WSRPConstants()
+ {
+ }
+
+ // init default locale at loading time as it is slow
+ private static String defaultLocale = WSRPUtils.toString(Locale.getDefault());
+
+ public static String[] getDefaultLocales()
+ {
+ return new String[]{defaultLocale, "en"}; // return copy to prevent
modifications by client code
+ }
+
+ public static String[] getDefaultMimeTypes()
+ {
+ return new String[]{"text/html"}; // return copy to prevent modifications
by client code
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPConstants.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPExceptionFactory.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp;
+
+import org.jboss.portal.wsrp.servlet.ServletAccess;
+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;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 9360 $
+ * @since 2.6
+ */
+public class WSRPExceptionFactory
+{
+ private static final Logger log =
LoggerFactory.getLogger(WSRPExceptionFactory.class);
+
+ private static final String NS = "urn:oasis:names:tc:wsrp:v1:types";
+
+ public static final String ACCESS_DENIED = "AccessDenied";
+ public static final String INCONSISTENT_PARAMETERS =
"InconsistentParameters";
+ public static final String INVALID_REGISTRATION = "InvalidRegistration";
+ public static final String INVALID_COOKIE = "InvalidCookie";
+ public static final String INVALID_HANDLE = "InvalidHandle";
+ public static final String INVALID_SESSION = "InvalidSession";
+ public static final String INVALID_USER_CATEGORY = "InvalidUserCategory";
+ public static final String MISSING_PARAMETERS = "MissingParameters";
+ public static final String OPERATION_FAILED = "OperationFailed";
+ public static final String PORTLET_STATE_CHANGE_REQUIRED =
"PortletStateChangeRequired";
+ public static final String UNSUPPORTED_LOCALE = "UnsupportedLocale";
+ public static final String UNSUPPORTED_MIME_TYPE = "UnsupportedMimeType";
+ public static final String UNSUPPORTED_MODE = "UnsupportedMode";
+ public static final String UNSUPPORTED_WINDOW_STATE =
"UnsupportedWindowState";
+ private static final String NS_PREFIX = "wsrp";
+
+ private WSRPExceptionFactory()
+ {
+ }
+
+ public static void throwMissingParametersFaultIfValueIsMissing(Object valueToCheck,
String valueName, String context)
+ throws SOAPFaultException
+ {
+ if (valueToCheck == null)
+ {
+ throw createSOAPFaultException(MISSING_PARAMETERS, "Missing required "
+ valueName
+ + (context != null ? " in " + context : ""), null);
+ }
+ }
+
+ public static void throwOperationFailedFaultIfValueIsMissing(Object valueToCheck,
String valueName)
+ throws SOAPFaultException
+ {
+ if (valueToCheck == null)
+ {
+ throw createSOAPFaultException(OPERATION_FAILED, "Missing required " +
valueName, null);
+ }
+ }
+
+ public static SOAPFaultException throwSOAPFaultException(String errorCode, String
message, Throwable cause)
+ {
+ throw createSOAPFaultException(errorCode, message, cause);
+ }
+
+ private static SOAPFaultException createSOAPFaultException(String errorCode, String
message, Throwable cause)
+ {
+ Detail detail = null;
+ if (cause != null)
+ {
+ String causeMessage = cause.getLocalizedMessage();
+ if (causeMessage != null)
+ {
+ message += ". " + causeMessage;
+ }
+ }
+
+ try
+ {
+ 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));
+ }
+ catch (SOAPException e)
+ {
+ log.debug("Couldn't create exception detail: ", e);
+ }
+
+ String actor = null;
+ HttpServletRequest req = ServletAccess.getRequest();
+ if (req != null)
+ {
+ actor = req.getScheme() + "://" + req.getServerName() + ":"
+ req.getServerPort() + req.getContextPath() + req.getServletPath();
+ }
+
+ return new SOAPFaultException(new QName(NS, errorCode), message, actor, detail);
+ }
+}
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPPortletURL.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPPortletURL.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPPortletURL.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,526 @@
+/*
+ * 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.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.NotYetImplemented;
+import org.jboss.portal.common.text.FastURLDecoder;
+import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.portlet.ActionURL;
+import org.jboss.portal.portlet.ParametersStateString;
+import org.jboss.portal.portlet.PortletURL;
+import org.jboss.portal.portlet.RenderURL;
+import org.jboss.portal.portlet.ResourceURL;
+import org.jboss.portal.portlet.StateString;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13120 $
+ * @since 2.4 (Apr 28, 2006)
+ */
+public abstract class WSRPPortletURL implements PortletURL
+{
+ private static final Logger log = LoggerFactory.getLogger(WSRPPortletURL.class);
+
+ private static final String EQUALS = "=";
+
+ private static final String ENCODED_AMPERSAND = "&";
+ private static final String AMPERSAND = "&";
+ private static final String AMP_AMP = "&amp;";
+
+ private static final String PARAM_SEPARATOR = "|";
+ private static final int URL_TYPE_END = WSRPRewritingConstants.URL_TYPE_NAME.length()
+ EQUALS.length();
+ private boolean secure;
+
+ private Mode mode;
+
+ private WindowState windowState;
+
+ /** Are we using strict rewriting parameters validation mode? */
+ private static boolean strict = true;
+ /** Holds extra parameters if we are in relaxed validation mode */
+ private Map<String, String> extraParams;
+ /** Remember position of extra parameters wrt end token */
+ private boolean extraParamsAfterEndToken = false;
+
+ public static void setStrict(boolean strict)
+ {
+ WSRPPortletURL.strict = strict;
+ log.debug("Using " + (strict ? "strict" : "lenient")
+ " rewriting parameters validation mode.");
+ }
+
+ public static WSRPPortletURL create(PortletURL portletURL, boolean secure)
+ {
+ if (portletURL == null)
+ {
+ throw new IllegalArgumentException("Cannot construct a WSRPPortletURL from
a null PortletURL!");
+ }
+
+ Mode mode = portletURL.getMode();
+ WindowState windowState = portletURL.getWindowState();
+
+ WSRPPortletURL url;
+ if (portletURL instanceof ActionURL)
+ {
+ StateString interactionState = ((ActionURL)portletURL).getInteractionState();
+ StateString navigationalState = ((ActionURL)portletURL).getNavigationalState();
+ url = new WSRPActionURL(mode, windowState, secure, navigationalState,
interactionState);
+ }
+ else if (portletURL instanceof RenderURL)
+ {
+ StateString navigationalState = ((RenderURL)portletURL).getNavigationalState();
+ url = new WSRPRenderURL(mode, windowState, secure, navigationalState);
+ }
+ else if (portletURL instanceof ResourceURL)
+ {
+// url = new WSRPResourceURL(mode, windowState, secure, ((ResourceURL)
portletURL).getResourceURL(), false);
+ // todo: implement!
+ throw new NotYetImplemented("ResourceURL support not quite yet
implemented!");
+ }
+ else
+ {
+ throw new IllegalArgumentException("Unknown PortletURL type: " +
portletURL.getClass().getName());
+ }
+
+ // if we're in relaxed mode, we need to deal with extra params as well
+ if (strict && portletURL instanceof WSRPPortletURL)
+ {
+ WSRPPortletURL other = (WSRPPortletURL)portletURL;
+ url.setParams(other.extraParams, other.toString());
+ }
+
+ return url;
+ }
+
+ public static WSRPPortletURL create(String encodedURL, Set<String> customModes,
Set<String> customWindowStates)
+ {
+ log.debug("Trying to build a WSRPPortletURL from <" + encodedURL +
">");
+
+ if (encodedURL == null || encodedURL.length() == 0)
+ {
+ throw new IllegalArgumentException("Cannot construct a WSRPPortletURL from
a null or empty URL!");
+ }
+
+ String originalURL = encodedURL;
+ boolean extraAfterEnd = false;
+
+ // URL needs to start wsrp_rewrite? and end with /wsrp_rewrite in strict validation
mode
+ if (!encodedURL.startsWith(WSRPRewritingConstants.BEGIN_WSRP_REWRITE))
+ {
+ throw new IllegalArgumentException(encodedURL + " does not start with
" + WSRPRewritingConstants.BEGIN_WSRP_REWRITE);
+ }
+ if (!encodedURL.endsWith(WSRPRewritingConstants.END_WSRP_REWRITE))
+ {
+ if (strict)
+ {
+ throw new IllegalArgumentException(encodedURL + " does not end with
" + WSRPRewritingConstants.END_WSRP_REWRITE);
+ }
+ else
+ {
+ // first remove prefix only (as suffix is not at the end of the string)
+ encodedURL =
encodedURL.substring(WSRPRewritingConstants.WSRP_REWRITE_PREFIX_LENGTH);
+
+ // find end token and extract it
+ int endTokenIndex = encodedURL.indexOf('/');
+ if (endTokenIndex < 0)
+ {
+ throw new IllegalArgumentException(originalURL + " does not contain
" + WSRPRewritingConstants.END_WSRP_REWRITE);
+ }
+
+ encodedURL = encodedURL.substring(0, endTokenIndex)
+ + encodedURL.substring(endTokenIndex +
WSRPRewritingConstants.WSRP_REWRITE_SUFFIX_LENGTH);
+
+ // remember that we should position the extra params after the end token
+ extraAfterEnd = true;
+ }
+ }
+ else
+ {
+ // remove prefix and suffix
+ encodedURL =
encodedURL.substring(WSRPRewritingConstants.WSRP_REWRITE_PREFIX_LENGTH,
+ encodedURL.length() - WSRPRewritingConstants.WSRP_REWRITE_SUFFIX_LENGTH);
+ }
+
+ // next param should be the url type
+ if (!encodedURL.startsWith(WSRPRewritingConstants.URL_TYPE_NAME + EQUALS))
+ {
+ throw new IllegalArgumentException(originalURL + " does not specify a URL
type.");
+ }
+
+ // standardize parameter separators
+ if (encodedURL.contains(AMP_AMP))
+ {
+ throw new IllegalArgumentException(encodedURL + " contains a doubly encoded
&!");
+ }
+ encodedURL = Tools.replace(encodedURL, ENCODED_AMPERSAND, PARAM_SEPARATOR);
+ encodedURL = Tools.replace(encodedURL, AMPERSAND, PARAM_SEPARATOR);
+
+ // remove url type param name and extract value
+ encodedURL = encodedURL.substring(URL_TYPE_END);
+ String urlType;
+ WSRPPortletURL url;
+ if (encodedURL.startsWith(WSRPRewritingConstants.URL_TYPE_RENDER))
+ {
+ urlType = WSRPRewritingConstants.URL_TYPE_RENDER;
+ url = new WSRPRenderURL();
+ }
+ else if (encodedURL.startsWith(WSRPRewritingConstants.URL_TYPE_BLOCKING_ACTION))
+ {
+ urlType = WSRPRewritingConstants.URL_TYPE_BLOCKING_ACTION;
+ url = new WSRPActionURL();
+ }
+ else if (encodedURL.startsWith(WSRPRewritingConstants.URL_TYPE_RESOURCE))
+ {
+ log.debug("Using experimental resource URL support...");
+ urlType = WSRPRewritingConstants.URL_TYPE_RESOURCE;
+ url = new WSRPResourceURL();
+ }
+ else
+ {
+ throw new IllegalArgumentException("Unrecognized URL type: " +
encodedURL.substring(0, encodedURL.indexOf(PARAM_SEPARATOR))
+ + "in " + originalURL);
+ }
+
+ // other parameters
+ Map<String, String> params = null;
+ int urlTypeLength = urlType.length();
+ if (encodedURL.length() > urlTypeLength)
+ {
+ // truncate again once the value is extracted
+ encodedURL = encodedURL.substring(urlTypeLength + PARAM_SEPARATOR.length());
+
+ // extract the other parameters
+ params = extractParams(encodedURL, originalURL, customModes,
customWindowStates);
+ }
+ else if (WSRPRewritingConstants.URL_TYPE_RESOURCE.equals(urlType))
+ {
+ throw new IllegalArgumentException("Both the 'wsrp-url' and
'wsrp-requiresRewrite' parameters MUST also be specified for resource URL
'"
+ + originalURL + "'");
+ }
+
+ url.setParams(params, originalURL);
+ url.setExtraParamsAfterEndToken(extraAfterEnd);
+ return url;
+ }
+
+ /**
+ * Parses a WSRP rewritten URL and extracts each component. <p/> TODO: some
values need to be in pairs or are
+ * mutually exclusive, check for this <p/> <p>URL are of the form:
<code>wsrp_rewrite?wsrp-urlType=value&amp;name1=value1&amp;name2=value2
+ * .../wsrp_rewrite</code> </p> <ul>Examples: <li>Load a
resource
http://test.com/images/test.gif: <br/>
+ *
<code>wsrp_rewrite?wsrp-urlType=resource&amp;wsrp-url=http%3A%2F%2Ftest.com%2Fimages%2Ftest.gif&amp;wsrp-requiresRewrite=true/wsrp_rewrite</code></li>
+ * <li>Declare a secure interaction back to the Portlet:<br/>
<code>wsrp_rewrite?wsrp-urlType=blockingAction&amp;wsrp-secureURL=true&amp;wsrp-navigationalState=a8h4K5JD9&amp;wsrp-interactionState=fg4h923mdk/wsrp_rewrite</code></li>
+ * <li>Request the Consumer render the Portlet in a different mode and window
state:
+ *
<code>wsrp_rewrite?wsrp-urlType=render&amp;wsrp-mode=help&amp;wsrp-windowState=maximized/wsrp_rewrite</code></li>
+ * </ul>
+ *
+ * @param encodedURL a String representation of the URL to create
+ * @return an appropriate WSRPPortletURL as built from parsing the specified String
+ */
+ public static WSRPPortletURL create(String encodedURL)
+ {
+ return create(encodedURL, Collections.<String>emptySet(),
Collections.<String>emptySet());
+ }
+
+ protected WSRPPortletURL(Mode mode, WindowState windowState, boolean secure)
+ {
+ this.mode = mode;
+ this.windowState = windowState;
+ this.secure = secure;
+ }
+
+ protected WSRPPortletURL()
+ {
+ }
+
+ protected final void setParams(Map<String, String> params, String originalURL)
+ {
+ // First extract specific parameters and remove them from the param map...
+ dealWithSpecificParams(params, originalURL);
+
+ // ... then deal with extra params if in relaxed mode
+ if (!strict)
+ {
+ extraParams = new HashMap<String, String>();
+ extraParams.putAll(params);
+ }
+ }
+
+ /**
+ * Deal with specific parameters first so that we can remove them before dealing with
extra params. Sub-classes
+ * override to provide support for their specific parameters.
+ *
+ * @param params name-value map of the URL parameters
+ * @param originalURL a String reprensenting the URL we are working with
+ */
+ protected void dealWithSpecificParams(Map<String, String> params, String
originalURL)
+ {
+ // mode
+ String paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.MODE);
+ if (paramValue != null)
+ {
+ mode = WSRPUtils.getJSR168PortletModeFromWSRPName(paramValue);
+ params.remove(WSRPRewritingConstants.MODE);
+ }
+
+ // window state
+ paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.WINDOW_STATE);
+ if (paramValue != null)
+ {
+ windowState = WSRPUtils.getJSR168WindowStateFromWSRPName(paramValue);
+ params.remove(WSRPRewritingConstants.WINDOW_STATE);
+ }
+
+ // secure
+ paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.SECURE_URL);
+ if (paramValue != null)
+ {
+ secure = Boolean.valueOf(paramValue);
+ params.remove(WSRPRewritingConstants.SECURE_URL);
+ }
+ }
+
+ protected String getRawParameterValueFor(Map params, String parameterName)
+ {
+ if (params != null)
+ {
+ return (String)params.get(parameterName);
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public Mode getMode()
+ {
+ return mode;
+ }
+
+ public WindowState getWindowState()
+ {
+ return windowState;
+ }
+
+ public boolean isSecure()
+ {
+ return secure;
+ }
+
+ protected abstract String getURLType();
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(255);
+
+ //
+
sb.append(WSRPRewritingConstants.BEGIN_WSRP_REWRITE).append(WSRPRewritingConstants.URL_TYPE_NAME)
+ .append(EQUALS).append(getURLType());
+
+ //
+ if (secure)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.SECURE_URL, "true");
+ }
+
+ //
+ if (mode != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.MODE,
WSRPUtils.getWSRPNameFromJSR168PortletMode(mode));
+ }
+
+ //
+ if (windowState != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.WINDOW_STATE,
WSRPUtils.getWSRPNameFromJSR168WindowState(windowState));
+ }
+
+ // todo: not sure how to deal with authenticated
+
+ //
+ appendEnd(sb);
+
+ // Finish the URL
+ if (strict)
+ {
+ sb.append(WSRPRewritingConstants.END_WSRP_REWRITE);
+ }
+ else
+ {
+ // we're in relaxed mode so we need to deal with extra params if they exist
+ if (extraParams != null && !extraParams.isEmpty())
+ {
+ StringBuffer extras = new StringBuffer();
+ for (Map.Entry<String, String> entry : extraParams.entrySet())
+ {
+ createURLParameter(extras, entry.getKey(), entry.getValue());
+ }
+
+ // if we had extra params, we need to figure out where thwy should be
positioned wrt end token
+ if (extraParamsAfterEndToken)
+ {
+ sb.append(WSRPRewritingConstants.END_WSRP_REWRITE);
+ sb.append(extras);
+ }
+ else
+ {
+ sb.append(extras);
+ sb.append(WSRPRewritingConstants.END_WSRP_REWRITE);
+ }
+ }
+ else
+ {
+ sb.append(WSRPRewritingConstants.END_WSRP_REWRITE);
+ }
+ }
+ return sb.toString();
+ }
+
+ protected abstract void appendEnd(StringBuffer sb);
+
+ protected final void createURLParameter(StringBuffer sb, String name, String value)
+ {
+ if (value != null)
+ {
+ sb.append(AMPERSAND).append(name).append(EQUALS).append(value);
+ }
+ }
+
+ private static Map<String, String> extractParams(String encodedURL, String
originalURL, Set<String> customModes, Set<String> customWindowStates)
+ {
+ Map<String, String> params = new HashMap<String, String>();
+ boolean finished = false;
+ while (encodedURL.length() > 0 && !finished)
+ {
+ int endParamIndex = encodedURL.indexOf(PARAM_SEPARATOR);
+ String param;
+ if (endParamIndex < 0)
+ {
+ // no param left: try the remainder of the String
+ param = encodedURL;
+ finished = true;
+ }
+ else
+ {
+ param = encodedURL.substring(0, endParamIndex);
+ }
+
+ int equalsIndex = param.indexOf(EQUALS);
+ if (equalsIndex < 0)
+ {
+ throw new IllegalArgumentException(param + " is not a valid parameter
for " + originalURL);
+ }
+
+ // extract param name
+ String name = param.substring(0, equalsIndex);
+ if (!name.startsWith("wsrp-"))
+ {
+ if (strict)
+ {
+ throw new IllegalArgumentException("Invalid parameter name in strict
validation mode (see documentation): '"
+ + name + "' in " + originalURL);
+ }
+ else
+ {
+ log.debug("Relaxed validation allowed invalid parameter name: "
+ name + " in " + originalURL);
+ }
+ }
+
+ // extract param value
+ String value = param.substring(equalsIndex + EQUALS.length(), param.length());
+
+ // check that the given mode is valid if the param is supposed to be one
+ if (WSRPRewritingConstants.MODE.equals(name))
+ {
+ value = checkModeOrWindowState(value, true, customModes);
+ }
+
+ // check that the given window state is valid if the param is supposed to be
one
+ if (WSRPRewritingConstants.WINDOW_STATE.equals(name))
+ {
+ value = checkModeOrWindowState(value, false, customWindowStates);
+ }
+
+ params.put(name, value);
+
+ // unserialize opaque state for debugging purpose
+ if (log.isTraceEnabled())
+ {
+ if (WSRPRewritingConstants.INTERACTION_STATE.equals(name) ||
WSRPRewritingConstants.NAVIGATIONAL_STATE.equals(name))
+ {
+ StateString clear = ParametersStateString.create(value);
+ log.trace(name + " value:" + clear);
+ }
+ }
+
+ encodedURL = encodedURL.substring(endParamIndex + PARAM_SEPARATOR.length());
+ }
+ return params;
+ }
+
+ private static String checkModeOrWindowState(String value, boolean mode,
Set<String> supportedValues)
+ {
+ // decode potentially encoded value
+ value = FastURLDecoder.getUTF8Instance().encode(value);
+
+ // Check if value is a standard one
+ boolean standard;
+ if (mode)
+ {
+ standard = WSRPUtils.isDefaultWSRPMode(value);
+ }
+ else
+ {
+ standard = WSRPUtils.isDefaultWSRPWindowState(value);
+ }
+
+ // the value is not a standard one
+ if (!standard)
+ {
+ // check if this is a supported custom value
+ if (supportedValues.contains(value))
+ {
+ return value;
+ }
+ else
+ {
+ throw new IllegalArgumentException("Unsupported " + (mode ?
"mode: " : "window state: ") + value);
+ }
+ }
+
+ return value;
+ }
+
+ private void setExtraParamsAfterEndToken(boolean extraParamsAfterEndToken)
+ {
+ this.extraParamsAfterEndToken = extraParamsAfterEndToken;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRenderURL.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRenderURL.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRenderURL.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp;
+
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.portlet.OpaqueStateString;
+import org.jboss.portal.portlet.RenderURL;
+import org.jboss.portal.portlet.StateString;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 11404 $
+ */
+public class WSRPRenderURL extends WSRPPortletURL implements RenderURL
+{
+
+ private StateString navigationalState;
+
+ protected WSRPRenderURL(Mode mode, WindowState windowState, boolean secure,
StateString navigationalState)
+ {
+ super(mode, windowState, secure);
+ this.navigationalState = navigationalState;
+ }
+
+ protected WSRPRenderURL()
+ {
+ }
+
+ @Override
+ protected void dealWithSpecificParams(Map<String, String> params, String
originalURL)
+ {
+ super.dealWithSpecificParams(params, originalURL);
+
+ String paramValue = getRawParameterValueFor(params,
WSRPRewritingConstants.NAVIGATIONAL_STATE);
+ if (paramValue != null)
+ {
+ navigationalState = new OpaqueStateString(paramValue);
+ }
+ }
+
+ protected String getURLType()
+ {
+ return WSRPRewritingConstants.URL_TYPE_RENDER;
+ }
+
+ public StateString getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ public Map<String, String[]> getPublicNavigationalStateChanges()
+ {
+ throw new UnsupportedOperationException("getPublicNavigationalStateChanges is
not currently supported!"); // todo: fix me
+ }
+
+ protected void appendEnd(StringBuffer sb)
+ {
+ if (navigationalState != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.NAVIGATIONAL_STATE,
navigationalState.getStringValue());
+ }
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRenderURL.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPResourceURL.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPResourceURL.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPResourceURL.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp;
+
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.net.URLTools;
+import org.jboss.portal.common.util.MediaType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.MimeTypeParseException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11404 $
+ * @since 2.4
+ */
+public class WSRPResourceURL extends WSRPPortletURL
+{
+ private final static Logger log = LoggerFactory.getLogger(WSRPResourceURL.class);
+
+ private URL resourceURL;
+ private boolean requiresRewrite = false;
+ private static final List<MediaType> SUPPORTED_RESOURCE_TYPES = new
ArrayList<MediaType>(4);
+
+ static
+ {
+ SUPPORTED_RESOURCE_TYPES.add(MediaType.CSS);
+ SUPPORTED_RESOURCE_TYPES.add(MediaType.JS);
+ SUPPORTED_RESOURCE_TYPES.add(MediaType.TEXT);
+ try
+ {
+ SUPPORTED_RESOURCE_TYPES.add(MediaType.parseMimeType("image/*"));
+ }
+ catch (MimeTypeParseException e)
+ {
+ // shouldn't happen;
+ }
+ }
+
+
+ public WSRPResourceURL(Mode mode, WindowState windowState, boolean secure, URL
resourceURL, boolean requiresRewrite)
+ {
+ super(mode, windowState, secure);
+ this.resourceURL = resourceURL;
+ this.requiresRewrite = requiresRewrite;
+ }
+
+ public WSRPResourceURL()
+ {
+ super();
+ }
+
+ protected String getURLType()
+ {
+ return WSRPRewritingConstants.URL_TYPE_RESOURCE;
+ }
+
+ protected void appendEnd(StringBuffer sb)
+ {
+ if (resourceURL != null)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.RESOURCE_URL,
resourceURL.toExternalForm());
+ }
+
+ if (requiresRewrite)
+ {
+ createURLParameter(sb, WSRPRewritingConstants.RESOURCE_REQUIRES_REWRITE,
"true");
+ }
+ }
+
+ @Override
+ protected void dealWithSpecificParams(Map<String, String> params, String
originalURL)
+ {
+ super.dealWithSpecificParams(params, originalURL);
+
+ String paramValue = getRawParameterValueFor(params,
WSRPRewritingConstants.RESOURCE_REQUIRES_REWRITE);
+ if (paramValue != null)
+ {
+ requiresRewrite = Boolean.valueOf(paramValue);
+ }
+ else
+ {
+ throw new IllegalArgumentException("The parsed parameters don't contain
a value for the required "
+ + WSRPRewritingConstants.RESOURCE_REQUIRES_REWRITE + " parameter in
" + originalURL);
+ }
+
+ paramValue = getRawParameterValueFor(params, WSRPRewritingConstants.RESOURCE_URL);
+ if (paramValue != null)
+ {
+ try
+ {
+ paramValue = URLTools.decodeXWWWFormURL(paramValue);
+
+ if (requiresRewrite)
+ {
+ // todo: do something...
+ log.debug("Required re-writing but this is not yet
implemented...");
+ }
+
+ resourceURL = new URL(paramValue);
+ String file = resourceURL.getFile();
+
+ MediaType mediaType = null;
+ try
+ {
+ mediaType = MediaType.parseMimeTypeByExtension(file);
+ }
+ catch (MimeTypeParseException e)
+ {
+ log.debug("Couldn't determine (based on extension) MIME type of
file: " + file
+ + "\nRetrieving the associated resource will probably
fail.");
+ }
+
+ isSupported(mediaType);
+ }
+ catch (MalformedURLException e)
+ {
+ throw new IllegalArgumentException("Malformed URL: " + paramValue,
e);
+ }
+ }
+ else
+ {
+ throw new IllegalArgumentException("The parsed parameters don't contain
a value for the required "
+ + WSRPRewritingConstants.RESOURCE_URL + " parameter in " +
originalURL);
+ }
+ }
+
+ private void isSupported(MediaType mediaType)
+ {
+ if (mediaType != null)
+ {
+ for (MediaType type : SUPPORTED_RESOURCE_TYPES)
+ {
+ if (!type.isAllowedSubType(mediaType))
+ {
+ log.debug("MIME type '" + mediaType
+ + "' is not currently supported. Retrieving the associated
resource will probably fail.");
+ return;
+ }
+ }
+ }
+ }
+
+
+ public String toString()
+ {
+ return resourceURL.toExternalForm();
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRewritingConstants.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRewritingConstants.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRewritingConstants.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,187 @@
+/*
+ * 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;
+
+/**
+ * <p>This class provides constants used in the context of URL
rewriting.</p>
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+public final class WSRPRewritingConstants
+{
+
+ private static final String WSRP_REWRITE = "wsrp_rewrite";
+
+ /**
+ * 10.2.1 <p>All portlet URLs (i.e. those the Consumer needs to rewrite) are
demarcated in the markup by a token
+ * (wsrp_rewrite) both at the start (with a "?" appended to clearly delimit
the start of the name/value pairs).</p>
+ */
+ public static final String BEGIN_WSRP_REWRITE = WSRP_REWRITE + "?";
+
+ public static final int WSRP_REWRITE_PREFIX_LENGTH = 13;
+
+ /**
+ * 10.2.1 <p>All portlet URLs (i.e. those the Consumer needs to rewrite) are
demarcated in the markup by a token
+ * (wsrp_rewrite) at the end (proceeded by a "/" to form the end token) of
the URL declaration.</p>
+ */
+ public static final String END_WSRP_REWRITE = "/" + WSRP_REWRITE;
+
+ public static final int WSRP_REWRITE_SUFFIX_LENGTH = 13;
+
+ /**
+ * 10.2.1.1 wsrp-urlType <p>This parameter MUST be specified first when using
the Consumer URL rewriting template and
+ * the value selected from the following definitions. Well-known portlet URL parameter
names that are valid for only
+ * one wsrp-urlType are described relative to that wsrp-urlType while the remainder
are described later.</p>
+ */
+ public static final String URL_TYPE_NAME = "wsrp-urlType";
+
+ /**
+ * 10.2.1.1.1 wsrp-urlType = blockingAction <p>Activation of the URL will result
in an invocation of
+ * performBlockingInteraction() on the Portlet that generated the markup. All form
parameters, submitted as query
+ * string parameters using the HTTP GET method, that are not used to encode parameters
defined by this specification
+ * MUST be passed to performBlockingInteraction() as formParameters.</p>
+ */
+ public static final String URL_TYPE_BLOCKING_ACTION = "blockingAction";
+
+ /**
+ * 10.2.1.1.2 wsrp-urlType = render <p>Activation of the URL will result in an
invocation of getMarkup(). This
+ * mechanism permits a Portlet"s markup to contain URLs, which do not involve
changes to local state, to avoid the
+ * overhead of two-step processing by directly invoking getMarkup(). The URL MAY
specify a wsrp-navigationalState
+ * portlet URL parameter, whose value the Consumer MUST supply in the
navigationalState field of the MarkupParams
+ * structure. If there is no such portlet URL parameter, the Consumer MUST NOT supply
a value for this field.</p>
+ */
+ public static final String URL_TYPE_RENDER = "render";
+
+ /**
+ * 10.2.1.1.3 wsrp-urlType = resource <p>Activation of the URL will result in
the Consumer acting as a gateway to the
+ * underlying resource, possibly in a cached manner, and returning it to the
user-agent. The URL for the resource
+ * (including any query string parameters) is encoded as the value of the wsrp-url
parameter. When a portlet URL
+ * specifies "resource" for the wsrp-urlType portlet URL parameter, both the
wsrp-url and wsrp-requiresRewrite
+ * portlet URL parameters MUST also be specified. If the Portlet needs to share data
with the referenced resource, it
+ * can exploit the cookie support defined in section 10.4.</p>
+ */
+ public static final String URL_TYPE_RESOURCE = "resource";
+
+ /**
+ * 10.2.1.1.3.1 wsrp-url <p>This parameter provides the actual URL to the
resource. Note that this needs to be an
+ * absolute URL as the resource fetch will have no base for use in fetching a relative
URL. Also note that since this
+ * resource URL will appear as a parameter value, it has to be strictly encoded (i.e.
"&", "=", "/", and "?" need to
+ * be url-escaped) so that special URL characters do not invalidate the processing of
the enclosing URL. Consumers
+ * are encouraged to use the same communication style (e.g. HTTP Get or Post) for
retrieving the resource as was used
+ * in requesting the resource by the user-agent.</p>
+ */
+ public static final String RESOURCE_URL = "wsrp-url";
+
+ /**
+ * 10.2.1.1.3.2 wsrp-requiresRewrite <p>This boolean informs the Consumer that
the resource needs to be parsed for
+ * URL rewriting. Normally this means that there are names that will be
cross-referenced between the markup and this
+ * resource (e.g. JavaScript references). Note that this means the Consumer needs to
deal with rewriting unique
+ * "namespaced" names in a set of documents, rather than treating each
document individually. Processing such
+ * resources in a manner that allows caching of the resulting resource by the
End-User"s user-agent can improve the
+ * performance of the aggregated page for the End-User. In particular, Consumers can
process namespace rewriting by
+ * using a prefix that is unique to the user/Portlet pair provided any such prefix is
held constant for the duration
+ * of use within the user"s session with the Consumer of any one
Portlet.</p>
+ */
+ public static final String RESOURCE_REQUIRES_REWRITE =
"wsrp-requiresRewrite";
+
+ /**
+ * 10.2.1.2 wsrp-navigationalState <p>The value of this portlet URL parameter
defines the navigational state the
+ * Consumer MUST send to the Producer when the URL is activated. If this parameter is
missing, the Consumer MUST NOT
+ * supply the navigationalState field of the MarkupParams.</p>
+ */
+ public static final String NAVIGATIONAL_STATE = "wsrp-navigationalState";
+
+ /**
+ * 10.2.1.3 wsrp-interactionState <p>The value of this portlet URL parameter
defines the interaction state the
+ * Consumer MUST send to the Producer when the URL is activated. Tree.If this
parameter is missing, the Consumer MUST
+ * NOT supply the interactionState field of the InteractionParams
structure.</p>
+ */
+ public static final String INTERACTION_STATE = "wsrp-interactionState";
+
+ /**
+ * 10.2.1.4 wsrp-mode <p>Activating this URL includes a request to change the
mode parameter in MarkupParams into the
+ * mode specified as the value for this portlet URL parameter. The value for wsrp-mode
MUST be one of the modes
+ * detailed in section 6.8 or a custom mode the Consumer specified as supported during
registration. The wsrp-mode
+ * portlet URL parameter MAY be used whenever the wsrp-urlType portlet URL parameter
has a value of "blockingAction"
+ * or "render".</p>
+ */
+ public static final String MODE = "wsrp-mode";
+
+ /**
+ * 10.2.1.5 wsrp-windowState <p>Activating this URL includes a request to change
the windowState parameter in
+ * MarkupParams into the window state specified as the value for this portlet URL
parameter. The value for wsrp-
+ * windowState MUST be one of the values detailed in section 6.9 or a custom window
state the Consumer specified as
+ * supported during registration. The wsrp-windowState portlet URL parameter MAY be
used whenever the wsrp-urlType
+ * portlet URL parameter has a value of "blockingAction" or
"render".</p>
+ */
+ public static final String WINDOW_STATE = "wsrp-windowState";
+
+ /**
+ * 10.2.1.6 wsrp-fragmentID <p>This portlet URL parameter specifies the portion
of an URL that navigates to a place
+ * within a document.</p>
+ */
+ public static final String FRAGMENT_ID = "wsrp-fragmentID";
+
+ /**
+ * 10.2.1.7 wsrp-secureURL <p>The value for the wsrp-secureURL is a boolean
indicating whether the resulting URL MUST
+ * involve secure communication between the client and Consumer, as well as between
the Consumer and Producer. The
+ * default value of this boolean is "false". Note that the Consumer"s
aggregated page MUST be secure if any of the
+ * Portlets whose content is being displayed on the page have indicated the need for
secure communication for their
+ * current markup.</p>
+ */
+ public static final String SECURE_URL = "wsrp-secureURL";
+
+ /**
+ * 10.3.1 Consumer Rewriting (Namespace encoding) <p>The Portlet can prefix the
token with "wsrp_rewrite_". The
+ * Consumer will locate such markers and MUST replace them with a prefix that is
unique to this instance of this
+ * portlet on the page. This prefix has been chosen such that the Consumer is able to
do a single parse of the markup
+ * to both locate such markers and the URL rewrite expressions described in section
10.2.1. In addition, this prefix
+ * is legal for at least the JavaScript and VBScript scripting languages and CSS class
names. This permits the
+ * independent testing of most generated markup fragments.</p>
+ */
+ public static final String WSRP_REWRITE_TOKEN = WSRP_REWRITE + "_";
+
+ /** Opening token for URL parameters. See 10.2.2. */
+ public static final String REWRITE_PARAMETER_OPEN = "{";
+
+ /** Closing token for URL parameters. See 10.2.2. */
+ public static final String REWRITE_PARAMETER_CLOSE = "}";
+
+ /** Encoded version of REWRITE_PARAMETER_OPEN */
+ static final String ENC_OPEN = "%7B";
+
+ /** Encoded version of REWRITE_PARAMETER_CLOSE */
+ static final String ENC_CLOSE = "%7D";
+
+ /* Constants for Resource URL processing */
+ public static final String FAKE_RESOURCE_START = "JBP_RES_REW=";
+ public static final String FAKE_RESOURCE_REQ_REW = "JBP_REQ_REW";
+ public static final String FAKE_RESOURCE_URL = FAKE_RESOURCE_START +
"{wsrp-url}" + FAKE_RESOURCE_REQ_REW + "{wsrp-requiresRewrite}";
+
+ private WSRPRewritingConstants()
+ {
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPRewritingConstants.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,951 @@
+/*
+ * 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.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.portlet.ActionURL;
+import org.jboss.portal.portlet.OpaqueStateString;
+import org.jboss.portal.portlet.PortletURL;
+import org.jboss.portal.portlet.RenderURL;
+import org.jboss.portal.portlet.StateString;
+import org.jboss.portal.portlet.URLFormat;
+import org.jboss.portal.portlet.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 javax.xml.namespace.QName;
+import java.util.Map;
+
+/**
+ * Creates minimally valid instances of WSRP types, populated with default values where
possible, as per
+ * wsrp_v1_types.xsd. See <a
href="http://jira.jboss.com/jira/browse/JBPORTAL-808">JBPORT...
for more
+ * information.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11317 $
+ * @since 2.4
+ */
+public class WSRPTypeFactory
+{
+ private WSRPTypeFactory()
+ {
+ }
+
+ /** ====== WSRP request objects ====== **/
+ /**
+ * registrationContext(RegistrationContext)?, desiredLocales(xsd:string)*
+ *
+ * @return
+ */
+ public static GetServiceDescription createGetServiceDescription()
+ {
+ return new GetServiceDescription();
+ }
+
+ /**
+ * Same as createMarkupRequest(handle, createDefaultRuntimeContext(),
createDefaultMarkupParams())
+ *
+ * @param handle
+ * @return
+ */
+ public static GetMarkup createDefaultMarkupRequest(String handle)
+ {
+ return createMarkupRequest(createPortletContext(handle),
createDefaultRuntimeContext(), createDefaultMarkupParams());
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
runtimeContext(RuntimeContext),
+ * userContext(UserContext)?, markupParams(MarkupParams)
+ *
+ * @param portletContext
+ * @param runtimeContext
+ * @param markupParams
+ * @return
+ * @throws IllegalArgumentException if one of the required parameters is
<code>null</code>
+ */
+ public static GetMarkup createMarkupRequest(PortletContext portletContext,
RuntimeContext runtimeContext, MarkupParams markupParams)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(runtimeContext,
"RuntimeContext");
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ ParameterValidation.throwIllegalArgExceptionIfNull(markupParams,
"MarkupParams");
+
+ return new GetMarkup(null, portletContext, runtimeContext, null, markupParams);
+ }
+
+ /**
+ * Same as createPerformBlockingInteraction(portletHandle, {@link
#createDefaultRuntimeContext}(), {@link
+ * #createDefaultMarkupParams}(), {@link #createDefaultInteractionParams}());
+ *
+ * @param portletHandle
+ * @return
+ */
+ public static PerformBlockingInteraction
createDefaultPerformBlockingInteraction(String portletHandle)
+ {
+ return createPerformBlockingInteraction(createPortletContext(portletHandle),
createDefaultRuntimeContext(), createDefaultMarkupParams(),
+ createDefaultInteractionParams());
+ }
+
+ /**
+ * {@link org.jboss.portal.wsrp.core.RegistrationContext}?, {@link PortletContext},
{@link RuntimeContext}, {@link
+ * org.jboss.portal.wsrp.core.UserContext}?, {@link MarkupParams}, {@link
InteractionParams}
+ *
+ * @param portletContext
+ * @param runtimeContext
+ * @param markupParams
+ * @param interactionParams
+ * @return
+ */
+ public static PerformBlockingInteraction createPerformBlockingInteraction(
+ PortletContext portletContext, RuntimeContext runtimeContext,
+ MarkupParams markupParams,
+ InteractionParams interactionParams)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(portletContext.getPortletHandle(),
"portlet handle", "PortletContext");
+ ParameterValidation.throwIllegalArgExceptionIfNull(runtimeContext,
"RuntimeContext");
+ ParameterValidation.throwIllegalArgExceptionIfNull(markupParams,
"MarkupParams");
+ ParameterValidation.throwIllegalArgExceptionIfNull(interactionParams,
"InteractionParams");
+
+ return new PerformBlockingInteraction(null, portletContext, runtimeContext, null,
+ markupParams, interactionParams);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
userContext(UserContext)?,
+ * desiredLocales(xsd:string)*
+ *
+ * @param registrationContext
+ * @param portletHandle handle for the PortletContext
+ * @return
+ * @since 2.4.1
+ */
+ public static GetPortletDescription createGetPortletDescription(RegistrationContext
registrationContext, String portletHandle)
+ {
+ return new GetPortletDescription(registrationContext,
createPortletContext(portletHandle), null, null);
+ }
+
+ /**
+ * @param registrationContext
+ * @param portletContext
+ * @return
+ * @since 2.6
+ */
+ public static GetPortletDescription createGetPortletDescription(RegistrationContext
registrationContext,
+
org.jboss.portal.portlet.PortletContext portletContext)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "portlet
context");
+ PortletContext wsrpPC = createPortletContext(portletContext.getId(),
portletContext.getState());
+ return new GetPortletDescription(registrationContext, wsrpPC, null, null);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
userContext(UserContext)?,
+ * desiredLocales(xsd:string)*
+ *
+ * @param registrationContext
+ * @param portletContext
+ * @return
+ * @since 2.4.1
+ */
+ public static GetPortletProperties createGetPortletProperties(RegistrationContext
registrationContext, PortletContext portletContext)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ return new GetPortletProperties(registrationContext, portletContext, null, null);
+ }
+
+ /** ====== WSRP Response objects ====== **/
+
+ /**
+ * ( updateResponse(UpdateResponse) | redirectURL(xsd:string) ),
extensions(Extension)*
+ *
+ * @return
+ */
+ public static BlockingInteractionResponse
createBlockingInteractionResponse(UpdateResponse updateResponse)
+ {
+ if (updateResponse == null)
+ {
+ throw new IllegalArgumentException("BlockingInteractionResponse requires
either an UpdateResponse or a redirect URL.");
+ }
+ return new BlockingInteractionResponse(updateResponse, null, null);
+ }
+
+ /**
+ * ( updateResponse(UpdateResponse) | redirectURL(xsd:string) ),
extensions(Extension)*
+ *
+ * @return
+ */
+ public static BlockingInteractionResponse createBlockingInteractionResponse(String
redirectURL)
+ {
+ if (redirectURL == null || redirectURL.length() == 0)
+ {
+ throw new IllegalArgumentException("BlockingInteractionResponse requires
either an UpdateResponse or a redirect URL.");
+ }
+ return new BlockingInteractionResponse(null, redirectURL, null);
+ }
+
+ /**
+ * sessionContext(SessionContext)?, portletContext(PortletContext)?,
markupContext(MarkupContext)?,
+ * navigationalState(xsd:string)? newWindowState(xsd:string)?, newMode(xsd:string)?
+ *
+ * @return
+ */
+ public static UpdateResponse createUpdateResponse()
+ {
+ return new UpdateResponse();
+ }
+
+ /**
+ * portletHandle(xsd:string), markupTypes(MarkupType)+, groupID(xsd:string)?,
description(LocalizedString)?,
+ * shortTitle(LocalizedString)?, title(LocalizedString)?,
displayName(LocalizedString)?, keywords(LocalizedString)*,
+ * userCategories(xsd:string)*, userProfileItems(xsd:string)*,
usesMethodGet(xsd:boolean[false])?,
+ * defaultMarkupSecure(xsd:boolean[false])?, onlySecure(xsd:boolean[false])?,
userContextStoredInSession(xsd:boolean[false])?,
+ * templatesStoredInSession(xsd:boolean[false])?,
hasUserSpecificState(xsd:boolean[false])?,
+ * doesUrlTemplateProcessing(xsd:boolean[false])?, extensions(Extension)*
+ *
+ * @return
+ */
+ public static PortletDescription createPortletDescription(String portletHandle,
MarkupType[] markupTypes)
+ {
+ checkPortletHandle(portletHandle);
+
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(markupTypes,
"MarkupType");
+
+ PortletDescription portletDescription = new PortletDescription();
+ portletDescription.setPortletHandle(portletHandle);
+ portletDescription.setMarkupTypes(markupTypes);
+ return portletDescription;
+ }
+
+ private static void checkPortletHandle(String portletHandle)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(portletHandle,
"portlet handle", "PortletDescription");
+ if (portletHandle.length() > 255)
+ {
+ throw new IllegalArgumentException("Portlet handles must be less than 255
characters long. Was "
+ + portletHandle.length() + " long.");
+ }
+ }
+
+ /**
+ * Same as createMarkupParams(false, {@link WSRPConstants#getDefaultLocales()},
{@link
+ * WSRPConstants#getDefaultMimeTypes()}, {@link WSRPConstants#VIEW_MODE}, {@link
WSRPConstants#NORMAL_WINDOW_STATE})
+ *
+ * @return
+ */
+ public static MarkupParams createDefaultMarkupParams()
+ {
+ return createMarkupParams(false, WSRPConstants.getDefaultLocales(),
WSRPConstants.getDefaultMimeTypes(),
+ WSRPConstants.VIEW_MODE, WSRPConstants.NORMAL_WINDOW_STATE);
+ }
+
+ /**
+ * 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})*
+ *
+ * @return
+ */
+ public static MarkupParams createMarkupParams(boolean secureClientCommunication,
String[] locales,
+ String[] mimeTypes, String mode, String
windowState)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(locales,
"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);
+ }
+
+ /**
+ * Same as createRuntimeContext({@link WSRPConstants#NONE_USER_AUTHENTICATION})
+ *
+ * @return
+ */
+ public static RuntimeContext createDefaultRuntimeContext()
+ {
+ return createRuntimeContext(WSRPConstants.NONE_USER_AUTHENTICATION);
+ }
+
+ /**
+ * userAuthentication(xsd:string), portletInstanceKey(xsd:string)?,
namespacePrefix(xsd:string)?,
+ * templates(Templates)?, sessionID(xsd:string)?, extensions(Extension)*
+ *
+ * @return
+ */
+ public static RuntimeContext createRuntimeContext(String userAuthentication)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userAuthentication,
"user authentication", "RuntimeContext");
+
+ RuntimeContext runtimeContext = new RuntimeContext();
+ runtimeContext.setUserAuthentication(userAuthentication);
+ return runtimeContext;
+ }
+
+ /**
+ * portletHandle(xsd:string), portletState(xsd:base64Binary)?, extensions({@link
+ * org.jboss.portal.wsrp.core.Extension})*
+ *
+ * @param portletHandle
+ * @return
+ */
+ public static PortletContext createPortletContext(String portletHandle)
+ {
+ checkPortletHandle(portletHandle);
+
+ PortletContext portletContext = new PortletContext();
+ portletContext.setPortletHandle(portletHandle);
+ return portletContext;
+ }
+
+
+ /**
+ * @param portletHandle
+ * @param portletState
+ * @return
+ * @since 2.6
+ */
+ public static PortletContext createPortletContext(String portletHandle, byte[]
portletState)
+ {
+ PortletContext pc = createPortletContext(portletHandle);
+ pc.setPortletState(portletState);
+ return pc;
+ }
+
+ /**
+ * Same as createInteractionParams(StateChange.readOnly)
+ *
+ * @return
+ */
+ public static InteractionParams createDefaultInteractionParams()
+ {
+ return createInteractionParams(StateChange.readOnly);
+ }
+
+ /**
+ * portletStateChange({@link StateChange}), interactionState(xsd:string)?,
formParameters(NamedString)*,
+ * uploadContexts(UploadContext)*, extensions(Extension)*
+ *
+ * @return
+ */
+ public static InteractionParams createInteractionParams(StateChange
portletStateChange)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletStateChange,
"portletStateChange");
+
+ InteractionParams interactionParams = new InteractionParams();
+ interactionParams.setPortletStateChange(portletStateChange);
+ return interactionParams;
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?
+ *
+ * @param registrationContext
+ * @return
+ */
+ public static InitCookie createInitCookie(RegistrationContext registrationContext)
+ {
+ return new InitCookie(registrationContext);
+ }
+
+ /**
+ * requiresRegistration(xsd:boolean), offeredPortlets(PortletDescription)*,
userCategoryDescriptions(ItemDescription)*,
+ * customUserProfileItemDescriptions(ItemDescription)*,
customWindowStateDescriptions(ItemDescription)*,
+ * customModeDescriptions(ItemDescription)*,
requiresInitCookie(CookieProtocol[none])?,
+ * registrationPropertyDescription(ModelDescription)?, locales(xsd:string)*,
resourceList(ResourceList)?,
+ * extensions(Extension)*
+ *
+ * @return
+ */
+ public static ServiceDescription createServiceDescription(boolean
requiresRegistration)
+ {
+ ServiceDescription serviceDescription = new ServiceDescription();
+ serviceDescription.setRequiresRegistration(requiresRegistration);
+ return serviceDescription;
+ }
+
+ /**
+ * markupContext(MarkupContext), sessionContext(SessionContext)?,
extensions(Extension)*
+ *
+ * @return
+ */
+ public static MarkupResponse createMarkupResponse(MarkupContext markupContext)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(markupContext,
"MarkupContext");
+
+ return new MarkupResponse(markupContext, null, null);
+ }
+
+ /**
+ * mimeType: The mime type of the returned markup. The mimeType field MUST be
specified whenever markup is returned,
+ * and if the markupBinary field is used to return the markup, the mime type MUST
include the character set for
+ * textual mime types using the syntax specified in RFC1522[14] (e.g. "text/html;
charset=UTF-8"). In this particular
+ * case this character set MAY be different than the response message.
+ * <p/>
+ * useCachedMarkup(xsd:boolean[false])?, mimeType(xsd:string)?,
(markupString(xsd:string) |
+ * markupBinary(xsd:base64Binary)), locale(xsd:string)?,
requiresUrlRewriting(xsd:boolean[false])?,
+ * cacheControl(CacheControl)?, preferredTitle(xsd:string)?, extensions(Extension)*
+ *
+ * @return
+ */
+ public static MarkupContext createMarkupContext(String mediaType, String
markupString)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(mediaType, "Media
type", "MarkupContext");
+ if (markupString == null)
+ {
+ 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);
+ }
+
+ /**
+ * useCachedMarkup(xsd:boolean[false])?, mimeType(xsd:string)?,
(markupString(xsd:string) |
+ * markupBinary(xsd:base64Binary)), locale(xsd:string)?,
requiresUrlRewriting(xsd:boolean[false])?,
+ * cacheControl(CacheControl)?, preferredTitle(xsd:string)?, extensions(Extension)*
+ *
+ * @param mediaType The mime type of the returned markup. The mimeType field MUST be
specified whenever markup is
+ * returned, and if the markupBinary field is used to return the
markup, the mime type MUST include
+ * the character set for textual mime types using the syntax
specified in RFC1522[14] (e.g.
+ * "text/html; charset=UTF-8"). In this particular case
this character set MAY be different than the
+ * response message.
+ * @return a new MarkupContext
+ */
+ public static MarkupContext createMarkupContext(String mediaType, byte[]
markupBinary)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(mediaType, "MIME
type", "MarkupContext");
+ if (markupBinary == null || markupBinary.length == 0)
+ {
+ 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);
+ }
+
+ /**
+ * sessionID(xsd:string), expires(xsd:int), extensions(Extension)*
+ *
+ * @param sessionID An opaque string the Portlet defines for referencing state that is
stored locally on the
+ * Producer. The maximum length of a sessionID is 4096 characters,
+ * @param expires Maximum number of seconds between invocations referencing the
sessionID before the Producer will
+ * schedule releasing the related resources. A value of -1 indicates
that the sessionID will never
+ * expire.
+ * @return a new SessionContext
+ */
+ public static SessionContext createSessionContext(String sessionID, int expires)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(sessionID, "session
Id", "SessionContext");
+ if (expires < 0)
+ {
+ throw new IllegalArgumentException("SessionContext requires a positive
expiration time.");
+ }
+ return new SessionContext(sessionID, expires, null);
+ }
+
+ /**
+ * For UserProfile and related classes, everything is optional so no need to have
factory methods.
+ * <p/>
+ * userContextKey(xsd:string), userCategories(xsd:string)*, profile(UserProfile)?,
extensions(Extension)*
+ *
+ * @return
+ */
+ public static UserContext createUserContext(String userContextKey)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userContextKey,
"user context key", "UserContext");
+ return new UserContext(userContextKey, null, null, null);
+ }
+
+ /**
+ * consumerName(xsd:string), consumerAgent(xsd:string),
methodGetSupported(xsd:boolean), consumerModes(xsd:string)*,
+ * consumerWindowStates(xsd:string)*, consumerUserScopes(xsd:string)*,
customUserProfileData(xsd:string)*,
+ * registrationProperties(Property)*, extensions(Extension)*
+ *
+ * @param consumerName A name (preferably unique) that identifies the Consumer
[R355] An example of such a name
+ * would be the Consumer's URL.
+ * @param methodGetSupported A flag that tells the Producer whether the Consumer has
implemented portlet URLs
+ * (regardless of whether they are written through Consumer
URL rewriting or Producer URL
+ * writing, see [Section 10.2]) in a manner that supports
HTML markup containing forms with
+ * method="get".
+ * @return
+ */
+ public static RegistrationData createRegistrationData(String consumerName, boolean
methodGetSupported)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(consumerName,
"consumer name", "RegistrationData");
+ RegistrationData regData = createDefaultRegistrationData();
+ regData.setConsumerName(consumerName);
+ regData.setMethodGetSupported(methodGetSupported);
+ return regData;
+ }
+
+ /**
+ * Same as createRegistrationData({@link WSRPConstants#DEFAULT_CONSUMER_NAME}, false)
using {@link
+ * WSRPConstants#CONSUMER_AGENT} for the consumer agent.
+ *
+ * @return
+ * @since 2.4.1
+ */
+ public static RegistrationData createDefaultRegistrationData()
+ {
+ return new RegistrationData(WSRPConstants.DEFAULT_CONSUMER_NAME,
WSRPConstants.CONSUMER_AGENT, false, null, null,
+ null, null, null, null);
+ }
+
+ /**
+ * ( stringValue(xsd:string) | any* ), @name(xsd:string), @xml:lang
+ *
+ * @return
+ */
+ public static Property createProperty(String name, String lang, String stringValue)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "name",
"Property");
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang,
"language", "Property");
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(stringValue, "String
value", "Property");
+
+ return new Property(name, lang, stringValue, null);
+ }
+
+ private static final ActionURL ACTION_URL = new ActionURL()
+ {
+ public StateString getInteractionState()
+ {
+ return new OpaqueStateString(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.INTERACTION_STATE +
WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE);
+ }
+
+ public StateString getNavigationalState()
+ {
+ return new OpaqueStateString(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.NAVIGATIONAL_STATE +
WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE);
+ }
+
+ public Mode getMode()
+ {
+ return Mode.create(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.MODE + WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE, true);
+ }
+
+ public WindowState getWindowState()
+ {
+ return WindowState.create(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.WINDOW_STATE + WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE,
true);
+ }
+ };
+
+ private static final RenderURL RENDER_URL = new RenderURL()
+ {
+ public StateString getNavigationalState()
+ {
+ return new OpaqueStateString(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.NAVIGATIONAL_STATE +
WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE);
+ }
+
+ public Map<String, String[]> getPublicNavigationalStateChanges()
+ {
+ throw new UnsupportedOperationException("getPublicNavigationalStateChanges
is not currently supported!"); // todo: fix me
+ }
+
+ public Mode getMode()
+ {
+ return Mode.create(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.MODE + WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE, true);
+ }
+
+ public WindowState getWindowState()
+ {
+ return WindowState.create(WSRPRewritingConstants.REWRITE_PARAMETER_OPEN +
WSRPRewritingConstants.WINDOW_STATE + WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE,
true);
+ }
+ };
+
+ /**
+ * defaultTemplate(xsd:string)?, blockingActionTemplate(xsd:string)?,
renderTemplate(xsd:string)?,
+ * resourceTemplate(xsd:string)?, secureDefaultTemplate(xsd:string)?,
secureBlockingActionTemplate(xsd:string)?,
+ * secureRenderTemplate(xsd:string)?, secureResourceTemplate(xsd:string)?,
extensions(Extension)*
+ *
+ * @param context
+ * @return
+ */
+ public static Templates createTemplates(PortletInvocationContext context)
+ {
+ Templates templates = new Templates();
+
+ templates.setBlockingActionTemplate(createTemplate(context, ACTION_URL,
Boolean.FALSE));
+ templates.setRenderTemplate(createTemplate(context, RENDER_URL, Boolean.FALSE));
+ templates.setSecureBlockingActionTemplate(createTemplate(context, ACTION_URL,
Boolean.TRUE));
+ templates.setSecureRenderTemplate(createTemplate(context, RENDER_URL,
Boolean.TRUE));
+
+ //fix-me: deal with resources properly, create fake ones for now
+ templates.setResourceTemplate(WSRPRewritingConstants.FAKE_RESOURCE_URL);
+ templates.setSecureResourceTemplate(WSRPRewritingConstants.FAKE_RESOURCE_URL);
+
+ return templates;
+ }
+
+ private static String createTemplate(PortletInvocationContext context, PortletURL url,
Boolean secure)
+ {
+ String template = context.renderURL(url, new URLFormat(secure, null, null, true));
+ template = Tools.replace(template, WSRPRewritingConstants.ENC_OPEN,
WSRPRewritingConstants.REWRITE_PARAMETER_OPEN);
+ template = Tools.replace(template, WSRPRewritingConstants.ENC_CLOSE,
WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE);
+ return template;
+ }
+
+ /**
+ * userAgent(xsd:string)?, extensions(Extension)*
+ *
+ * @param userAgent
+ * @return
+ */
+ public static ClientData createClientData(String userAgent)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userAgent, "user
agent", "ClientData");
+ return new ClientData(userAgent, null);
+ }
+
+ /**
+ * expires(xsd:int), userScope(xsd:string), validateTag(xsd:string)?,
extensions(Extension)*
+ *
+ * @param expires Number of seconds the markup fragment referenced by this cache
control entry remains valid. A
+ * value of -1 indicates that the markup fragment will never expire.
+ * @param userScope
+ * @return
+ */
+ public static CacheControl createCacheControl(int expires, String userScope)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(userScope, "user
scope", "CacheControl");
+ if (expires < -1)
+ {
+ throw new IllegalArgumentException("Cache expiration time must be greater
than -1, " +
+ "-1 indicating that the cache will never expire.");
+ }
+
+ return new CacheControl(expires, userScope, null, null);
+ }
+
+ /**
+ * registrationHandle(xsd:string), registrationState(xsd:base64Binary)?,
extensions(Extension)*
+ *
+ * @param registrationHandle
+ * @return
+ * @since 2.4.1
+ */
+ public static RegistrationContext createRegistrationContext(String
registrationHandle)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(registrationHandle,
"Registration handle");
+ return new RegistrationContext(registrationHandle, null, null);
+ }
+
+ /**
+ * propertyDescriptions(PropertyDescription)*, modelTypes(ModelTypes)?,
extensions(Extension)*
+ *
+ * @return
+ * @since 2.6
+ */
+ public static ModelDescription createModelDescription(PropertyDescription[]
propertyDescriptions)
+ {
+ return new ModelDescription(propertyDescriptions, null, null);
+ }
+
+ /**
+ * label(LocalizedString)?, hint(LocalizedString)?, extensions(Extension)*,
@name(xsd:string), @type(xsd:QName)
+ *
+ * @return
+ * @since 2.6
+ */
+ public static PropertyDescription createPropertyDescription(String name, QName type)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "PropertyDescription
name");
+ ParameterValidation.throwIllegalArgExceptionIfNull(type, "PropertyDescription
type");
+ return new PropertyDescription(name, type, null, null, null);
+ }
+
+ /**
+ * value(xsd:string), @xml:lang, @resourceName(xsd:string)?
+ *
+ * @return
+ * @since 2.6
+ */
+ public static LocalizedString createLocalizedString(String lang, String resourceName,
String value)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(lang, "LocalizedString
language");
+ ParameterValidation.throwIllegalArgExceptionIfNull(value, "LocalizedString
value");
+ return new LocalizedString(lang, resourceName, value);
+ }
+
+ /**
+ * Same as createLocalizedString("en", null, value)
+ *
+ * @param value
+ * @return
+ * @since 2.6
+ */
+ public static LocalizedString createLocalizedString(String value)
+ {
+ return createLocalizedString("en", null, value);
+ }
+
+ /**
+ * portletDescription(PortletDescription), resourceList(ResourceList)?,
extensions(Extension)*
+ *
+ * @param portletDescription
+ * @return
+ * @since 2.6
+ */
+ public static PortletDescriptionResponse
createPortletDescriptionResponse(PortletDescription portletDescription)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletDescription,
"PortletDescription");
+ return new PortletDescriptionResponse(portletDescription, null, null);
+ }
+
+ /**
+ * modelDescription(ModelDescription)?, resourceList(ResourceList)?,
extensions(Extension)*
+ *
+ * @param propertyDescriptions
+ * @return
+ * @since 2.6
+ */
+ public static PortletPropertyDescriptionResponse
createPortletPropertyDescriptionResponse(PropertyDescription[] propertyDescriptions)
+ {
+ ModelDescription modelDescription = propertyDescriptions == null ? null :
createModelDescription(propertyDescriptions);
+ return new PortletPropertyDescriptionResponse(modelDescription, null, null);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
userContext(UserContext)?,
+ * desiredLocales(xsd:string)*
+ *
+ * @return
+ * @since 2.6
+ */
+ public static GetPortletPropertyDescription
createGetPortletPropertyDescription(RegistrationContext registrationContext,
+
PortletContext portletContext,
+
UserContext userContext, String[] desiredLocales)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ return new GetPortletPropertyDescription(registrationContext, portletContext,
userContext, desiredLocales);
+ }
+
+ /**
+ * Same as createGetPortletPropertyDescription(null,
createPortletContext(portletHandle), null, null)
+ *
+ * @param portletHandle
+ * @return
+ * @since 2.6
+ */
+ public static GetPortletPropertyDescription
createSimpleGetPortletPropertyDescription(String portletHandle)
+ {
+ return createGetPortletPropertyDescription(null,
createPortletContext(portletHandle), null, null);
+ }
+
+
+ /**
+ * portletHandle(xsd:string), reason(xsd:string)
+ *
+ * @param portletHandle
+ * @param reason
+ * @return
+ * @since 2.6
+ */
+ public static DestroyFailed createDestroyFailed(String portletHandle, String reason)
+ {
+ 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);
+ }
+
+ /**
+ * destroyFailed(DestroyFailed)*, extensions(Extension)*
+ *
+ * @param destroyFailed
+ * @return
+ * @since 2.6
+ */
+ public static DestroyPortletsResponse createDestroyPortletsResponse(DestroyFailed[]
destroyFailed)
+ {
+ return new DestroyPortletsResponse(destroyFailed, null);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
userContext(UserContext)?,
+ * propertyList(PropertyList)
+ *
+ * @param portletContext
+ * @param propertyList
+ * @return
+ * @since 2.6
+ */
+ public static SetPortletProperties createSetPortletProperties(
+ RegistrationContext registrationContext,
+ PortletContext portletContext,
+ PropertyList propertyList)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyList,
"PropertyList");
+
+ return new SetPortletProperties(registrationContext, portletContext, null,
propertyList);
+ }
+
+ /**
+ * same as createClonePortlet(null, createPortletContext(portletHandle), null)
+ *
+ * @param portletHandle
+ * @return
+ * @since 2.6
+ */
+ public static ClonePortlet createSimpleClonePortlet(String portletHandle)
+ {
+ return createClonePortlet(null, createPortletContext(portletHandle), null);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletContext(PortletContext),
userContext(UserContext)?
+ *
+ * @return
+ * @since 2.6
+ */
+ public static ClonePortlet createClonePortlet(RegistrationContext registrationContext,
PortletContext portletContext, UserContext userContext)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ return new ClonePortlet(registrationContext, portletContext, userContext);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, portletHandles(xsd:string)+
+ *
+ * @return
+ * @since 2.6
+ */
+ public static DestroyPortlets createDestroyPortlets(RegistrationContext
registrationContext, String[] portletHandles)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(portletHandles,
"Portlet handles");
+ return new DestroyPortlets(registrationContext, portletHandles);
+ }
+
+ /**
+ * properties(Property)*, resetProperties(ResetProperty)*, extensions(Extension)*
+ *
+ * @return
+ * @since 2.6
+ */
+ public static PropertyList createPropertyList()
+ {
+ return new PropertyList();
+ }
+
+ /**
+ * EMPTY, @name(xsd:string)
+ *
+ * @param name
+ * @return
+ * @since 2.6
+ */
+ public static ResetProperty createResetProperty(String name)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "Property
name", "ResetProperty");
+
+ return new ResetProperty(name);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, sessionIDs(xsd:string)*
+ *
+ * @return
+ * @since 2.6
+ */
+ public static ReleaseSessions createReleaseSessions(RegistrationContext
registrationContext, String[] sessionIDs)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(sessionIDs, "Session
IDs");
+
+ return new ReleaseSessions(registrationContext, sessionIDs);
+ }
+
+ /**
+ * registrationContext(RegistrationContext)?, registrationData(RegistrationData)
+ *
+ * @return
+ * @since 2.6
+ */
+ public static ModifyRegistration createModifyRegistration(RegistrationContext
registrationContext,
+ RegistrationData
registrationData)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(registrationData,
"RegistrationData");
+
+ return new ModifyRegistration(registrationContext, registrationData);
+ }
+
+ /**
+ * mimeType(xsd:string), uploadData(xsd:base64Binary), mimeAttributes(NamedString)*,
extensions(Extension)*
+ *
+ * @param mimeType
+ * @param uploadData
+ * @return
+ * @since 2.6.2
+ */
+ public static UploadContext createUploadContext(String mimeType, byte[] uploadData)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(mimeType, "MIME
Type", "UploadContext");
+ if (uploadData == null || uploadData.length == 0)
+ {
+ throw new IllegalArgumentException("Must pass non-null, non-empty upload
data");
+ }
+
+ return new UploadContext(mimeType, uploadData, null, null);
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPTypeFactory.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/WSRPUtils.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,383 @@
+/*
+ * 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.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.i18n.LocaleFormat;
+import org.jboss.portal.common.util.ConversionException;
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.portlet.ActionURL;
+import org.jboss.portal.portlet.PortletContext;
+import org.jboss.portal.portlet.PortletURL;
+import org.jboss.portal.portlet.RenderURL;
+import org.jboss.portal.portlet.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.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11351 $
+ * @since 2.4
+ */
+public class WSRPUtils
+{
+ private final static Map<String, String> JSR168_WSRP_WINDOW_STATES = new
HashMap<String, String>(7);
+ private final static Map<String, WindowState> WSRP_JSR168_WINDOW_STATES = new
HashMap<String, WindowState>(7);
+ private final static Map<String, String> JSR168_WSRP_MODES = new
HashMap<String, String>(7);
+ private final static Map<String, Mode> WSRP_JSR168_MODES = new
HashMap<String, Mode>(7);
+ private static final String SET_OF_LOCALES = "set of Locales";
+ private static final String MODE = "Mode";
+ private static final String WSRP_MODE_NAME = "wsrp portlet name";
+ private static final String WSRP_WINDOW_STATE_NAME = "wsrp window state
name";
+ private static final String WINDOW_STATE = "WindowState";
+
+ public static final Set<Mode> DEFAULT_JSR168_MODES;
+ public static final Set<WindowState> DEFAULT_JSR168_WINDOWSTATES;
+
+ private static boolean strict = true;
+ private static Logger log = LoggerFactory.getLogger(WSRPUtils.class);
+
+ public static void setStrict(boolean strict)
+ {
+ WSRPUtils.strict = strict;
+ log.debug("Using " + (strict ? "strict" : "lenient")
+ " language code validation mode.");
+ }
+
+ static
+ {
+ JSR168_WSRP_WINDOW_STATES.put(WindowState.MAXIMIZED.toString(),
WSRPConstants.MAXIMIZED_WINDOW_STATE);
+ JSR168_WSRP_WINDOW_STATES.put(WindowState.MINIMIZED.toString(),
WSRPConstants.MINIMIZED_WINDOW_STATE);
+ JSR168_WSRP_WINDOW_STATES.put(WindowState.NORMAL.toString(),
WSRPConstants.NORMAL_WINDOW_STATE);
+
+ JSR168_WSRP_MODES.put(Mode.EDIT.toString(), WSRPConstants.EDIT_MODE);
+ JSR168_WSRP_MODES.put(Mode.HELP.toString(), WSRPConstants.HELP_MODE);
+ JSR168_WSRP_MODES.put(Mode.VIEW.toString(), WSRPConstants.VIEW_MODE);
+
+ WSRP_JSR168_WINDOW_STATES.put(WSRPConstants.MAXIMIZED_WINDOW_STATE,
WindowState.MAXIMIZED);
+ WSRP_JSR168_WINDOW_STATES.put(WSRPConstants.MINIMIZED_WINDOW_STATE,
WindowState.MINIMIZED);
+ WSRP_JSR168_WINDOW_STATES.put(WSRPConstants.NORMAL_WINDOW_STATE,
WindowState.NORMAL);
+
+ WSRP_JSR168_MODES.put(WSRPConstants.EDIT_MODE, Mode.EDIT);
+ WSRP_JSR168_MODES.put(WSRPConstants.HELP_MODE, Mode.HELP);
+ WSRP_JSR168_MODES.put(WSRPConstants.VIEW_MODE, Mode.VIEW);
+
+ DEFAULT_JSR168_MODES = new HashSet<Mode>(WSRP_JSR168_MODES.values());
+ DEFAULT_JSR168_WINDOWSTATES = new
HashSet<WindowState>(WSRP_JSR168_WINDOW_STATES.values());
+ }
+
+ private WSRPUtils()
+ {
+ }
+
+ public static WindowState getJSR168WindowStateFromWSRPName(String
wsrpWindowStateName)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(wsrpWindowStateName,
WSRP_WINDOW_STATE_NAME, null);
+ WindowState windowState = WSRP_JSR168_WINDOW_STATES.get(wsrpWindowStateName);
+ return (windowState == null) ? WindowState.create(wsrpWindowStateName) :
windowState;
+ }
+
+ public static boolean isDefaultWSRPWindowState(String wsrpWindowStateName)
+ {
+ return WSRP_JSR168_WINDOW_STATES.containsKey(wsrpWindowStateName) ||
WSRPConstants.SOLO_WINDOW_STATE.equals(wsrpWindowStateName);
+ }
+
+ public static String convertJSR168WindowStateNameToWSRPName(String
jsr168WindowStateName)
+ {
+ if (jsr168WindowStateName == null)
+ {
+ return WSRPConstants.NORMAL_WINDOW_STATE;
+ }
+
+ // todo: how should we deal with solo?
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(jsr168WindowStateName,
WSRP_WINDOW_STATE_NAME, null);
+ String wsrpName = JSR168_WSRP_WINDOW_STATES.get(jsr168WindowStateName);
+ return (wsrpName == null) ? jsr168WindowStateName : wsrpName;
+ }
+
+ public static String getWSRPNameFromJSR168WindowState(WindowState windowState)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(windowState, WINDOW_STATE);
+ return convertJSR168WindowStateNameToWSRPName(windowState.toString());
+ }
+
+ public static Mode getJSR168PortletModeFromWSRPName(String wsrpPortletModeName)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(wsrpPortletModeName,
WSRP_MODE_NAME, null);
+ Mode mode = WSRP_JSR168_MODES.get(wsrpPortletModeName);
+ return (mode == null) ? Mode.create(wsrpPortletModeName) : mode;
+ }
+
+ public static boolean isDefaultWSRPMode(String wsrpPortletModeName)
+ {
+ return WSRP_JSR168_MODES.containsKey(wsrpPortletModeName) ||
WSRPConstants.PREVIEW_MODE.equals(wsrpPortletModeName);
+ }
+
+ public static String convertJSR168PortletModeNameToWSRPName(String
jsr168PortletModeName)
+ {
+ if (jsr168PortletModeName == null)
+ {
+ return WSRPConstants.VIEW_MODE;
+ }
+
+ // todo: how should we deal with preview?
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(jsr168PortletModeName,
WSRP_MODE_NAME, null);
+ String wsrpName = JSR168_WSRP_MODES.get(jsr168PortletModeName);
+ return (wsrpName == null) ? jsr168PortletModeName : wsrpName;
+ }
+
+ public static String getWSRPNameFromJSR168PortletMode(Mode portletMode)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletMode, MODE);
+ return convertJSR168PortletModeNameToWSRPName(portletMode.toString());
+ }
+
+ public static AccessMode getAccessModeFromStateChange(StateChange stateChange)
+ {
+ if (StateChange.readOnly.equals(stateChange))
+ {
+ return AccessMode.READ_ONLY;
+ }
+ if (StateChange.cloneBeforeWrite.equals(stateChange))
+ {
+ return AccessMode.CLONE_BEFORE_WRITE;
+ }
+ if (StateChange.readWrite.equals(stateChange))
+ {
+ return AccessMode.READ_WRITE;
+ }
+ throw new IllegalArgumentException("Unsupported StateChange: " +
stateChange);
+ }
+
+ public static StateChange getStateChangeFromAccessMode(AccessMode accessMode)
+ {
+ if (AccessMode.READ_ONLY.equals(accessMode))
+ {
+ return StateChange.readOnly;
+ }
+ if (AccessMode.READ_WRITE.equals(accessMode))
+ {
+ return StateChange.readWrite;
+ }
+ if (AccessMode.CLONE_BEFORE_WRITE.equals(accessMode))
+ {
+ return StateChange.cloneBeforeWrite;
+ }
+ throw new IllegalArgumentException("Unsupported AccessMode: " +
accessMode);
+ }
+
+
+ public static String getWSRPURLTypeFrom(PortletURL url)
+ {
+ if (url instanceof WSRPPortletURL)
+ {
+ return ((WSRPPortletURL)url).getURLType();
+ }
+
+ if (url instanceof RenderURL)
+ {
+ return WSRPRewritingConstants.URL_TYPE_RENDER;
+ }
+
+ if (url instanceof ActionURL)
+ {
+ return WSRPRewritingConstants.URL_TYPE_BLOCKING_ACTION;
+ }
+
+ throw new IllegalArgumentException("Unrecognized URL type.");
+ }
+
+ public static String convertRequestAuthTypeToWSRPAuthType(String authType)
+ {
+ if (authType == null)
+ {
+ return WSRPConstants.NONE_USER_AUTHENTICATION;
+ }
+ if (HttpServletRequest.CLIENT_CERT_AUTH.equals(authType))
+ {
+ return WSRPConstants.CERTIFICATE_USER_AUTHENTICATION;
+ }
+ if (HttpServletRequest.BASIC_AUTH.equalsIgnoreCase(authType) ||
HttpServletRequest.FORM_AUTH.equals(authType))
+ {
+ return WSRPConstants.PASSWORD_USER_AUTHENTICATION; // is this correct?
+ }
+ return authType;
+ }
+
+ public static String[] convertLocalesToRFC3066LanguageTagArray(List
localesOrderedByPreference)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(localesOrderedByPreference,
SET_OF_LOCALES);
+
+ String[] desiredLocales = new String[localesOrderedByPreference.size()];
+ int i = 0;
+ for (Iterator iterator = localesOrderedByPreference.iterator(); iterator.hasNext();
i++)
+ {
+ Locale locale = (Locale)iterator.next();
+ desiredLocales[i] = toString(locale);
+ }
+ return desiredLocales;
+ }
+
+ public static PortletContext
convertToPortalPortletContext(org.jboss.portal.wsrp.core.PortletContext portletContext)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ String handle = portletContext.getPortletHandle();
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(handle, "portlet
handle", "PortletContext");
+
+ PortletContext context;
+ byte[] state = portletContext.getPortletState();
+ context = PortletContext.createPortletContext(handle, state);
+
+ return context;
+ }
+
+ /**
+ * @param portletContext
+ * @return Since 2.6
+ */
+ public static org.jboss.portal.wsrp.core.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);
+ result.setPortletState(portletContext.getState());
+ return result;
+ }
+
+
+ public static Locale getLocale(String lang) throws IllegalArgumentException
+ {
+ if (lang != null)
+ {
+ String possiblyRelaxed = lang;
+ if (!WSRPUtils.strict)
+ {
+ // treat en_US as valid by en_US => en-US
+ // todo: maybe this should be handled by an interceptor...
+ possiblyRelaxed = lang.replace('_', '-');
+ }
+
+ try
+ {
+ return LocaleFormat.RFC3066_LANGUAGE_TAG.getLocale(possiblyRelaxed);
+ }
+ catch (ConversionException e)
+ {
+ if (WSRPUtils.strict)
+ {
+ throw new IllegalArgumentException(e);
+ }
+ else
+ {
+ log.debug("Was given an invalid language: '" +
possiblyRelaxed
+ + "'. Since we're using relaxed validation, we will assume
" + Locale.ENGLISH + " to avoid crashing!", e);
+ return Locale.ENGLISH;
+ }
+ }
+ }
+ else
+ {
+ return Locale.getDefault();
+ }
+ }
+
+ public static String toString(Locale locale) throws IllegalArgumentException
+ {
+ try
+ {
+ return LocaleFormat.RFC3066_LANGUAGE_TAG.toString(locale);
+ }
+ catch (ConversionException e)
+ {
+ // Previous behavior on using ConversionException was like that
+ throw new IllegalArgumentException(e);
+ }
+ }
+
+ /**
+ * Debugging method.
+ *
+ * @param params
+ * @return
+ * @since 2.6
+ */
+ public static String toString(MarkupParams params)
+ {
+ if (params != null)
+ {
+ StringBuffer sb = new StringBuffer("MarkupParams");
+ if (params.isSecureClientCommunication())
+ {
+ sb.append("(secure)");
+ }
+
sb.append("[M=").append(params.getMode()).append("][WS=").append(params.getWindowState()).append("]")
+
.append("[NS=").append(params.getNavigationalState()).append("]");
+ return sb.toString();
+ }
+ return null;
+ }
+
+ /**
+ * Debugging method
+ *
+ * @param interactionParams
+ * @return
+ * @since 2.6
+ */
+ public static String toString(InteractionParams interactionParams)
+ {
+ if (interactionParams != null)
+ {
+ StringBuffer sb = new StringBuffer("InteractionParams");
+
sb.append("[IS=").append(interactionParams.getInteractionState()).append("]")
+
.append("[StateChange=").append(interactionParams.getPortletStateChange().getValue()).append("]");
+ NamedString[] formParams = interactionParams.getFormParameters();
+ if (formParams != null)
+ {
+ sb.append("\n\tForm params:\n");
+ for (NamedString formParam : formParams)
+ {
+
sb.append("\t\t").append(formParam.getName()).append("='").append(formParam.getValue()).append("'\n");
+ }
+ }
+ return sb.toString();
+ }
+ return null;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/handler/WSRPExtensionHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/handler/WSRPExtensionHandler.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/handler/WSRPExtensionHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,137 @@
+/*
+ * 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.handler;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.w3c.dom.NodeList;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.handler.GenericHandler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPMessage;
+
+/**
+ * JAX-RPC Handler that strips the SOAP Message of any WSRP extensions.
+ *
+ * @author <a href="mailto:Anil.Saldhana@jboss.org">Anil
Saldhana</a>
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12277 $
+ * @since 2.4 (Apr 26, 2006)
+ */
+public class WSRPExtensionHandler extends GenericHandler
+{
+ private static Logger log = LoggerFactory.getLogger(WSRPExtensionHandler.class);
+ private boolean debug = false;
+ private boolean removeExtensions = false;
+ private static final String EXTENSIONS = "extensions";
+
+ public void init(HandlerInfo info)
+ {
+ // this parameter configured in 'webservices.xml' or
'application-client.xml'
+ String debugStr = (String)info.getHandlerConfig().get("debug");
+ debug = "true".equalsIgnoreCase(debugStr);
+ String rem = (String)info.getHandlerConfig().get("removeExtensions");
+ removeExtensions = "true".equalsIgnoreCase(rem);
+ }
+
+ public QName[] getHeaders()
+ {
+ return null;
+ }
+
+ public boolean handleResponse(MessageContext messageContext)
+ {
+ removeExtensions(messageContext);
+ return super.handleResponse(messageContext);
+ }
+
+ public boolean handleRequest(MessageContext messageContext)
+ {
+ removeExtensions(messageContext);
+ return super.handleRequest(messageContext);
+ }
+
+ private void removeExtensions(MessageContext msgContext)
+ {
+ SOAPMessageContext soapMessageContext = (SOAPMessageContext)msgContext;
+ SOAPMessage soapMessage = soapMessageContext.getMessage();
+ try
+ {
+ if (debug)
+ {
+ soapMessage.writeTo(System.out);
+ }
+
+ if (removeExtensions)
+ {
+ SOAPBody soapBody = soapMessage.getSOAPBody();
+ traverseAndRemoveExtensions(soapBody);
+ }
+ }
+ catch (Exception e)
+ {
+ log.error("Error in WSRPExtensionHandler.removeExtensions:", e);
+ }
+ }
+
+ /**
+ * Remove extensions nodes recursively, depth-first.
+ *
+ * @param node
+ */
+ private void traverseAndRemoveExtensions(org.w3c.dom.Node node)
+ {
+ NodeList children = node.getChildNodes();
+ int childrenNb = children.getLength();
+ for (int i = 0; i < childrenNb; i++)
+ {
+ org.w3c.dom.Node child = children.item(i);
+
+ // only process elements
+ if (org.w3c.dom.Node.ELEMENT_NODE == child.getNodeType())
+ {
+ String name = child.getLocalName();
+
+ // if we found an extension, remove it or continue
+ if (EXTENSIONS.equals(name))
+ {
+ if (debug)
+ {
+ log.debug("Extensions removed on " + name);
+ }
+ node.removeChild(child);
+ break;
+ }
+ else
+ {
+ traverseAndRemoveExtensions(child);
+ }
+ }
+ }
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/RequestDumperFilter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/RequestDumperFilter.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/RequestDumperFilter.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,109 @@
+/*
+ * 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.servlet;
+
+import org.jboss.portal.common.io.IOTools;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.Reader;
+import java.io.StringWriter;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 9360 $
+ */
+public class RequestDumperFilter implements Filter
+{
+
+ /** . */
+ private static Logger log = LoggerFactory.getLogger(RequestDumperFilter.class);
+
+ public void init(FilterConfig cfg) throws ServletException
+ {
+ }
+
+ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
throws IOException, ServletException
+ {
+ doFilter((HttpServletRequest)req, (HttpServletResponse)resp, chain);
+ }
+
+ public void doFilter(HttpServletRequest req, HttpServletResponse resp, FilterChain
chain) throws IOException, ServletException
+ {
+ boolean trace = log.isTraceEnabled();
+ if (trace)
+ {
+ StringBuffer tmp = new StringBuffer();
+
+ //
+
tmp.append("characterEncoding=").append(req.getCharacterEncoding()).append('\n');
+
tmp.append("contentLength=").append(req.getContentLength()).append('\n');
+
tmp.append("contentType=").append(req.getContentType()).append('\n');
+ tmp.append("method=").append(req.getMethod()).append('\n');
+
tmp.append("pathInfo=").append(req.getPathInfo()).append('\n');
+
tmp.append("queryString=").append(req.getQueryString()).append('\n');
+
tmp.append("requestURI=").append(req.getRequestURI()).append('\n');
+
tmp.append("servletPath=").append(req.getServletPath()).append('\n');
+
+ //
+ for (Object o : req.getParameterMap().entrySet())
+ {
+ Map.Entry entry = (Map.Entry)o;
+ String name = (String)entry.getKey();
+ String[] values = (String[])entry.getValue();
+ tmp.append("param.").append(name).append('=');
+ for (int j = 0; j < values.length; j++)
+ {
+ String value = values[j];
+ tmp.append(j == 0 ? "" : ",").append(value);
+ }
+ }
+
+ //
+ Reader reader = req.getReader();
+ if (reader != null)
+ {
+ StringWriter buffer = new StringWriter();
+ IOTools.copy(reader, buffer);
+ tmp.append("body=").append(buffer.toString());
+ }
+
+ log.trace(tmp.toString());
+ }
+ chain.doFilter(req, resp);
+ }
+
+ public void destroy()
+ {
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccess.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccess.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccess.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,109 @@
+/*
+ * 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.servlet;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 8784 $
+ */
+public class ServletAccess implements InvocationHandler
+{
+
+ public static final ThreadLocal local = new ThreadLocal();
+
+ protected Object next;
+
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
+ {
+ String mname = method.getName();
+ if ("backgroundProcess".equals(mname))
+ {
+ // Noop
+ return null;
+ }
+ else if ("setNext".equals(mname))
+ {
+ next = args[0];
+ return null;
+ }
+ else if ("getNext".equals(mname))
+ {
+ return next;
+ }
+ else if ("invoke".equals(mname))
+ {
+ try
+ {
+ Object req = args[0];
+ Object resp = args[1];
+ Invocation invocation = new Invocation(req, resp);
+ local.set(invocation);
+ return method.invoke(next, args);
+ }
+ finally
+ {
+ local.set(null);
+ }
+ }
+ else
+ {
+ // getInfo()
+ return "A valve that setup a thread local assocation with request and
response";
+ }
+ }
+
+ public static void setRequestAndResponse(HttpServletRequest request,
HttpServletResponse response)
+ {
+ local.set(new Invocation(request, response));
+ }
+
+ public static HttpServletRequest getRequest()
+ {
+ Invocation invocation = (Invocation)local.get();
+ return invocation != null ? (HttpServletRequest)invocation.req : null;
+ }
+
+ public static HttpServletResponse getResponse()
+ {
+ return (HttpServletResponse)((Invocation)local.get()).resp;
+ }
+
+ private static class Invocation
+ {
+ private final Object req;
+ private final Object resp;
+
+ public Invocation(Object req, Object resp)
+ {
+ this.req = req;
+ this.resp = resp;
+ }
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccess.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccessFilter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccessFilter.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccessFilter.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,60 @@
+/*
+ * 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.servlet;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+/**
+ * Filter to be able to access request and response from the invocation code.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+public class ServletAccessFilter implements Filter
+{
+
+ public void init(FilterConfig filterConfig) throws ServletException
+ {
+ }
+
+ public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
FilterChain filterChain) throws IOException, ServletException
+ {
+ // fix-me: this is called around 27 times per WS request... and this is quite
hackish should try to find a better solution
+ ServletAccess.setRequestAndResponse((HttpServletRequest)servletRequest,
(HttpServletResponse)servletResponse);
+ filterChain.doFilter(servletRequest, servletResponse);
+ }
+
+ public void destroy()
+ {
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/ServletAccessFilter.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/TransactionFilter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/TransactionFilter.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/TransactionFilter.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp.servlet;
+
+import org.jboss.portal.common.transaction.TransactionException;
+import org.jboss.portal.common.transaction.TransactionManagerProvider;
+import org.jboss.portal.common.transaction.Transactions;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+import java.io.IOException;
+
+/**
+ * Wrap wsrp services in a transaction because the portal needs one.
+ *
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 8784 $
+ */
+public class TransactionFilter implements Filter
+{
+
+ /** . */
+ private static Logger log = LoggerFactory.getLogger(TransactionFilter.class);
+
+ /** . */
+ private TransactionManager tm;
+
+ public void init(FilterConfig filterConfig) throws ServletException
+ {
+
+ }
+
+ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
throws IOException, ServletException
+ {
+ if (tm == null)
+ {
+ try
+ {
+ tm = TransactionManagerProvider.JBOSS_PROVIDER.getTransactionManager();
+ }
+ catch (Exception e)
+ {
+ throw new ServletException(e);
+ }
+ }
+
+ Transaction oldTx = null;
+ try
+ {
+ oldTx = Transactions.applyBefore(Transactions.TYPE_REQUIRED, tm);
+ chain.doFilter(req, resp);
+ }
+ catch (TransactionException e)
+ {
+ throw new ServletException(e);
+ }
+ finally
+ {
+ try
+ {
+ Transactions.applyAfter(Transactions.TYPE_REQUIRED, tm, oldTx);
+ }
+ catch (TransactionException e)
+ {
+ log.error("", e);
+ }
+ }
+ }
+
+ public void destroy()
+ {
+ tm = null;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/common/src/main/java/org/jboss/portal/wsrp/servlet/UserAccess.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,53 @@
+/*
+ * 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.servlet;
+
+import org.jboss.portal.wsrp.WSRPTypeFactory;
+import org.jboss.portal.wsrp.core.UserContext;
+
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 9360 $
+ * @since 2.6
+ */
+public class UserAccess
+{
+ private UserAccess()
+ {
+ }
+
+ public static String getUser()
+ {
+ HttpServletRequest req = ServletAccess.getRequest();
+ return req != null ? req.getRemoteUser() : null;
+ }
+
+ public static UserContext getUserContext()
+ {
+ String userId = getUser();
+ return userId != null ? WSRPTypeFactory.createUserContext(userId) : null;
+ }
+}
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/pom.xml 2009-07-31 22:55:19 UTC (rev 13649)
@@ -0,0 +1,62 @@
+<!--
+ ~ 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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>module-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Portal WSRP</name>
+ <version>1.0.0-SNAPSHOT</version>
+ <
url>http://www.jboss.org/jbossportal</url>
+
+ <!--Repository definition needed to deploy artifacts into JBoss maven
repositories-->
+ <distributionManagement>
+ <repository>
+ <!--Copy the distribution jar file to a local checkout of the maven
repository
+ - This variable can be set in $MAVEN_HOME/conf/settings.xml-->
+ <id>repository.jboss.org</id>
+ <url>file://${jboss.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <
url>dav:https://snapshots.jboss.org/maven2</url>
+ <uniqueVersion>true</uniqueVersion>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <modules>
+ <module>build</module>
+ <!--<module>api</module>-->
+ <module>wsrp1-rpc</module>
+ <module>common</module>
+ <!--<module>test-support</module>-->
+ <module>producer</module>
+ <!--<module>consumer</module>
+ <module>admin-gui</module>-->
+ <!--<module>service</module>-->
+ <!--<module>package</module>-->
+ </modules>
+</project>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/producer/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/producer/pom.xml 2009-07-31 22:55:19 UTC (rev 13649)
@@ -0,0 +1,199 @@
+<!--
+ ~ 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>producer</artifactId>
+ <packaging>war</packaging>
+ <name>JBoss Portal WSRP Producer</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>wsrp1-rpc</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-common</artifactId>
+ <version>${version.common}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-portal</artifactId>
+ <version>${version.common}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.registration</groupId>
+ <artifactId>registration-api</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.registration</groupId>
+ <artifactId>registration-impl</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-portlet</artifactId>
+ <version>${version.portlet}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-federation</artifactId>
+ <version>${version.portlet}</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- <dependency>
+ <groupId>org.jboss.portal.jems</groupId>
+ <artifactId>jems</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>-->
+
+ <!-- JBoss dependencies -->
+ <!--<dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-common</artifactId>
+ <version>${version.jbossas}</version>
+ </dependency>-->
+ <!--<dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-system</artifactId>
+ <version>${version.jbossas}</version>
+ </dependency>-->
+ <!-- For JBoss AOP -->
+ <!--<dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-jmx</artifactId>
+ <version>${version.jbossas}</version>
+ </dependency>-->
+ <!-- Services & Hibernate dependencies -->
+ <!--<dependency>
+ <groupId>org.jboss.portal.jems</groupId>
+ <artifactId>jems</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>-->
+
+
+ <!-- other dependencies -->
+ <dependency>
+ <groupId>javax.xml</groupId>
+ <artifactId>jaxrpc-api</artifactId>
+ <version>${version.jaxrpc}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${version.slf4j}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ <version>1.4.1</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- JBoss XB 2.0.0+ is required for portlet-mc -->
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ <version>${version.jbossxb}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- For eXo integration -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.exoplatform.kernel</groupId>
+ <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>
+ <finalName>wsrp-producer</finalName>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <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>
+
+</project>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/producer/src/assemble/wsrp-producer-war.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/assemble/wsrp-producer-war.xml
(rev 0)
+++ jbossexo/modules/wsrp/trunk/producer/src/assemble/wsrp-producer-war.xml 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,39 @@
+<!--
+ ~ 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.
+ -->
+<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembl...
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-p...
http://maven.apache.org/xsd/assembly-1.1.1.xsd">
+ <id>server</id>
+ <formats>
+ <format>war</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>src/main/webapp</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
+
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,112 @@
+/*
+ * 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.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.config.ProducerConfiguration;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationChangeListener;
+import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+
+/**
+ * @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
+{
+ /** The default session expiration time in mili seconds. */
+ int DEFAULT_SESSION_EXPIRATION_TIME = 300000;
+
+ /** The value used to specify that a session will never expire. */
+ int INFINITE_SESSION_EXPIRATION_TIME = -1;
+
+ /**
+ * 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>
+ *
+ * @return the level of cookie support required from the Consumer
+ */
+ CookieProtocol getRequiresInitCookie();
+
+ /**
+ * 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}
+ */
+ void setRequiresInitCookie(CookieProtocol requiresInitCookie);
+
+ /**
+ * Maximum number of seconds between invocations referencing a session ID before this
Producer will schedule
+ * releasing the related resources. {@link #INFINITE_SESSION_EXPIRATION_TIME}
indicates that the sessionID will never
+ * expire.
+ *
+ * @return the expiration time (in seconds) of session associated resources
+ */
+ int getSessionExpirationTime();
+
+ /**
+ * Sets the expiration time (in seconds) of session associated resources.
+ *
+ * @param sessionExpirationTime the maximum number of seconds between invocations
referencing a session ID before
+ * this Producer will schedule releasing the related
resources. If {@link
+ * #INFINITE_SESSION_EXPIRATION_TIME} is passed, then the
session will never expire.
+ */
+ void setSessionExpirationTime(int sessionExpirationTime);
+
+ /**
+ * @return
+ * @since 2.6
+ */
+ ProducerRegistrationRequirements getProducerRegistrationRequirements();
+
+ /**
+ * @return
+ * @since 2.6
+ */
+ RegistrationManager getRegistrationManager();
+
+ /**
+ * @return
+ * @since 2.6
+ */
+ ProducerConfiguration getProducerConfiguration();
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/WSRPProducer.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/JMX.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/JMX.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/JMX.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,98 @@
+/*
+ * 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.mx.util.MBeanProxy;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class JMX
+{
+ private static final Logger log = LoggerFactory.getLogger(JMX.class);
+
+ /**
+ * Retrieves the MBeanProxy associated with the given class and name from the
specified MBeanServer.
+ *
+ * @param expectedClass the expected class of the MBean's proxy
+ * @param name the MBean's ObjectName
+ * @param server the MBeanServer from which to retrieve the MBeanProxy
+ * @return a MBeanProxy for the specified MBean if it exists
+ * @throws RuntimeException if the MBean couldn't be retrieved
+ */
+ public static <T> T getMBeanProxy(Class<T> expectedClass, ObjectName name,
MBeanServer server)
+ {
+ try
+ {
+ return expectedClass.cast(MBeanProxy.get(expectedClass, name, server));
+ }
+ catch (Exception e)
+ {
+ String message = "Couldn't retrieve '" +
name.getCanonicalName() + "' MBean with class " + expectedClass.getName();
+ log.error(message, e);
+ throw new RuntimeException(message, e);
+ }
+ }
+
+ /**
+ * Retrieves the MBeanProxy associated with the given class and name from the JBoss
microkernel as returned by
+ * <code>MBeanServerLocator.locateJBoss()</code>.
+ *
+ * @param expectedClass the expected class of the MBean's proxy
+ * @param name a String representation of the MBean's ObjectName
+ * @return a MBeanProxy for the specified MBean if it exists
+ * @throws IllegalArgumentException if the given name is not a valid ObjectName
+ * @throws RuntimeException if the MBean couldn't be retrieved
+ * @see #getMBeanProxy(Class, javax.management.ObjectName,
javax.management.MBeanServer)
+ * @since 2.4
+ */
+ public static <T> T getMBeanProxy(Class<T> expectedClass, String name)
+ {
+ ObjectName objecName = createObjectName(name);
+ MBeanServer server = MBeanServerLocator.locateJBoss();
+ return getMBeanProxy(expectedClass, objecName, server);
+ }
+
+ private static ObjectName createObjectName(String name)
+ {
+ ObjectName objecName;
+ try
+ {
+ objecName = new ObjectName(name);
+ }
+ catch (MalformedObjectNameException e)
+ {
+ throw new IllegalArgumentException("'" + name + "' is not
a valid ObjectName");
+ }
+ return objecName;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,82 @@
+/*
+ * 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.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 java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:palber@novell.com">Polina Alber</a>
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+public class MarkupEndpoint extends WSRPBaseEndpoint implements WSRP_v1_Markup_PortType
+{
+ public MarkupResponse getMarkup(GetMarkup getMarkup) throws
UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault, AccessDeniedFault,
InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault, OperationFailedFault, MissingParametersFault,
InvalidUserCategoryFault, InvalidRegistrationFault, UnsupportedMimeTypeFault,
RemoteException
+ {
+ forceSessionAccess();
+ return producer.getMarkup(getMarkup);
+ }
+
+ public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction) throws
InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault, OperationFailedFault,
UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault,
PortletStateChangeRequiredFault, InvalidRegistrationFault, MissingParametersFault,
InvalidUserCategoryFault, InconsistentParametersFault, InvalidHandleFault,
InvalidCookieFault, RemoteException
+ {
+ forceSessionAccess();
+ return producer.performBlockingInteraction(performBlockingInteraction);
+ }
+
+ public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws
InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, AccessDeniedFault,
RemoteException
+ {
+ forceSessionAccess();
+ return producer.releaseSessions(releaseSessions);
+ }
+
+ public ReturnAny initCookie(InitCookie initCookie) throws AccessDeniedFault,
OperationFailedFault, InvalidRegistrationFault, RemoteException
+ {
+ forceSessionAccess();
+ return producer.initCookie(initCookie);
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/MarkupEndpoint.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,85 @@
+/*
+ * 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.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 java.rmi.RemoteException;
+
+/**
+ * @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 PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription) throws AccessDeniedFault, InvalidHandleFault,
InvalidUserCategoryFault, InconsistentParametersFault, MissingParametersFault,
InvalidRegistrationFault, OperationFailedFault, RemoteException
+ {
+ return producer.getPortletDescription(getPortletDescription);
+ }
+
+ public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategoryFault, AccessDeniedFault, OperationFailedFault, InvalidHandleFault,
InvalidRegistrationFault, InconsistentParametersFault, MissingParametersFault,
RemoteException
+ {
+ return producer.clonePortlet(clonePortlet);
+ }
+
+ public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParametersFault, MissingParametersFault, InvalidRegistrationFault,
OperationFailedFault, RemoteException
+ {
+ return producer.destroyPortlets(destroyPortlets);
+ }
+
+ public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailedFault, InvalidHandleFault, MissingParametersFault,
InconsistentParametersFault, InvalidUserCategoryFault, AccessDeniedFault,
InvalidRegistrationFault, RemoteException
+ {
+ return producer.setPortletProperties(setPortletProperties);
+ }
+
+ public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandleFault, MissingParametersFault, InvalidRegistrationFault,
AccessDeniedFault, OperationFailedFault, InconsistentParametersFault,
InvalidUserCategoryFault, RemoteException
+ {
+ return producer.getPortletProperties(getPortletProperties);
+ }
+
+ public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription getPortletPropertyDescription)
throws MissingParametersFault, InconsistentParametersFault, InvalidUserCategoryFault,
InvalidRegistrationFault, AccessDeniedFault, InvalidHandleFault, OperationFailedFault,
RemoteException
+ {
+ return producer.getPortletPropertyDescription(getPortletPropertyDescription);
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/PortletManagementEndpoint.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,62 @@
+/*
+ * 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.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 java.rmi.RemoteException;
+
+/**
+ * @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 RegistrationContext register(RegistrationData register)
+ throws MissingParametersFault, OperationFailedFault, RemoteException
+ {
+ return producer.register(register);
+ }
+
+ public ReturnAny deregister(RegistrationContext deregister)
+ throws OperationFailedFault, InvalidRegistrationFault, RemoteException
+ {
+ return producer.deregister(deregister);
+ }
+
+ public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
+ throws MissingParametersFault, OperationFailedFault, InvalidRegistrationFault,
RemoteException
+ {
+ return producer.modifyRegistration(modifyRegistration);
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/RegistrationEndpoint.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,46 @@
+/*
+ * 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.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 java.rmi.RemoteException;
+
+/**
+ * @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 ServiceDescription getServiceDescription(GetServiceDescription gs)
+ throws InvalidRegistrationFault, OperationFailedFault, RemoteException
+ {
+ return producer.getServiceDescription(gs);
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/ServiceDescriptionEndpoint.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/endpoints/WSRPBaseEndpoint.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.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 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);
+ }
+
+ protected void forceSessionAccess()
+ {
+ // Check if there is a session associated with this thread
+ HttpSession portalSession = ServletAccess.getRequest().getSession(false);
+ 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;
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/ExoKernelIntegration.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp.exo;
+
+import org.exoplatform.container.ExoContainer;
+import org.exoplatform.container.ExoContainerContext;
+import org.jboss.portal.portlet.state.producer.ProducerPortletInvoker;
+import org.jboss.portal.registration.RegistrationManager;
+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.producer.WSRPProducerImpl;
+import org.jboss.portal.wsrp.producer.config.impl.ProducerConfigurationServiceImpl;
+
+import javax.servlet.http.HttpServlet;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class ExoKernelIntegration extends HttpServlet
+{
+ private static final String DEFAULT_PRODUCER_CONFIG_LOCATION =
"conf/producer/config.xml";
+ private WSRPProducerImpl producer;
+
+ @Override
+ public void init()
+ {
+ ExoContainer container = ExoContainerContext.getCurrentContainer();
+
+ ProducerConfigurationServiceImpl producerConfigurationService = new
ProducerConfigurationServiceImpl();
+ producerConfigurationService.setConfigLocation(DEFAULT_PRODUCER_CONFIG_LOCATION);
+
+ try
+ {
+ producerConfigurationService.start();
+ }
+ catch (Exception e)
+ {
+ // rethrow as RuntimeException
+ throw new RuntimeException("Couldn't start
ProducerConfigurationService!", e);
+ }
+
+ RegistrationPersistenceManager registrationPersistenceManager = new
RegistrationPersistenceManagerImpl();
+ RegistrationManager registrationManager = new RegistrationManagerImpl();
+ registrationManager.setPersistenceManager(registrationPersistenceManager);
+
+ // retrieve producer portlet invoker from container
+ ProducerPortletInvoker producerPortletInvoker =
(ProducerPortletInvoker)container.getComponentInstanceOfType(ProducerPortletInvoker.class);
+
+ // create and wire WSRP producer
+ producer = new WSRPProducerImpl();
+ producer.setInvoker(producerPortletInvoker);
+ producer.setRegistrationManager(registrationManager);
+ producer.setProducerConfigurationService(producerConfigurationService);
+
+ producer.start();
+ }
+
+ @Override
+ public void destroy()
+ {
+ producer.stop();
+ producer = null;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/KernelListener.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/KernelListener.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/exo/KernelListener.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,62 @@
+/*
+ * 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.exo;
+
+import org.exoplatform.container.StandaloneContainer;
+
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+/**
+ * This is class is basically the
org.exoplatform.services.portletcontainer.test.listeners.AppListener
+ * <p/>
+ * This class will setup the eXo Kernel when the webapp is loaded for testing. If using
the real eXo Portal, this will
+ * already be setup by the portal itself.
+ *
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class KernelListener implements ServletContextListener
+{
+
+ public void contextDestroyed(ServletContextEvent arg0)
+ {
+ try
+ {
+ Object[][] components =
+ {{ServletContextListener.class.getName(), arg0.getServletContext()}};
+ StandaloneContainer.getInstance(Thread.currentThread().getContextClassLoader(),
components);
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ public void contextInitialized(ServletContextEvent arg0)
+ {
+ // FIXME contextInitialized
+ }
+
+}
+
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/AbsoluteURLReplacementGenerator.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/AbsoluteURLReplacementGenerator.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/AbsoluteURLReplacementGenerator.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,84 @@
+/*
+ * 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.jboss.portal.common.net.URLTools;
+import org.jboss.portal.wsrp.WSRPRewritingConstants;
+
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class AbsoluteURLReplacementGenerator extends URLTools.URLReplacementGenerator
+{
+ private String serverAddress;
+ public static final String SCH_END = "://";
+ public static final String PORT_END = ":";
+ public static final String SLASH = "/";
+
+ public AbsoluteURLReplacementGenerator(HttpServletRequest request)
+ {
+ String scheme = request.getScheme();
+ String host = request.getServerName();
+ int port = request.getServerPort();
+
+ serverAddress = scheme + SCH_END + host + PORT_END + port;
+ }
+
+ public String getReplacementFor(int i, URLTools.URLMatch urlMatch)
+ {
+ return getAbsoluteURLFor(urlMatch.getURLAsString());
+ }
+
+ /**
+ * todo: public only for tests
+ *
+ * @param url
+ * @return
+ */
+ public String getAbsoluteURLFor(String url)
+ {
+ return getAbsoluteURLFor(url, true);
+ }
+
+ String getAbsoluteURLFor(String url, boolean checkWSRPToken)
+ {
+ // We don't encode URL through this API when it is a wsrp URL
+ if (checkWSRPToken &&
url.startsWith(WSRPRewritingConstants.BEGIN_WSRP_REWRITE))
+ {
+ return url;
+ }
+
+ if (!URLTools.isNetworkURL(url) && url.startsWith(SLASH))
+ {
+ return serverAddress + url;
+ }
+ else
+ {
+ return url;
+ }
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ActionRequestProcessor.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp.producer;
+
+import org.jboss.portal.portlet.StateString;
+import org.jboss.portal.portlet.invocation.ActionInvocation;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.HTTPRedirectionResponse;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.invocation.response.UpdateNavigationalStateResponse;
+import org.jboss.portal.portlet.state.AccessMode;
+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;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13121 $
+ * @since 2.6
+ */
+class ActionRequestProcessor extends RequestProcessor
+{
+ private final PerformBlockingInteraction performBlockingInteraction;
+ private final InteractionParams interactionParams;
+
+ public ActionRequestProcessor(WSRPProducerImpl producer, PerformBlockingInteraction
performBlockingInteraction, InteractionParams interactionParams)
+ throws UnsupportedMimeTypeFault, UnsupportedWindowStateFault, InvalidHandleFault,
UnsupportedModeFault,
+ MissingParametersFault, InvalidRegistrationFault, OperationFailedFault
+ {
+ super(producer);
+ this.performBlockingInteraction = performBlockingInteraction;
+ this.interactionParams = interactionParams;
+ prepareInvocation();
+ }
+
+ RegistrationContext getRegistrationContext()
+ {
+ return performBlockingInteraction.getRegistrationContext();
+ }
+
+ RuntimeContext getRuntimeContext()
+ {
+ return performBlockingInteraction.getRuntimeContext();
+ }
+
+ MarkupParams getMarkupParams()
+ {
+ return performBlockingInteraction.getMarkupParams();
+ }
+
+ PortletContext getPortletContext()
+ {
+ return performBlockingInteraction.getPortletContext();
+ }
+
+ org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return performBlockingInteraction.getUserContext();
+ }
+
+ String getContextName()
+ {
+ return MarkupHandler.PBI;
+ }
+
+ AccessMode getAccessMode()
+ {
+ StateChange stateChange = interactionParams.getPortletStateChange();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(stateChange,
"portletStateChange", "InteractionParams");
+ return WSRPUtils.getAccessModeFromStateChange(stateChange);
+ }
+
+ PortletInvocation initInvocation(WSRPPortletInvocationContext context)
+ {
+ ActionInvocation invocation = new ActionInvocation(context);
+
+ // Request context
+ WSRPRequestContext requestContext =
WSRPRequestContext.createRequestContext(markupRequest, interactionParams);
+ invocation.setRequestContext(requestContext);
+
+ // Interaction state, navigational state is already taken care of in
RequestProcessor.prepareInvocation
+ StateString interactionState =
createNavigationalState(interactionParams.getInteractionState());
+ invocation.setInteractionState(interactionState);
+
+ // Form parameters
+ invocation.setForm(requestContext.getForm());
+
+ return invocation;
+ }
+
+ Object processResponse(PortletInvocationResponse response)
+ {
+ if (response instanceof UpdateNavigationalStateResponse)
+ {
+ UpdateNavigationalStateResponse renderResult =
(UpdateNavigationalStateResponse)response;
+ UpdateResponse updateResponse = WSRPTypeFactory.createUpdateResponse();
+
updateResponse.setNewMode(WSRPUtils.convertJSR168PortletModeNameToWSRPName(getNewStateOrNull(renderResult,
true)));
+
updateResponse.setNewWindowState(WSRPUtils.convertJSR168WindowStateNameToWSRPName(getNewStateOrNull(renderResult,
false)));
+ StateString ns = renderResult.getNavigationalState();
+ updateResponse.setNavigationalState(ns != null ? ns.getStringValue() : null);
+
+ // deal with implicit cloning and state modification
+ if (instanceContext.wasModified())
+ {
+ PortletContext updatedPortletContext =
WSRPUtils.convertToWSRPPortletContext(instanceContext.getPortletContext());
+ updateResponse.setPortletContext(updatedPortletContext);
+ }
+
+ return WSRPTypeFactory.createBlockingInteractionResponse(updateResponse);
+ }
+ else
+ {
+ // result should be HTTPRedirectionResult
+ HTTPRedirectionResponse redirectionResult = (HTTPRedirectionResponse)response;
+ return
WSRPTypeFactory.createBlockingInteractionResponse(redirectionResult.getLocation());
+ }
+ }
+
+ private String getNewStateOrNull(UpdateNavigationalStateResponse renderResult, boolean
forMode)
+ {
+ Object state = forMode ? renderResult.getMode() : renderResult.getWindowState();
+ return state != null ? state.toString() : null;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp.producer;
+
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.invocation.response.ErrorResponse;
+import org.jboss.portal.portlet.invocation.response.FragmentResponse;
+import org.jboss.portal.portlet.invocation.response.HTTPRedirectionResponse;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.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 javax.portlet.PortletModeException;
+import javax.portlet.WindowStateException;
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 10090 $
+ * @since 2.4
+ */
+class MarkupHandler extends ServiceHandler implements WSRP_v1_Markup_PortType
+{
+ static final String PBI = "PerformBlockingInteraction";
+ static final String GET_MARKUP = "GetMarkup";
+
+ MarkupHandler(WSRPProducerImpl producer)
+ {
+ super(producer);
+ }
+
+ // Markup implementation
********************************************************************************************
+
+ public MarkupResponse getMarkup(GetMarkup getMarkup)
+ throws UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault,
AccessDeniedFault,
+ InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault,
+ OperationFailedFault, MissingParametersFault, InvalidUserCategoryFault,
InvalidRegistrationFault,
+ UnsupportedMimeTypeFault, RemoteException
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getMarkup,
GET_MARKUP);
+
+ RequestProcessor requestProcessor = new RenderRequestProcessor(producer,
getMarkup);
+
+ String handle = requestProcessor.getPortletContext().getPortletHandle();
+ PortletInvocationResponse response;
+ try
+ {
+ log.debug("RenderInvocation on portlet '" + handle +
"'");
+ response = producer.getInvoker().invoke(requestProcessor.getInvocation());
+ log.debug("RenderInvocation done");
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Could not render portlet '" + handle + "'", e);
+ }
+
+ checkForError(response);
+
+ 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
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(performBlockingInteraction,
PBI);
+ final InteractionParams interactionParams =
performBlockingInteraction.getInteractionParams();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(interactionParams,
"InteractionParams", PBI);
+
+ RequestProcessor requestProcessor = new ActionRequestProcessor(producer,
performBlockingInteraction, interactionParams);
+
+ PortletInvocationResponse response;
+ String handle = requestProcessor.getPortletContext().getPortletHandle();
+ try
+ {
+ log.debug("ActionInvocation on portlet '" + handle +
"'");
+ response = producer.getInvoker().invoke(requestProcessor.getInvocation());
+ log.debug("ActionInvocation done");
+ }
+ catch (PortletStateChangeRequiredException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.PORTLET_STATE_CHANGE_REQUIRED,
+ e.getLocalizedMessage(), e);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Could not perform action on portlet '" + handle +
"'", e);
+ }
+
+ checkForError(response);
+
+ return (BlockingInteractionResponse)requestProcessor.processResponse(response);
+ }
+
+ public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
+ throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault,
AccessDeniedFault, 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
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(initCookie,
"InitCookie");
+ producer.getRegistrationOrFailIfInvalid(initCookie.getRegistrationContext());
+
+ // Force HTTP session creation... this is required for BEA Weblogic version <
9.2.
+ // See
http://jira.jboss.com/jira/browse/JBPORTAL-1220
+ String sessionId = ServletAccess.getRequest().getSession().getId();
+ log.debug("Got init cookie operation, created a session with id " +
sessionId);
+
+ return new ReturnAny();
+ }
+
+ static void throwOperationFaultOnSessionOperation()
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(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
+ {
+ if (response instanceof ErrorResponse)
+ {
+ ErrorResponse errorResult = (ErrorResponse)response;
+ Throwable cause = errorResult.getCause();
+ if (cause instanceof PortletModeException)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MODE,
+ "Unsupported mode: " + ((PortletModeException)cause).getMode(),
null);
+ }
+ if (cause instanceof WindowStateException)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(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,
+ errorResult.getMessage(), cause);
+
+ }
+ else if (!(response instanceof HTTPRedirectionResponse || response instanceof
FragmentResponse || response instanceof UpdateNavigationalStateResponse))
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Unsupported result type: " + response.getClass().getName(),
null);
+ }
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupHandler.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/MarkupRequest.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,131 @@
+/*
+ * 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.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.portlet.Portlet;
+import org.jboss.portal.wsrp.WSRPUtils;
+import org.jboss.portal.wsrp.core.MarkupType;
+
+import java.util.HashSet;
+import java.util.Locale;
+import java.util.Set;
+
+/**
+ * Wrapper around information needed to perform a Markup invocation.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @since 2.6
+ */
+class MarkupRequest
+{
+ private String mode;
+ private String windowState;
+ private MarkupType markupType;
+ private String characterSet;
+ private Portlet portlet;
+ private static final String CHARSET_SEPARATOR = "; charset=";
+
+ public MarkupRequest(MarkupType markupType, String mode, String windowState, String
characterSet, Portlet portlet)
+ {
+ this.characterSet = characterSet;
+ this.markupType = markupType;
+ this.mode = mode;
+ this.windowState = windowState;
+ this.portlet = portlet;
+ }
+
+ public String getMediaTypeWithCharset()
+ {
+ return getMediaType() + CHARSET_SEPARATOR + getCharacterSet();
+ }
+
+ public String getMediaType()
+ {
+ return markupType.getMimeType();
+ }
+
+ public String getLocale()
+ {
+ String[] locales = markupType.getLocales();
+ if (locales != null && locales.length != 0)
+ {
+ return locales[0];
+ }
+ else
+ {
+ return WSRPUtils.toString(Locale.ENGLISH); // no locale was provided, use
English...
+ }
+ }
+
+ public String getMode()
+ {
+ return mode;
+ }
+
+ public String getWindowState()
+ {
+ return windowState;
+ }
+
+ public MarkupType getMarkupType()
+ {
+ return markupType;
+ }
+
+ public String getCharacterSet()
+ {
+ return characterSet;
+ }
+
+ public Portlet getPortlet()
+ {
+ return portlet;
+ }
+
+ 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++)
+ {
+ result.add(WSRPUtils.getJSR168PortletModeFromWSRPName(modes[i]));
+ }
+ 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++)
+ {
+ result.add(WSRPUtils.getJSR168WindowStateFromWSRPName(states[i]));
+ }
+ return result;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/PortletManagementHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,480 @@
+/*
+ * 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.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.portlet.InvalidPortletIdException;
+import org.jboss.portal.portlet.NoSuchPortletException;
+import org.jboss.portal.portlet.Portlet;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.info.PortletInfo;
+import org.jboss.portal.portlet.info.PreferenceInfo;
+import org.jboss.portal.portlet.info.PreferencesInfo;
+import org.jboss.portal.portlet.state.DestroyCloneFailure;
+import org.jboss.portal.portlet.state.PropertyChange;
+import org.jboss.portal.portlet.state.PropertyMap;
+import org.jboss.portal.registration.Registration;
+import org.jboss.portal.registration.RegistrationLocal;
+import org.jboss.portal.wsrp.WSRPConstants;
+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 javax.xml.soap.SOAPElement;
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 11147 $
+ * @since 2.4
+ */
+class PortletManagementHandler extends ServiceHandler implements
WSRP_v1_PortletManagement_PortType
+{
+ private static final String GET_PORTLET_PROPERTY_DESCRIPTION =
"GetPortletPropertyDescription";
+ private static final String GET_PORTLET_PROPERTIES =
"GetPortletProperties";
+ private static final String PORTLET_CONTEXT = "PortletContext";
+ private static final String GET_PORTLET_DESCRIPTION =
"GetPortletDescription";
+
+ PortletManagementHandler(WSRPProducerImpl producer)
+ {
+ super(producer);
+ }
+
+ public PortletDescriptionResponse getPortletDescription(GetPortletDescription
getPortletDescription)
+ throws AccessDeniedFault, InvalidHandleFault, InvalidUserCategoryFault,
InconsistentParametersFault,
+ MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletDescription,
GET_PORTLET_DESCRIPTION);
+ Registration registration =
producer.getRegistrationOrFailIfInvalid(getPortletDescription.getRegistrationContext());
+
+ PortletContext portletContext = getPortletDescription.getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_DESCRIPTION);
+
+ UserContext userContext = getPortletDescription.getUserContext();
+ checkUserAuthorization(userContext);
+
+ // RegistrationLocal.setRegistration is called further down the invocation in
ServiceDescriptionHandler.getPortletDescription
+ PortletDescription description = producer.getPortletDescription(portletContext,
getPortletDescription.getDesiredLocales(), registration);
+ return WSRPTypeFactory.createPortletDescriptionResponse(description);
+ }
+
+ public PortletPropertyDescriptionResponse
getPortletPropertyDescription(GetPortletPropertyDescription
getPortletPropertyDescription)
+ throws MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault, InvalidRegistrationFault,
+ AccessDeniedFault, InvalidHandleFault, OperationFailedFault, RemoteException
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletPropertyDescription,
GET_PORTLET_PROPERTY_DESCRIPTION);
+
+ PortletContext portletContext = getPortletPropertyDescription.getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
PORTLET_CONTEXT, GET_PORTLET_PROPERTY_DESCRIPTION);
+
+ Registration registration =
producer.getRegistrationOrFailIfInvalid(getPortletPropertyDescription.getRegistrationContext());
+
+ UserContext userContext = getPortletPropertyDescription.getUserContext();
+ checkUserAuthorization(userContext);
+
+ String[] desiredLocales = getPortletPropertyDescription.getDesiredLocales();
+ Portlet portlet = getPortletFrom(portletContext, registration);
+ PortletInfo info = portlet.getInfo();
+ PreferencesInfo prefsInfo = info.getPreferences();
+
+ PropertyDescription[] descs = null;
+ if (prefsInfo != null)
+ {
+ Set keySet = prefsInfo.getKeys();
+ descs = new PropertyDescription[keySet.size()];
+ int index = 0;
+ for (Object key : keySet)
+ {
+ PreferenceInfo prefInfo = prefsInfo.getPreference((String)key);
+
+ // WSRP Spec 8.7: return only the portion of the Portlet's persistent
state the user is allowed to modify
+ // if read only status is not determined, we consider it as being read-only
to be safe
+ Boolean readOnly = prefInfo.isReadOnly();
+ if (readOnly != null && !readOnly)
+ {
+ //todo: check what we should use key
+ //todo: right now we only support String properties
+ 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;
+ }
+ }
+ }
+
+ return WSRPTypeFactory.createPortletPropertyDescriptionResponse(descs);
+ }
+
+ public PortletContext clonePortlet(ClonePortlet clonePortlet) throws
InvalidUserCategoryFault, AccessDeniedFault,
+ OperationFailedFault, InvalidHandleFault, InvalidRegistrationFault,
InconsistentParametersFault,
+ MissingParametersFault, RemoteException
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(clonePortlet,
"ClonePortlet");
+
+ PortletContext portletContext = clonePortlet.getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
"PortletContext", "ClonePortlet");
+
+ Registration registration =
producer.getRegistrationOrFailIfInvalid(clonePortlet.getRegistrationContext());
+
+ UserContext userContext = clonePortlet.getUserContext();
+ checkUserAuthorization(userContext);
+
+ org.jboss.portal.portlet.PortletContext portalPC =
WSRPUtils.convertToPortalPortletContext(portletContext);
+ try
+ {
+ RegistrationLocal.setRegistration(registration);
+ org.jboss.portal.portlet.PortletContext response =
producer.getInvoker().createClone(portalPC);
+ return WSRPUtils.convertToWSRPPortletContext(response);
+ }
+ catch (NoSuchPortletException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
+ }
+ catch (InvalidPortletIdException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
+ "Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Failed to create clone for portlet '" +
portletContext.getPortletHandle(), e);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+ }
+
+ public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws
InconsistentParametersFault,
+ MissingParametersFault, InvalidRegistrationFault, OperationFailedFault,
RemoteException
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(destroyPortlets,
"DestroyPortlets");
+
+ String[] handles = destroyPortlets.getPortletHandles();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(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++)
+ {
+
portletContexts.add(org.jboss.portal.portlet.PortletContext.createPortletContext(handles[i]));
+ }
+
+ try
+ {
+ RegistrationLocal.setRegistration(registration);
+ List failuresList = producer.getInvoker().destroyClones(portletContexts);
+ int failuresNumber = failuresList.size();
+ DestroyFailed[] destroyFailed;
+ if (failuresNumber > 0)
+ {
+ destroyFailed = new DestroyFailed[failuresNumber];
+ int i = 0;
+ for (Object aFailuresList : failuresList)
+ {
+ DestroyCloneFailure failure = (DestroyCloneFailure)aFailuresList;
+ destroyFailed[i++] =
WSRPTypeFactory.createDestroyFailed(failure.getPortletId(), failure.getMessage());
+ }
+ }
+ else
+ {
+ destroyFailed = null;
+ }
+
+ return WSRPTypeFactory.createDestroyPortletsResponse(destroyFailed);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Failed to destroy clones", e);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+ }
+
+ public PortletContext setPortletProperties(SetPortletProperties setPortletProperties)
throws OperationFailedFault,
+ InvalidHandleFault, MissingParametersFault, InconsistentParametersFault,
InvalidUserCategoryFault,
+ AccessDeniedFault, InvalidRegistrationFault, RemoteException
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(setPortletProperties,
"SetPortletProperties");
+
+ PortletContext portletContext = setPortletProperties.getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(portletContext,
"PortletContext", "SetPortletProperties");
+
+ PropertyList propertyList = setPortletProperties.getPropertyList();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(propertyList,
"PropertyList", "SetPortletProperties");
+
+ Registration registration =
producer.getRegistrationOrFailIfInvalid(setPortletProperties.getRegistrationContext());
+
+ checkUserAuthorization(setPortletProperties.getUserContext());
+
+ Property[] properties = propertyList.getProperties();
+ ResetProperty[] resetProperties = propertyList.getResetProperties();
+ int changesCount = 0;
+ if (properties != null)
+ {
+ changesCount += properties.length;
+ }
+ if (resetProperties != null)
+ {
+ changesCount += resetProperties.length;
+ }
+
+ if (changesCount > 0)
+ {
+ List changes = new ArrayList(changesCount);
+
+ if (properties != null)
+ {
+ for (int i = 0; i < properties.length; i++)
+ {
+ Property property = properties[i];
+ String value = property.getStringValue();
+
+ // todo: deal with XML values...
+ SOAPElement[] values = property.get_any();
+ String lang = property.getLang(); // todo: deal with language?
+
+ changes.add(PropertyChange.newUpdate(property.getName(), value));
+ }
+ }
+
+ if (resetProperties != null)
+ {
+ for (int i = 0; i < resetProperties.length; i++)
+ {
+ ResetProperty resetProperty = resetProperties[i];
+ changes.add(PropertyChange.newReset(resetProperty.getName()));
+ }
+ }
+
+ try
+ {
+ RegistrationLocal.setRegistration(registration);
+ org.jboss.portal.portlet.PortletContext resultContext =
+
producer.getInvoker().setProperties(WSRPUtils.convertToPortalPortletContext(portletContext),
+ (PropertyChange[])changes.toArray(new PropertyChange[0]));
+ return WSRPUtils.convertToWSRPPortletContext(resultContext);
+ }
+ catch (NoSuchPortletException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
+ }
+ catch (InvalidPortletIdException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INCONSISTENT_PARAMETERS,
+ "Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Failed to set properties for portlet '" +
portletContext.getPortletHandle() + "'", e);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+ }
+
+ return portletContext;
+ }
+
+ public PropertyList getPortletProperties(GetPortletProperties getPortletProperties)
throws InvalidHandleFault,
+ MissingParametersFault, InvalidRegistrationFault, AccessDeniedFault,
OperationFailedFault,
+ InconsistentParametersFault, InvalidUserCategoryFault, RemoteException
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(getPortletProperties,
GET_PORTLET_PROPERTIES);
+
+ PortletContext portletContext = getPortletProperties.getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(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);
+
+ try
+ {
+ PropertyMap properties;
+ org.jboss.portal.portlet.PortletContext jbpContext =
WSRPUtils.convertToPortalPortletContext(portletContext);
+
+ RegistrationLocal.setRegistration(registration);
+ if (keys != null)
+ {
+ properties = producer.getInvoker().getProperties(jbpContext, keys);
+ }
+ else
+ {
+ properties = producer.getInvoker().getProperties(jbpContext);
+ }
+
+ //todo: we need to check that the user can actually modify the properties
+ Portlet portlet = getPortletFrom(portletContext, registration);
+ PortletInfo info = portlet.getInfo();
+
+ PropertyList result = WSRPTypeFactory.createPropertyList();
+ int propertyNb = properties.size();
+
+ 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++)
+ {
+ Map.Entry entry = (Map.Entry)entries.next();
+ key = (String)entry.getKey();
+ values = (List<String>)entry.getValue();
+ prefInfo = info.getPreferences().getPreference(key);
+ displayName = prefInfo.getDisplayName();
+ String lang = WSRPUtils.toString(displayName.getDefaultLocale());
+
+ // todo: support multi-valued properties
+ if (values.size() != 1)
+ {
+ 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.setProperties(resProperties);
+ }
+
+ return result;
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Could not retrieve properties for portlet '" + portletContext
+ "'", e);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+ }
+
+ private void checkUserAuthorization(UserContext userContext)
+ {
+ //todo: implement
+ if (userContext != null)
+ {
+
+ }
+ }
+
+ private Set<String> getKeysFromNames(String[] names)
+ {
+ 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
+ {
+ RegistrationLocal.setRegistration(registration);
+ portlet =
producer.getInvoker().getPortlet(WSRPUtils.convertToPortalPortletContext(portletContext));
+ return portlet;
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Could not retrieve portlet '" +
portletContext.getPortletHandle() + "'", e);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,393 @@
+/*
+ * 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.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.registration.Consumer;
+import org.jboss.portal.registration.ConsumerCapabilities;
+import org.jboss.portal.registration.NoSuchRegistrationException;
+import org.jboss.portal.registration.Registration;
+import org.jboss.portal.registration.RegistrationException;
+import org.jboss.portal.registration.RegistrationStatus;
+import org.jboss.portal.registration.RegistrationUtils;
+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 javax.xml.namespace.QName;
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13202 $
+ * @since 2.4
+ */
+class RegistrationHandler extends ServiceHandler implements
WSRP_v1_Registration_PortType
+{
+ RegistrationHandler(WSRPProducerImpl producer)
+ {
+ super(producer);
+ }
+
+ public RegistrationContext register(RegistrationData registrationData) throws
MissingParametersFault, OperationFailedFault,
+ RemoteException
+ {
+ if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(registrationData,
"RegistrationData");
+ String consumerName = registrationData.getConsumerName();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
+
+ String consumerAgent = registrationData.getConsumerAgent();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
+
+ Registration registration;
+ try
+ {
+ log.debug("Attempting to register consumer named '" +
consumerName + "', agent '" + consumerAgent + "'.");
+
+ // check that the consumer agent is valid before trying to register
+ RegistrationUtils.validateConsumerAgent(consumerAgent);
+
+ registration =
producer.getRegistrationManager().addRegistrationTo(consumerName,
createRegistrationProperties(registrationData), true);
+ updateRegistrationInformation(registration, registrationData);
+ }
+ catch (Exception e)
+ {
+ String msg = "Could not register consumer named '" +
consumerName + "'";
+ log.debug(msg, e);
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ msg, e);
+ }
+
+ RegistrationContext registrationContext =
WSRPTypeFactory.createRegistrationContext(registration.getId());
+ log.debug("Registration completed without error.");
+ return registrationContext;
+ }
+
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Registration shouldn't be attempted if registration is not
required", null);
+ }
+
+ private void updateRegistrationInformation(Registration registration, RegistrationData
registrationData)
+ {
+ registration.setStatus(RegistrationStatus.VALID);
+ Consumer consumer = registration.getConsumer();
+ consumer.setConsumerAgent(registrationData.getConsumerAgent());
+ ConsumerCapabilities capabilities = consumer.getCapabilities();
+
+ String[] modeStrings = registrationData.getConsumerModes();
+ if (modeStrings != null && modeStrings.length > 0)
+ {
+ List modes = new ArrayList(modeStrings.length);
+ for (int i = 0; i < modeStrings.length; i++)
+ {
+ modes.add(WSRPUtils.getJSR168PortletModeFromWSRPName(modeStrings[i]));
+ }
+ capabilities.setSupportedModes(modes);
+ }
+
+ String[] wsStrings = registrationData.getConsumerWindowStates();
+ if (wsStrings != null && wsStrings.length > 0)
+ {
+ List windowStates = new ArrayList(wsStrings.length);
+ for (int i = 0; i < wsStrings.length; i++)
+ {
+ windowStates.add(WSRPUtils.getJSR168WindowStateFromWSRPName(wsStrings[i]));
+ }
+ 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);
+ }
+
+ public ReturnAny deregister(RegistrationContext deregister) throws
OperationFailedFault, InvalidRegistrationFault,
+ RemoteException
+ {
+ if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(deregister,
"RegistrationContext");
+
+ String registrationHandle = deregister.getRegistrationHandle();
+ if (ParameterValidation.isNullOrEmpty(registrationHandle))
+ {
+ throwInvalidRegistrationFault("Null or empty registration
handle");
+ }
+
+ log.debug("Attempting to deregister registration with handle '" +
registrationHandle + "'");
+
+ String msg = "Could not deregister registration with handle '" +
registrationHandle + "'";
+ try
+ {
+ producer.getRegistrationManager().removeRegistration(registrationHandle);
+ }
+ catch (NoSuchRegistrationException e)
+ {
+ log.debug(msg, e);
+ throwInvalidRegistrationFault(e.getLocalizedMessage());
+ }
+ catch (RegistrationException e)
+ {
+ log.debug(msg, e);
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ msg, e);
+ }
+
+ return new ReturnAny();
+ }
+
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Deregistration shouldn't be attempted if registration is not
required", null);
+ }
+
+ public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParametersFault,
+ OperationFailedFault, InvalidRegistrationFault, RemoteException
+ {
+ if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
+ {
+
WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(modifyRegistration,
"ModifyRegistration");
+
+ RegistrationContext registrationContext =
modifyRegistration.getRegistrationContext();
+
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(registrationContext,
"RegistrationContext", "ModifyRegistration");
+ String registrationHandle = registrationContext.getRegistrationHandle();
+ if (ParameterValidation.isNullOrEmpty(registrationHandle))
+ {
+ throwInvalidRegistrationFault("Null or empty registration
handle");
+ }
+
+ RegistrationData registrationData = modifyRegistration.getRegistrationData();
+
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(registrationData,
"RegistrationData", "ModifyRegistration");
+
+ String consumerName = registrationData.getConsumerName();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerName,
"consumer name", "RegistrationData");
+
+ String consumerAgent = registrationData.getConsumerAgent();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(consumerAgent,
"consumer agent", "RegistrationData");
+
+ log.debug("Attempting to modify registration with handle '" +
registrationHandle + "'");
+ String msg = "Could not modify registration with handle '" +
registrationHandle + "'";
+ try
+ {
+ Registration registration =
producer.getRegistrationManager().getRegistration(registrationHandle);
+
+ Map properties = createRegistrationProperties(registrationData);
+
+ // check that the given registration properties are acceptable according to
expectations and policy
+ ProducerRegistrationRequirements req =
producer.getProducerRegistrationRequirements();
+ req.getPolicy().validateRegistrationDataFor(properties, consumerName);
+
+ registration.updateProperties(properties);
+ updateRegistrationInformation(registration, registrationData);
+ }
+ catch (NoSuchRegistrationException e)
+ {
+ log.debug(msg, e);
+ throwInvalidRegistrationFault(e.getLocalizedMessage());
+ }
+ catch (RegistrationException e)
+ {
+ log.debug(msg, e);
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ msg, e);
+ }
+
+
+ log.debug("Modified registration with handle '" +
registrationHandle + "'");
+ return null;
+ }
+
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Modifying a registration shouldn't be attempted if registration is not
required", null);
+ }
+
+ /**
+ * @param reg
+ * @param throwExceptionIfInvalid
+ * @return
+ * @since 2.6.2
+ */
+ boolean isRegistrationValid(Registration reg, boolean throwExceptionIfInvalid) throws
InvalidRegistrationFault
+ {
+ if (reg == null)
+ {
+ if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
+ {
+ log.debug("Registration is required yet no RegistrationContext was
provided: registration invalid!");
+ if (throwExceptionIfInvalid)
+ {
+ throwInvalidRegistrationFault("registration is required yet no
RegistrationContext was provided!");
+ }
+ return false;
+ }
+
+ log.debug("Registration not required, no registration: registration
valid!");
+ return true;
+ }
+ else
+ {
+ boolean isValid = RegistrationStatus.VALID.equals(reg.getStatus());
+ boolean isPending = RegistrationStatus.PENDING.equals(reg.getStatus());
+ log.debug("Registration required: registration is " + (isValid ?
"valid!" : (isPending ? "pending!" : "invalid!")));
+
+ if (throwExceptionIfInvalid)
+ {
+ if (isPending)
+ {
+ throwOperationFailedFault("Registration with handle '" +
reg.getRegistrationHandle()
+ + "' is pending. Consumer needs to call
modifyRegistration().", null);
+ }
+ else
+ {
+ if (!isValid)
+ {
+ throwInvalidRegistrationFault("registration with handle
'" + reg.getRegistrationHandle() + "' is not valid!");
+ }
+ }
+ }
+
+ return isValid;
+ }
+ }
+
+ /**
+ * @param registrationContext
+ * @return
+ * @since 2.6.2
+ */
+ Registration getRegistrationFrom(RegistrationContext registrationContext)
+ {
+ if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
+ {
+ if (registrationContext == null)
+ {
+ throwInvalidRegistrationFault("registration context is missing but
registration is required");
+ }
+
+ String regHandle = registrationContext.getRegistrationHandle();
+ if (regHandle == null)
+ {
+ throwInvalidRegistrationFault("registration handle is missing but
registration is required");
+ }
+
+ try
+ {
+ Registration registration =
producer.getRegistrationManager().getRegistration(regHandle);
+ if (registration == null)
+ {
+ throwInvalidRegistrationFault("provided registration handle
'" + regHandle + "' is not registered with this producer");
+ }
+ return registration;
+ }
+ catch (RegistrationException e)
+ {
+ throwOperationFailedFault("Failed to retrieve registration information
associated with handle " + regHandle, e);
+ return null;
+ }
+ }
+ else
+ {
+ if (registrationContext != null)
+ {
+ throwInvalidRegistrationFault("no registration necessary yet one was
provided!");
+ }
+ return null;
+ }
+ }
+
+ private void throwOperationFailedFault(String message, RegistrationException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
message, e);
+ }
+
+ boolean throwInvalidRegistrationFault(String message)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_REGISTRATION,
+ "Invalid registration: " + message, null);
+ }
+
+ private Map<QName, Object> createRegistrationProperties(RegistrationData
registrationData)
+ {
+ Property[] regProperties = registrationData.getRegistrationProperties();
+ Map<QName, Object> properties;
+ if (regProperties != null)
+ {
+ properties = new HashMap<QName, Object>(regProperties.length);
+ for (Property property : regProperties)
+ {
+ // todo: should be more detailed here... use the language, allow other value
types...
+ QName propName = new QName(property.getName());
+ String propValue = property.getStringValue();
+ if (producer.getProducerRegistrationRequirements().acceptValueFor(propName,
propValue))
+ {
+ properties.put(propName, propValue);
+ }
+ else
+ {
+ throw new IllegalArgumentException("Registration properties named
'" + propName + "' with value '"
+ + propValue + "' was rejected by the WSRP producer.");
+ }
+ }
+ }
+ else
+ {
+ properties = Collections.emptyMap();
+ }
+
+ return properties;
+ }
+
+ private List getListFromArray(String[] array, boolean useEmptyForNull)
+ {
+ if (array == null)
+ {
+ return useEmptyForNull ? Collections.EMPTY_LIST : null;
+ }
+ return Arrays.asList(array);
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RenderRequestProcessor.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,178 @@
+/*
+ * 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.jboss.portal.common.net.URLTools;
+import org.jboss.portal.portlet.impl.jsr168.PortletUtils;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.RenderInvocation;
+import org.jboss.portal.portlet.invocation.response.FragmentResponse;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.state.AccessMode;
+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;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13121 $
+ * @since 2.6
+ */
+public class RenderRequestProcessor extends RequestProcessor
+{
+ private static final String EMPTY = "";
+ private final GetMarkup getMarkup;
+ private String namespace;
+
+ public RenderRequestProcessor(WSRPProducerImpl producer, GetMarkup getMarkup) throws
UnsupportedMimeTypeFault,
+ UnsupportedWindowStateFault, InvalidHandleFault, UnsupportedModeFault,
MissingParametersFault,
+ InvalidRegistrationFault, OperationFailedFault
+ {
+ super(producer);
+ this.getMarkup = getMarkup;
+ prepareInvocation();
+ }
+
+ RegistrationContext getRegistrationContext()
+ {
+ return getMarkup.getRegistrationContext();
+ }
+
+ RuntimeContext getRuntimeContext()
+ {
+ return getMarkup.getRuntimeContext();
+ }
+
+ MarkupParams getMarkupParams()
+ {
+ return getMarkup.getMarkupParams();
+ }
+
+ PortletContext getPortletContext()
+ {
+ return getMarkup.getPortletContext();
+ }
+
+ org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return getMarkup.getUserContext();
+ }
+
+ String getContextName()
+ {
+ return MarkupHandler.GET_MARKUP;
+ }
+
+ AccessMode getAccessMode()
+ {
+ return AccessMode.READ_ONLY;
+ }
+
+ PortletInvocation initInvocation(WSRPPortletInvocationContext context)
+ {
+ // MUST match namespace generation used in PortletResponseImpl.getNamespace in
portlet module...
+ namespace =
PortletUtils.generateNamespaceFrom(context.getWindowContext().getId());
+
+ return new RenderInvocation(context);
+ }
+
+ Object processResponse(PortletInvocationResponse response)
+ {
+ FragmentResponse fragment = (FragmentResponse)response;
+ String markupString = null;
+ byte[] markupBinary = null;
+ switch (fragment.getType())
+ {
+ case FragmentResponse.TYPE_CHARS:
+ markupString = processFragmentString(fragment.getChars());
+ break;
+ case FragmentResponse.TYPE_BYTES:
+ markupBinary = fragment.getBytes(); // fix-me: might need to convert to
Base64?
+ break;
+ case FragmentResponse.TYPE_EMPTY:
+ markupString = EMPTY;
+ break;
+ }
+
+
+ MarkupContext markupContext;
+ if (markupString != null)
+ {
+ markupContext =
WSRPTypeFactory.createMarkupContext(markupRequest.getMediaType(), markupString);
+ }
+ else
+ {
+ markupContext =
WSRPTypeFactory.createMarkupContext(markupRequest.getMediaTypeWithCharset(),
markupBinary);
+ }
+ markupContext.setLocale(markupRequest.getLocale());
+ markupContext.setRequiresUrlRewriting(Boolean.TRUE);
+ markupContext.setPreferredTitle(portletDescription.getTitle().getValue());
+
+ // cache information
+ int expires = fragment.getCacheControl().getExpirationSecs();
+ // only create a CacheControl if expiration time is not 0
+ if (expires != 0)
+ {
+ // if expires is negative, replace by -1 to make sure
+ if (expires < 0)
+ {
+ expires = -1;
+ }
+
+ markupContext.setCacheControl(WSRPTypeFactory.createCacheControl(expires,
WSRPConstants.CACHE_PER_USER));
+ }
+
+ return new MarkupResponse(markupContext, null, null);
+ }
+
+ /**
+ * Process String returned from RenderResult to add rewriting token if necessary,
replacing namespaces by the WSRP
+ * rewrite token. fix-me: need to check for producer rewriting
+ *
+ * @param renderString the String to be processed for rewriting marking
+ * @return a String processed to add rewriting tokens as necessary
+ */
+ private String processFragmentString(String renderString)
+ {
+ String result = renderString.replaceAll(namespace,
WSRPRewritingConstants.WSRP_REWRITE_TOKEN);
+
+ result = URLTools.replaceURLsBy(result, new
AbsoluteURLReplacementGenerator(ServletAccess.getRequest()));
+ return result;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/RequestProcessor.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,508 @@
+/*
+ * 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.jboss.portal.Mode;
+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.Portlet;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.StateString;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.spi.PortalContext;
+import org.jboss.portal.portlet.spi.SecurityContext;
+import org.jboss.portal.portlet.spi.UserContext;
+import org.jboss.portal.portlet.spi.WindowContext;
+import org.jboss.portal.portlet.state.AccessMode;
+import org.jboss.portal.registration.Registration;
+import org.jboss.portal.wsrp.UserContextConverter;
+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 java.security.Principal;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13121 $
+ * @since 2.6
+ */
+public abstract class RequestProcessor
+{
+ private static final String WINDOW_STATE = "window state";
+ private static final String PORTLET_MODE = "portlet mode";
+
+ protected PortletInvocation invocation;
+ protected MarkupRequest markupRequest;
+ protected PortletDescription portletDescription;
+ protected Portlet portlet;
+ protected WSRPInstanceContext instanceContext;
+ protected WSRPProducerImpl producer;
+
+
+ protected RequestProcessor(WSRPProducerImpl producer)
+ {
+ this.producer = producer;
+ }
+
+ void prepareInvocation() throws InvalidRegistrationFault, OperationFailedFault,
InvalidHandleFault,
+ UnsupportedMimeTypeFault, UnsupportedWindowStateFault, UnsupportedModeFault
+ {
+ Registration registration =
producer.getRegistrationOrFailIfInvalid(getRegistrationContext());
+
+ // get session information and deal with it
+ final RuntimeContext runtimeContext = getRuntimeContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(runtimeContext,
"RuntimeContext", getContextName());
+
+ checkForSessionIDs(runtimeContext);
+
+ // get markup parameters
+ final MarkupParams params = getMarkupParams();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(params,
"MarkupParams", getContextName());
+
+ // get portlet handle
+ PortletContext wsrpPC = getPortletContext();
+ WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(wsrpPC,
"PortletContext", getContextName());
+ org.jboss.portal.portlet.PortletContext portletContext =
WSRPUtils.convertToPortalPortletContext(wsrpPC);
+
+ // retrieve the portlet
+ try
+ {
+ // calls RegistrationLocal.setRegistration so no need to here
+ portlet = producer.getPortletWith(portletContext, registration);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Could not retrieve portlet '" + portletContext +
"'", e);
+ }
+
+ // get portlet description for the desired portlet...
+ final String[] desiredLocales = params.getLocales();
+ portletDescription = producer.getPortletDescription(portlet, desiredLocales);
+ if (Boolean.TRUE.equals(portletDescription.getUsesMethodGet()))
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Portlets using GET method in forms are not currently supported.",
null);
+ }
+ 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();
+ checkUserContext(wsrpUserContext);
+
+ SecurityContext securityContext = createSecurityContext(params, runtimeContext,
wsrpUserContext);
+ MarkupInfo streamInfo = createStreamInfo(markupRequest);
+ PortalContext portalContext = createPortalContext(params, markupRequest);
+ UserContext userContext = createUserContext(wsrpUserContext,
markupRequest.getLocale(), desiredLocales);
+ instanceContext = createInstanceContext(portletContext, getAccessMode(),
runtimeContext.getPortletInstanceKey());
+ WindowContext windowContext = createWindowContext(portletContext.getId(),
runtimeContext);
+
+ // prepare the invocation
+ WSRPPortletInvocationContext context = new WSRPPortletInvocationContext(streamInfo,
securityContext, portalContext, userContext, instanceContext, windowContext);
+ PortletInvocation invocation = initInvocation(context);
+
+ invocation.setTarget(portlet.getContext());
+
invocation.setWindowState(WSRPUtils.getJSR168WindowStateFromWSRPName(markupRequest.getWindowState()));
+
invocation.setMode(WSRPUtils.getJSR168PortletModeFromWSRPName(markupRequest.getMode()));
+ invocation.setNavigationalState(navigationalState);
+
+ context.contextualize(invocation);
+ setInvocation(invocation);
+ }
+
+ abstract RegistrationContext getRegistrationContext();
+
+ abstract RuntimeContext getRuntimeContext();
+
+ abstract MarkupParams getMarkupParams();
+
+ abstract PortletContext getPortletContext();
+
+ abstract org.jboss.portal.wsrp.core.UserContext getUserContext();
+
+ abstract String getContextName();
+
+ abstract AccessMode getAccessMode();
+
+ abstract PortletInvocation initInvocation(WSRPPortletInvocationContext context);
+
+ abstract Object processResponse(PortletInvocationResponse response);
+
+
+ /**
+ * Returns the most appropriate information to base markup generation on based on a
Portlet's specified markup types
+ * and a markup request parameters.
+ *
+ * @param markupTypes the Portlet's specified markup types
+ * @param params the markup request parameters
+ * @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
+ {
+ String[] desiredMIMETypes = params.getMimeTypes();
+ MarkupType markupType = null;
+
+ // Get the MIME type to use
+ for (int i = 0; markupType == null && i < desiredMIMETypes.length; i++)
+ {
+ String desiredMIMEType = desiredMIMETypes[i];
+ for (MarkupType type : markupTypes)
+ {
+ if (desiredMIMEType.equals(type.getMimeType()))
+ {
+ markupType = type;
+ break;
+ }
+ }
+ }
+
+ // no MIME type was found: error!
+ if (markupType == null)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(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();
+ if (supportedLocales != null)
+ {
+ // reset markup type locales
+ markupType.setLocales(null);
+ boolean found = false;
+
+ // find the best match
+ for (String locale : locales)
+ {
+ for (String supportedLocale : supportedLocales)
+ {
+ if (locale.equals(supportedLocale))
+ {
+ markupType.setLocales(new String[]{locale});
+ found = true;
+ break;
+ }
+ }
+
+ if (found)
+ {
+ break;
+ }
+ }
+
+ // if no best match was found, use whatever the user gave us
+ if (!found)
+ {
+ markupType.setLocales(locales);
+ }
+ }
+ else
+ {
+ markupType.setLocales(locales);
+ }
+
+ // get the mode
+ String mode;
+ try
+ {
+ mode = getMatchingOrFailFrom(markupType.getModes(), params.getMode(),
PORTLET_MODE);
+ }
+ catch (IllegalArgumentException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MODE,
+ "Unsupported mode '" + params.getMode() + "'",
e);
+ }
+
+ // get the window state
+ String windowState;
+ try
+ {
+ windowState = getMatchingOrFailFrom(markupType.getWindowStates(),
params.getWindowState(), WINDOW_STATE);
+ }
+ catch (IllegalArgumentException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(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);
+
+ return new MarkupRequest(markupType, mode, windowState, characterSet, portlet);
+ }
+
+ /**
+ * Retrieves the desired value from the set of possible values if such value exists or
throw an
+ * <code>IllegalArgumentException</code>.
+ *
+ * @param possibleValues the set of supported values
+ * @param desired the desired value
+ * @param valueType a name identifying the type of the desired value (for error
reporting purpose)
+ * @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
+ {
+ List possibleList = Arrays.asList(possibleValues);
+ if (possibleList.contains(desired))
+ {
+ return desired;
+ }
+ throw new IllegalArgumentException(desired + " is not a supported " +
valueType);
+ }
+
+ /**
+ * Retrieves the best matching value from a set of possible values based on an ordered
set of preferred values or the
+ * given default value if no matching value is found.
+ *
+ * @param possibleValues the set of possible values
+ * @param preferredValues the ordered (according to user preferences) set of preferred
values
+ * @param defaultValue the default value to be used if no match can be found
+ * @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)
+ {
+ if (preferredValues != null && possibleValues != null)
+ {
+ List possibleList = Arrays.asList(possibleValues);
+
+ for (String preferredValue : preferredValues)
+ {
+ if (possibleList.contains(preferredValue))
+ {
+ return preferredValue;
+ }
+ }
+ }
+
+ return defaultValue;
+ }
+
+ private void checkUserContext(org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
+ {
+ if (wsrpUserContext != null)
+ {
+
WSRPExceptionFactory.throwMissingParametersFaultIfValueIsMissing(wsrpUserContext.getUserContextKey(),
"User Context Key", "UserContext");
+ }
+ }
+
+
+ private void checkForSessionIDs(RuntimeContext runtimeContext)
+ {
+ if (runtimeContext.getSessionID() != null)
+ {
+ MarkupHandler.throwOperationFaultOnSessionOperation();
+ }
+ }
+
+ protected StateString createNavigationalState(String navigationalState)
+ {
+ if (navigationalState == null)
+ {
+ return null;
+ }
+ else
+ {
+ return StateString.create(navigationalState);
+ }
+ }
+
+ private WSRPInstanceContext
createInstanceContext(org.jboss.portal.portlet.PortletContext portletContext, final
AccessMode accessMode, String instanceId)
+ {
+ return new WSRPInstanceContext(portletContext, accessMode, instanceId);
+ }
+
+ private WindowContext createWindowContext(final String portletHandle, final
RuntimeContext runtimeContext)
+ {
+ return new WindowContext()
+ {
+ public String getId()
+ {
+ String prefix = runtimeContext.getNamespacePrefix();
+ if (prefix != null && prefix.length() > 0)
+ {
+ return prefix;
+ }
+ else
+ {
+ // No provided namespace prefix for portlet, using portlet handle instead
+ return portletHandle;
+ }
+ }
+ };
+ }
+
+ private UserContext createUserContext(final org.jboss.portal.wsrp.core.UserContext
userContext,
+ String preferredLocale, final String[]
supportedLocales)
+ {
+ // todo: investigate ways to cache this information?
+ // fix-me: should getInformations be put in the request attribute
PortletRequest.USER_INFO?
+ return UserContextConverter.createPortalUserContextFrom(userContext,
supportedLocales, preferredLocale);
+ }
+
+ private PortalContext createPortalContext(final MarkupParams params, final
MarkupRequest markupRequest)
+ {
+ return new PortalContext()
+ {
+
+ public String getInfo()
+ {
+ return PortalContext.VERSION.toString();
+ }
+
+ public Set<WindowState> getWindowStates()
+ {
+ String[] validNewWindowStates = params.getValidNewWindowStates();
+ if (validNewWindowStates != null)
+ {
+ Set<WindowState> states = new
HashSet<WindowState>(validNewWindowStates.length);
+ for (String state : validNewWindowStates)
+ {
+ states.add(WSRPUtils.getJSR168WindowStateFromWSRPName(state));
+ }
+ return states;
+ }
+ return markupRequest.getSupportedWindowStates();
+ }
+
+ public Set<Mode> getModes()
+ {
+ String[] validNewModes = params.getValidNewModes();
+ if (validNewModes != null)
+ {
+ Set<Mode> modes = new HashSet<Mode>(validNewModes.length);
+ for (String mode : validNewModes)
+ {
+ modes.add(WSRPUtils.getJSR168PortletModeFromWSRPName(mode));
+ }
+ return modes;
+ }
+ return markupRequest.getSupportedModes();
+ }
+
+ public Map<String, String> getProperties()
+ {
+ return Collections.emptyMap();
+ }
+ };
+ }
+
+ private MarkupInfo createStreamInfo(MarkupRequest markupRequest)
+ {
+ MarkupInfo markupInfo;
+ try
+ {
+ markupInfo = new MarkupInfo(MediaType.create(markupRequest.getMediaType()),
markupRequest.getCharacterSet());
+ }
+ catch (IllegalArgumentException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.UNSUPPORTED_MIME_TYPE,
+ e.getLocalizedMessage(), e);
+ }
+ return markupInfo;
+ }
+
+ // 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)
+ {
+ return new SecurityContext()
+ {
+ public boolean isSecure()
+ {
+ return params.isSecureClientCommunication();
+ }
+
+ public String getAuthType()
+ {
+ return runtimeContext.getUserAuthentication();
+ }
+
+ public String getRemoteUser()
+ {
+ if (wsrpUserContext != null)
+ {
+ return wsrpUserContext.getUserContextKey();
+ }
+ return null;
+ }
+
+ public Principal getUserPrincipal()
+ {
+ return null;
+ }
+
+ public boolean isUserInRole(String roleName)
+ {
+ return wsrpUserContext != null && Tools.isContainedIn(roleName,
wsrpUserContext.getUserCategories());
+ }
+
+ public boolean isAuthenticated()
+ {
+ return wsrpUserContext != null;
+ }
+ };
+ }
+
+ public PortletInvocation getInvocation()
+ {
+ return invocation;
+ }
+
+ public void setInvocation(PortletInvocation invocation)
+ {
+ this.invocation = invocation;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceDescriptionHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,302 @@
+/*
+ * 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.jboss.portal.common.net.media.MediaType;
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.portlet.Portlet;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.info.CapabilitiesInfo;
+import org.jboss.portal.portlet.info.MetaInfo;
+import org.jboss.portal.portlet.info.ModeInfo;
+import org.jboss.portal.portlet.info.PortletInfo;
+import org.jboss.portal.portlet.info.WindowStateInfo;
+import org.jboss.portal.registration.Registration;
+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 java.rmi.RemoteException;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12017 $
+ * @since 2.4
+ */
+class ServiceDescriptionHandler extends ServiceHandler implements
WSRP_v1_ServiceDescription_PortType
+{
+ // 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;
+
+ ServiceDescriptionHandler(WSRPProducerImpl producer)
+ {
+ super(producer);
+ }
+
+ public ServiceDescription getServiceDescription(GetServiceDescription gs)
+ throws InvalidRegistrationFault, OperationFailedFault, RemoteException
+ {
+ WSRPExceptionFactory.throwOperationFailedFaultIfValueIsMissing(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());
+
+ // if a RegistrationContext is provided, we need to validate the registration
information
+ Registration registration = null;
+ if (registrationContext != null)
+ {
+ registration = producer.getRegistrationOrFailIfInvalid(registrationContext);
+ }
+
+ // get the portlet descriptions based on registration information
+ offeredPortlets = getPortletDescriptions(gs.getDesiredLocales(), registration);
+ serviceDescription.setOfferedPortlets(offeredPortlets);
+
+ // if we don't have registration information but a registration is required,
send registration props information
+ if (registration == null && requirements.isRegistrationRequired())
+ {
+ 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();
+ ModelDescription description = null;
+ if (info != null && !info.isEmpty())
+ {
+ description = Utils.convertRegistrationPropertiesToModelDescription(info);
+ }
+
+ serviceDescription.setRegistrationPropertyDescription(description);
+ }
+
+ serviceDescription.setOfferedPortlets(offeredPortlets);
+ return serviceDescription;
+ }
+
+
+ public Set<PortletDescription> getOfferedPortletDescriptions(String[]
desiredLocales)
+ {
+ Set<Portlet> portlets;
+ try
+ {
+ portlets = producer.getRemotablePortlets();
+ }
+ catch (PortletInvokerException e)
+ {
+ log.warn("Could not retrieve portlets. Reason:\n\t" +
e.getLocalizedMessage());
+ return Collections.emptySet();
+ }
+
+ Set<PortletDescription> offeredPortletDescriptions = new
HashSet<PortletDescription>(portlets.size());
+
+ for (Portlet portlet : portlets)
+ {
+ PortletDescription desc = getPortletDescription(portlet, desiredLocales);
+ offeredPortletDescriptions.add(desc);
+ }
+
+ return offeredPortletDescriptions;
+ }
+
+ public PortletDescription getPortletDescription(PortletContext portletContext,
String[] desiredLocales, Registration registration) throws InvalidHandleFault,
OperationFailedFault
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "portlet
context");
+ Portlet portlet;
+ try
+ {
+ portlet =
producer.getPortletWith(WSRPUtils.convertToPortalPortletContext(portletContext),
registration);
+ return getPortletDescription(portlet, desiredLocales);
+ }
+ catch (PortletInvokerException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.OPERATION_FAILED,
+ "Could not retrieve portlet '" + portletContext +
"'", e);
+ }
+ }
+
+ /**
+ * @param desiredLocales the locales in which the portlet descriptions must be
provided (best effort)
+ * @param registration used to filter offered portlet lists
+ * @return an array of portlet descriptions offered by this producer (which could be
filtered based on the
+ * 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)
+ {
+ ProducerRegistrationRequirements registrationReq =
producer.getProducerRegistrationRequirements();
+ if (registration == null && registrationReq.isRegistrationRequired()
&& registrationReq.isRegistrationRequiredForFullDescription())
+ {
+ return null;
+ }
+
+ Set<PortletDescription> descriptions =
getOfferedPortletDescriptions(desiredLocales);
+ return descriptions.toArray(new PortletDescription[descriptions.size()]);
+ }
+
+ /**
+ * Creates a PortletDescription based on the user desired locales (ordered according
to user preferences) for the
+ * specified component.
+ *
+ * @param portlet
+ * @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)
+ {
+ String id = portlet.getContext().getId();
+ PortletInfo info = portlet.getInfo();
+ log.debug("Constructing portlet description for: " + id);
+
+ 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++)
+ {
+ MediaType mimeType = mediaTypes.next();
+ markupTypes[i] = new MarkupType(
+ mimeType.getValue(),
+ getModeNamesFrom(capInfo.getModes(mimeType)),
+ getWindowStateNamesFrom(capInfo.getWindowStates(mimeType)),
+ getLocaleNamesFrom(capInfo.getLocales(mimeType)),
+ null);
+ }
+
+ //todo generate a valid and better portlet handle
+ PortletDescription desc = WSRPTypeFactory.createPortletDescription(id,
markupTypes);
+
+ // todo: group ID
+
+ MetaInfo metaInfo = info.getMeta();
+
+ // description
+
desc.setDescription(Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.DESCRIPTION),
desiredLocales));
+
+ // short title
+
desc.setShortTitle(Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.SHORT_TITLE),
desiredLocales));
+
+ // title
+
desc.setTitle(Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.TITLE),
desiredLocales));
+
+ // display name
+
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 =
+ Utils.convertToWSRPLocalizedString(metaInfo.getMetaValue(MetaInfo.KEYWORDS),
desiredLocales);
+ if (concatenatedKeywords != null)
+ {
+ String commaSeparatedKeywords = concatenatedKeywords.getValue();
+ if (commaSeparatedKeywords != null && commaSeparatedKeywords.length()
> 0)
+ {
+ 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++)
+ {
+ keywords[i] = WSRPTypeFactory.createLocalizedString(lang, null,
keywordArray[i].trim()); // fix-me: resource name
+ }
+ desc.setKeywords(keywords);
+ }
+ }
+
+ /* todo:
+ * [O] string userCategories[]
+ * [O] string userProfileItems[]
+ * [O] boolean usesMethodGet
+ * [O] boolean defaultMarkupSecure
+ * [O] boolean onlySecure
+ * [O] boolean userContextStoredInSession
+ * [O] boolean templatesStoredInSession
+ * [O] boolean hasUserSpecificState
+ * [O] boolean doesUrlTemplateProcessing
+ * [O] Extension extensions
+ */
+ return desc;
+ }
+
+ private String[] getLocaleNamesFrom(Collection<Locale> locales)
+ {
+ if (locales == null || locales.isEmpty())
+ {
+ return null;
+ }
+
+ String[] localeNames = new String[locales.size()];
+ int i = 0;
+ for (Locale locale : locales)
+ {
+ localeNames[i++] = WSRPUtils.toString(locale);
+ }
+ return localeNames;
+ }
+
+ private String[] getWindowStateNamesFrom(Collection<WindowStateInfo>
windowStates)
+ {
+ String[] result = new String[windowStates.size()];
+ int i = 0;
+ for (WindowStateInfo windowStateInfo : windowStates)
+ {
+ result[i++] =
WSRPUtils.convertJSR168WindowStateNameToWSRPName(windowStateInfo.getWindowStateName());
+ }
+ return result;
+ }
+
+ private String[] getModeNamesFrom(Collection<ModeInfo> modes)
+ {
+ String[] result = new String[modes.size()];
+ int i = 0;
+ for (ModeInfo modeInfo : modes)
+ {
+ result[i++] =
WSRPUtils.convertJSR168PortletModeNameToWSRPName(modeInfo.getModeName());
+ }
+ return result;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceHandler.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/ServiceHandler.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,43 @@
+/*
+ * 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.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.4
+ */
+class ServiceHandler
+{
+ protected WSRPProducerImpl producer;
+ protected static final Logger log = LoggerFactory.getLogger(ServiceHandler.class);
+
+ ServiceHandler(WSRPProducerImpl producer)
+ {
+ this.producer = producer;
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/Utils.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,191 @@
+/*
+ * 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.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 java.util.Locale;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class Utils
+{
+ /**
+ * @param registrationInfo
+ * @return
+ * @since 2.6
+ */
+ public static ModelDescription convertRegistrationPropertiesToModelDescription(Map
registrationInfo)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(registrationInfo,
"registration info");
+ if (registrationInfo.isEmpty())
+ {
+ return WSRPTypeFactory.createModelDescription(null);
+ }
+
+ int size = registrationInfo.size();
+ PropertyDescription[] propertyDescriptions = new PropertyDescription[size];
+ int i = 0;
+ for (Object o : registrationInfo.values())
+ {
+ RegistrationPropertyDescription property = (RegistrationPropertyDescription)o;
+ propertyDescriptions[i++] = convertToPropertyDescription(property);
+ }
+
+ return WSRPTypeFactory.createModelDescription(propertyDescriptions);
+ }
+
+ /**
+ * @param propertyDescription
+ * @return
+ * @since 2.6
+ */
+ public static PropertyDescription
convertToPropertyDescription(RegistrationPropertyDescription propertyDescription)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription,
"RegistrationPropertyDescription");
+ PropertyDescription propDesc =
WSRPTypeFactory.createPropertyDescription(propertyDescription.getName().toString(),
+ propertyDescription.getType());
+
+ // todo: deal with languages properly!!
+ LocalizedString hint = propertyDescription.getHint();
+ if (hint != null)
+ {
+ propDesc.setHint(convertToWSRPLocalizedString(hint));
+ }
+ LocalizedString label = propertyDescription.getLabel();
+ if (label != null)
+ {
+ propDesc.setLabel(convertToWSRPLocalizedString(label));
+ }
+ return propDesc;
+ }
+
+ /**
+ * @param propertyDescription
+ * @return
+ * @since 2.6
+ */
+ public static RegistrationPropertyDescription
convertToRegistrationPropertyDescription(PropertyDescription propertyDescription)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription,
"PropertyDescription");
+ RegistrationPropertyDescription desc = new
RegistrationPropertyDescription(propertyDescription.getName(),
+ propertyDescription.getType());
+ desc.setLabel(getLocalizedStringOrNull(propertyDescription.getLabel()));
+ desc.setHint(getLocalizedStringOrNull(propertyDescription.getHint()));
+
+ return desc;
+ }
+
+ private static LocalizedString
getLocalizedStringOrNull(org.jboss.portal.wsrp.core.LocalizedString wsrpLocalizedString)
+ {
+ if (wsrpLocalizedString == null)
+ {
+ return null;
+ }
+ else
+ {
+ return convertToLocalizedString(wsrpLocalizedString);
+ }
+ }
+
+ /**
+ * @param wsrpLocalizedString
+ * @return
+ * @since 2.6
+ */
+ public static LocalizedString
convertToLocalizedString(org.jboss.portal.wsrp.core.LocalizedString wsrpLocalizedString)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(wsrpLocalizedString, "WSRP
LocalizedString");
+ String lang = wsrpLocalizedString.getLang();
+ Locale locale;
+ if (lang == null)
+ {
+ locale = Locale.getDefault();
+ }
+ else
+ {
+ locale = WSRPUtils.getLocale(lang);
+ }
+
+ LocalizedString localizedString = new
LocalizedString(wsrpLocalizedString.getValue(), locale);
+ localizedString.setResourceName(wsrpLocalizedString.getResourceName());
+ return localizedString;
+ }
+
+ /**
+ * @param regLocalizedString
+ * @return
+ * @since 2.6
+ */
+ public static org.jboss.portal.wsrp.core.LocalizedString
convertToWSRPLocalizedString(LocalizedString regLocalizedString)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(regLocalizedString,
"LocalizedString");
+ return
WSRPTypeFactory.createLocalizedString(WSRPUtils.toString(regLocalizedString.getLocale()),
+ regLocalizedString.getResourceName(), regLocalizedString.getValue());
+ }
+
+ /**
+ * Creates a WSRP LocalizedString based on the best (according to the specified
desired locales) value of the given
+ * LocalizedString.
+ *
+ * @param localizedString the LocalizedString from which a localized value is to be
extracted
+ * @param desiredLocales the supported locales orderd by user preference, if no
desiredLocales are given, the
+ * default local will be used.
+ * @return the best (according to the specified desired locales) value for the given
LocalizedString or
+ * <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)
+ {
+ if (localizedString == null)
+ {
+ return null;
+ }
+
+ if (desiredLocales == null || desiredLocales.length == 0)
+ {
+ desiredLocales = new String[]{WSRPUtils.toString(Locale.getDefault())};
+ }
+
+ org.jboss.portal.common.i18n.LocalizedString.Value bestMapping =
localizedString.getPreferredOrBestLocalizedMappingFor(desiredLocales);
+ if (bestMapping != null)
+ {
+ Locale locale = bestMapping.getLocale();
+ String value = bestMapping.getString();
+ String language = WSRPUtils.toString(locale);
+ return WSRPTypeFactory.createLocalizedString(language, null, value);
+ }
+ return null;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPInstanceContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPInstanceContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPInstanceContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.jboss.portal.wsrp.producer;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.portlet.PortletContext;
+import org.jboss.portal.portlet.StateEvent;
+import org.jboss.portal.portlet.spi.InstanceContext;
+import org.jboss.portal.portlet.state.AccessMode;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.6
+ */
+class WSRPInstanceContext implements InstanceContext
+{
+ private PortletContext context;
+ private String instanceId;
+ private final AccessMode accessMode;
+ private boolean wasModified = false;
+
+ public WSRPInstanceContext(PortletContext portletContext, AccessMode accessMode,
String instanceId)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "portlet
context");
+ ParameterValidation.throwIllegalArgExceptionIfNull(accessMode,
"AccessMode");
+
+ this.context = portletContext;
+ this.accessMode = accessMode;
+
+ if (instanceId != null && instanceId.length() > 0)
+ {
+ this.instanceId = instanceId;
+ }
+ else
+ {
+ this.instanceId = portletContext.getId();
+ }
+ }
+
+ public String getId()
+ {
+ return instanceId;
+ }
+
+ public AccessMode getAccessMode()
+ {
+ return accessMode;
+ }
+
+ public void onStateEvent(StateEvent event)
+ {
+ PortletContext portletContext = event.getPortletContext();
+ ParameterValidation.throwIllegalArgExceptionIfNull(portletContext,
"PortletContext");
+ wasModified = true;
+ context = portletContext;
+ }
+
+ public boolean wasModified()
+ {
+ return wasModified;
+ }
+
+ public PortletContext getPortletContext()
+ {
+ return context;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPPortletInvocationContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPPortletInvocationContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPPortletInvocationContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,168 @@
+/*
+ * 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.jboss.portal.common.NotYetImplemented;
+import org.jboss.portal.common.net.URLTools;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.portlet.ContainerURL;
+import org.jboss.portal.portlet.PortletURL;
+import org.jboss.portal.portlet.ResourceURL;
+import org.jboss.portal.portlet.URLFormat;
+import org.jboss.portal.portlet.impl.spi.AbstractClientContext;
+import org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext;
+import org.jboss.portal.portlet.impl.spi.AbstractServerContext;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.spi.InstanceContext;
+import org.jboss.portal.portlet.spi.PortalContext;
+import org.jboss.portal.portlet.spi.PortletInvocationContext;
+import org.jboss.portal.portlet.spi.SecurityContext;
+import org.jboss.portal.portlet.spi.UserContext;
+import org.jboss.portal.portlet.spi.WindowContext;
+import org.jboss.portal.wsrp.WSRPPortletURL;
+import org.jboss.portal.wsrp.WSRPRewritingConstants;
+import org.jboss.portal.wsrp.servlet.ServletAccess;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13121 $
+ */
+class WSRPPortletInvocationContext extends AbstractPortletInvocationContext implements
PortletInvocationContext
+{
+ private SecurityContext securityContext;
+ private PortalContext portalContext;
+ private UserContext userContext;
+ private InstanceContext instanceContext;
+ private WindowContext windowContext;
+
+ private static final String EQ = "=";
+ private static final String AMP = "&";
+ private static final String EQ_TRUE = "=true";
+ private HttpServletRequest request;
+ private HttpServletResponse response;
+
+ public WSRPPortletInvocationContext(MarkupInfo markupInfo, SecurityContext
securityContext, PortalContext portalContext, UserContext userContext,
+ InstanceContext instanceContext, WindowContext
windowContext)
+ {
+ super(markupInfo);
+
+ this.securityContext = securityContext;
+ this.portalContext = portalContext;
+ this.userContext = userContext;
+ this.instanceContext = instanceContext;
+ this.windowContext = windowContext;
+
+ request = ServletAccess.getRequest();
+ response = ServletAccess.getResponse();
+ }
+
+ public HttpServletRequest getClientRequest()
+ {
+ return request;
+ }
+
+ public HttpServletResponse getClientResponse()
+ {
+ return response;
+ }
+
+ /** Override the default behavior in order to avoid to encode when it is producer
written URL. */
+ public String encodeResourceURL(String url)
+ {
+ if (url != null &&
!url.startsWith(WSRPRewritingConstants.BEGIN_WSRP_REWRITE))
+ {
+ // make root relative URLs absolute. Optimization: we don't recheck the
precense of the WSRP token.
+ url = new
AbsoluteURLReplacementGenerator(getClientRequest()).getAbsoluteURLFor(url, false);
+
+ // properly encode the URL
+ url = URLTools.encodeXWWWFormURL(url);
+
+ // build the WSRP resource URL with rewrite tokens
+ StringBuffer sb = new StringBuffer(url.length() * 2);
+
sb.append(WSRPRewritingConstants.BEGIN_WSRP_REWRITE).append(WSRPRewritingConstants.URL_TYPE_NAME)
+ .append(EQ).append(WSRPRewritingConstants.URL_TYPE_RESOURCE).append(AMP)
+ .append(WSRPRewritingConstants.RESOURCE_URL).append(EQ).append(url)
+ .append(AMP).append(WSRPRewritingConstants.RESOURCE_REQUIRES_REWRITE)
+ .append(EQ_TRUE).append(WSRPRewritingConstants.END_WSRP_REWRITE);
+ return sb.toString();
+ }
+
+ return url;
+ }
+
+ /**
+ * <p>URL to be re-written are of the form:
<code>wsrp_rewrite?wsrp-urlType=value&amp;name1=value1&amp;name2=value2
+ * .../wsrp_rewrite</code> </p> <ul>Examples: <li>Load a
resource
http://test.com/images/test.gif: <br/>
+ *
<code>wsrp_rewrite?wsrp-urlType=resource&amp;wsrp-url=http%3A%2F%2Ftest.com%2Fimages%2Ftest.gif&amp;wsrp-requiresRewrite=true/wsrp_rewrite</code></li>
+ * <li>Declare a secure interaction back to the Portlet:<br/>
<code>wsrp_rewrite?wsrp-urlType=blockingAction&amp;wsrp-secureURL=true&amp;wsrp-navigationalState=a8h4K5JD9&amp;wsrp-interactionState=fg4h923mdk/wsrp_rewrite</code></li>
+ * <li>Request the Consumer render the Portlet in a different mode and window
state:
+ *
<code>wsrp_rewrite?wsrp-urlType=render&amp;wsrp-mode=help&amp;wsrp-windowState=maximized/wsrp_rewrite</code></li>
+ * </ul>
+ *
+ * @param containerURL
+ * @param urlFormat
+ * @return
+ */
+ public String renderURL(ContainerURL containerURL, URLFormat urlFormat)
+ {
+ if (containerURL != null)
+ {
+ if (containerURL instanceof PortletURL)
+ {
+ PortletURL portletURL = (PortletURL)containerURL;
+
+ Boolean wantSecureBool = urlFormat.getWantSecure();
+ boolean wantSecure = (wantSecureBool != null ? wantSecureBool : false);
+ return WSRPPortletURL.create(portletURL, wantSecure).toString();
+ }
+ else if (containerURL instanceof ResourceURL)
+ {
+ ResourceURL resourceURL = (ResourceURL)containerURL;
+ throw new NotYetImplemented("ResourceURL support not implemented.
Requested URL: " + resourceURL);
+ }
+ }
+ return null;
+ }
+
+ public void contextualize(PortletInvocation invocation)
+ {
+ invocation.setClientContext(new AbstractClientContext(request));
+ invocation.setServerContext(new AbstractServerContext(request, response));
+
+ invocation.setSecurityContext(securityContext);
+ invocation.setInstanceContext(instanceContext);
+ invocation.setWindowContext(windowContext);
+ invocation.setPortalContext(portalContext);
+ invocation.setUserContext(userContext);
+ }
+
+ WindowContext getWindowContext()
+ {
+ return windowContext;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPPortletInvocationContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPProducerImpl.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,506 @@
+/*
+ * 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.jboss.portal.portlet.NoSuchPortletException;
+import org.jboss.portal.portlet.Portlet;
+import org.jboss.portal.portlet.PortletInvoker;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.info.RuntimeOptionInfo;
+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.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.rmi.RemoteException;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12286 $
+ * @since 2.4
+ */
+public class WSRPProducerImpl implements WSRPProducer
+{
+ /** logger used for logging ;) */
+ private static final Logger log = LoggerFactory.getLogger(WSRPProducerImpl.class);
+
+ /** The invoker used to retrieve portlet information and invoke methods. */
+ private PortletInvoker invoker;
+
+ /** Handles Markup interface calls. */
+ private MarkupHandler markupHandler;
+
+ /** Handles ServiceDescription interface calls. */
+ private ServiceDescriptionHandler serviceDescriptionHandler;
+
+ /** Handles Registration interface calls. */
+ private RegistrationHandler registrationHandler;
+
+ /** Handles Portlet Management interface calls. */
+ private PortletManagementHandler portletManagementHandler;
+
+ /** Registration Manager */
+ private RegistrationManager registrationManager;
+
+ private int sessionExpirationTime = DEFAULT_SESSION_EXPIRATION_TIME;
+
+ private CookieProtocol requiresInitCookie = CookieProtocol.none;
+
+ /** Supported locales. */
+ private String[] supportedLocales = WSRPConstants.getDefaultLocales();
+
+ /** configuration service */
+ private ProducerConfigurationService configurationService;
+
+ public WSRPProducerImpl()
+ {
+ markupHandler = new MarkupHandler(this);
+ serviceDescriptionHandler = new ServiceDescriptionHandler(this);
+ registrationHandler = new RegistrationHandler(this);
+ portletManagementHandler = new PortletManagementHandler(this);
+ }
+
+ public ProducerRegistrationRequirements getProducerRegistrationRequirements()
+ {
+ return getProducerConfiguration().getRegistrationRequirements();
+ }
+
+ // ServiceDescription implementation
********************************************************************************
+
+ public ServiceDescription getServiceDescription(GetServiceDescription gs)
+ throws InvalidRegistrationFault, OperationFailedFault, 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
+ {
+ log.debug("getMarkup invoked");
+ MarkupResponse response = markupHandler.getMarkup(getMarkup);
+ log.debug("end getMarkup");
+ return response;
+ }
+
+ public BlockingInteractionResponse
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction)
+ throws InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault,
OperationFailedFault,
+ UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault,
PortletStateChangeRequiredFault,
+ InvalidRegistrationFault, MissingParametersFault, InvalidUserCategoryFault,
InconsistentParametersFault,
+ InvalidHandleFault, InvalidCookieFault, RemoteException
+ {
+ log.debug("performBlockingInteraction invoked");
+ BlockingInteractionResponse interactionResponse =
markupHandler.performBlockingInteraction(performBlockingInteraction);
+ log.debug("end performBlockingInteraction");
+ return interactionResponse;
+ }
+
+ public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
+ throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault,
AccessDeniedFault, RemoteException
+ {
+ log.debug("releaseSessions invoked");
+ ReturnAny returnAny = markupHandler.releaseSessions(releaseSessions);
+ log.debug("end releaseSessions");
+ return returnAny;
+ }
+
+ public ReturnAny initCookie(InitCookie initCookie)
+ throws AccessDeniedFault, OperationFailedFault, InvalidRegistrationFault,
RemoteException
+ {
+ log.debug("initCookie invoked");
+ ReturnAny returnAny = markupHandler.initCookie(initCookie);
+ log.debug("end initCookie");
+ return returnAny;
+ }
+
+ // Registration implementation
**************************************************************************************
+
+ public RegistrationContext register(RegistrationData register) throws
MissingParametersFault, OperationFailedFault,
+ RemoteException
+ {
+ log.debug("register invoked");
+ RegistrationContext registrationContext = registrationHandler.register(register);
+ log.debug("end register");
+ return registrationContext;
+ }
+
+ public ReturnAny deregister(RegistrationContext deregister) throws
OperationFailedFault, InvalidRegistrationFault,
+ RemoteException
+ {
+ log.debug("deregister invoked");
+ ReturnAny returnAny = registrationHandler.deregister(deregister);
+ log.debug("end deregister");
+ return returnAny;
+ }
+
+ public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration)
throws MissingParametersFault,
+ OperationFailedFault, InvalidRegistrationFault, RemoteException
+ {
+ log.debug("modifyRegistration invoked");
+ RegistrationState registrationState =
registrationHandler.modifyRegistration(modifyRegistration);
+ log.debug("end modifyRegistration");
+ return registrationState;
+ }
+
+ public ProducerConfiguration getProducerConfiguration()
+ {
+ return configurationService.getConfiguration();
+ }
+
+ public RegistrationManager getRegistrationManager()
+ {
+ return registrationManager;
+ }
+
+ public void setRegistrationManager(RegistrationManager registrationManager)
+ {
+ this.registrationManager = registrationManager;
+ }
+
+ public void setProducerConfigurationService(ProducerConfigurationService
configurationService)
+ {
+ this.configurationService = configurationService;
+ }
+
+ public ProducerConfigurationService getConfigurationService()
+ {
+ return configurationService;
+ }
+
+ public void start()
+ {
+ ProducerConfiguration configuration = configurationService.getConfiguration();
+
+ // register to listen to changes in configuration and get initial state
+ configuration.addChangeListener(this);
+ usingStrictModeChangedTo(configuration.isUsingStrictMode());
+
+ ProducerRegistrationRequirements registrationRequirements =
getProducerRegistrationRequirements();
+ registrationRequirements.addRegistrationPolicyChangeListener(registrationManager);
+
registrationRequirements.addRegistrationPropertyChangeListener(registrationManager);
+
+ if (registrationRequirements.isRegistrationRequired())
+ {
+ registrationManager.setPolicy(registrationRequirements.getPolicy());
+ }
+ }
+
+ public void stop()
+ {
+ ProducerRegistrationRequirements registrationRequirements =
getProducerRegistrationRequirements();
+
registrationRequirements.removeRegistrationPropertyChangeListener(registrationManager);
+
registrationRequirements.removeRegistrationPolicyChangeListener(registrationManager);
+
+ 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()
+ {
+ return requiresInitCookie;
+ }
+
+ public void setRequiresInitCookie(CookieProtocol requiresInitCookie)
+ {
+ this.requiresInitCookie = requiresInitCookie;
+ }
+
+ // Session management
***********************************************************************************************
+ public int getSessionExpirationTime()
+ {
+ return sessionExpirationTime;
+ }
+
+ public void setSessionExpirationTime(int sessionExpirationTime)
+ {
+ this.sessionExpirationTime = sessionExpirationTime;
+ }
+
+ public PortletInvoker getInvoker()
+ {
+ return invoker;
+ }
+
+ public void setInvoker(PortletInvoker invoker)
+ {
+ this.invoker = invoker;
+ }
+
+ Portlet getPortletWith(org.jboss.portal.portlet.PortletContext portletContext,
Registration registration) throws InvalidHandleFault, PortletInvokerException
+ {
+ Portlet portlet;
+ try
+ {
+ RegistrationLocal.setRegistration(registration);
+ portlet = invoker.getPortlet(portletContext);
+ }
+ catch (NoSuchPortletException e)
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Couldn't find portlet with handle '" +
portletContext.getId() + "'", null);
+ }
+ finally
+ {
+ RegistrationLocal.setRegistration(null);
+ }
+
+ if (!isRemotable(portlet))
+ {
+ throw
WSRPExceptionFactory.throwSOAPFaultException(WSRPExceptionFactory.INVALID_HANDLE,
+ "Portlet '" + portletContext.getId() + "' is not
remotely available.", null);
+ }
+
+ return portlet;
+ }
+
+ Set<Portlet> getRemotablePortlets() throws PortletInvokerException
+ {
+ log.debug("Retrieving remotable portlets");
+ Set<Portlet> allPortlets = invoker.getPortlets();
+ int portletNumber = allPortlets.size();
+ Set<Portlet> remotablePortlets = Collections.emptySet();
+ if (portletNumber > 0)
+ {
+ remotablePortlets = new HashSet<Portlet>(portletNumber);
+ for (Portlet portlet : allPortlets)
+ {
+ log.debug("Found portlet: " + portlet.getContext());
+ if (isRemotable(portlet))
+ {
+ remotablePortlets.add(portlet);
+ log.debug("Adding remotable portlet to set: " +
portlet.getContext());
+ }
+ }
+ }
+ return remotablePortlets;
+ }
+
+ public PortletDescription getPortletDescription(PortletContext portletContext,
String[] locales, Registration registration) throws InvalidHandleFault,
OperationFailedFault
+ {
+ return serviceDescriptionHandler.getPortletDescription(portletContext, locales,
registration);
+ }
+
+ public PortletDescription getPortletDescription(Portlet portlet, 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 registration =
registrationHandler.getRegistrationFrom(registrationContext);
+ registrationHandler.isRegistrationValid(registration, true);
+
+ return registration;
+ }
+
+ private Boolean remotableByDefault;
+
+ public Boolean isRemotableByDefault()
+ {
+ return remotableByDefault;
+ }
+
+ public void setRemotableByDefault(Boolean remotableByDefault)
+ {
+ this.remotableByDefault = remotableByDefault;
+ }
+
+ private boolean isRemotable(Portlet portlet)
+ {
+ Map<String, RuntimeOptionInfo> runtimeOptions =
portlet.getInfo().getRuntimeOptionsInfo();
+ RuntimeOptionInfo runtimeOptionInfo =
runtimeOptions.get(RuntimeOptionInfo.ORG_JBOSS_PORTLETCONTAINER_REMOTABLE);
+
+ return runtimeOptionInfo != null &&
"true".equals(runtimeOptionInfo.getValues().get(0));
+
+ /*WSRPInfo wsrpInfo = portletInfo.getAttachment(WSRPInfo.class);
+ if (wsrpInfo != null)
+ {
+ Boolean remotable = wsrpInfo.isRemotable();
+ log.debug("Portlet " + portlet.getContext() + " remotable: "
+ remotable);
+ if (remotable != null)
+ {
+ return remotable.booleanValue();
+ }
+ }
+ if (isRemotableByDefault() != null)
+ {
+ return isRemotableByDefault().booleanValue();
+ }
+ return false;*/
+ }
+
+ public String[] getSupportedLocales()
+ {
+ return supportedLocales; // todo: avoid hardcoding this at some point...
+ }
+
+ public void usingStrictModeChangedTo(boolean strictMode)
+ {
+ WSRPValidator.setStrict(strictMode);
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,256 @@
+/*
+ * 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.apache.commons.fileupload.FileUpload;
+import org.jboss.portal.common.util.ParameterMap;
+import org.jboss.portal.portlet.spi.RequestContext;
+import org.jboss.portal.wsrp.core.InteractionParams;
+import org.jboss.portal.wsrp.core.NamedString;
+import org.jboss.portal.wsrp.core.UploadContext;
+
+import javax.mail.MessagingException;
+import javax.mail.internet.InternetHeaders;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMultipart;
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 10337 $
+ */
+abstract class WSRPRequestContext implements RequestContext,
org.apache.commons.fileupload.RequestContext
+{
+ protected String characterEncoding;
+
+ protected WSRPRequestContext(String characterEncoding)
+ {
+ this.characterEncoding = characterEncoding;
+ }
+
+ public String getCharacterEncoding()
+ {
+ return characterEncoding;
+ }
+
+ public int getContentLength()
+ {
+ throw new UnsupportedOperationException("Not currently supported");
+ }
+
+ public BufferedReader getReader() throws IOException
+ {
+ throw new UnsupportedOperationException("Not currently supported");
+ }
+
+ public InputStream getInputStream() throws IOException
+ {
+ throw new UnsupportedOperationException("Not currently supported");
+ }
+
+ public abstract ParameterMap getForm();
+
+ static class WSRPSimpleRequestContext extends WSRPRequestContext
+ {
+ private ParameterMap formParameters;
+ private String contentType;
+
+ protected WSRPSimpleRequestContext(String characterEncoding, String contentType,
NamedString[] formParams)
+ {
+ super(characterEncoding);
+ this.contentType = contentType;
+
+ if (formParams != null && formParams.length > 0)
+ {
+ int length = formParams.length;
+ Map params = new HashMap(length);
+ for (int i = 0; i < length; i++)
+ {
+ 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);
+ int valuesLength = oldValues.length;
+ String[] newValues = new String[valuesLength + 1];
+ System.arraycopy(oldValues, 0, newValues, 0, valuesLength);
+ newValues[valuesLength] = paramValue;
+ params.put(paramName, newValues);
+ }
+ else
+ {
+ params.put(paramName, new String[]{paramValue});
+ }
+ }
+ formParameters = new ParameterMap(params);
+ }
+ else
+ {
+ formParameters = new ParameterMap();
+ }
+
+ }
+
+ public ParameterMap getForm()
+ {
+ return formParameters;
+ }
+
+ public String getContentType()
+ {
+ return contentType;
+ }
+ }
+
+ static class WSRPMultiRequestContext extends WSRPRequestContext
+ {
+ private byte[] content;
+ private boolean usingStream;
+ private boolean usingReader;
+ private String contentType;
+
+ protected WSRPMultiRequestContext(String characterEncoding, NamedString[]
formParams, UploadContext[] uploadContexts) throws IOException, MessagingException
+ {
+ super(characterEncoding);
+
+ MimeMultipart parts = new MimeMultipart();
+ if (uploadContexts != null && uploadContexts.length > 0)
+ {
+ 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)
+ {
+ for (NamedString attribute : attributes)
+ {
+ headers.addHeader(attribute.getName(), attribute.getValue());
+ }
+ }
+
+ MimeBodyPart mimeBodyPart = new MimeBodyPart(headers,
uploadContext.getUploadData());
+ parts.addBodyPart(mimeBodyPart);
+ }
+ }
+
+ final String paramContentDispositionHeader = FileUpload.FORM_DATA + ";
name=\"";
+ if (formParams != null)
+ {
+ for (NamedString formParam : formParams)
+ {
+ InternetHeaders headers = new InternetHeaders();
+
+ StringBuffer paramContentDisposition = new
StringBuffer(paramContentDispositionHeader);
+
paramContentDisposition.append(formParam.getName()).append("\"");
+
+ headers.addHeader(FileUpload.CONTENT_DISPOSITION,
paramContentDisposition.toString());
+
+ MimeBodyPart mimeBodyPart = new MimeBodyPart(headers,
formParam.getValue().getBytes());
+ parts.addBodyPart(mimeBodyPart);
+ }
+ }
+
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ parts.writeTo(baos);
+ content = baos.toByteArray();
+ contentType = parts.getContentType();
+ }
+
+ public ParameterMap getForm()
+ {
+ return new ParameterMap();
+ }
+
+ public String getContentType()
+ {
+ return contentType;
+ }
+
+ public int getContentLength()
+ {
+ return content.length;
+ }
+
+ public BufferedReader getReader() throws IOException
+ {
+ if (usingStream)
+ {
+ throw new IllegalStateException("getInputStream has already been called
on this ActionContext!");
+ }
+ usingReader = true;
+ return new BufferedReader(new InputStreamReader(getInputStreamFromContent()));
+ }
+
+ public InputStream getInputStream() throws IOException
+ {
+ if (usingReader)
+ {
+ throw new IllegalStateException("getReader has already been called on
this ActionContext!");
+ }
+ usingStream = true;
+ return getInputStreamFromContent();
+ }
+
+
+ private InputStream getInputStreamFromContent()
+ {
+ return new ByteArrayInputStream(content);
+ }
+ }
+
+ public static WSRPRequestContext createRequestContext(MarkupRequest markupRequest,
InteractionParams interactionParams)
+ {
+ NamedString[] formParams = interactionParams.getFormParameters();
+ UploadContext[] uploadContexts = interactionParams.getUploadContexts();
+
+
+ if (uploadContexts != null && uploadContexts.length > 0)
+ {
+ try
+ {
+ return new WSRPMultiRequestContext(markupRequest.getCharacterSet(),
formParams, uploadContexts);
+ }
+ catch (Exception e)
+ {
+ throw new IllegalArgumentException("Invalid upload contexts", e);
+ }
+ }
+ else
+ {
+ return new WSRPSimpleRequestContext(markupRequest.getCharacterSet(),
markupRequest.getMediaType(), formParams);
+
+ }
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPRequestContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPValidator.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPValidator.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/WSRPValidator.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,50 @@
+/*
+ * 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.jboss.portal.registration.RegistrationUtils;
+import org.jboss.portal.wsrp.WSRPPortletURL;
+import org.jboss.portal.wsrp.WSRPUtils;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class WSRPValidator
+{
+ private static boolean strict = true;
+
+ public static void setStrict(boolean strictMode)
+ {
+ strict = strictMode;
+ RegistrationUtils.setStrict(strict);
+ WSRPUtils.setStrict(strict);
+ WSRPPortletURL.setStrict(strict);
+ }
+
+ public static boolean isStrict()
+ {
+ return strict;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfiguration.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfiguration.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfiguration.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,53 @@
+/*
+ * 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.config;
+
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12017 $
+ * @since 2.6
+ */
+public interface ProducerConfiguration
+{
+ ProducerRegistrationRequirements getRegistrationRequirements();
+
+ /**
+ * Is the associated producer using strict WSRP data validation? Strict validation
means that even minor
+ * non-compliance will cause a failure. Lenient validation relaxes the checks that are
performed to improve
+ * compatibility with some non-completely compliant consumers.
+ *
+ * @return <code>true</code> if strict validation is in effect,
<code>false</code> otherwise.
+ */
+ boolean isUsingStrictMode();
+
+ void setUsingStrictMode(boolean strict);
+
+ void addChangeListener(ProducerConfigurationChangeListener listener);
+
+ void removeChangeListener(ProducerConfigurationChangeListener listener);
+
+ List<ProducerConfigurationChangeListener> getChangeListeners();
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationChangeListener.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationChangeListener.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationChangeListener.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,33 @@
+/*
+ * 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.config;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public interface ProducerConfigurationChangeListener
+{
+ void usingStrictModeChangedTo(boolean strictMode);
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationFactory.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationFactory.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationFactory.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,281 @@
+/*
+ * 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.config;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.wsrp.WSRPConstants;
+import org.jboss.portal.wsrp.WSRPUtils;
+import org.jboss.portal.wsrp.producer.config.impl.ProducerConfigurationImpl;
+import org.jboss.portal.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
+import org.jboss.portal.wsrp.registration.LocalizedString;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+import org.jboss.util.StringPropertyReplacer;
+import org.jboss.xb.binding.ObjectModelFactory;
+import org.jboss.xb.binding.UnmarshallingContext;
+import org.xml.sax.Attributes;
+
+import javax.xml.namespace.QName;
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 10408 $
+ * @since 2.6
+ */
+public class ProducerConfigurationFactory implements ObjectModelFactory
+{
+ private static final String REGISTRATION_CONFIG =
"registration-configuration";
+ private static final boolean DEBUG = false;
+ private boolean registrationDone = false;
+
+ // kept to support old-style type
+ private static final String LEGACY_XSD_STRING = "xsd:string";
+
+ public Object newRoot(Object root, UnmarshallingContext nav, String nsURI, String
localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newRoot " + localName);
+ }
+
+ if ("producer-configuration".equals(localName))
+ {
+ ProducerConfiguration producerConfiguration = new ProducerConfigurationImpl();
+ producerConfiguration.setUsingStrictMode(getBooleanAttributeValue(attrs,
"useStrictMode", true));
+ return producerConfiguration;
+ }
+ throw new IllegalArgumentException("The processed file doesn't seem to
have the proper format, " +
+ "was expecting producer-configuration, instead got " + localName);
+ }
+
+ public Object newChild(ProducerConfigurationImpl producerConfiguration,
UnmarshallingContext nav, String nsURI, String localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newChild prodConf " + localName);
+ }
+
+ if (REGISTRATION_CONFIG.equals(localName))
+ {
+ // check that we don't have several registration-configuration elements.
+ if (registrationDone)
+ {
+ throw new IllegalArgumentException("Only one registration-configuration
element can be defined!");
+ }
+
+ ProducerRegistrationRequirements registrationRequirements = new
ProducerRegistrationRequirementsImpl();
+ registrationRequirements.setRegistrationRequired(true);
+
registrationRequirements.setRegistrationRequiredForFullDescription(getBooleanAttributeValue(attrs,
"fullServiceDescriptionRequiresRegistration", false));
+ registrationDone = true;
+ return registrationRequirements;
+ }
+ return null;
+ }
+
+ public Object completeRoot(Object root, UnmarshallingContext nav, String nsURI, String
localName)
+ {
+ return root;
+ }
+
+ public Object newChild(ProducerRegistrationRequirementsImpl regReq,
UnmarshallingContext nav, String nsURI,
+ String localName, Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newChild regReq " + localName);
+ }
+
+ if ("registration-property-description".equals(localName))
+ {
+ return new RegistrationPropertyDescription();
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public void setValue(ProducerRegistrationRequirementsImpl regReq, UnmarshallingContext
nav, String nsURI,
+ String localName, String value)
+ {
+ if ("registration-policy".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ regReq.setPolicyClassName(value);
+ }
+ else if ("registration-property-validator".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ regReq.setValidatorClassName(value);
+ }
+ }
+
+ public void setValue(RegistrationPropertyDescription desc, UnmarshallingContext nav,
String nsURI,
+ String localName, String value)
+ {
+ if (DEBUG)
+ {
+ System.out.println("setvalue desc " + localName);
+ }
+
+ if ("name".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+ desc.setName(new QName(value));
+ }
+ else if ("type".equals(localName))
+ {
+ value = StringPropertyReplacer.replaceProperties(value);
+
+ // first check that we still support type as "xsd:string"...
+ if (!LEGACY_XSD_STRING.equals(value))
+ {
+ QName type = nav.resolveQName(value);
+ if (!WSRPConstants.XSD_STRING.equals(type))
+ {
+ throw new IllegalArgumentException("'" + value + "'
is not a supported type. Currently, only 'xsd:string' is supported.");
+ }
+ }
+
+ desc.setType(WSRPConstants.XSD_STRING);
+ }
+ }
+
+ public Object newChild(RegistrationPropertyDescription desc, UnmarshallingContext nav,
String nsURI, String localName,
+ Attributes attrs)
+ {
+ if (DEBUG)
+ {
+ System.out.println("newchild desc " + localName);
+ }
+
+ if ("hint".equals(localName) || "label".equals(localName) ||
"description".equals(localName))
+ {
+ String lang = attrs.getValue("xml:lang");
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang,
"xml:lang", localName);
+ Locale locale = WSRPUtils.getLocale(lang);
+
+ String resourceName = attrs.getValue("resourceName");
+
+ LocalizedString string = new LocalizedString();
+ string.setLocale(locale);
+
+ if (resourceName != null && resourceName.length() > 0)
+ {
+ string.setResourceName(resourceName);
+ }
+
+ return string;
+ }
+
+ return null;
+ }
+
+ public void setValue(LocalizedString string, UnmarshallingContext nav, String nsURI,
String localName, String value)
+ {
+ if (DEBUG)
+ {
+ System.out.println("setvalue string " + localName);
+ }
+
+ value = StringPropertyReplacer.replaceProperties(value);
+ string.setValue(value);
+ }
+
+ public void addChild(ProducerConfigurationImpl conf,
ProducerRegistrationRequirementsImpl regReq,
+ UnmarshallingContext nav, String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild conf regReq " + localName);
+ }
+
+ if
(!ProducerRegistrationRequirementsImpl.DEFAULT_POLICY_CLASS_NAME.equals(regReq.getPolicyClassName())
&& regReq.getValidatorClassName() != null)
+ {
+ throw new IllegalStateException("Doesn't make sense to define a
property validator without using DefaultRegistrationPolicy!");
+ }
+
+ conf.setRegistrationRequirements(regReq);
+ }
+
+ public void addChild(ProducerRegistrationRequirementsImpl regReq,
RegistrationPropertyDescription desc,
+ UnmarshallingContext nav, String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild regreq desc " + localName);
+ }
+
+ regReq.addRegistrationProperty(desc);
+ }
+
+ public void addChild(RegistrationPropertyDescription desc, LocalizedString string,
UnmarshallingContext nav,
+ String nsURI, String localName)
+ {
+ if (DEBUG)
+ {
+ System.out.println("addchild desc string " + localName);
+ }
+
+ if ("hint".equals(localName))
+ {
+ desc.setHint(string);
+ }
+ else if ("label".equals(localName))
+ {
+ desc.setLabel(string);
+ }
+ else if ("description".equals(localName))
+ {
+ desc.setDescription(string);
+ }
+ }
+
+ private boolean getBooleanAttributeValue(Attributes attrs, String attributeName,
boolean defaultValue)
+ {
+ String value = attrs.getValue(attributeName);
+
+ // figure out which is the default value
+ String defaultString = "false";
+ String other = "true";
+ if (defaultValue)
+ {
+ defaultString = "true";
+ other = "false";
+ }
+
+ if (other.equals(value))
+ {
+ return !defaultValue;
+ }
+ else if (value == null || defaultString.equals(value))
+ {
+ return defaultValue;
+ }
+ else
+ {
+ throw new IllegalArgumentException("Invalid value for " +
attributeName + " attribute. Acceptable values are: true, false.");
+ }
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationProvider.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationProvider.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationProvider.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,187 @@
+/*
+ * 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.config;
+
+import org.jboss.portal.registration.RegistrationPolicy;
+import org.jboss.portal.registration.policies.DefaultRegistrationPolicy;
+import org.jboss.portal.wsrp.WSRPUtils;
+import org.jboss.portal.wsrp.producer.config.impl.ProducerConfigurationImpl;
+import org.jboss.portal.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl;
+import org.jboss.portal.wsrp.registration.LocalizedString;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+import org.jboss.xb.binding.MarshallingContext;
+import org.jboss.xb.binding.ObjectModelProvider;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 10408 $
+ * @since 2.6.3
+ */
+public class ProducerConfigurationProvider implements ObjectModelProvider
+{
+ public Object getRoot(Object o, MarshallingContext marshallingContext, String s,
String s1)
+ {
+ return o;
+ }
+
+ public Object getChildren(ProducerConfigurationImpl configuration, String
namespaceUri, String localName)
+ {
+ if ("registration-configuration".equals(localName))
+ {
+ ProducerRegistrationRequirements registrationRequirements =
configuration.getRegistrationRequirements();
+ if (registrationRequirements != null &&
registrationRequirements.isRegistrationRequired())
+ {
+ return registrationRequirements;
+ }
+ }
+ else if ("producer-configuration".equals(localName))
+ {
+ return configuration;
+ }
+
+ return null;
+ }
+
+ public Object getChildren(ProducerRegistrationRequirementsImpl regReq, String
namespaceUri, String localName)
+ {
+ if ("registration-property-description".equals(localName))
+ {
+ return regReq.getRegistrationProperties().values();
+ }
+
+ return null;
+ }
+
+ public Object getAttributeValue(ProducerConfigurationImpl configuration, String
namespaceUri, String localName)
+ {
+ if ("useStrictMode".equals(localName))
+ {
+ return configuration.isUsingStrictMode();
+ }
+
+ return null;
+ }
+
+ public Object getAttributeValue(ProducerRegistrationRequirementsImpl regReq, String
namespaceUri, String localName)
+ {
+ if ("fullServiceDescriptionRequiresRegistration".equals(localName))
+ {
+ return regReq.isRegistrationRequiredForFullDescription();
+ }
+
+ return null;
+ }
+
+ public Object getElementValue(ProducerRegistrationRequirementsImpl regReq, String
namespaceUri, String localName)
+ {
+ Object value = null;
+ if ("registration-policy".equals(localName))
+ {
+ RegistrationPolicy policy = regReq.getPolicy();
+ if (policy != null)
+ {
+ value = policy.getClass().getName();
+ }
+ }
+ else if ("registration-property-validator".equals(localName))
+ {
+ RegistrationPolicy policy = regReq.getPolicy();
+ if (policy instanceof DefaultRegistrationPolicy)
+ {
+ DefaultRegistrationPolicy defaultRegistrationPolicy =
(DefaultRegistrationPolicy)policy;
+ value = defaultRegistrationPolicy.getValidator().getClass().getName();
+ }
+ }
+ else
+ {
+ value = null;
+ }
+ return value;
+ }
+
+ public Object getElementValue(RegistrationPropertyDescription propertyDescription,
String namespaceUri, String localName)
+ {
+ Object value = null;
+ if ("name".equals(localName))
+ {
+ value = propertyDescription.getName();
+ }
+ else if ("type".equals(localName))
+ {
+ value = propertyDescription.getType();
+ }
+ else if ("label".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getLabel());
+ }
+ else if ("hint".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getHint());
+ }
+ else if ("description".equals(localName))
+ {
+ value = getLocalizedStringOrNull(propertyDescription.getDescription());
+ }
+ return value;
+ }
+
+ private LocalizedString getLocalizedStringOrNull(LocalizedString string)
+ {
+ if (string != null)
+ {
+ String value = string.getValue();
+ if (value == null || value.length() == 0)
+ {
+ return null;
+ }
+ else
+ {
+ return string;
+ }
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public Object getAttributeValue(LocalizedString localizedString, String namespaceUri,
String localName)
+ {
+ Object value = null;
+ if ("lang".equals(localName))
+ {
+ value = WSRPUtils.toString(localizedString.getLocale());
+ }
+ else if ("resourceName".equals(localName))
+ {
+ value = localizedString.getResourceName();
+ }
+ return value;
+ }
+
+ public Object getElementValue(LocalizedString localizedString, String namespaceUri,
String localName)
+ {
+ return localizedString.getValue();
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationService.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationService.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerConfigurationService.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,50 @@
+/*
+ * 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.config;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 8784 $
+ * @since 2.6
+ */
+public interface ProducerConfigurationService
+{
+ public ProducerConfiguration getConfiguration();
+
+ /**
+ * Reloads the producer configuration from persistent storage.
+ *
+ * @throws Exception
+ * @since 2.6.3
+ */
+ void reloadConfiguration() throws Exception;
+
+ /**
+ * Saves the producer configuration to persistent storage.
+ *
+ * @throws Exception
+ * @since 2.6.3
+ */
+ void saveConfiguration() throws Exception;
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/ProducerRegistrationRequirements.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,116 @@
+/*
+ * 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.config;
+
+import org.jboss.portal.registration.RegistrationPolicy;
+import org.jboss.portal.registration.RegistrationPolicyChangeListener;
+import org.jboss.portal.registration.RegistrationPropertyChangeListener;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+
+import javax.xml.namespace.QName;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision:5865 $
+ * @since 2.6
+ */
+public interface ProducerRegistrationRequirements
+{
+ String DEFAULT_POLICY_CLASS_NAME =
"org.jboss.portal.registration.policies.DefaultRegistrationPolicy";
+ String DEFAULT_VALIDATOR_CLASS_NAME =
"org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator";
+
+ boolean isRegistrationRequired();
+
+ void setRegistrationRequired(boolean requiresRegistration);
+
+ boolean isRegistrationRequiredForFullDescription();
+
+ void setRegistrationRequiredForFullDescription(boolean
fullServiceDescriptionRequiresRegistration);
+
+ Map getRegistrationProperties();
+
+ void addRegistrationProperty(RegistrationPropertyDescription propertyDescription);
+
+ void removeRegistrationProperty(String propertyName);
+
+ void removeRegistrationProperty(QName propertyName);
+
+ void clearRegistrationProperties();
+
+ boolean acceptValueFor(QName propertyName, Object value);
+
+ boolean acceptValueFor(String propertyName, Object value);
+
+ RegistrationPropertyDescription getRegistrationPropertyWith(String name);
+
+ RegistrationPropertyDescription getRegistrationPropertyWith(QName name);
+
+ void notifyRegistrationPropertyChangeListeners();
+
+ void addRegistrationPropertyChangeListener(RegistrationPropertyChangeListener
listener);
+
+ void clearRegistrationPropertyChangeListeners();
+
+ void removeRegistrationPropertyChangeListener(RegistrationPropertyChangeListener
listener);
+
+ void setPolicy(RegistrationPolicy policy);
+
+ RegistrationPolicy getPolicy();
+
+ void reloadPolicyFrom(String policyClassName, String validatorClassName);
+
+ /**
+ * @param propertyDescription
+ * @param oldName
+ * @since 2.6.3
+ */
+ void propertyHasBeenRenamed(RegistrationPropertyDescription propertyDescription, QName
oldName);
+
+ /**
+ * @param name
+ * @since 2.6.3
+ */
+ void addEmptyRegistrationProperty(String name);
+
+ /**
+ * @param listener
+ * @since 2.6.3
+ */
+ void addRegistrationPolicyChangeListener(RegistrationPolicyChangeListener listener);
+
+ /**
+ * @param listener
+ * @since 2.6.3
+ */
+ void removeRegistrationPolicyChangeListener(RegistrationPolicyChangeListener
listener);
+
+ /** @since 2.6.3 */
+ void clearRegistrationPolicyChangeListeners();
+
+ Set<RegistrationPropertyChangeListener> getPropertyChangeListeners();
+
+ Set<RegistrationPolicyChangeListener> getPolicyChangeListeners();
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationImpl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationImpl.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationImpl.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,96 @@
+/*
+ * 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.config.impl;
+
+import org.jboss.portal.common.util.ParameterValidation;
+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 java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12017 $
+ * @since 2.6
+ */
+public class ProducerConfigurationImpl implements ProducerConfiguration
+{
+ private ProducerRegistrationRequirements requirements;
+
+ // use strict mode by default
+ private boolean strictMode = true;
+
+ private List<ProducerConfigurationChangeListener> listeners = new
ArrayList<ProducerConfigurationChangeListener>(7);
+
+ public ProducerRegistrationRequirements getRegistrationRequirements()
+ {
+ if (requirements == null)
+ {
+ requirements = new ProducerRegistrationRequirementsImpl(false, false, false);
+ }
+
+ return requirements;
+ }
+
+ public boolean isUsingStrictMode()
+ {
+ return strictMode;
+ }
+
+ public void setUsingStrictMode(boolean strict)
+ {
+ if (strictMode != strict)
+ {
+ strictMode = strict;
+ for (ProducerConfigurationChangeListener listener : listeners)
+ {
+ listener.usingStrictModeChangedTo(strict);
+ }
+ }
+ }
+
+ public void addChangeListener(ProducerConfigurationChangeListener listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"ProducerConfigurationChangeListener");
+ listeners.add(listener);
+ }
+
+ public void removeChangeListener(ProducerConfigurationChangeListener listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"ProducerConfigurationChangeListener");
+ listeners.remove(listener);
+ }
+
+ public List<ProducerConfigurationChangeListener> getChangeListeners()
+ {
+ return listeners;
+ }
+
+ public void setRegistrationRequirements(ProducerRegistrationRequirements
requirements)
+ {
+ this.requirements = requirements;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerConfigurationServiceImpl.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,291 @@
+/*
+ * 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.config.impl;
+
+import org.jboss.portal.common.net.URLTools;
+import org.jboss.portal.registration.RegistrationPolicyChangeListener;
+import org.jboss.portal.registration.RegistrationPropertyChangeListener;
+import org.jboss.portal.wsrp.producer.config.ProducerConfiguration;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationChangeListener;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationFactory;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationProvider;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationService;
+import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.jboss.xb.binding.JBossXBException;
+import org.jboss.xb.binding.ObjectModelFactory;
+import org.jboss.xb.binding.ObjectModelProvider;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.XercesXsMarshaller;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.io.StringWriter;
+import java.io.Writer;
+import java.net.URL;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12276 $
+ * @since 2.6
+ */
+public class ProducerConfigurationServiceImpl implements ProducerConfigurationService
+{
+ private static final Logger log =
LoggerFactory.getLogger(ProducerConfigurationServiceImpl.class);
+
+ private String configLocation;
+ private ProducerConfiguration configuration;
+
+ private File config;
+
+ private static DefaultSchemaResolver RESOLVER;
+
+ private static final String PRODUCER_NAMESPACE =
"urn:jboss:portal:wsrp:producer:v2_7";
+ private static final String PRODUCER_XSD = "jboss-wsrp-producer_2_7.xsd";
+
+ static
+ {
+ RESOLVER = new DefaultSchemaResolver();
+ RESOLVER.setCacheResolvedSchemas(true);
+
RESOLVER.addSchemaLocation("http://www.w3.org/XML/1998/namespace",
"xsd/xml.xsd");
+ RESOLVER.addSchemaLocation("urn:jboss:portal:wsrp:producer:v2_6",
"xsd/jboss-wsrp-producer_2_6.xsd");
+ RESOLVER.addSchemaLocation(PRODUCER_NAMESPACE, "xsd/" + PRODUCER_XSD);
+ }
+
+ public String getConfigLocation()
+ {
+ return configLocation;
+ }
+
+ public void setConfigLocation(String configLocation)
+ {
+ this.configLocation = configLocation;
+ }
+
+
+ public ProducerConfiguration getConfiguration()
+ {
+ return configuration;
+ }
+
+ public void start() throws Exception
+ {
+ File dataDir;
+ /*MBeanServer server = MBeanServerLocator.locateJBoss();
+ ObjectName oname =
ObjectNameFactory.create("jboss.system:type=ServerConfig");
+ try
+ {
+ dataDir = (File)server.getAttribute(oname, "ServerDataDir");
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Couldn't locate server data dir!",
e);
+ }*/
+
+ // todo: replace by proper location or JCR-based persistence
+ dataDir = new File(System.getProperty("java.io.tmpdir"));
+
+ // if "portal" directory doesn't exist already in data, create it
(JBPORTAL-2229)
+ File portalDir = new File(dataDir, "portal");
+ if (!portalDir.exists())
+ {
+ if (!portalDir.mkdir())
+ {
+ throw new RuntimeException("Couldn't create 'portal'
directory in " + dataDir.getAbsolutePath());
+ }
+ }
+ else
+ {
+ if (!portalDir.isDirectory())
+ {
+ throw new RuntimeException("Was expecting a directory named
'portal' in " + dataDir.getAbsolutePath()
+ + ", not a simple file! Cannot continue.");
+ }
+ }
+
+ config = new File(portalDir, "wsrp-producer-config.xml");
+
+ reloadConfiguration();
+ }
+
+ public void reloadConfiguration() throws Exception
+ {
+ URL configURL = getConfigLocationURL();
+
+ try
+ {
+ loadConfigurationAt(configURL);
+ }
+ catch (Exception e)
+ {
+ if (config.exists())
+ {
+ log.debug("Configuration saved at " + config.getCanonicalPath()
+ + " is not loading properly. Falling back to default
configuration.");
+ config.delete(); // delete improper config so that we retrieve the default
configuration
+ loadConfigurationAt(getConfigLocationURL());
+ }
+ }
+ }
+
+ private void loadConfigurationAt(URL configURL) throws JBossXBException, IOException
+ {
+ log.debug("About to parse producer configuration " + configURL);
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ ObjectModelFactory factory = new ProducerConfigurationFactory();
+
+ // save listeners if we already have a configuration
+ List<ProducerConfigurationChangeListener> listeners = null;
+ Set<RegistrationPolicyChangeListener> policyListeners = null;
+ Set<RegistrationPropertyChangeListener> propertyListeners = null;
+ ProducerRegistrationRequirements registrationRequirements;
+ if (configuration != null)
+ {
+ listeners = configuration.getChangeListeners();
+ registrationRequirements = configuration.getRegistrationRequirements();
+ if (registrationRequirements != null)
+ {
+ policyListeners = registrationRequirements.getPolicyChangeListeners();
+ propertyListeners = registrationRequirements.getPropertyChangeListeners();
+ }
+ }
+
+ // reload
+ configuration =
(ProducerConfiguration)unmarshaller.unmarshal(configURL.openStream(), factory, null);
+
+ // restore listeners
+ if (listeners != null)
+ {
+ for (ProducerConfigurationChangeListener listener : listeners)
+ {
+ configuration.addChangeListener(listener);
+ }
+ }
+ registrationRequirements = configuration.getRegistrationRequirements();
+ if (registrationRequirements != null)
+ {
+ if (propertyListeners != null)
+ {
+ for (RegistrationPropertyChangeListener listener : propertyListeners)
+ {
+ registrationRequirements.addRegistrationPropertyChangeListener(listener);
+ }
+ }
+ if (policyListeners != null)
+ {
+ for (RegistrationPolicyChangeListener listener : policyListeners)
+ {
+ registrationRequirements.addRegistrationPolicyChangeListener(listener);
+ }
+ }
+ }
+ }
+
+ private URL getConfigLocationURL() throws Exception
+ {
+ if (!config.exists())
+ {
+ // Setup URLs
+ if (configLocation == null)
+ {
+ throw new Exception("The config location is null");
+ }
+
+ // make sure we pick the furthest down the path in case there's several
similarly named resources in the path
+ Enumeration resources =
Thread.currentThread().getContextClassLoader().getResources(configLocation);
+ URL configURL = null;
+ while (resources.hasMoreElements())
+ {
+ configURL = (URL)resources.nextElement();
+ }
+
+ if (configURL == null)
+ {
+ throw new Exception("The config " + configLocation + " does
not exist");
+ }
+ if (!URLTools.exists(configURL))
+ {
+ throw new Exception("The config " + configURL + " does not
exist");
+ }
+ return configURL;
+ }
+ else
+ {
+ return config.toURI().toURL();
+ }
+ }
+
+ public void saveConfiguration() throws Exception
+ {
+ // get the output writer to write the XML content
+ StringWriter xmlOutput = new StringWriter();
+
+ // get the XML Schema source
+ InputStream is =
Thread.currentThread().getContextClassLoader().getResourceAsStream("xsd/" +
PRODUCER_XSD);
+
+ Reader xsReader = new InputStreamReader(is);
+
+ // create an instance of XML Schema marshaller
+ XercesXsMarshaller marshaller = new XercesXsMarshaller();
+
+ marshaller.setSchemaResolver(RESOLVER);
+
+ // we need to specify what elements are top most (roots) providing namespace URI,
prefix and local name
+ marshaller.addRootElement(PRODUCER_NAMESPACE, "",
"producer-configuration");
+
+ // declare default namespace
+ marshaller.declareNamespace("wpc", PRODUCER_NAMESPACE);
+
+ // add schema location by declaring xsi namespace and adding xsi:schemaLocation
attribute
+ marshaller.declareNamespace("xsi",
"http://www.w3.org/2001/XMLSchema-instance");
+ marshaller.addAttribute("xsi", "schemaLocation",
"string",
+ PRODUCER_NAMESPACE + "
http://www.jboss.org/portal/xsd/" +
PRODUCER_XSD);
+
+ // create an instance of Object Model Provider
+ ObjectModelProvider provider = new ProducerConfigurationProvider();
+
+ marshaller.setProperty("org.jboss.xml.binding.marshalling.indent",
"true");
+ marshaller.marshal(xsReader, provider, configuration, xmlOutput);
+
+ // close XML Schema reader
+ xsReader.close();
+
+ config.createNewFile();
+ Writer configFile = new BufferedWriter(new FileWriter(config));
+ configFile.write(xmlOutput.toString());
+ configFile.flush();
+ configFile.close();
+ }
+}
Added:
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
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,383 @@
+/*
+ * 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.config.impl;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.registration.RegistrationPolicy;
+import org.jboss.portal.registration.RegistrationPolicyChangeListener;
+import org.jboss.portal.registration.RegistrationPropertyChangeListener;
+import org.jboss.portal.registration.policies.DefaultRegistrationPolicy;
+import org.jboss.portal.registration.policies.DefaultRegistrationPropertyValidator;
+import org.jboss.portal.registration.policies.RegistrationPropertyValidator;
+import org.jboss.portal.wsrp.WSRPConstants;
+import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.xml.namespace.QName;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12017 $
+ * @since 2.6
+ */
+public class ProducerRegistrationRequirementsImpl implements
ProducerRegistrationRequirements
+{
+ private static final Logger log =
LoggerFactory.getLogger(ProducerRegistrationRequirementsImpl.class);
+
+ private boolean requiresRegistration;
+ private boolean fullServiceDescriptionRequiresRegistration;
+ private RegistrationPolicy policy;
+ private String policyClassName;
+ private String validatorClassName;
+
+ private Map<QName, RegistrationPropertyDescription> registrationProperties;
+
+ private Set<RegistrationPropertyChangeListener> propertyChangeListeners = new
HashSet<RegistrationPropertyChangeListener>(3);
+ private Set<RegistrationPolicyChangeListener> policyChangeListeners = new
HashSet<RegistrationPolicyChangeListener>(3);
+
+ public ProducerRegistrationRequirementsImpl(boolean requiresMarshalling, boolean
requiresRegistration, boolean fullServiceDescriptionRequiresRegistration)
+ {
+ this();
+ this.requiresRegistration = requiresRegistration;
+ this.fullServiceDescriptionRequiresRegistration =
fullServiceDescriptionRequiresRegistration;
+ }
+
+ public ProducerRegistrationRequirementsImpl()
+ {
+ registrationProperties = new HashMap<QName,
RegistrationPropertyDescription>(7);
+ }
+
+ public boolean isRegistrationRequired()
+ {
+ return requiresRegistration;
+ }
+
+ public void setRegistrationRequired(boolean requiresRegistration)
+ {
+ // if we switch from requiring registration to no registration, erase registration
properties
+ if (this.requiresRegistration && !requiresRegistration)
+ {
+ clearRegistrationProperties();
+ }
+
+ this.requiresRegistration = requiresRegistration;
+ }
+
+ public boolean isRegistrationRequiredForFullDescription()
+ {
+ return fullServiceDescriptionRequiresRegistration;
+ }
+
+ public void setRegistrationRequiredForFullDescription(boolean
fullServiceDescriptionRequiresRegistration)
+ {
+ this.fullServiceDescriptionRequiresRegistration =
fullServiceDescriptionRequiresRegistration;
+ }
+
+ public Map getRegistrationProperties()
+ {
+ return Collections.unmodifiableMap(registrationProperties);
+ }
+
+ public void addRegistrationProperty(RegistrationPropertyDescription
propertyDescription)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription,
"PropertyDescription");
+ QName name = propertyDescription.getName();
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "Property
name");
+
+ registrationProperties.put(name, propertyDescription);
+ propertyDescription.setParent(this);
+ notifyRegistrationPropertyChangeListeners();
+ }
+
+ public void addEmptyRegistrationProperty(String name)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "Property
name");
+ RegistrationPropertyDescription reg = new RegistrationPropertyDescription(name,
WSRPConstants.XSD_STRING);
+
+ addRegistrationProperty(reg);
+ }
+
+ public boolean acceptValueFor(QName propertyName, Object value)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyName, "Property
name");
+
+ QName type = getPropertyDescription(propertyName).getType();
+ // todo: decide if type is actually compatible with value...
+ return true;
+ }
+
+ public boolean acceptValueFor(String propertyName, Object value)
+ {
+ return acceptValueFor(new QName(propertyName), value);
+ }
+
+ public RegistrationPropertyDescription getRegistrationPropertyWith(String name)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "Property
name", null);
+ return getRegistrationPropertyWith(new QName(name));
+ }
+
+
+ public RegistrationPropertyDescription getRegistrationPropertyWith(QName name)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "Property
name");
+ return registrationProperties.get(name);
+ }
+
+ private RegistrationPropertyDescription getPropertyDescription(QName propertyName)
+ {
+ // copy to ensure immutability
+ return new
RegistrationPropertyDescription(registrationProperties.get(propertyName));
+ }
+
+ public void removeRegistrationProperty(QName propertyName)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyName, "Property
name");
+ registrationProperties.remove(propertyName);
+ notifyRegistrationPropertyChangeListeners();
+ }
+
+ public void clearRegistrationProperties()
+ {
+ registrationProperties.clear();
+ notifyRegistrationPropertyChangeListeners();
+ }
+
+ public void removeRegistrationProperty(String propertyName)
+ {
+ removeRegistrationProperty(new QName(propertyName));
+ }
+
+ /*
+ * == RegistrationPropertyChangeListeners handling ==
+ */
+
+ public void notifyRegistrationPropertyChangeListeners()
+ {
+ for (RegistrationPropertyChangeListener listener : propertyChangeListeners)
+ {
+ listener.propertiesHaveChanged(registrationProperties);
+ }
+ }
+
+ public void clearRegistrationPropertyChangeListeners()
+ {
+ propertyChangeListeners.clear();
+ }
+
+ public void addRegistrationPropertyChangeListener(RegistrationPropertyChangeListener
listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"RegistrationPropertyChangeListener");
+ propertyChangeListeners.add(listener);
+ }
+
+ public void
removeRegistrationPropertyChangeListener(RegistrationPropertyChangeListener listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"RegistrationPropertyChangeListener");
+ propertyChangeListeners.remove(listener);
+ }
+
+ public Set<RegistrationPropertyChangeListener> getPropertyChangeListeners()
+ {
+ return propertyChangeListeners;
+ }
+
+ /*
+ * == RegistrationPolicyChangeListeners handling
+ */
+
+ public void addRegistrationPolicyChangeListener(RegistrationPolicyChangeListener
listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"RegistrationPolicyChangeListener");
+ policyChangeListeners.add(listener);
+ }
+
+ public void removeRegistrationPolicyChangeListener(RegistrationPolicyChangeListener
listener)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(listener,
"RegistrationPolicyChangeListener");
+ policyChangeListeners.remove(listener);
+ }
+
+ public void clearRegistrationPolicyChangeListeners()
+ {
+ policyChangeListeners.clear();
+ }
+
+ public void notifyRegistrationPolicyChangeListeners()
+ {
+ for (RegistrationPolicyChangeListener listener : policyChangeListeners)
+ {
+ listener.policyUpdatedTo(policy);
+ }
+ }
+
+ public Set<RegistrationPolicyChangeListener> getPolicyChangeListeners()
+ {
+ return policyChangeListeners;
+ }
+
+ public void setPolicy(RegistrationPolicy policy)
+ {
+ this.policy = policy;
+
+ if (policy != null)
+ {
+ policyClassName = policy.getClass().getName();
+
+ if (policy instanceof DefaultRegistrationPolicy)
+ {
+ DefaultRegistrationPolicy registrationPolicy =
(DefaultRegistrationPolicy)policy;
+ validatorClassName = registrationPolicy.getValidator().getClass().getName();
+ }
+
+ this.policy.setExpectations(registrationProperties);
+ }
+
+ notifyRegistrationPolicyChangeListeners();
+ }
+
+ public RegistrationPolicy getPolicy()
+ {
+ if (policy == null && requiresRegistration)
+ {
+ reloadPolicyFrom(policyClassName, validatorClassName);
+ }
+
+ return policy;
+ }
+
+ public void reloadPolicyFrom(String policyClassName, String validatorClassName)
+ {
+ if (policyClassName != null &&
!DEFAULT_POLICY_CLASS_NAME.equals(policyClassName))
+ {
+ log.debug("Using registration policy: " + policyClassName);
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ try
+ {
+ Class policyClass = loader.loadClass(policyClassName);
+ Class expectedInterface =
loader.loadClass("org.jboss.portal.registration.RegistrationPolicy");
+ if (!expectedInterface.isAssignableFrom(policyClass))
+ {
+ throw new IllegalArgumentException("Policy class does not implement
RegistrationPolicy!");
+ }
+ RegistrationPolicy policy = (RegistrationPolicy)policyClass.newInstance();
+ setPolicy(policy);
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new IllegalArgumentException("Couldn't find policy class
" + policyClassName + ".", e);
+ }
+ catch (Exception e)
+ {
+ throw new IllegalArgumentException("Couldn't instantiate policy
class.", e);
+ }
+ }
+ else
+ {
+ log.debug("Using default registration policy: " +
DEFAULT_POLICY_CLASS_NAME);
+ RegistrationPropertyValidator validator;
+ if (validatorClassName != null)
+ {
+ log.debug("Using registration property validator: " +
validatorClassName);
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ try
+ {
+ Class validatorClass = loader.loadClass(validatorClassName);
+ Class expectedInterface =
loader.loadClass("org.jboss.portal.registration.policies.RegistrationPropertyValidator");
+ if (!expectedInterface.isAssignableFrom(validatorClass))
+ {
+ throw new IllegalArgumentException("Validator class does not
implement RegistrationPropertyValidator!");
+ }
+ validator = (RegistrationPropertyValidator)validatorClass.newInstance();
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new IllegalArgumentException("Couldn't find validator class
" + validatorClassName + ".", e);
+ }
+ catch (Exception e)
+ {
+ throw new IllegalArgumentException("Couldn't instantiate
validator class.", e);
+ }
+ }
+ else
+ {
+ log.debug("Using default registration property validator: " +
DEFAULT_VALIDATOR_CLASS_NAME);
+ validator = new DefaultRegistrationPropertyValidator();
+ }
+
+
+ DefaultRegistrationPolicy policy = new DefaultRegistrationPolicy();
+ policy.setValidator(validator);
+ setPolicy(policy);
+ }
+ }
+
+ public void propertyHasBeenRenamed(RegistrationPropertyDescription
propertyDescription, QName oldName)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription,
"RegistrationPropertyDescription");
+ ParameterValidation.throwIllegalArgExceptionIfNull(oldName, "property old
name");
+
+ if (registrationProperties.containsKey(oldName))
+ {
+ synchronized (this)
+ {
+ registrationProperties.remove(oldName);
+ registrationProperties.put(propertyDescription.getName(),
propertyDescription);
+ }
+ }
+ }
+
+
+ public void setPolicyClassName(String policyClassName)
+ {
+ this.policyClassName = policyClassName;
+ }
+
+ public String getPolicyClassName()
+ {
+ if (policyClassName == null)
+ {
+ return DEFAULT_POLICY_CLASS_NAME;
+ }
+
+ return policyClassName;
+ }
+
+ public void setValidatorClassName(String validatorClassName)
+ {
+ this.validatorClassName = validatorClassName;
+ }
+
+ public String getValidatorClassName()
+ {
+ return validatorClassName;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/LocalizedString.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/LocalizedString.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/LocalizedString.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,145 @@
+/*
+ * 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.registration;
+
+import org.jboss.portal.common.util.ParameterValidation;
+
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision:5865 $
+ * @since 2.6
+ */
+public class LocalizedString
+{
+ private String value;
+ private Locale locale;
+ private String resourceName;
+
+
+ public LocalizedString(String value, Locale locale)
+ {
+ setValue(value);
+ this.locale = locale;
+ }
+
+
+ public LocalizedString(String value)
+ {
+ this(value, Locale.getDefault());
+ }
+
+ public LocalizedString()
+ {
+ }
+
+ public LocalizedString(LocalizedString other)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(other,
"LocalizedString");
+ this.value = other.value;
+ this.locale = other.locale;
+ this.resourceName = other.resourceName;
+ }
+
+
+ public String toString()
+ {
+ return "LocalizedString{" +
+ "value='" + value + '\'' +
+ ", locale=" + locale +
+ ", resourceName='" + resourceName + '\'' +
+ '}';
+ }
+
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass())
+ {
+ return false;
+ }
+
+ LocalizedString that = (LocalizedString)o;
+
+ if (!locale.equals(that.locale))
+ {
+ return false;
+ }
+ if (resourceName != null ? !resourceName.equals(that.resourceName) :
that.resourceName != null)
+ {
+ return false;
+ }
+ if (value != null ? !value.equals(that.value) : that.value != null)
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ int result;
+ result = (value != null ? value.hashCode() : 0);
+ result = 31 * result + locale.hashCode();
+ result = 31 * result + (resourceName != null ? resourceName.hashCode() : 0);
+ return result;
+ }
+
+ public String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(String value)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(value, "value",
"LocalizedString");
+ this.value = value;
+ }
+
+ public Locale getLocale()
+ {
+ return locale;
+ }
+
+ public void setLocale(Locale locale)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(locale, "locale");
+ this.locale = locale;
+ }
+
+ public String getResourceName()
+ {
+ return resourceName;
+ }
+
+ public void setResourceName(String resourceName)
+ {
+ this.resourceName = resourceName;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/RegistrationPropertyDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/RegistrationPropertyDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/java/org/jboss/portal/wsrp/registration/RegistrationPropertyDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,387 @@
+/*
+ * 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.registration;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.registration.PropertyDescription;
+import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+
+import javax.xml.namespace.QName;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Arrays;
+import java.util.Locale;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision:5865 $
+ * @since 2.6
+ */
+public class RegistrationPropertyDescription implements PropertyDescription
+{
+ private Long key;
+ private QName name;
+ private QName type;
+ private String schemaLocation;
+ private LocalizedString description;
+ private LocalizedString hint;
+ private LocalizedString label;
+ private String[] usages;
+ private QName[] aliases;
+
+ private transient ProducerRegistrationRequirements parent;
+
+ public RegistrationPropertyDescription(QName name, QName type)
+ {
+ this.name = name;
+ this.type = type;
+ }
+
+ public RegistrationPropertyDescription(String name, QName type)
+ {
+ this(new QName(name), type);
+ }
+
+ public RegistrationPropertyDescription()
+ {
+ }
+
+ public RegistrationPropertyDescription(RegistrationPropertyDescription other)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(other,
"RegistrationPropertyDescription");
+
+ setName(new QName(other.name.toString()));
+ setType(new QName(other.type.toString()));
+
+ if (other.aliases != null)
+ {
+ aliases = new QName[other.aliases.length];
+ System.arraycopy(other.aliases, 0, aliases, 0, other.aliases.length);
+ }
+
+ if (other.description != null)
+ {
+ setDescription(new LocalizedString(other.description));
+ }
+ if (other.hint != null)
+ {
+ setHint(new LocalizedString(other.hint));
+ }
+ if (other.label != null)
+ {
+ setLabel(new LocalizedString(other.label));
+ }
+ if (other.schemaLocation != null)
+ {
+ setSchemaLocation(other.schemaLocation);
+ }
+
+ if (other.usages != null)
+ {
+ usages = new String[other.usages.length];
+ System.arraycopy(other.usages, 0, usages, 0, other.usages.length);
+ }
+
+ parent = other.parent;
+ }
+
+
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass())
+ {
+ return false;
+ }
+
+ RegistrationPropertyDescription that = (RegistrationPropertyDescription)o;
+
+ if (key != null ? !key.equals(that.key) : that.key != null)
+ {
+ return false;
+ }
+ if (!name.equals(that.name))
+ {
+ return false;
+ }
+ return type.equals(that.type);
+
+ }
+
+ public int hashCode()
+ {
+ int result;
+ result = (key != null ? key.hashCode() : 0);
+ result = 31 * result + name.hashCode();
+ result = 31 * result + type.hashCode();
+ return result;
+ }
+
+ public String toString()
+ {
+ return "Registration Property Description named '" + name +
+ "', type=" + type +
+ ", hint=" + hint +
+ ", label=" + label;
+ }
+
+
+ public Long getKey()
+ {
+ return key;
+ }
+
+ public void setKey(Long key)
+ {
+ this.key = key;
+ }
+
+ public QName getName()
+ {
+ return name;
+ }
+
+ public void setName(QName name)
+ {
+ if (valueWillBeUpdated(this.name, name))
+ {
+ QName oldName = this.name;
+ this.name = name;
+ if (parent != null)
+ {
+ parent.notifyRegistrationPropertyChangeListeners();
+ parent.propertyHasBeenRenamed(this, oldName);
+ }
+ }
+ }
+
+ public void setNameAsString(String name)
+ {
+ setName(new QName(name));
+ }
+
+ public String getNameAsString()
+ {
+ return getName().getLocalPart();
+ }
+
+ public QName getType()
+ {
+ return type;
+ }
+
+ public void setType(QName type)
+ {
+ this.type = (QName)modifyIfNeeded(this.type, type);
+ }
+
+ public String getSchemaLocation()
+ {
+ return schemaLocation;
+ }
+
+ public URI getSchemaLocationAsURI()
+ {
+ try
+ {
+ return new URI(schemaLocation);
+ }
+ catch (URISyntaxException e)
+ {
+ // shouldn't happen
+ throw new IllegalArgumentException("Invalid URI: " + schemaLocation +
". Cause: " + e.getLocalizedMessage());
+ }
+ }
+
+ public void setSchemaLocation(String schemaLocation)
+ {
+ //
+ if (schemaLocation != null)
+ {
+ // first check if schemaLocation is a valid URI
+ try
+ {
+ new URI(schemaLocation);
+ }
+ catch (URISyntaxException e)
+ {
+ throw new IllegalArgumentException("Invalid URI: " + schemaLocation
+ ". Cause: " + e.getLocalizedMessage());
+ }
+
+ this.schemaLocation = (String)modifyIfNeeded(this.schemaLocation,
schemaLocation);
+ }
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = (LocalizedString)modifyIfNeeded(this.description, description);
+ }
+
+ public void setDefaultDescription(String value)
+ {
+ setDescription(value == null ? null : new LocalizedString(value));
+ }
+
+ public LocalizedString getHint()
+ {
+ return hint;
+ }
+
+ public void setHint(LocalizedString hint)
+ {
+ this.hint = (LocalizedString)modifyIfNeeded(this.hint, hint);
+ }
+
+ public void setDefaultHint(String value)
+ {
+ setHint(value == null ? null : new LocalizedString(value));
+ }
+
+ public LocalizedString getLabel()
+ {
+ return label;
+ }
+
+ public void setLabel(LocalizedString label)
+ {
+ this.label = (LocalizedString)modifyIfNeeded(this.label, label);
+ }
+
+ public void setDefaultLabel(String value)
+ {
+ setLabel(value == null ? null : new LocalizedString(value));
+ }
+
+ public String[] getUsages()
+ {
+ return usages;
+ }
+
+ public void setUsages(String[] usages)
+ {
+ if (!Arrays.equals(this.usages, usages))
+ {
+ if (usages != null)
+ {
+ this.usages = new String[usages.length];
+ System.arraycopy(usages, 0, this.usages, 0, usages.length);
+ }
+ else
+ {
+ this.usages = null;
+ }
+ notifyParentOfChangeIfNeeded();
+ }
+ }
+
+ public QName[] getAliases()
+ {
+ return aliases;
+ }
+
+ public void setAliases(QName[] aliases)
+ {
+ if (!Arrays.equals(this.aliases, aliases))
+ {
+ if (aliases != null)
+ {
+ this.aliases = new QName[aliases.length];
+ System.arraycopy(aliases, 0, this.aliases, 0, aliases.length);
+ }
+ else
+ {
+ this.aliases = null;
+ }
+ notifyParentOfChangeIfNeeded();
+ }
+ }
+
+ public void setParent(ProducerRegistrationRequirements requirements)
+ {
+ this.parent = requirements;
+ }
+
+ private void notifyParentOfChangeIfNeeded()
+ {
+ if (parent != null)
+ {
+ parent.notifyRegistrationPropertyChangeListeners();
+ }
+ }
+
+ public Object modifyIfNeeded(Object oldValue, Object newValue)
+ {
+ if (valueWillBeUpdated(oldValue, newValue))
+ {
+ oldValue = newValue;
+ notifyParentOfChangeIfNeeded();
+ }
+
+ return oldValue;
+ }
+
+ private boolean valueWillBeUpdated(Object oldValue, Object newValue)
+ {
+ return (oldValue != null && !oldValue.equals(newValue)) || (oldValue ==
null && newValue != null);
+ }
+
+ /**
+ * Tries to heuristically determine the language for this
RegistrationPropertyDescription
+ *
+ * @return
+ */
+ public Locale getLang()
+ {
+ Locale defaultLocale = Locale.getDefault();
+ Locale locale;
+
+ locale = label != null ? label.getLocale() : defaultLocale;
+ if (!defaultLocale.equals(locale))
+ {
+ return locale;
+ }
+
+ locale = hint != null ? hint.getLocale() : defaultLocale;
+ if (!defaultLocale.equals(locale))
+ {
+ return locale;
+ }
+
+ locale = description != null ? description.getLocale() : defaultLocale;
+ if (!defaultLocale.equals(locale))
+ {
+ return locale;
+ }
+
+ return defaultLocale;
+ }
+}
Added: jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/context.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/context.xml
(rev 0)
+++ jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/context.xml 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<Context privileged="true"/>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/jaxrpc-mappings.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/jaxrpc-mappings.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/jaxrpc-mappings.xml 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,2052 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<java-wsdl-mapping
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ version="1.1"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
+ <package-mapping>
+ <package-type>org.jboss.portal.wsrp.core</package-type>
+ <namespaceURI>urn:oasis:names:tc:wsrp:v1:wsdl</namespaceURI>
+ </package-mapping>
+ <package-mapping>
+ <package-type>org.jboss.portal.wsrp.core</package-type>
+ <namespaceURI>urn:oasis:names:tc:wsrp:v1:types</namespaceURI>
+ </package-mapping>
+ <package-mapping>
+ <package-type>org.jboss.portal.wsrp.core</package-type>
+ <namespaceURI>urn:oasis:names:tc:wsrp:v1:intf</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ClonePortlet</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>clonePortlet</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.UpdateResponse</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UpdateResponse</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>sessionContext</java-variable-name>
+ <xml-element-name>sessionContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupContext</java-variable-name>
+ <xml-element-name>markupContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>navigationalState</java-variable-name>
+ <xml-element-name>navigationalState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>newWindowState</java-variable-name>
+ <xml-element-name>newWindowState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>newMode</java-variable-name>
+ <xml-element-name>newMode</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Contact</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Contact</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>postal</java-variable-name>
+ <xml-element-name>postal</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>telecom</java-variable-name>
+ <xml-element-name>telecom</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>online</java-variable-name>
+ <xml-element-name>online</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ModifyRegistration</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>modifyRegistration</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>registrationData</java-variable-name>
+ <xml-element-name>registrationData</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ModelDescription</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ModelDescription</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>propertyDescriptions</java-variable-name>
+ <xml-element-name>propertyDescriptions</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>modelTypes</java-variable-name>
+ <xml-element-name>modelTypes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.InitCookie</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>initCookie</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse</java-type>
+ <root-type-qname
+
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PortletPropertyDescriptionResponse
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>modelDescription</java-variable-name>
+ <xml-element-name>modelDescription</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resourceList</java-variable-name>
+ <xml-element-name>resourceList</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.UserProfile</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UserProfile</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-element-name>name</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>bdate</java-variable-name>
+ <xml-element-name>bdate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>gender</java-variable-name>
+ <xml-element-name>gender</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>employerInfo</java-variable-name>
+ <xml-element-name>employerInfo</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>homeInfo</java-variable-name>
+ <xml-element-name>homeInfo</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>businessInfo</java-variable-name>
+ <xml-element-name>businessInfo</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.UnsupportedModeFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UnsupportedModeFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault</java-type>
+ <root-type-qname
+
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PortletStateChangeRequiredFault
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.LocalizedString</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:LocalizedString</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>lang</java-variable-name>
+ <xml-attribute-name>lang</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resourceName</java-variable-name>
+ <xml-attribute-name>resourceName</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>value</java-variable-name>
+ <xml-element-name>value</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.BlockingInteractionResponse</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:BlockingInteractionResponse
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>updateResponse</java-variable-name>
+ <xml-element-name>updateResponse</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>redirectURL</java-variable-name>
+ <xml-element-name>redirectURL</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.SessionContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:SessionContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>sessionID</java-variable-name>
+ <xml-element-name>sessionID</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>expires</java-variable-name>
+ <xml-element-name>expires</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Telecom</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Telecom</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>telephone</java-variable-name>
+ <xml-element-name>telephone</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>fax</java-variable-name>
+ <xml-element-name>fax</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>mobile</java-variable-name>
+ <xml-element-name>mobile</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>pager</java-variable-name>
+ <xml-element-name>pager</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.OperationFailedFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:OperationFailedFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.PersonName</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PersonName</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>prefix</java-variable-name>
+ <xml-element-name>prefix</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>given</java-variable-name>
+ <xml-element-name>given</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>family</java-variable-name>
+ <xml-element-name>family</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>middle</java-variable-name>
+ <xml-element-name>middle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>suffix</java-variable-name>
+ <xml-element-name>suffix</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>nickname</java-variable-name>
+ <xml-element-name>nickname</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ResourceList</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ResourceList</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>resources</java-variable-name>
+ <xml-element-name>resources</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.InvalidRegistrationFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InvalidRegistrationFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.InvalidHandleFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InvalidHandleFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.MarkupType</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:MarkupType</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>mimeType</java-variable-name>
+ <xml-element-name>mimeType</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>modes</java-variable-name>
+ <xml-element-name>modes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>windowStates</java-variable-name>
+ <xml-element-name>windowStates</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>locales</java-variable-name>
+ <xml-element-name>locales</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.RegistrationContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:RegistrationContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationHandle</java-variable-name>
+ <xml-element-name>registrationHandle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>registrationState</java-variable-name>
+ <xml-element-name>registrationState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Online</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Online</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>email</java-variable-name>
+ <xml-element-name>email</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>uri</java-variable-name>
+ <xml-element-name>uri</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ReturnAny</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ReturnAny</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.GetPortletProperties</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletProperties</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>names</java-variable-name>
+ <xml-element-name>names</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.InvalidSessionFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InvalidSessionFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.PropertyList</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PropertyList</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>properties</java-variable-name>
+ <xml-element-name>properties</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resetProperties</java-variable-name>
+ <xml-element-name>resetProperties</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.PropertyDescription</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PropertyDescription</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-attribute-name>name</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>type</java-variable-name>
+ <xml-attribute-name>type</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>label</java-variable-name>
+ <xml-element-name>label</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>hint</java-variable-name>
+ <xml-element-name>hint</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.GetPortletPropertyDescription</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletPropertyDescription</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>desiredLocales</java-variable-name>
+ <xml-element-name>desiredLocales</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.PortletDescriptionResponse</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PortletDescriptionResponse
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>portletDescription</java-variable-name>
+ <xml-element-name>portletDescription</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resourceList</java-variable-name>
+ <xml-element-name>resourceList</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.EmployerInfo</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:EmployerInfo</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>employer</java-variable-name>
+ <xml-element-name>employer</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>department</java-variable-name>
+ <xml-element-name>department</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>jobtitle</java-variable-name>
+ <xml-element-name>jobtitle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ResourceValue</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ResourceValue</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>lang</java-variable-name>
+ <xml-attribute-name>lang</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>value</java-variable-name>
+ <xml-element-name>value</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.UploadContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UploadContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>mimeType</java-variable-name>
+ <xml-element-name>mimeType</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>uploadData</java-variable-name>
+ <xml-element-name>uploadData</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>mimeAttributes</java-variable-name>
+ <xml-element-name>mimeAttributes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Templates</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Templates</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>defaultTemplate</java-variable-name>
+ <xml-element-name>defaultTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>blockingActionTemplate</java-variable-name>
+ <xml-element-name>blockingActionTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>renderTemplate</java-variable-name>
+ <xml-element-name>renderTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resourceTemplate</java-variable-name>
+ <xml-element-name>resourceTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>secureDefaultTemplate</java-variable-name>
+ <xml-element-name>secureDefaultTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+
<java-variable-name>secureBlockingActionTemplate</java-variable-name>
+ <xml-element-name>secureBlockingActionTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>secureRenderTemplate</java-variable-name>
+ <xml-element-name>secureRenderTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>secureResourceTemplate</java-variable-name>
+ <xml-element-name>secureResourceTemplate</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.AccessDeniedFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:AccessDeniedFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.GetServiceDescription</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getServiceDescription</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>desiredLocales</java-variable-name>
+ <xml-element-name>desiredLocales</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Extension</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>_any</java-variable-name>
+ <xml-wildcard/>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.SetPortletProperties</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>setPortletProperties</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>propertyList</java-variable-name>
+ <xml-element-name>propertyList</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.RegistrationState</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:RegistrationState</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationState</java-variable-name>
+ <xml-element-name>registrationState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ResetProperty</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ResetProperty</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-attribute-name>name</xml-attribute-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.InvalidCookieFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InvalidCookieFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ReleaseSessions</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>releaseSessions</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>sessionIDs</java-variable-name>
+ <xml-element-name>sessionIDs</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Postal</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Postal</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-element-name>name</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>street</java-variable-name>
+ <xml-element-name>street</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>city</java-variable-name>
+ <xml-element-name>city</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>stateprov</java-variable-name>
+ <xml-element-name>stateprov</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>postalcode</java-variable-name>
+ <xml-element-name>postalcode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>country</java-variable-name>
+ <xml-element-name>country</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>organization</java-variable-name>
+ <xml-element-name>organization</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UnsupportedMimeTypeFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.UnsupportedLocaleFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UnsupportedLocaleFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.MissingParametersFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:MissingParametersFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.RuntimeContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:RuntimeContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>userAuthentication</java-variable-name>
+ <xml-element-name>userAuthentication</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletInstanceKey</java-variable-name>
+ <xml-element-name>portletInstanceKey</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>namespacePrefix</java-variable-name>
+ <xml-element-name>namespacePrefix</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>templates</java-variable-name>
+ <xml-element-name>templates</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>sessionID</java-variable-name>
+ <xml-element-name>sessionID</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.UserContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UserContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>userContextKey</java-variable-name>
+ <xml-element-name>userContextKey</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userCategories</java-variable-name>
+ <xml-element-name>userCategories</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>profile</java-variable-name>
+ <xml-element-name>profile</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Resource</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Resource</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>resourceName</java-variable-name>
+ <xml-attribute-name>resourceName</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>values</java-variable-name>
+ <xml-element-name>values</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ItemDescription</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ItemDescription</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>itemName</java-variable-name>
+ <xml-attribute-name>itemName</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>description</java-variable-name>
+ <xml-element-name>description</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.InvalidUserCategoryFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InvalidUserCategoryFault</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.PortletDescription</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PortletDescription</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>portletHandle</java-variable-name>
+ <xml-element-name>portletHandle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupTypes</java-variable-name>
+ <xml-element-name>markupTypes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>groupID</java-variable-name>
+ <xml-element-name>groupID</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>description</java-variable-name>
+ <xml-element-name>description</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>shortTitle</java-variable-name>
+ <xml-element-name>shortTitle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>title</java-variable-name>
+ <xml-element-name>title</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>displayName</java-variable-name>
+ <xml-element-name>displayName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>keywords</java-variable-name>
+ <xml-element-name>keywords</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userCategories</java-variable-name>
+ <xml-element-name>userCategories</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userProfileItems</java-variable-name>
+ <xml-element-name>userProfileItems</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>usesMethodGet</java-variable-name>
+ <xml-element-name>usesMethodGet</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>defaultMarkupSecure</java-variable-name>
+ <xml-element-name>defaultMarkupSecure</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>onlySecure</java-variable-name>
+ <xml-element-name>onlySecure</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContextStoredInSession</java-variable-name>
+ <xml-element-name>userContextStoredInSession</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>templatesStoredInSession</java-variable-name>
+ <xml-element-name>templatesStoredInSession</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>hasUserSpecificState</java-variable-name>
+ <xml-element-name>hasUserSpecificState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>doesUrlTemplateProcessing</java-variable-name>
+ <xml-element-name>doesUrlTemplateProcessing</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.RegistrationData</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:RegistrationData</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>consumerName</java-variable-name>
+ <xml-element-name>consumerName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>consumerAgent</java-variable-name>
+ <xml-element-name>consumerAgent</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>methodGetSupported</java-variable-name>
+ <xml-element-name>methodGetSupported</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>consumerModes</java-variable-name>
+ <xml-element-name>consumerModes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>consumerWindowStates</java-variable-name>
+ <xml-element-name>consumerWindowStates</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>consumerUserScopes</java-variable-name>
+ <xml-element-name>consumerUserScopes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>customUserProfileData</java-variable-name>
+ <xml-element-name>customUserProfileData</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>registrationProperties</java-variable-name>
+ <xml-element-name>registrationProperties</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ModelTypes</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ModelTypes</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>_any</java-variable-name>
+ <xml-wildcard/>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.InteractionParams</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InteractionParams</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>portletStateChange</java-variable-name>
+ <xml-element-name>portletStateChange</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>interactionState</java-variable-name>
+ <xml-element-name>interactionState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>formParameters</java-variable-name>
+ <xml-element-name>formParameters</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>uploadContexts</java-variable-name>
+ <xml-element-name>uploadContexts</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.NamedString</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:NamedString</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-attribute-name>name</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>value</java-variable-name>
+ <xml-element-name>value</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.MarkupParams</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:MarkupParams</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>secureClientCommunication</java-variable-name>
+ <xml-element-name>secureClientCommunication</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>locales</java-variable-name>
+ <xml-element-name>locales</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>mimeTypes</java-variable-name>
+ <xml-element-name>mimeTypes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>mode</java-variable-name>
+ <xml-element-name>mode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>windowState</java-variable-name>
+ <xml-element-name>windowState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>clientData</java-variable-name>
+ <xml-element-name>clientData</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>navigationalState</java-variable-name>
+ <xml-element-name>navigationalState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupCharacterSets</java-variable-name>
+ <xml-element-name>markupCharacterSets</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>validateTag</java-variable-name>
+ <xml-element-name>validateTag</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>validNewModes</java-variable-name>
+ <xml-element-name>validNewModes</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>validNewWindowStates</java-variable-name>
+ <xml-element-name>validNewWindowStates</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ClientData</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ClientData</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>userAgent</java-variable-name>
+ <xml-element-name>userAgent</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.PerformBlockingInteraction</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>performBlockingInteraction</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>runtimeContext</java-variable-name>
+ <xml-element-name>runtimeContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupParams</java-variable-name>
+ <xml-element-name>markupParams</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>interactionParams</java-variable-name>
+ <xml-element-name>interactionParams</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.GetPortletDescription</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletDescription</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>desiredLocales</java-variable-name>
+ <xml-element-name>desiredLocales</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.ServiceDescription</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:ServiceDescription</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>requiresRegistration</java-variable-name>
+ <xml-element-name>requiresRegistration</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>offeredPortlets</java-variable-name>
+ <xml-element-name>offeredPortlets</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userCategoryDescriptions</java-variable-name>
+ <xml-element-name>userCategoryDescriptions</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+
<java-variable-name>customUserProfileItemDescriptions</java-variable-name>
+
<xml-element-name>customUserProfileItemDescriptions</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+
<java-variable-name>customWindowStateDescriptions</java-variable-name>
+ <xml-element-name>customWindowStateDescriptions</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>customModeDescriptions</java-variable-name>
+ <xml-element-name>customModeDescriptions</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>requiresInitCookie</java-variable-name>
+ <xml-element-name>requiresInitCookie</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+
<java-variable-name>registrationPropertyDescription</java-variable-name>
+
<xml-element-name>registrationPropertyDescription</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>locales</java-variable-name>
+ <xml-element-name>locales</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>resourceList</java-variable-name>
+ <xml-element-name>resourceList</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.CacheControl</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:CacheControl</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>expires</java-variable-name>
+ <xml-element-name>expires</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userScope</java-variable-name>
+ <xml-element-name>userScope</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>validateTag</java-variable-name>
+ <xml-element-name>validateTag</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.GetMarkup</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getMarkup</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletContext</java-variable-name>
+ <xml-element-name>portletContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>runtimeContext</java-variable-name>
+ <xml-element-name>runtimeContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>userContext</java-variable-name>
+ <xml-element-name>userContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupParams</java-variable-name>
+ <xml-element-name>markupParams</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.InconsistentParametersFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:InconsistentParametersFault
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.DestroyFailed</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:DestroyFailed</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>portletHandle</java-variable-name>
+ <xml-element-name>portletHandle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>reason</java-variable-name>
+ <xml-element-name>reason</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.TelephoneNum</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:TelephoneNum</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>intcode</java-variable-name>
+ <xml-element-name>intcode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>loccode</java-variable-name>
+ <xml-element-name>loccode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>number</java-variable-name>
+ <xml-element-name>number</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>ext</java-variable-name>
+ <xml-element-name>ext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>comment</java-variable-name>
+ <xml-element-name>comment</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.PortletContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:PortletContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>portletHandle</java-variable-name>
+ <xml-element-name>portletHandle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletState</java-variable-name>
+ <xml-element-name>portletState</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Property</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:Property</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-attribute-name>name</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>lang</java-variable-name>
+ <xml-attribute-name>lang</xml-attribute-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>stringValue</java-variable-name>
+ <xml-element-name>stringValue</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>_any</java-variable-name>
+ <xml-wildcard/>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.UnsupportedWindowStateFault</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:UnsupportedWindowStateFault
+ </root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.MarkupResponse</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:MarkupResponse</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>markupContext</java-variable-name>
+ <xml-element-name>markupContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>sessionContext</java-variable-name>
+ <xml-element-name>sessionContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+
<java-type>org.jboss.portal.wsrp.core.DestroyPortletsResponse</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:DestroyPortletsResponse</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>destroyFailed</java-variable-name>
+ <xml-element-name>destroyFailed</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.DestroyPortlets</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>destroyPortlets</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>registrationContext</java-variable-name>
+ <xml-element-name>registrationContext</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>portletHandles</java-variable-name>
+ <xml-element-name>portletHandles</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.MarkupContext</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:MarkupContext</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>useCachedMarkup</java-variable-name>
+ <xml-element-name>useCachedMarkup</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>mimeType</java-variable-name>
+ <xml-element-name>mimeType</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupString</java-variable-name>
+ <xml-element-name>markupString</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>markupBinary</java-variable-name>
+ <xml-element-name>markupBinary</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>locale</java-variable-name>
+ <xml-element-name>locale</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>requiresUrlRewriting</java-variable-name>
+ <xml-element-name>requiresUrlRewriting</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>cacheControl</java-variable-name>
+ <xml-element-name>cacheControl</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>preferredTitle</java-variable-name>
+ <xml-element-name>preferredTitle</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>extensions</java-variable-name>
+ <xml-element-name>extensions</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Contact>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ModelDescription>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PortletPropertyDescriptionResponse>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:UserProfile>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:BlockingInteractionResponse>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:SessionContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Telecom>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PersonName>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ResourceList>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:MarkupType>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:RegistrationContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Online>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ReturnAny>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletProperties>names[1,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PropertyList>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PropertyDescription>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletPropertyDescription>desiredLocales[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PortletDescriptionResponse>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:EmployerInfo>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ResourceValue>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:UploadContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Templates>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getServiceDescription>desiredLocales[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:RegistrationState>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>releaseSessions>sessionIDs[1,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Postal>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:RuntimeContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:UserContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:Resource>extensions[0,unbounded]</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ItemDescription>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PortletDescription>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:RegistrationData>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:InteractionParams>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:MarkupParams>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ClientData>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>getPortletDescription>desiredLocales[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:ServiceDescription>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:CacheControl>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:TelephoneNum>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:PortletContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:MarkupResponse>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:DestroyPortletsResponse>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>java.lang.String[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:>destroyPortlets>portletHandles[1,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.Extension[]</java-type>
+
<anonymous-type-qname>urn:oasis:names:tc:wsrp:v1:types:MarkupContext>extensions[0,unbounded]
+ </anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.StateChange</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:StateChange</root-type-qname>
+ <qname-scope>simpleType</qname-scope>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.portal.wsrp.core.CookieProtocol</java-type>
+ <root-type-qname
xmlns:typeNS="urn:oasis:names:tc:wsrp:v1:types">typeNS:CookieProtocol</root-type-qname>
+ <qname-scope>simpleType</qname-scope>
+ </java-xml-type-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InvalidHandleFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InvalidHandle</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InvalidSessionFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InvalidSession</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.MissingParametersFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:MissingParameters</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InvalidCookieFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InvalidCookie</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InconsistentParametersFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InconsistentParameters</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:UnsupportedMimeType</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.AccessDeniedFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:AccessDenied</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:PortletStateChangeRequired</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InvalidRegistrationFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InvalidRegistration</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.OperationFailedFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:OperationFailed</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.InvalidUserCategoryFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:InvalidUserCategory</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.UnsupportedWindowStateFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:UnsupportedWindowState</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.UnsupportedModeFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:UnsupportedMode</wsdl-message>
+ </exception-mapping>
+ <exception-mapping>
+
<exception-type>org.jboss.portal.wsrp.core.UnsupportedLocaleFault</exception-type>
+ <wsdl-message
xmlns:exMsgNS="urn:oasis:names:tc:wsrp:v1:intf">exMsgNS:UnsupportedLocale</wsdl-message>
+ </exception-mapping>
+ <service-interface-mapping>
+
<service-interface>org.jboss.portal.wsrp.core.WSRPService</service-interface>
+ <wsdl-service-name
xmlns:serviceNS="urn:oasis:names:tc:wsrp:v1:wsdl">serviceNS:WSRPService</wsdl-service-name>
+ <port-mapping>
+ <port-name>WSRPMarkupService</port-name>
+ <java-port-name>WSRPMarkupService</java-port-name>
+ </port-mapping>
+ <port-mapping>
+ <port-name>WSRPServiceDescriptionService</port-name>
+ <java-port-name>WSRPServiceDescriptionService</java-port-name>
+ </port-mapping>
+ <port-mapping>
+ <port-name>WSRPRegistrationService</port-name>
+ <java-port-name>WSRPRegistrationService</java-port-name>
+ </port-mapping>
+ <port-mapping>
+ <port-name>WSRPPortletManagementService</port-name>
+ <java-port-name>WSRPPortletManagementService</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType</service-endpoint-interface>
+ <wsdl-port-type
xmlns:portTypeNS="urn:oasis:names:tc:wsrp:v1:intf">portTypeNS:WSRP_v1_Markup_PortType
+ </wsdl-port-type>
+ <wsdl-binding
xmlns:bindingNS="urn:oasis:names:tc:wsrp:v1:bind">bindingNS:WSRP_v1_Markup_Binding_SOAP
+ </wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>getMarkup</java-method-name>
+ <wsdl-operation>getMarkup</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>org.jboss.portal.wsrp.core.GetMarkup</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getMarkup</wsdl-message>
+ <wsdl-message-part-name>getMarkup</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.MarkupResponse</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getMarkupResponse</wsdl-message>
+
<wsdl-message-part-name>getMarkupResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>performBlockingInteraction</java-method-name>
+ <wsdl-operation>performBlockingInteraction</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.PerformBlockingInteraction</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:performBlockingInteraction
+ </wsdl-message>
+
<wsdl-message-part-name>performBlockingInteraction</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.BlockingInteractionResponse</method-return-value>
+ <wsdl-message
+
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:performBlockingInteractionResponse
+ </wsdl-message>
+
<wsdl-message-part-name>performBlockingInteractionResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>releaseSessions</java-method-name>
+ <wsdl-operation>releaseSessions</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.ReleaseSessions</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:releaseSessions</wsdl-message>
+
<wsdl-message-part-name>releaseSessions</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.ReturnAny</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:releaseSessionsResponse
+ </wsdl-message>
+
<wsdl-message-part-name>releaseSessionsResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>initCookie</java-method-name>
+ <wsdl-operation>initCookie</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>org.jboss.portal.wsrp.core.InitCookie</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:initCookie</wsdl-message>
+ <wsdl-message-part-name>initCookie</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.ReturnAny</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:initCookieResponse</wsdl-message>
+
<wsdl-message-part-name>initCookieResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType
+ </service-endpoint-interface>
+ <wsdl-port-type
+
xmlns:portTypeNS="urn:oasis:names:tc:wsrp:v1:intf">portTypeNS:WSRP_v1_ServiceDescription_PortType
+ </wsdl-port-type>
+ <wsdl-binding
+
xmlns:bindingNS="urn:oasis:names:tc:wsrp:v1:bind">bindingNS:WSRP_v1_ServiceDescription_Binding_SOAP
+ </wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>getServiceDescription</java-method-name>
+ <wsdl-operation>getServiceDescription</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.GetServiceDescription</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getServiceDescription
+ </wsdl-message>
+
<wsdl-message-part-name>getServiceDescription</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.ServiceDescription</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getServiceDescriptionResponse
+ </wsdl-message>
+
<wsdl-message-part-name>getServiceDescriptionResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType</service-endpoint-interface>
+ <wsdl-port-type
+
xmlns:portTypeNS="urn:oasis:names:tc:wsrp:v1:intf">portTypeNS:WSRP_v1_Registration_PortType
+ </wsdl-port-type>
+ <wsdl-binding
+
xmlns:bindingNS="urn:oasis:names:tc:wsrp:v1:bind">bindingNS:WSRP_v1_Registration_Binding_SOAP
+ </wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>register</java-method-name>
+ <wsdl-operation>register</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.RegistrationData</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:register</wsdl-message>
+ <wsdl-message-part-name>register</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.RegistrationContext</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:registerResponse</wsdl-message>
+
<wsdl-message-part-name>registerResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>deregister</java-method-name>
+ <wsdl-operation>deregister</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.RegistrationContext</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:deregister</wsdl-message>
+ <wsdl-message-part-name>deregister</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.ReturnAny</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:deregisterResponse</wsdl-message>
+
<wsdl-message-part-name>deregisterResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>modifyRegistration</java-method-name>
+ <wsdl-operation>modifyRegistration</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.ModifyRegistration</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:modifyRegistration
+ </wsdl-message>
+
<wsdl-message-part-name>modifyRegistration</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.RegistrationState</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:modifyRegistrationResponse
+ </wsdl-message>
+
<wsdl-message-part-name>modifyRegistrationResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType
+ </service-endpoint-interface>
+ <wsdl-port-type
+
xmlns:portTypeNS="urn:oasis:names:tc:wsrp:v1:intf">portTypeNS:WSRP_v1_PortletManagement_PortType
+ </wsdl-port-type>
+ <wsdl-binding
+
xmlns:bindingNS="urn:oasis:names:tc:wsrp:v1:bind">bindingNS:WSRP_v1_PortletManagement_Binding_SOAP
+ </wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>getPortletDescription</java-method-name>
+ <wsdl-operation>getPortletDescription</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.GetPortletDescription</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletDescription
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletDescription</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.PortletDescriptionResponse</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletDescriptionResponse
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletDescriptionResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>clonePortlet</java-method-name>
+ <wsdl-operation>clonePortlet</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>org.jboss.portal.wsrp.core.ClonePortlet</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:clonePortlet</wsdl-message>
+ <wsdl-message-part-name>clonePortlet</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.PortletContext</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:clonePortletResponse
+ </wsdl-message>
+
<wsdl-message-part-name>clonePortletResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>destroyPortlets</java-method-name>
+ <wsdl-operation>destroyPortlets</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.DestroyPortlets</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:destroyPortlets</wsdl-message>
+
<wsdl-message-part-name>destroyPortlets</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.DestroyPortletsResponse</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:destroyPortletsResponse
+ </wsdl-message>
+
<wsdl-message-part-name>destroyPortletsResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>setPortletProperties</java-method-name>
+ <wsdl-operation>setPortletProperties</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.SetPortletProperties</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:setPortletProperties
+ </wsdl-message>
+
<wsdl-message-part-name>setPortletProperties</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.PortletContext</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:setPortletPropertiesResponse
+ </wsdl-message>
+
<wsdl-message-part-name>setPortletPropertiesResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>getPortletProperties</java-method-name>
+ <wsdl-operation>getPortletProperties</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.GetPortletProperties</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletProperties
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletProperties</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.PropertyList</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletPropertiesResponse
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletPropertiesResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>getPortletPropertyDescription</java-method-name>
+ <wsdl-operation>getPortletPropertyDescription</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+
<param-type>org.jboss.portal.wsrp.core.GetPortletPropertyDescription</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletPropertyDescription
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletPropertyDescription</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse</method-return-value>
+ <wsdl-message
+
xmlns:wsdlMsgNS="urn:oasis:names:tc:wsrp:v1:intf">wsdlMsgNS:getPortletPropertyDescriptionResponse
+ </wsdl-message>
+
<wsdl-message-part-name>getPortletPropertyDescriptionResponse</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/jaxrpc-mappings.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/web.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/web.xml 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <!-- Filter to put request and response in ServletAccess -->
+ <!-- <filter>
+ <filter-name>ServletAccessFilter</filter-name>
+
<filter-class>org.jboss.portal.wsrp.servlet.ServletAccessFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ServletAccessFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>-->
+
+ <!-- Wraps WSRP requests in transactions -->
+ <!--<filter>
+ <filter-name>TransactionFilter</filter-name>
+
<filter-class>org.jboss.portal.wsrp.servlet.TransactionFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>TransactionFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>-->
+
+ <!-- To listen to portlet deployments -->
+ <servlet>
+ <servlet-name>ContainerServlet</servlet-name>
+
<servlet-class>org.jboss.portal.web.impl.tomcat.TC6ContainerServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <listener>
+
<listener-class>org.jboss.portal.wsrp.exo.KernelListener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>WSRPExoInt</servlet-name>
+
<servlet-class>org.jboss.portal.wsrp.exo.ExoKernelIntegration</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+
+ <!-- WSRP Endpoints -->
+ <servlet>
+ <servlet-name>ServiceDescriptionService</servlet-name>
+
<servlet-class>org.jboss.portal.wsrp.endpoints.ServiceDescriptionEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+
<param-value>org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>MarkupService</servlet-name>
+
<servlet-class>org.jboss.portal.wsrp.endpoints.MarkupEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+
<param-value>org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>RegistrationService</servlet-name>
+
<servlet-class>org.jboss.portal.wsrp.endpoints.RegistrationEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+
<param-value>org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType</param-value>
+ </init-param>
+ </servlet>
+ <servlet>
+ <servlet-name>PortletManagementService</servlet-name>
+
<servlet-class>org.jboss.portal.wsrp.endpoints.PortletManagementEndpoint</servlet-class>
+ <init-param>
+ <param-name>wsrp-interface</param-name>
+
<param-value>org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType</param-value>
+ </init-param>
+ </servlet>
+
+ <!-- WSRP endpoint mappings -->
+ <servlet-mapping>
+ <servlet-name>ServiceDescriptionService</servlet-name>
+ <url-pattern>/ServiceDescriptionService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>MarkupService</servlet-name>
+ <url-pattern>/MarkupService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>RegistrationService</servlet-name>
+ <url-pattern>/RegistrationService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>PortletManagementService</servlet-name>
+ <url-pattern>/PortletManagementService</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
Added: jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/webservices.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/webservices.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/webservices.xml 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<webservices
xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:impl="urn:oasis:names:tc:wsrp:v1:wsdl"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
+ version="1.1">
+
+ <webservice-description>
+ <webservice-description-name>WSRPService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/wsrp_services.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mappings.xml</jaxrpc-mapping-file>
+
+ <port-component>
+
<port-component-name>WSRPServiceDescriptionService</port-component-name>
+ <wsdl-port>impl:WSRPServiceDescriptionService</wsdl-port>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType
+ </service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>ServiceDescriptionService</servlet-link>
+ </service-impl-bean>
+ <handler>
+ <handler-name>ExtensionHandler</handler-name>
+
<handler-class>org.jboss.portal.wsrp.handler.WSRPExtensionHandler</handler-class>
+ <!--<init-param>
+ <param-name>debug</param-name>
+ <param-value>true</param-value>
+ </init-param>-->
+ <init-param>
+ <param-name>removeExtensions</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </handler>
+ </port-component>
+
+ <port-component>
+ <port-component-name>WSRPBaseService</port-component-name>
+ <wsdl-port>impl:WSRPBaseService</wsdl-port>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>MarkupService</servlet-link>
+ </service-impl-bean>
+ <handler>
+ <handler-name>ExtensionHandler</handler-name>
+
<handler-class>org.jboss.portal.wsrp.handler.WSRPExtensionHandler</handler-class>
+ <!--<init-param>
+ <param-name>debug</param-name>
+ <param-value>true</param-value>
+ </init-param>-->
+ <init-param>
+ <param-name>removeExtensions</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </handler>
+ </port-component>
+
+ <port-component>
+ <port-component-name>WSRPRegistrationService</port-component-name>
+ <wsdl-port>impl:WSRPRegistrationService</wsdl-port>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType
+ </service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>RegistrationService</servlet-link>
+ </service-impl-bean>
+ <handler>
+ <handler-name>ExtensionHandler</handler-name>
+
<handler-class>org.jboss.portal.wsrp.handler.WSRPExtensionHandler</handler-class>
+ <!--<init-param>
+ <param-name>debug</param-name>
+ <param-value>true</param-value>
+ </init-param>-->
+ <init-param>
+ <param-name>removeExtensions</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </handler>
+ </port-component>
+
+ <port-component>
+
<port-component-name>WSRPPortletManagementService</port-component-name>
+ <wsdl-port>impl:WSRPPortletManagementService</wsdl-port>
+
<service-endpoint-interface>org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType
+ </service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>PortletManagementService</servlet-link>
+ </service-impl-bean>
+ <handler>
+ <handler-name>ExtensionHandler</handler-name>
+
<handler-class>org.jboss.portal.wsrp.handler.WSRPExtensionHandler</handler-class>
+ <!--<init-param>
+ <param-name>debug</param-name>
+ <param-value>true</param-value>
+ </init-param>-->
+ <init-param>
+ <param-name>removeExtensions</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </handler>
+ </port-component>
+ </webservice-description>
+
+</webservices>
\ No newline at end of file
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/webservices.xml
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:wsdl"
+ xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns:tns="urn:oasis:names:tc:wsrp:v1:wsdl">
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:bind"
location="wsrp_v1_bindings.wsdl"/>
+
+ <wsdl:service name="WSRPService">
+ <wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP"
name="WSRPBaseService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP"
name="WSRPServiceDescriptionService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP"
name="WSRPRegistrationService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP"
name="WSRPPortletManagementService">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <!--
+ Uncomment to use HTTP+SSL after activating the appropriate Tomcat Connector and
comment out the above service
+ definition. Adapt host name and port as appropriate.
+ <wsdl:service name="WSRPService">
+ <wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP"
name="WSRPBaseService">
+ <soap:address
location="https://localhost:8443/portal-wsrp/ServiceDescriptionService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP"
name="WSRPServiceDescriptionService">
+ <soap:address
location="https://localhost:8443/portal-wsrp/MarkupService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP"
name="WSRPRegistrationService">
+ <soap:address
location="https://localhost:8443/portal-wsrp/RegistrationService"/>
+ </wsdl:port>
+
+ <wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP"
name="WSRPPortletManagementService">
+ <soap:address
location="https://localhost:8443/portal-wsrp/PortletManagementService"/>
+ </wsdl:port>
+ </wsdl:service>-->
+</wsdl:definitions>
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_services.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,440 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:bind"
+ xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <!-- This file reflects v1.0 of the specification -->
+
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:intf"
+ location="wsrp_v1_interfaces.wsdl"/>
+
+ <wsdl:binding name="WSRP_v1_Markup_Binding_SOAP"
type="intf:WSRP_v1_Markup_PortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getMarkup">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:getMarkup"/>
+ <wsdl:input name="getMarkup">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getMarkupResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidCookie">
+ <soap:fault name="InvalidCookie" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidSession">
+ <soap:fault name="InvalidSession" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMode">
+ <soap:fault name="UnsupportedMode" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedWindowState">
+ <soap:fault name="UnsupportedWindowState"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedLocale">
+ <soap:fault name="UnsupportedLocale"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMimeType">
+ <soap:fault name="UnsupportedMimeType"
use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="performBlockingInteraction">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:performBlockingInteraction"/>
+ <wsdl:input name="performBlockingInteraction">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="performBlockingInteractionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="PortletStateChangeRequired">
+ <soap:fault name="PortletStateChangeRequired"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidCookie">
+ <soap:fault name="InvalidCookie" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidSession">
+ <soap:fault name="InvalidSession" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMode">
+ <soap:fault name="UnsupportedMode" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedWindowState">
+ <soap:fault name="UnsupportedWindowState"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedLocale">
+ <soap:fault name="UnsupportedLocale"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="UnsupportedMimeType">
+ <soap:fault name="UnsupportedMimeType"
use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="releaseSessions">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:releaseSessions"/>
+ <wsdl:input name="releaseSessions">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="releaseSessionsResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="initCookie">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:initCookie"/>
+ <wsdl:input name="initCookie">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="initCookieResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+
+ <wsdl:binding name="WSRP_v1_ServiceDescription_Binding_SOAP"
type="intf:WSRP_v1_ServiceDescription_PortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getServiceDescription">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:getServiceDescription"/>
+ <wsdl:input name="getServiceDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getServiceDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="WSRP_v1_PortletManagement_Binding_SOAP"
type="intf:WSRP_v1_PortletManagement_PortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getPortletDescription">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:getPortletDescription"/>
+ <wsdl:input name="getPortletDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="clonePortlet">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:clonePortlet"/>
+ <wsdl:input name="clonePortlet">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="clonePortletResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="destroyPortlets">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:destroyPortlets"/>
+ <wsdl:input name="destroyPortlets">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="destroyPortletsResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="setPortletProperties">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:setPortletProperties"/>
+ <wsdl:input name="setPortletProperties">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="setPortletPropertiesResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletProperties">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:getPortletProperties"/>
+ <wsdl:input name="getPortletProperties">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletPropertiesResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletPropertyDescription">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:getPortletPropertyDescription"/>
+ <wsdl:input name="getPortletPropertyDescription">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getPortletPropertyDescriptionResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="AccessDenied">
+ <soap:fault name="AccessDenied" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidUserCategory">
+ <soap:fault name="InvalidUserCategory"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InconsistentParameters">
+ <soap:fault name="InconsistentParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="InvalidHandle">
+ <soap:fault name="InvalidHandle" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="WSRP_v1_Registration_Binding_SOAP"
type="intf:WSRP_v1_Registration_PortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="register">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:register"/>
+ <wsdl:input name="register">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="registerResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="deregister">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:deregister"/>
+ <wsdl:input name="deregister">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="deregisterResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ <wsdl:operation name="modifyRegistration">
+ <soap:operation
soapAction="urn:oasis:names:tc:wsrp:v1:modifyRegistration"/>
+ <wsdl:input name="modifyRegistration">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="modifyRegistrationResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="InvalidRegistration">
+ <soap:fault name="InvalidRegistration"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="MissingParameters">
+ <soap:fault name="MissingParameters"
use="literal"/>
+ </wsdl:fault>
+ <wsdl:fault name="OperationFailed">
+ <soap:fault name="OperationFailed" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+</wsdl:definitions>
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_bindings.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
===================================================================
---
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,372 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:intf"
+ xmlns:types="urn:oasis:names:tc:wsrp:v1:types"
+ xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf"
+
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+
+ <!-- This file reflects v1.0 of the specification -->
+
+ <wsdl:types>
+ <schema targetNamespace="urn:oasis:names:tc:wsrp:v1:intf"
+
xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <import namespace="urn:oasis:names:tc:wsrp:v1:types"
schemaLocation="wsrp_v1_types.xsd"/>
+
+ </schema>
+ </wsdl:types>
+
+
+ <!-- - - - - - - - - -->
+ <!-- fault messages -->
+ <!-- - - - - - - - - -->
+
+ <wsdl:message name="AccessDenied">
+ <wsdl:part name="fault" element="types:AccessDenied"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidUserCategory">
+ <wsdl:part name="fault"
element="types:InvalidUserCategory"/>
+ </wsdl:message>
+
+ <wsdl:message name="InconsistentParameters">
+ <wsdl:part name="fault"
element="types:InconsistentParameters"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidRegistration">
+ <wsdl:part name="fault"
element="types:InvalidRegistration"/>
+ </wsdl:message>
+
+ <wsdl:message name="MissingParameters">
+ <wsdl:part name="fault"
element="types:MissingParameters"/>
+ </wsdl:message>
+
+ <wsdl:message name="OperationFailed">
+ <wsdl:part name="fault"
element="types:OperationFailed"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidHandle">
+ <wsdl:part name="fault" element="types:InvalidHandle"/>
+ </wsdl:message>
+
+ <wsdl:message name="PortletStateChangeRequired">
+ <wsdl:part name="fault"
element="types:PortletStateChangeRequired"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidCookie">
+ <wsdl:part name="fault" element="types:InvalidCookie"/>
+ </wsdl:message>
+
+ <wsdl:message name="InvalidSession">
+ <wsdl:part name="fault" element="types:InvalidSession"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedMode">
+ <wsdl:part name="fault"
element="types:UnsupportedMode"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedWindowState">
+ <wsdl:part name="fault"
element="types:UnsupportedWindowState"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedLocale">
+ <wsdl:part name="fault"
element="types:UnsupportedLocale"/>
+ </wsdl:message>
+
+ <wsdl:message name="UnsupportedMimeType">
+ <wsdl:part name="fault"
element="types:UnsupportedMimeType"/>
+ </wsdl:message>
+
+
+ <!-- - - - - - - - - - - -->
+ <!-- Operations messages -->
+ <!-- - - - - - - - - - - -->
+
+ <wsdl:message name="getMarkup">
+ <wsdl:part name="getMarkup" element="types:getMarkup"/>
+ </wsdl:message>
+ <wsdl:message name="getMarkupResponse">
+ <wsdl:part name="getMarkupResponse"
element="types:getMarkupResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="performBlockingInteraction">
+ <wsdl:part name="performBlockingInteraction"
element="types:performBlockingInteraction"/>
+ </wsdl:message>
+ <wsdl:message name="performBlockingInteractionResponse">
+ <wsdl:part name="performBlockingInteractionResponse"
element="types:performBlockingInteractionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getServiceDescription">
+ <wsdl:part name="getServiceDescription"
element="types:getServiceDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getServiceDescriptionResponse">
+ <wsdl:part name="getServiceDescriptionResponse"
element="types:getServiceDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="register">
+ <wsdl:part name="register" element="types:register"/>
+ </wsdl:message>
+ <wsdl:message name="registerResponse">
+ <wsdl:part name="registerResponse"
element="types:registerResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="deregister">
+ <wsdl:part name="deregister"
element="types:deregister"/>
+ </wsdl:message>
+ <wsdl:message name="deregisterResponse">
+ <wsdl:part name="deregisterResponse"
element="types:deregisterResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="modifyRegistration">
+ <wsdl:part name="modifyRegistration"
element="types:modifyRegistration"/>
+ </wsdl:message>
+ <wsdl:message name="modifyRegistrationResponse">
+ <wsdl:part name="modifyRegistrationResponse"
element="types:modifyRegistrationResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletDescription">
+ <wsdl:part name="getPortletDescription"
element="types:getPortletDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletDescriptionResponse">
+ <wsdl:part name="getPortletDescriptionResponse"
element="types:getPortletDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="clonePortlet">
+ <wsdl:part name="clonePortlet"
element="types:clonePortlet"/>
+ </wsdl:message>
+ <wsdl:message name="clonePortletResponse">
+ <wsdl:part name="clonePortletResponse"
element="types:clonePortletResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="destroyPortlets">
+ <wsdl:part name="destroyPortlets"
element="types:destroyPortlets"/>
+ </wsdl:message>
+ <wsdl:message name="destroyPortletsResponse">
+ <wsdl:part name="destroyPortletsResponse"
element="types:destroyPortletsResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="setPortletProperties">
+ <wsdl:part name="setPortletProperties"
element="types:setPortletProperties"/>
+ </wsdl:message>
+ <wsdl:message name="setPortletPropertiesResponse">
+ <wsdl:part name="setPortletPropertiesResponse"
element="types:setPortletPropertiesResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletProperties">
+ <wsdl:part name="getPortletProperties"
element="types:getPortletProperties"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletPropertiesResponse">
+ <wsdl:part name="getPortletPropertiesResponse"
element="types:getPortletPropertiesResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="getPortletPropertyDescription">
+ <wsdl:part name="getPortletPropertyDescription"
element="types:getPortletPropertyDescription"/>
+ </wsdl:message>
+ <wsdl:message name="getPortletPropertyDescriptionResponse">
+ <wsdl:part name="getPortletPropertyDescriptionResponse"
element="types:getPortletPropertyDescriptionResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="releaseSessions">
+ <wsdl:part name="releaseSessions"
element="types:releaseSessions"/>
+ </wsdl:message>
+ <wsdl:message name="releaseSessionsResponse">
+ <wsdl:part name="releaseSessionsResponse"
element="types:releaseSessionsResponse"/>
+ </wsdl:message>
+
+ <wsdl:message name="initCookie">
+ <wsdl:part name="initCookie"
element="types:initCookie"/>
+ </wsdl:message>
+ <wsdl:message name="initCookieResponse">
+ <wsdl:part name="initCookieResponse"
element="types:initCookieResponse"/>
+ </wsdl:message>
+
+ <wsdl:portType name="WSRP_v1_Markup_PortType">
+ <wsdl:operation name="getMarkup">
+ <wsdl:input message="intf:getMarkup"
name="getMarkup"/>
+ <wsdl:output message="intf:getMarkupResponse"
name="getMarkupResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ <wsdl:fault message="intf:InvalidCookie"
name="InvalidCookie"/>
+ <wsdl:fault message="intf:InvalidSession"
name="InvalidSession"/>
+ <wsdl:fault message="intf:UnsupportedMode"
name="UnsupportedMode"/>
+ <wsdl:fault message="intf:UnsupportedWindowState"
name="UnsupportedWindowState"/>
+ <wsdl:fault message="intf:UnsupportedLocale"
name="UnsupportedLocale"/>
+ <wsdl:fault message="intf:UnsupportedMimeType"
name="UnsupportedMimeType"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="performBlockingInteraction">
+ <wsdl:input message="intf:performBlockingInteraction"
name="performBlockingInteraction"/>
+ <wsdl:output message="intf:performBlockingInteractionResponse"
name="performBlockingInteractionResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ <wsdl:fault message="intf:PortletStateChangeRequired"
name="PortletStateChangeRequired"/>
+ <wsdl:fault message="intf:InvalidCookie"
name="InvalidCookie"/>
+ <wsdl:fault message="intf:InvalidSession"
name="InvalidSession"/>
+ <wsdl:fault message="intf:UnsupportedMode"
name="UnsupportedMode"/>
+ <wsdl:fault message="intf:UnsupportedWindowState"
name="UnsupportedWindowState"/>
+ <wsdl:fault message="intf:UnsupportedLocale"
name="UnsupportedLocale"/>
+ <wsdl:fault message="intf:UnsupportedMimeType"
name="UnsupportedMimeType"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="releaseSessions">
+ <wsdl:input message="intf:releaseSessions"
name="releaseSessions"/>
+ <wsdl:output message="intf:releaseSessionsResponse"
name="releaseSessionsResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="initCookie">
+ <wsdl:input message="intf:initCookie"
name="initCookie"/>
+ <wsdl:output message="intf:initCookieResponse"
name="initCookieResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_ServiceDescription_PortType">
+ <wsdl:operation name="getServiceDescription">
+ <wsdl:input message="intf:getServiceDescription"
name="getServiceDescription"/>
+ <wsdl:output message="intf:getServiceDescriptionResponse"
name="getServiceDescriptionResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_Registration_PortType">
+ <wsdl:operation name="register">
+ <wsdl:input message="intf:register" name="register"/>
+ <wsdl:output message="intf:registerResponse"
name="registerResponse"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="deregister">
+ <wsdl:input message="intf:deregister"
name="deregister"/>
+ <wsdl:output message="intf:deregisterResponse"
name="deregisterResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="modifyRegistration">
+ <wsdl:input message="intf:modifyRegistration"
name="modifyRegistration"/>
+ <wsdl:output message="intf:modifyRegistrationResponse"
name="modifyRegistrationResponse"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="WSRP_v1_PortletManagement_PortType">
+ <wsdl:operation name="getPortletDescription">
+ <wsdl:input message="intf:getPortletDescription"
name="getPortletDescription"/>
+ <wsdl:output message="intf:getPortletDescriptionResponse"
name="getPortletDescriptionResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="clonePortlet">
+ <wsdl:input message="intf:clonePortlet"
name="clonePortlet"/>
+ <wsdl:output message="intf:clonePortletResponse"
name="clonePortletResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="destroyPortlets">
+ <wsdl:input message="intf:destroyPortlets"
name="destroyPortlets"/>
+ <wsdl:output message="intf:destroyPortletsResponse"
name="destroyPortletsResponse"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="setPortletProperties">
+ <wsdl:input message="intf:setPortletProperties"
name="setPortletProperties"/>
+ <wsdl:output message="intf:setPortletPropertiesResponse"
name="setPortletPropertiesResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletProperties">
+ <wsdl:input message="intf:getPortletProperties"
name="getPortletProperties"/>
+ <wsdl:output message="intf:getPortletPropertiesResponse"
name="getPortletPropertiesResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="getPortletPropertyDescription">
+ <wsdl:input message="intf:getPortletPropertyDescription"
name="getPortletPropertyDescription"/>
+ <wsdl:output message="intf:getPortletPropertyDescriptionResponse"
+ name="getPortletPropertyDescriptionResponse"/>
+ <wsdl:fault message="intf:AccessDenied"
name="AccessDenied"/>
+ <wsdl:fault message="intf:InvalidUserCategory"
name="InvalidUserCategory"/>
+ <wsdl:fault message="intf:InconsistentParameters"
name="InconsistentParameters"/>
+ <wsdl:fault message="intf:InvalidRegistration"
name="InvalidRegistration"/>
+ <wsdl:fault message="intf:MissingParameters"
name="MissingParameters"/>
+ <wsdl:fault message="intf:OperationFailed"
name="OperationFailed"/>
+ <wsdl:fault message="intf:InvalidHandle"
name="InvalidHandle"/>
+ </wsdl:operation>
+ </wsdl:portType>
+</wsdl:definitions>
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_interfaces.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
===================================================================
--- jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
(rev 0)
+++
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,878 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<schema targetNamespace="urn:oasis:names:tc:wsrp:v1:types"
+ xmlns:types="urn:oasis:names:tc:wsrp:v1:types"
+
+
xmlns="http://www.w3.org/2001/XMLSchema"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
+ elementFormDefault="qualified">
+
+ <!-- This file reflects v1.0 of the specification -->
+
+ <import
namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
+ <!-- - - - - - - - - - - - - - - - - -->
+ <!-- General types used throughout -->
+ <!-- - - - - - - - - - - - - - - - - -->
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout
the
+ rest of these definitions as not all stacks are able to handle restrictions on
strings
+ -->
+ <simpleType name="Handle">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="255"/>
+ </restriction>
+ </simpleType>
+ <element name="Handle" type="types:Handle"/>
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout
the
+ rest of these definitions as not all stacks are able to handle restrictions on
strings
+ -->
+ <simpleType name="ID">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="4096"/>
+ </restriction>
+ </simpleType>
+ <element name="ID" type="types:ID"/>
+
+ <!-- This definition matches the WSRP v1 specification, but is not used throughout
the
+ rest of these definitions as not all stacks are able to handle restrictions on
strings
+ -->
+ <simpleType name="Key">
+ <restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="255"/>
+ </restriction>
+ </simpleType>
+ <element name="Key" type="types:Key"/>
+
+ <complexType name="Extension">
+ <sequence>
+ <!-- JBoss modification: added processContents="skip" to better
process extensions. -->
+ <any namespace="##other" processContents="skip"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="LocalizedString">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ </sequence>
+ <attribute ref="xml:lang" use="required"/>
+ <attribute name="resourceName" type="xsd:string"/>
+ </complexType>
+
+ <complexType name="ResourceList">
+ <sequence>
+ <element name="resources" type="types:Resource"
maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Resource">
+ <sequence>
+ <element name="values" type="types:ResourceValue"
maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="resourceName" type="xsd:string"
use="required"/>
+ </complexType>
+
+ <complexType name="ResourceValue">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute ref="xml:lang" use="required"/>
+ </complexType>
+
+ <complexType name="StringArray">
+ <sequence>
+ <element name="String" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="StringArray" type="types:StringArray"/>
+
+ <complexType name="NamedString">
+ <sequence>
+ <element name="value" type="xsd:string"/>
+ </sequence>
+ <attribute name="name" type="xsd:string"
use="required"/>
+ </complexType>
+
+ <complexType name="NamedStringArray">
+ <sequence>
+ <element name="NamedString" type="types:NamedString"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="NamedStringArray"
type="types:NamedStringArray"/>
+
+ <!-- - - - - - - - - -->
+ <!-- Producer types -->
+ <!-- - - - - - - - - -->
+
+ <complexType name="RegistrationData">
+ <sequence>
+ <element name="consumerName" type="xsd:string"/>
+ <element name="consumerAgent" type="xsd:string"/>
+ <element name="methodGetSupported"
type="xsd:boolean"/>
+ <element name="consumerModes" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="consumerWindowStates" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="consumerUserScopes" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="customUserProfileData" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="registrationProperties"
type="types:Property" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationData"
type="types:RegistrationData"/>
+
+ <complexType name="RegistrationState">
+ <sequence>
+ <element name="registrationState" type="xsd:base64Binary"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationState"
type="types:RegistrationState"/>
+
+ <complexType name="RegistrationContext">
+ <sequence>
+ <!-- <element name="registrationHandle"
type="types:Handle"/>
+ JAX-RPC RI doesn't handle restrictions on xsd:string
+ -->
+ <element name="registrationHandle"
type="xsd:string"/>
+ <element name="registrationState" type="xsd:base64Binary"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RegistrationContext"
type="types:RegistrationContext"/>
+
+ <complexType name="SessionContext">
+ <sequence>
+ <element name="sessionID" type="xsd:string"/>
+ <element name="expires" type="xsd:int"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="SessionContext"
type="types:SessionContext"/>
+
+ <complexType name="RuntimeContext">
+ <sequence>
+ <element name="userAuthentication"
type="xsd:string"/>
+ <element name="portletInstanceKey" type="xsd:string"
minOccurs="0"/>
+ <element name="namespacePrefix" type="xsd:string"
minOccurs="0"/>
+ <element name="templates" type="types:Templates"
minOccurs="0"/>
+ <element name="sessionID" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="RuntimeContext"
type="types:RuntimeContext"/>
+
+ <complexType name="ItemDescription">
+ <sequence>
+ <element name="description"
type="types:LocalizedString"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="itemName" type="xsd:string"
use="required"/>
+ </complexType>
+
+ <simpleType name="CookieProtocol">
+ <restriction base="xsd:string">
+ <enumeration value="none"/>
+ <enumeration value="perUser"/>
+ <enumeration value="perGroup"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="ServiceDescription">
+ <sequence>
+ <element name="requiresRegistration"
type="xsd:boolean"/>
+ <element name="offeredPortlets"
type="types:PortletDescription" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="userCategoryDescriptions"
type="types:ItemDescription" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="customUserProfileItemDescriptions"
type="types:ItemDescription" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <element name="customWindowStateDescriptions"
type="types:ItemDescription" minOccurs="0"
+ maxOccurs="unbounded"/>
+ <element name="customModeDescriptions"
type="types:ItemDescription" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="requiresInitCookie"
type="types:CookieProtocol" default="none"
minOccurs="0"/>
+ <element name="registrationPropertyDescription"
type="types:ModelDescription" minOccurs="0"/>
+ <element name="locales" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="resourceList" type="types:ResourceList"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ServiceDescription"
type="types:ServiceDescription"/>
+
+
+ <!-- - - - - - - - - - - - - - - - - - - -->
+ <!-- Portlet types (metadata and runtime) -->
+ <!-- - - - - - - - - - - - - - - - - - - -->
+
+ <complexType name="MarkupType">
+ <sequence>
+ <element name="mimeType" type="xsd:string"/>
+ <element name="modes" type="xsd:string"
maxOccurs="unbounded"/>
+ <element name="windowStates" type="xsd:string"
maxOccurs="unbounded"/>
+ <element name="locales" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletDescription">
+ <sequence>
+ <!-- <element name="portletHandle"
type="types:Handle"/> -->
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="markupTypes" type="types:MarkupType"
maxOccurs="unbounded"/>
+ <element name="groupID" type="xsd:string"
minOccurs="0"/>
+ <element name="description" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="shortTitle" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="title" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="displayName" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="keywords" type="types:LocalizedString"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="userCategories" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="userProfileItems" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="usesMethodGet" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="defaultMarkupSecure" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="onlySecure" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="userContextStoredInSession"
type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="templatesStoredInSession"
type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="hasUserSpecificState" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="doesUrlTemplateProcessing"
type="xsd:boolean" default="false" minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletDescriptionResponse">
+ <sequence>
+ <element name="portletDescription"
type="types:PortletDescription"/>
+ <element name="resourceList" type="types:ResourceList"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PortletContext">
+ <sequence>
+ <!-- <element name="portletHandle"
type="types:Handle"/> -->
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="portletState" type="xsd:base64Binary"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="PortletContext"
type="types:PortletContext"/>
+
+ <complexType name="DestroyFailed">
+ <sequence>
+ <element name="portletHandle" type="xsd:string"/>
+ <element name="reason" type="xsd:string"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - -->
+ <!-- Markup oriented types -->
+ <!-- - - - - - - - - - - - -->
+
+ <complexType name="ClientData">
+ <sequence>
+ <element name="userAgent" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ClientData" type="types:ClientData"/>
+
+ <complexType name="CacheControl">
+ <sequence>
+ <element name="expires" type="xsd:int"/>
+ <element name="userScope" type="xsd:string"/>
+ <element name="validateTag" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Templates">
+ <sequence>
+ <element name="defaultTemplate" type="xsd:string"
nillable="true"/>
+ <element name="blockingActionTemplate" type="xsd:string"
minOccurs="0"/>
+ <element name="renderTemplate" type="xsd:string"
minOccurs="0"/>
+ <element name="resourceTemplate" type="xsd:string"
minOccurs="0"/>
+ <element name="secureDefaultTemplate" type="xsd:string"
nillable="true"/>
+ <element name="secureBlockingActionTemplate"
type="xsd:string" minOccurs="0"/>
+ <element name="secureRenderTemplate" type="xsd:string"
minOccurs="0"/>
+ <element name="secureResourceTemplate" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="Templates" type="types:Templates"/>
+
+ <complexType name="MarkupParams">
+ <sequence>
+ <element name="secureClientCommunication"
type="xsd:boolean"/>
+ <element name="locales" type="xsd:string"
maxOccurs="unbounded"/>
+ <element name="mimeTypes" type="xsd:string"
maxOccurs="unbounded"/>
+ <element name="mode" type="xsd:string"/>
+ <element name="windowState" type="xsd:string"/>
+ <element name="clientData" type="types:ClientData"
minOccurs="0"/>
+ <element name="navigationalState" type="xsd:string"
minOccurs="0"/>
+ <element name="markupCharacterSets" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="validateTag" type="xsd:string"
minOccurs="0"/>
+ <element name="validNewModes" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="validNewWindowStates" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="MarkupParams" type="types:MarkupParams"/>
+
+ <complexType name="MarkupResponse">
+ <sequence>
+ <element name="markupContext"
type="types:MarkupContext"/>
+ <element name="sessionContext"
type="types:SessionContext" minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="MarkupContext">
+ <sequence>
+ <element name="useCachedMarkup" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="mimeType" type="xsd:string"
minOccurs="0"/>
+ <element name="markupString" type="xsd:string"
minOccurs="0"/>
+ <element name="markupBinary" type="xsd:base64Binary"
minOccurs="0"/>
+ <element name="locale" type="xsd:string"
minOccurs="0"/>
+ <element name="requiresUrlRewriting" type="xsd:boolean"
default="false" minOccurs="0"/>
+ <element name="cacheControl" type="types:CacheControl"
minOccurs="0"/>
+ <element name="preferredTitle" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - - - - -->
+ <!-- Interaction oriented types -->
+ <!-- - - - - - - - - - - - - - - -->
+
+ <simpleType name="StateChange">
+ <restriction base="xsd:string">
+ <enumeration value="readWrite"/>
+ <enumeration value="cloneBeforeWrite"/>
+ <enumeration value="readOnly"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="UploadContext">
+ <sequence>
+ <element name="mimeType" type="xsd:string"/>
+ <element name="uploadData" type="xsd:base64Binary"/>
+ <element name="mimeAttributes" type="types:NamedString"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="InteractionParams">
+ <sequence>
+ <element name="portletStateChange"
type="types:StateChange"/>
+ <element name="interactionState" type="xsd:string"
minOccurs="0"/>
+ <element name="formParameters" type="types:NamedString"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="uploadContexts" type="types:UploadContext"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="InteractionParams"
type="types:InteractionParams"/>
+
+ <complexType name="UpdateResponse">
+ <sequence>
+ <element name="sessionContext"
type="types:SessionContext" minOccurs="0"/>
+ <element name="portletContext"
type="types:PortletContext" minOccurs="0"/>
+ <element name="markupContext" type="types:MarkupContext"
minOccurs="0"/>
+ <element name="navigationalState" type="xsd:string"
nillable="true"/>
+ <element name="newWindowState" type="xsd:string"
minOccurs="0"/>
+ <element name="newMode" type="xsd:string"
minOccurs="0"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="BlockingInteractionResponse">
+ <sequence>
+ <!-- Would prefer this to be a choice ... Axis and JAX-RPC failed to handle
that -->
+ <element name="updateResponse"
type="types:UpdateResponse" minOccurs="0"/>
+ <element name="redirectURL" type="xsd:string"
minOccurs="0"/>
+ <!-- end prefer this to be a choice -->
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="BlockingInteractionResponse"
type="types:BlockingInteractionResponse"/>
+
+ <!-- - - - - - - - - - - -->
+ <!-- User Profile types -->
+ <!-- - - - - - - - - - - -->
+
+ <complexType name="Postal">
+ <sequence>
+ <element name="name" type="xsd:string"
minOccurs="0"/>
+ <element name="street" type="xsd:string"
minOccurs="0"/>
+ <element name="city" type="xsd:string"
minOccurs="0"/>
+ <element name="stateprov" type="xsd:string"
minOccurs="0"/>
+ <element name="postalcode" type="xsd:string"
minOccurs="0"/>
+ <element name="country" type="xsd:string"
minOccurs="0"/>
+ <element name="organization" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="TelephoneNum">
+ <sequence>
+ <element name="intcode" type="xsd:string"
minOccurs="0"/>
+ <element name="loccode" type="xsd:string"
minOccurs="0"/>
+ <element name="number" type="xsd:string"
minOccurs="0"/>
+ <element name="ext" type="xsd:string"
minOccurs="0"/>
+ <element name="comment" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Telecom">
+ <sequence>
+ <element name="telephone" type="types:TelephoneNum"
minOccurs="0"/>
+ <element name="fax" type="types:TelephoneNum"
minOccurs="0"/>
+ <element name="mobile" type="types:TelephoneNum"
minOccurs="0"/>
+ <element name="pager" type="types:TelephoneNum"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Online">
+ <sequence>
+ <element name="email" type="xsd:string"
minOccurs="0"/>
+ <element name="uri" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="Contact">
+ <sequence>
+ <element name="postal" type="types:Postal"
minOccurs="0"/>
+ <element name="telecom" type="types:Telecom"
minOccurs="0"/>
+ <element name="online" type="types:Online"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="Contact" type="types:Contact"/>
+
+ <complexType name="EmployerInfo">
+ <sequence>
+ <element name="employer" type="xsd:string"
minOccurs="0"/>
+ <element name="department" type="xsd:string"
minOccurs="0"/>
+ <element name="jobtitle" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PersonName">
+ <sequence>
+ <element name="prefix" type="xsd:string"
minOccurs="0"/>
+ <element name="given" type="xsd:string"
minOccurs="0"/>
+ <element name="family" type="xsd:string"
minOccurs="0"/>
+ <element name="middle" type="xsd:string"
minOccurs="0"/>
+ <element name="suffix" type="xsd:string"
minOccurs="0"/>
+ <element name="nickname" type="xsd:string"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="UserProfile">
+ <sequence>
+ <element name="name" type="types:PersonName"
minOccurs="0"/>
+ <element name="bdate" type="xsd:dateTime"
minOccurs="0"/>
+ <element name="gender" type="xsd:string"
minOccurs="0"/>
+ <element name="employerInfo" type="types:EmployerInfo"
minOccurs="0"/>
+ <element name="homeInfo" type="types:Contact"
minOccurs="0"/>
+ <element name="businessInfo" type="types:Contact"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="UserContext">
+ <sequence>
+ <element name="userContextKey" type="xsd:string"/>
+ <element name="userCategories" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="profile" type="types:UserProfile"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="UserContext" type="types:UserContext"/>
+
+ <!-- - - - - - - - - -->
+ <!-- Property types -->
+ <!-- - - - - - - - - -->
+
+ <complexType name="Property">
+ <sequence>
+ <!-- Would prefer this to be a choice ... Axis and JAX-RPC failed to handle
that -->
+ <element name="stringValue" type="xsd:string"
minOccurs="0"/>
+ <!-- JBoss modification: added processContents="skip" to better
process extensions. -->
+ <any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="skip"/>
+ <!-- end prefer this to be a choice -->
+ </sequence>
+ <attribute name="name" type="xsd:string"
use="required"/>
+ <attribute ref="xml:lang"/>
+ </complexType>
+
+ <complexType name="ResetProperty">
+ <sequence/>
+ <attribute name="name" type="xsd:string"
use="required"/>
+ </complexType>
+
+ <complexType name="PropertyList">
+ <sequence>
+ <element name="properties" type="types:Property"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="resetProperties"
type="types:ResetProperty" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="PropertyList" type="types:PropertyList"/>
+
+ <complexType name="PropertyDescription">
+ <sequence>
+ <element name="label" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="hint" type="types:LocalizedString"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="xsd:string"
use="required"/>
+ <attribute name="type" type="xsd:QName"
use="required"/>
+ </complexType>
+
+ <complexType name="ModelTypes">
+ <sequence>
+ <!-- JBoss modification: added processContents="skip" to better
process extensions. -->
+ <any namespace="##other" processContents="skip"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ModelDescription">
+ <sequence>
+ <element name="propertyDescriptions"
type="types:PropertyDescription" minOccurs="0"
maxOccurs="unbounded"/>
+ <element name="modelTypes" type="types:ModelTypes"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="ModelDescription"
type="types:ModelDescription"/>
+
+ <complexType name="PortletPropertyDescriptionResponse">
+ <sequence>
+ <element name="modelDescription"
type="types:ModelDescription" minOccurs="0"/>
+ <element name="resourceList" type="types:ResourceList"
minOccurs="0"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <!-- - - - - - - - - - - - - -->
+ <!-- operation message types -->
+ <!-- - - - - - - - - - - - - -->
+
+ <complexType name="ReturnAny">
+ <sequence>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="getMarkup">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="runtimeContext"
type="types:RuntimeContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="markupParams"
type="types:MarkupParams"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getMarkupResponse"
type="types:MarkupResponse"/>
+
+ <element name="performBlockingInteraction">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="runtimeContext"
type="types:RuntimeContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="markupParams"
type="types:MarkupParams"/>
+ <element name="interactionParams"
type="types:InteractionParams"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="performBlockingInteractionResponse"
type="types:BlockingInteractionResponse"/>
+
+ <element name="getServiceDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="desiredLocales" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getServiceDescriptionResponse"
type="types:ServiceDescription"/>
+
+ <element name="register" type="types:RegistrationData"/>
+ <element name="registerResponse"
type="types:RegistrationContext"/>
+
+ <element name="deregister"
type="types:RegistrationContext"/>
+ <element name="deregisterResponse" type="types:ReturnAny"/>
+
+ <element name="modifyRegistration">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="registrationData"
type="types:RegistrationData"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="modifyRegistrationResponse"
type="types:RegistrationState"/>
+
+ <element name="getPortletDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="desiredLocales" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletDescriptionResponse"
type="types:PortletDescriptionResponse"/>
+
+ <element name="clonePortlet">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="clonePortletResponse"
type="types:PortletContext"/>
+
+ <element name="destroyPortlets">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletHandles" type="xsd:string"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="DestroyPortletsResponse">
+ <sequence>
+ <element name="destroyFailed" type="types:DestroyFailed"
minOccurs="0" maxOccurs="unbounded"/>
+ <element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="destroyPortletsResponse"
type="types:DestroyPortletsResponse"/>
+
+ <element name="setPortletProperties">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="propertyList"
type="types:PropertyList"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="setPortletPropertiesResponse"
type="types:PortletContext"/>
+
+ <element name="getPortletProperties">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="names" type="xsd:string"
nillable="true" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletPropertiesResponse"
type="types:PropertyList"/>
+
+ <element name="getPortletPropertyDescription">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="portletContext"
type="types:PortletContext"/>
+ <element name="userContext" type="types:UserContext"
nillable="true"/>
+ <element name="desiredLocales" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getPortletPropertyDescriptionResponse"
type="types:PortletPropertyDescriptionResponse"/>
+
+ <element name="releaseSessions">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ <element name="sessionIDs" type="xsd:string"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="releaseSessionsResponse"
type="types:ReturnAny"/>
+
+ <element name="initCookie">
+ <complexType>
+ <sequence>
+ <element name="registrationContext"
type="types:RegistrationContext" nillable="true"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="initCookieResponse" type="types:ReturnAny"/>
+
+ <!-- - - - - - - -->
+ <!-- fault types -->
+ <!-- - - - - - - -->
+
+ <complexType name="Fault">
+ <sequence/>
+ </complexType>
+
+ <complexType name="AccessDeniedFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="AccessDenied"
type="types:AccessDeniedFault"/>
+
+ <complexType name="InconsistentParametersFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InconsistentParameters"
type="types:InconsistentParametersFault"/>
+
+ <complexType name="InvalidRegistrationFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidRegistration"
type="types:InvalidRegistrationFault"/>
+
+ <complexType name="MissingParametersFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="MissingParameters"
type="types:MissingParametersFault"/>
+
+ <complexType name="OperationFailedFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="OperationFailed"
type="types:OperationFailedFault"/>
+
+ <complexType name="InvalidHandleFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidHandle"
type="types:InvalidHandleFault"/>
+
+ <complexType name="InvalidUserCategoryFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="InvalidUserCategory"
type="types:InvalidUserCategoryFault"/>
+
+ <complexType name="PortletStateChangeRequiredFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="PortletStateChangeRequired"
type="types:PortletStateChangeRequiredFault"/>
+
+ <complexType name="InvalidCookieFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="InvalidCookie"
type="types:InvalidCookieFault"/>
+
+ <complexType name="InvalidSessionFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <element name="InvalidSession"
type="types:InvalidSessionFault"/>
+
+ <complexType name="UnsupportedModeFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedMode"
type="types:UnsupportedModeFault"/>
+
+ <complexType name="UnsupportedWindowStateFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedWindowState"
type="types:UnsupportedWindowStateFault"/>
+
+ <complexType name="UnsupportedLocaleFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedLocale"
type="types:UnsupportedLocaleFault"/>
+
+ <complexType name="UnsupportedMimeTypeFault">
+ <complexContent>
+ <extension base="types:Fault">
+ <sequence/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="UnsupportedMimeType"
type="types:UnsupportedMimeTypeFault"/>
+</schema>
Property changes on:
jbossexo/modules/wsrp/trunk/producer/src/main/webapp/WEB-INF/wsdl/wsrp_v1_types.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added: jbossexo/modules/wsrp/trunk/wsrp1-rpc/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/wsrp1-rpc/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/wsrp1-rpc/pom.xml 2009-07-31 22:55:19 UTC (rev 13649)
@@ -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-rpc</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal WSRP Generated JAX-RPC Stubs</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml</groupId>
+ <artifactId>jaxrpc-api</artifactId>
+ <version>${version.jaxrpc}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>wsrp1-rpc</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-rpc/src/main/java/org/jboss/portal/wsrp/core/AccessDeniedFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/AccessDeniedFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/AccessDeniedFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class AccessDeniedFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public AccessDeniedFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/AccessDeniedFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/BlockingInteractionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/BlockingInteractionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/BlockingInteractionResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class BlockingInteractionResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.UpdateResponse updateResponse;
+ protected java.lang.String redirectURL;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public BlockingInteractionResponse()
+ {
+ }
+
+ public BlockingInteractionResponse(org.jboss.portal.wsrp.core.UpdateResponse
updateResponse, java.lang.String redirectURL, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.updateResponse = updateResponse;
+ this.redirectURL = redirectURL;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.UpdateResponse getUpdateResponse()
+ {
+ return updateResponse;
+ }
+
+ public void setUpdateResponse(org.jboss.portal.wsrp.core.UpdateResponse
updateResponse)
+ {
+ this.updateResponse = updateResponse;
+ }
+
+ public java.lang.String getRedirectURL()
+ {
+ return redirectURL;
+ }
+
+ public void setRedirectURL(java.lang.String redirectURL)
+ {
+ this.redirectURL = redirectURL;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/BlockingInteractionResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CacheControl.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CacheControl.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CacheControl.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class CacheControl implements Serializable
+{
+ protected int expires;
+ protected java.lang.String userScope;
+ protected java.lang.String validateTag;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public CacheControl()
+ {
+ }
+
+ public CacheControl(int expires, java.lang.String userScope, java.lang.String
validateTag, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.expires = expires;
+ this.userScope = userScope;
+ this.validateTag = validateTag;
+ this.extensions = extensions;
+ }
+
+ public int getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(int expires)
+ {
+ this.expires = expires;
+ }
+
+ public java.lang.String getUserScope()
+ {
+ return userScope;
+ }
+
+ public void setUserScope(java.lang.String userScope)
+ {
+ this.userScope = userScope;
+ }
+
+ public java.lang.String getValidateTag()
+ {
+ return validateTag;
+ }
+
+ public void setValidateTag(java.lang.String validateTag)
+ {
+ this.validateTag = validateTag;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CacheControl.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClientData.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClientData.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClientData.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ClientData implements Serializable
+{
+ protected java.lang.String userAgent;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ClientData()
+ {
+ }
+
+ public ClientData(java.lang.String userAgent, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.userAgent = userAgent;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getUserAgent()
+ {
+ return userAgent;
+ }
+
+ public void setUserAgent(java.lang.String userAgent)
+ {
+ this.userAgent = userAgent;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClientData.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClonePortlet.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClonePortlet.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClonePortlet.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ClonePortlet implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+
+ public ClonePortlet()
+ {
+ }
+
+ public ClonePortlet(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.userContext = userContext;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ClonePortlet.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Contact.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Contact.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Contact.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Contact implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.Postal postal;
+ protected org.jboss.portal.wsrp.core.Telecom telecom;
+ protected org.jboss.portal.wsrp.core.Online online;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Contact()
+ {
+ }
+
+ public Contact(org.jboss.portal.wsrp.core.Postal postal,
org.jboss.portal.wsrp.core.Telecom telecom, org.jboss.portal.wsrp.core.Online online,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.postal = postal;
+ this.telecom = telecom;
+ this.online = online;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.Postal getPostal()
+ {
+ return postal;
+ }
+
+ public void setPostal(org.jboss.portal.wsrp.core.Postal postal)
+ {
+ this.postal = postal;
+ }
+
+ public org.jboss.portal.wsrp.core.Telecom getTelecom()
+ {
+ return telecom;
+ }
+
+ public void setTelecom(org.jboss.portal.wsrp.core.Telecom telecom)
+ {
+ this.telecom = telecom;
+ }
+
+ public org.jboss.portal.wsrp.core.Online getOnline()
+ {
+ return online;
+ }
+
+ public void setOnline(org.jboss.portal.wsrp.core.Online online)
+ {
+ this.online = online;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Contact.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CookieProtocol.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CookieProtocol.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CookieProtocol.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+import java.io.Serializable;
+import java.util.HashMap;
+
+public class CookieProtocol implements Serializable
+{
+ private java.lang.String value;
+ private static java.util.Map valueMap = new HashMap();
+ public static final java.lang.String _noneString = "none";
+ public static final java.lang.String _perUserString = "perUser";
+ public static final java.lang.String _perGroupString = "perGroup";
+
+ public static final java.lang.String _none = new java.lang.String(_noneString);
+ public static final java.lang.String _perUser = new java.lang.String(_perUserString);
+ public static final java.lang.String _perGroup = new
java.lang.String(_perGroupString);
+
+ public static final CookieProtocol none = new CookieProtocol(_none);
+ public static final CookieProtocol perUser = new CookieProtocol(_perUser);
+ public static final CookieProtocol perGroup = new CookieProtocol(_perGroup);
+
+ protected CookieProtocol(java.lang.String value)
+ {
+ this.value = value;
+ valueMap.put(this.toString(), this);
+ }
+
+ public java.lang.String getValue()
+ {
+ return value;
+ }
+
+ public static CookieProtocol fromValue(java.lang.String value)
+ throws java.lang.IllegalStateException
+ {
+ if (none.value.equals(value))
+ {
+ return none;
+ }
+ else if (perUser.value.equals(value))
+ {
+ return perUser;
+ }
+ else if (perGroup.value.equals(value))
+ {
+ return perGroup;
+ }
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ public static CookieProtocol fromString(java.lang.String value)
+ throws java.lang.IllegalStateException
+ {
+ CookieProtocol ret = (CookieProtocol)valueMap.get(value);
+ if (ret != null)
+ {
+ return ret;
+ }
+ if (value.equals(_noneString))
+ {
+ return none;
+ }
+ else if (value.equals(_perUserString))
+ {
+ return perUser;
+ }
+ else if (value.equals(_perGroupString))
+ {
+ return perGroup;
+ }
+ throw new IllegalArgumentException();
+ }
+
+ public java.lang.String toString()
+ {
+ return value.toString();
+ }
+
+ private java.lang.Object readResolve()
+ throws java.io.ObjectStreamException
+ {
+ return fromValue(getValue());
+ }
+
+ public boolean equals(java.lang.Object obj)
+ {
+ if (!(obj instanceof CookieProtocol))
+ {
+ return false;
+ }
+ return ((CookieProtocol)obj).value.equals(value);
+ }
+
+ public int hashCode()
+ {
+ return value.hashCode();
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/CookieProtocol.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyFailed.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyFailed.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyFailed.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class DestroyFailed implements Serializable
+{
+ protected java.lang.String portletHandle;
+ protected java.lang.String reason;
+
+ public DestroyFailed()
+ {
+ }
+
+ public DestroyFailed(java.lang.String portletHandle, java.lang.String reason)
+ {
+ this.portletHandle = portletHandle;
+ this.reason = reason;
+ }
+
+ public java.lang.String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ public void setPortletHandle(java.lang.String portletHandle)
+ {
+ this.portletHandle = portletHandle;
+ }
+
+ public java.lang.String getReason()
+ {
+ return reason;
+ }
+
+ public void setReason(java.lang.String reason)
+ {
+ this.reason = reason;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyFailed.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortlets.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortlets.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortlets.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class DestroyPortlets implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected java.lang.String[] portletHandles;
+
+ public DestroyPortlets()
+ {
+ }
+
+ public DestroyPortlets(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, java.lang.String[] portletHandles)
+ {
+ this.registrationContext = registrationContext;
+ this.portletHandles = portletHandles;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public java.lang.String[] getPortletHandles()
+ {
+ return portletHandles;
+ }
+
+ public void setPortletHandles(java.lang.String[] portletHandles)
+ {
+ this.portletHandles = portletHandles;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortlets.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortletsResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortletsResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortletsResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class DestroyPortletsResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.DestroyFailed[] destroyFailed;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public DestroyPortletsResponse()
+ {
+ }
+
+ public DestroyPortletsResponse(org.jboss.portal.wsrp.core.DestroyFailed[]
destroyFailed, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.destroyFailed = destroyFailed;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.DestroyFailed[] getDestroyFailed()
+ {
+ return destroyFailed;
+ }
+
+ public void setDestroyFailed(org.jboss.portal.wsrp.core.DestroyFailed[]
destroyFailed)
+ {
+ this.destroyFailed = destroyFailed;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/DestroyPortletsResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/EmployerInfo.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/EmployerInfo.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/EmployerInfo.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class EmployerInfo implements Serializable
+{
+ protected java.lang.String employer;
+ protected java.lang.String department;
+ protected java.lang.String jobtitle;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public EmployerInfo()
+ {
+ }
+
+ public EmployerInfo(java.lang.String employer, java.lang.String department,
java.lang.String jobtitle, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.employer = employer;
+ this.department = department;
+ this.jobtitle = jobtitle;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getEmployer()
+ {
+ return employer;
+ }
+
+ public void setEmployer(java.lang.String employer)
+ {
+ this.employer = employer;
+ }
+
+ public java.lang.String getDepartment()
+ {
+ return department;
+ }
+
+ public void setDepartment(java.lang.String department)
+ {
+ this.department = department;
+ }
+
+ public java.lang.String getJobtitle()
+ {
+ return jobtitle;
+ }
+
+ public void setJobtitle(java.lang.String jobtitle)
+ {
+ this.jobtitle = jobtitle;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/EmployerInfo.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Extension.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Extension.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Extension.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Extension implements Serializable
+{
+ protected javax.xml.soap.SOAPElement _any;
+
+ public Extension()
+ {
+ }
+
+ public Extension(javax.xml.soap.SOAPElement _any)
+ {
+ this._any = _any;
+ }
+
+ public javax.xml.soap.SOAPElement get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(javax.xml.soap.SOAPElement _any)
+ {
+ this._any = _any;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Extension.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Fault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Fault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Fault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class Fault extends java.lang.Exception
+{
+
+
+ public Fault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Fault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetMarkup.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetMarkup.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetMarkup.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class GetMarkup implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.RuntimeContext runtimeContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected org.jboss.portal.wsrp.core.MarkupParams markupParams;
+
+ public GetMarkup()
+ {
+ }
+
+ public GetMarkup(org.jboss.portal.wsrp.core.RegistrationContext registrationContext,
org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.RuntimeContext runtimeContext,
org.jboss.portal.wsrp.core.UserContext userContext,
org.jboss.portal.wsrp.core.MarkupParams markupParams)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.runtimeContext = runtimeContext;
+ this.userContext = userContext;
+ this.markupParams = markupParams;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.RuntimeContext getRuntimeContext()
+ {
+ return runtimeContext;
+ }
+
+ public void setRuntimeContext(org.jboss.portal.wsrp.core.RuntimeContext
runtimeContext)
+ {
+ this.runtimeContext = runtimeContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public org.jboss.portal.wsrp.core.MarkupParams getMarkupParams()
+ {
+ return markupParams;
+ }
+
+ public void setMarkupParams(org.jboss.portal.wsrp.core.MarkupParams markupParams)
+ {
+ this.markupParams = markupParams;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetMarkup.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class GetPortletDescription implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected java.lang.String[] desiredLocales;
+
+ public GetPortletDescription()
+ {
+ }
+
+ public GetPortletDescription(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.UserContext userContext, java.lang.String[] desiredLocales)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.userContext = userContext;
+ this.desiredLocales = desiredLocales;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public java.lang.String[] getDesiredLocales()
+ {
+ return desiredLocales;
+ }
+
+ public void setDesiredLocales(java.lang.String[] desiredLocales)
+ {
+ this.desiredLocales = desiredLocales;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletProperties.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletProperties.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletProperties.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class GetPortletProperties implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected java.lang.String[] names;
+
+ public GetPortletProperties()
+ {
+ }
+
+ public GetPortletProperties(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.UserContext userContext, java.lang.String[] names)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.userContext = userContext;
+ this.names = names;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public java.lang.String[] getNames()
+ {
+ return names;
+ }
+
+ public void setNames(java.lang.String[] names)
+ {
+ this.names = names;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletProperties.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletPropertyDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletPropertyDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletPropertyDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class GetPortletPropertyDescription implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected java.lang.String[] desiredLocales;
+
+ public GetPortletPropertyDescription()
+ {
+ }
+
+ public GetPortletPropertyDescription(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.UserContext userContext, java.lang.String[] desiredLocales)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.userContext = userContext;
+ this.desiredLocales = desiredLocales;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public java.lang.String[] getDesiredLocales()
+ {
+ return desiredLocales;
+ }
+
+ public void setDesiredLocales(java.lang.String[] desiredLocales)
+ {
+ this.desiredLocales = desiredLocales;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetPortletPropertyDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetServiceDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetServiceDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetServiceDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class GetServiceDescription implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected java.lang.String[] desiredLocales;
+
+ public GetServiceDescription()
+ {
+ }
+
+ public GetServiceDescription(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, java.lang.String[] desiredLocales)
+ {
+ this.registrationContext = registrationContext;
+ this.desiredLocales = desiredLocales;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public java.lang.String[] getDesiredLocales()
+ {
+ return desiredLocales;
+ }
+
+ public void setDesiredLocales(java.lang.String[] desiredLocales)
+ {
+ this.desiredLocales = desiredLocales;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/GetServiceDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InconsistentParametersFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InconsistentParametersFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InconsistentParametersFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InconsistentParametersFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InconsistentParametersFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InconsistentParametersFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InitCookie.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InitCookie.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InitCookie.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class InitCookie implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+
+ public InitCookie()
+ {
+ }
+
+ public InitCookie(org.jboss.portal.wsrp.core.RegistrationContext registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InitCookie.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InteractionParams.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InteractionParams.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InteractionParams.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class InteractionParams implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.StateChange portletStateChange;
+ protected java.lang.String interactionState;
+ protected org.jboss.portal.wsrp.core.NamedString[] formParameters;
+ protected org.jboss.portal.wsrp.core.UploadContext[] uploadContexts;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public InteractionParams()
+ {
+ }
+
+ public InteractionParams(org.jboss.portal.wsrp.core.StateChange portletStateChange,
java.lang.String interactionState, org.jboss.portal.wsrp.core.NamedString[]
formParameters, org.jboss.portal.wsrp.core.UploadContext[] uploadContexts,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.portletStateChange = portletStateChange;
+ this.interactionState = interactionState;
+ this.formParameters = formParameters;
+ this.uploadContexts = uploadContexts;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.StateChange getPortletStateChange()
+ {
+ return portletStateChange;
+ }
+
+ public void setPortletStateChange(org.jboss.portal.wsrp.core.StateChange
portletStateChange)
+ {
+ this.portletStateChange = portletStateChange;
+ }
+
+ public java.lang.String getInteractionState()
+ {
+ return interactionState;
+ }
+
+ public void setInteractionState(java.lang.String interactionState)
+ {
+ this.interactionState = interactionState;
+ }
+
+ public org.jboss.portal.wsrp.core.NamedString[] getFormParameters()
+ {
+ return formParameters;
+ }
+
+ public void setFormParameters(org.jboss.portal.wsrp.core.NamedString[]
formParameters)
+ {
+ this.formParameters = formParameters;
+ }
+
+ public org.jboss.portal.wsrp.core.UploadContext[] getUploadContexts()
+ {
+ return uploadContexts;
+ }
+
+ public void setUploadContexts(org.jboss.portal.wsrp.core.UploadContext[]
uploadContexts)
+ {
+ this.uploadContexts = uploadContexts;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InteractionParams.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidCookieFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidCookieFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidCookieFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InvalidCookieFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InvalidCookieFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidCookieFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidHandleFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidHandleFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidHandleFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InvalidHandleFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InvalidHandleFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidHandleFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidRegistrationFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidRegistrationFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidRegistrationFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InvalidRegistrationFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InvalidRegistrationFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidRegistrationFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidSessionFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidSessionFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidSessionFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InvalidSessionFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InvalidSessionFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidSessionFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidUserCategoryFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidUserCategoryFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidUserCategoryFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class InvalidUserCategoryFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public InvalidUserCategoryFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/InvalidUserCategoryFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ItemDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ItemDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ItemDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ItemDescription implements Serializable
+{
+ protected java.lang.String itemName;
+ protected org.jboss.portal.wsrp.core.LocalizedString description;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ItemDescription()
+ {
+ }
+
+ public ItemDescription(java.lang.String itemName,
org.jboss.portal.wsrp.core.LocalizedString description,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.itemName = itemName;
+ this.description = description;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getItemName()
+ {
+ return itemName;
+ }
+
+ public void setItemName(java.lang.String itemName)
+ {
+ this.itemName = itemName;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public void setDescription(org.jboss.portal.wsrp.core.LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ItemDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/LocalizedString.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/LocalizedString.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/LocalizedString.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class LocalizedString implements Serializable
+{
+ protected java.lang.String lang;
+ protected java.lang.String resourceName;
+ protected java.lang.String value;
+
+ public LocalizedString()
+ {
+ }
+
+ public LocalizedString(java.lang.String lang, java.lang.String resourceName,
java.lang.String value)
+ {
+ this.lang = lang;
+ this.resourceName = resourceName;
+ this.value = value;
+ }
+
+ public java.lang.String getLang()
+ {
+ return lang;
+ }
+
+ public void setLang(java.lang.String lang)
+ {
+ this.lang = lang;
+ }
+
+ public java.lang.String getResourceName()
+ {
+ return resourceName;
+ }
+
+ public void setResourceName(java.lang.String resourceName)
+ {
+ this.resourceName = resourceName;
+ }
+
+ public java.lang.String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(java.lang.String value)
+ {
+ this.value = value;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/LocalizedString.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,152 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class MarkupContext implements Serializable
+{
+ protected java.lang.Boolean useCachedMarkup;
+ protected java.lang.String mimeType;
+ protected java.lang.String markupString;
+ protected byte[] markupBinary;
+ protected java.lang.String locale;
+ protected java.lang.Boolean requiresUrlRewriting;
+ protected org.jboss.portal.wsrp.core.CacheControl cacheControl;
+ protected java.lang.String preferredTitle;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public MarkupContext()
+ {
+ }
+
+ public MarkupContext(java.lang.Boolean useCachedMarkup, java.lang.String mimeType,
java.lang.String markupString, byte[] markupBinary, java.lang.String locale,
java.lang.Boolean requiresUrlRewriting, org.jboss.portal.wsrp.core.CacheControl
cacheControl, java.lang.String preferredTitle, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.useCachedMarkup = useCachedMarkup;
+ this.mimeType = mimeType;
+ this.markupString = markupString;
+ this.markupBinary = markupBinary;
+ this.locale = locale;
+ this.requiresUrlRewriting = requiresUrlRewriting;
+ this.cacheControl = cacheControl;
+ this.preferredTitle = preferredTitle;
+ this.extensions = extensions;
+ }
+
+ public java.lang.Boolean getUseCachedMarkup()
+ {
+ return useCachedMarkup;
+ }
+
+ public void setUseCachedMarkup(java.lang.Boolean useCachedMarkup)
+ {
+ this.useCachedMarkup = useCachedMarkup;
+ }
+
+ public java.lang.String getMimeType()
+ {
+ return mimeType;
+ }
+
+ public void setMimeType(java.lang.String mimeType)
+ {
+ this.mimeType = mimeType;
+ }
+
+ public java.lang.String getMarkupString()
+ {
+ return markupString;
+ }
+
+ public void setMarkupString(java.lang.String markupString)
+ {
+ this.markupString = markupString;
+ }
+
+ public byte[] getMarkupBinary()
+ {
+ return markupBinary;
+ }
+
+ public void setMarkupBinary(byte[] markupBinary)
+ {
+ this.markupBinary = markupBinary;
+ }
+
+ public java.lang.String getLocale()
+ {
+ return locale;
+ }
+
+ public void setLocale(java.lang.String locale)
+ {
+ this.locale = locale;
+ }
+
+ public java.lang.Boolean getRequiresUrlRewriting()
+ {
+ return requiresUrlRewriting;
+ }
+
+ public void setRequiresUrlRewriting(java.lang.Boolean requiresUrlRewriting)
+ {
+ this.requiresUrlRewriting = requiresUrlRewriting;
+ }
+
+ public org.jboss.portal.wsrp.core.CacheControl getCacheControl()
+ {
+ return cacheControl;
+ }
+
+ public void setCacheControl(org.jboss.portal.wsrp.core.CacheControl cacheControl)
+ {
+ this.cacheControl = cacheControl;
+ }
+
+ public java.lang.String getPreferredTitle()
+ {
+ return preferredTitle;
+ }
+
+ public void setPreferredTitle(java.lang.String preferredTitle)
+ {
+ this.preferredTitle = preferredTitle;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupParams.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupParams.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupParams.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,188 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class MarkupParams implements Serializable
+{
+ protected boolean secureClientCommunication;
+ protected java.lang.String[] locales;
+ protected java.lang.String[] mimeTypes;
+ protected java.lang.String mode;
+ protected java.lang.String windowState;
+ protected org.jboss.portal.wsrp.core.ClientData clientData;
+ protected java.lang.String navigationalState;
+ protected java.lang.String[] markupCharacterSets;
+ protected java.lang.String validateTag;
+ protected java.lang.String[] validNewModes;
+ protected java.lang.String[] validNewWindowStates;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public MarkupParams()
+ {
+ }
+
+ public MarkupParams(boolean secureClientCommunication, java.lang.String[] locales,
java.lang.String[] mimeTypes, java.lang.String mode, java.lang.String windowState,
org.jboss.portal.wsrp.core.ClientData clientData, java.lang.String navigationalState,
java.lang.String[] markupCharacterSets, java.lang.String validateTag, java.lang.String[]
validNewModes, java.lang.String[] validNewWindowStates,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.secureClientCommunication = secureClientCommunication;
+ this.locales = locales;
+ this.mimeTypes = mimeTypes;
+ this.mode = mode;
+ this.windowState = windowState;
+ this.clientData = clientData;
+ this.navigationalState = navigationalState;
+ this.markupCharacterSets = markupCharacterSets;
+ this.validateTag = validateTag;
+ this.validNewModes = validNewModes;
+ this.validNewWindowStates = validNewWindowStates;
+ this.extensions = extensions;
+ }
+
+ public boolean isSecureClientCommunication()
+ {
+ return secureClientCommunication;
+ }
+
+ public void setSecureClientCommunication(boolean secureClientCommunication)
+ {
+ this.secureClientCommunication = secureClientCommunication;
+ }
+
+ public java.lang.String[] getLocales()
+ {
+ return locales;
+ }
+
+ public void setLocales(java.lang.String[] locales)
+ {
+ this.locales = locales;
+ }
+
+ public java.lang.String[] getMimeTypes()
+ {
+ return mimeTypes;
+ }
+
+ public void setMimeTypes(java.lang.String[] mimeTypes)
+ {
+ this.mimeTypes = mimeTypes;
+ }
+
+ public java.lang.String getMode()
+ {
+ return mode;
+ }
+
+ public void setMode(java.lang.String mode)
+ {
+ this.mode = mode;
+ }
+
+ public java.lang.String getWindowState()
+ {
+ return windowState;
+ }
+
+ public void setWindowState(java.lang.String windowState)
+ {
+ this.windowState = windowState;
+ }
+
+ public org.jboss.portal.wsrp.core.ClientData getClientData()
+ {
+ return clientData;
+ }
+
+ public void setClientData(org.jboss.portal.wsrp.core.ClientData clientData)
+ {
+ this.clientData = clientData;
+ }
+
+ public java.lang.String getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ public void setNavigationalState(java.lang.String navigationalState)
+ {
+ this.navigationalState = navigationalState;
+ }
+
+ public java.lang.String[] getMarkupCharacterSets()
+ {
+ return markupCharacterSets;
+ }
+
+ public void setMarkupCharacterSets(java.lang.String[] markupCharacterSets)
+ {
+ this.markupCharacterSets = markupCharacterSets;
+ }
+
+ public java.lang.String getValidateTag()
+ {
+ return validateTag;
+ }
+
+ public void setValidateTag(java.lang.String validateTag)
+ {
+ this.validateTag = validateTag;
+ }
+
+ public java.lang.String[] getValidNewModes()
+ {
+ return validNewModes;
+ }
+
+ public void setValidNewModes(java.lang.String[] validNewModes)
+ {
+ this.validNewModes = validNewModes;
+ }
+
+ public java.lang.String[] getValidNewWindowStates()
+ {
+ return validNewWindowStates;
+ }
+
+ public void setValidNewWindowStates(java.lang.String[] validNewWindowStates)
+ {
+ this.validNewWindowStates = validNewWindowStates;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupParams.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class MarkupResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.MarkupContext markupContext;
+ protected org.jboss.portal.wsrp.core.SessionContext sessionContext;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public MarkupResponse()
+ {
+ }
+
+ public MarkupResponse(org.jboss.portal.wsrp.core.MarkupContext markupContext,
org.jboss.portal.wsrp.core.SessionContext sessionContext,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.markupContext = markupContext;
+ this.sessionContext = sessionContext;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.MarkupContext getMarkupContext()
+ {
+ return markupContext;
+ }
+
+ public void setMarkupContext(org.jboss.portal.wsrp.core.MarkupContext markupContext)
+ {
+ this.markupContext = markupContext;
+ }
+
+ public org.jboss.portal.wsrp.core.SessionContext getSessionContext()
+ {
+ return sessionContext;
+ }
+
+ public void setSessionContext(org.jboss.portal.wsrp.core.SessionContext
sessionContext)
+ {
+ this.sessionContext = sessionContext;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupType.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class MarkupType implements Serializable
+{
+ protected java.lang.String mimeType;
+ protected java.lang.String[] modes;
+ protected java.lang.String[] windowStates;
+ protected java.lang.String[] locales;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public MarkupType()
+ {
+ }
+
+ public MarkupType(java.lang.String mimeType, java.lang.String[] modes,
java.lang.String[] windowStates, java.lang.String[] locales,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.mimeType = mimeType;
+ this.modes = modes;
+ this.windowStates = windowStates;
+ this.locales = locales;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getMimeType()
+ {
+ return mimeType;
+ }
+
+ public void setMimeType(java.lang.String mimeType)
+ {
+ this.mimeType = mimeType;
+ }
+
+ public java.lang.String[] getModes()
+ {
+ return modes;
+ }
+
+ public void setModes(java.lang.String[] modes)
+ {
+ this.modes = modes;
+ }
+
+ public java.lang.String[] getWindowStates()
+ {
+ return windowStates;
+ }
+
+ public void setWindowStates(java.lang.String[] windowStates)
+ {
+ this.windowStates = windowStates;
+ }
+
+ public java.lang.String[] getLocales()
+ {
+ return locales;
+ }
+
+ public void setLocales(java.lang.String[] locales)
+ {
+ this.locales = locales;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MarkupType.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MissingParametersFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MissingParametersFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MissingParametersFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class MissingParametersFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public MissingParametersFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/MissingParametersFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ModelDescription implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.PropertyDescription[] propertyDescriptions;
+ protected org.jboss.portal.wsrp.core.ModelTypes modelTypes;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ModelDescription()
+ {
+ }
+
+ public ModelDescription(org.jboss.portal.wsrp.core.PropertyDescription[]
propertyDescriptions, org.jboss.portal.wsrp.core.ModelTypes modelTypes,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.propertyDescriptions = propertyDescriptions;
+ this.modelTypes = modelTypes;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.PropertyDescription[] getPropertyDescriptions()
+ {
+ return propertyDescriptions;
+ }
+
+ public void setPropertyDescriptions(org.jboss.portal.wsrp.core.PropertyDescription[]
propertyDescriptions)
+ {
+ this.propertyDescriptions = propertyDescriptions;
+ }
+
+ public org.jboss.portal.wsrp.core.ModelTypes getModelTypes()
+ {
+ return modelTypes;
+ }
+
+ public void setModelTypes(org.jboss.portal.wsrp.core.ModelTypes modelTypes)
+ {
+ this.modelTypes = modelTypes;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelTypes.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelTypes.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelTypes.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ModelTypes implements Serializable
+{
+ protected javax.xml.soap.SOAPElement _any;
+
+ public ModelTypes()
+ {
+ }
+
+ public ModelTypes(javax.xml.soap.SOAPElement _any)
+ {
+ this._any = _any;
+ }
+
+ public javax.xml.soap.SOAPElement get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(javax.xml.soap.SOAPElement _any)
+ {
+ this._any = _any;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModelTypes.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModifyRegistration.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModifyRegistration.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModifyRegistration.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ModifyRegistration implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.RegistrationData registrationData;
+
+ public ModifyRegistration()
+ {
+ }
+
+ public ModifyRegistration(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.RegistrationData registrationData)
+ {
+ this.registrationContext = registrationContext;
+ this.registrationData = registrationData;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationData getRegistrationData()
+ {
+ return registrationData;
+ }
+
+ public void setRegistrationData(org.jboss.portal.wsrp.core.RegistrationData
registrationData)
+ {
+ this.registrationData = registrationData;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ModifyRegistration.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/NamedString.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/NamedString.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/NamedString.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class NamedString implements Serializable
+{
+ protected java.lang.String name;
+ protected java.lang.String value;
+
+ public NamedString()
+ {
+ }
+
+ public NamedString(java.lang.String name, java.lang.String value)
+ {
+ this.name = name;
+ this.value = value;
+ }
+
+ public java.lang.String getName()
+ {
+ return name;
+ }
+
+ public void setName(java.lang.String name)
+ {
+ this.name = name;
+ }
+
+ public java.lang.String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(java.lang.String value)
+ {
+ this.value = value;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/NamedString.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Online.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Online.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Online.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Online implements Serializable
+{
+ protected java.lang.String email;
+ protected java.lang.String uri;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Online()
+ {
+ }
+
+ public Online(java.lang.String email, java.lang.String uri,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.email = email;
+ this.uri = uri;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getEmail()
+ {
+ return email;
+ }
+
+ public void setEmail(java.lang.String email)
+ {
+ this.email = email;
+ }
+
+ public java.lang.String getUri()
+ {
+ return uri;
+ }
+
+ public void setUri(java.lang.String uri)
+ {
+ this.uri = uri;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Online.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/OperationFailedFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/OperationFailedFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/OperationFailedFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class OperationFailedFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public OperationFailedFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/OperationFailedFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PerformBlockingInteraction.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PerformBlockingInteraction.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PerformBlockingInteraction.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,116 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PerformBlockingInteraction implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.RuntimeContext runtimeContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected org.jboss.portal.wsrp.core.MarkupParams markupParams;
+ protected org.jboss.portal.wsrp.core.InteractionParams interactionParams;
+
+ public PerformBlockingInteraction()
+ {
+ }
+
+ public PerformBlockingInteraction(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.RuntimeContext runtimeContext,
org.jboss.portal.wsrp.core.UserContext userContext,
org.jboss.portal.wsrp.core.MarkupParams markupParams,
org.jboss.portal.wsrp.core.InteractionParams interactionParams)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.runtimeContext = runtimeContext;
+ this.userContext = userContext;
+ this.markupParams = markupParams;
+ this.interactionParams = interactionParams;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.RuntimeContext getRuntimeContext()
+ {
+ return runtimeContext;
+ }
+
+ public void setRuntimeContext(org.jboss.portal.wsrp.core.RuntimeContext
runtimeContext)
+ {
+ this.runtimeContext = runtimeContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public org.jboss.portal.wsrp.core.MarkupParams getMarkupParams()
+ {
+ return markupParams;
+ }
+
+ public void setMarkupParams(org.jboss.portal.wsrp.core.MarkupParams markupParams)
+ {
+ this.markupParams = markupParams;
+ }
+
+ public org.jboss.portal.wsrp.core.InteractionParams getInteractionParams()
+ {
+ return interactionParams;
+ }
+
+ public void setInteractionParams(org.jboss.portal.wsrp.core.InteractionParams
interactionParams)
+ {
+ this.interactionParams = interactionParams;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PerformBlockingInteraction.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PersonName.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PersonName.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PersonName.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,128 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PersonName implements Serializable
+{
+ protected java.lang.String prefix;
+ protected java.lang.String given;
+ protected java.lang.String family;
+ protected java.lang.String middle;
+ protected java.lang.String suffix;
+ protected java.lang.String nickname;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PersonName()
+ {
+ }
+
+ public PersonName(java.lang.String prefix, java.lang.String given, java.lang.String
family, java.lang.String middle, java.lang.String suffix, java.lang.String nickname,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.prefix = prefix;
+ this.given = given;
+ this.family = family;
+ this.middle = middle;
+ this.suffix = suffix;
+ this.nickname = nickname;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getPrefix()
+ {
+ return prefix;
+ }
+
+ public void setPrefix(java.lang.String prefix)
+ {
+ this.prefix = prefix;
+ }
+
+ public java.lang.String getGiven()
+ {
+ return given;
+ }
+
+ public void setGiven(java.lang.String given)
+ {
+ this.given = given;
+ }
+
+ public java.lang.String getFamily()
+ {
+ return family;
+ }
+
+ public void setFamily(java.lang.String family)
+ {
+ this.family = family;
+ }
+
+ public java.lang.String getMiddle()
+ {
+ return middle;
+ }
+
+ public void setMiddle(java.lang.String middle)
+ {
+ this.middle = middle;
+ }
+
+ public java.lang.String getSuffix()
+ {
+ return suffix;
+ }
+
+ public void setSuffix(java.lang.String suffix)
+ {
+ this.suffix = suffix;
+ }
+
+ public java.lang.String getNickname()
+ {
+ return nickname;
+ }
+
+ public void setNickname(java.lang.String nickname)
+ {
+ this.nickname = nickname;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PersonName.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PortletContext implements Serializable
+{
+ protected java.lang.String portletHandle;
+ protected byte[] portletState;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PortletContext()
+ {
+ }
+
+ public PortletContext(java.lang.String portletHandle, byte[] portletState,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.portletHandle = portletHandle;
+ this.portletState = portletState;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ public void setPortletHandle(java.lang.String portletHandle)
+ {
+ this.portletHandle = portletHandle;
+ }
+
+ public byte[] getPortletState()
+ {
+ return portletState;
+ }
+
+ public void setPortletState(byte[] portletState)
+ {
+ this.portletState = portletState;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,267 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+/**
+ * [R] Handle portletHandle [R] MarkupType markupTypes[] [O] ID groupID [O]
LocalizedString description [O]
+ * LocalizedString shortTitle [O] LocalizedString title [O] LocalizedString displayName
[O] LocalizedString keywords[]
+ * [O] string userCategories[] [O] string userProfileItems[] [O] boolean usesMethodGet
[O] boolean defaultMarkupSecure
+ * [O] boolean onlySecure [O] boolean userContextStoredInSession [O]
boolean templatesStoredInSession [O]
+ * boolean hasUserSpecificState [O] boolean doesUrlTemplateProcessing [O]
Extension extensions
+ */
+public class PortletDescription implements Serializable
+{
+ protected java.lang.String portletHandle;
+ protected org.jboss.portal.wsrp.core.MarkupType[] markupTypes;
+ protected java.lang.String groupID;
+ protected org.jboss.portal.wsrp.core.LocalizedString description;
+ protected org.jboss.portal.wsrp.core.LocalizedString shortTitle;
+ protected org.jboss.portal.wsrp.core.LocalizedString title;
+ protected org.jboss.portal.wsrp.core.LocalizedString displayName;
+ protected org.jboss.portal.wsrp.core.LocalizedString[] keywords;
+ protected java.lang.String[] userCategories;
+ protected java.lang.String[] userProfileItems;
+ protected java.lang.Boolean usesMethodGet;
+ protected java.lang.Boolean defaultMarkupSecure;
+ protected java.lang.Boolean onlySecure;
+ protected java.lang.Boolean userContextStoredInSession;
+ protected java.lang.Boolean templatesStoredInSession;
+ protected java.lang.Boolean hasUserSpecificState;
+ protected java.lang.Boolean doesUrlTemplateProcessing;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PortletDescription()
+ {
+ }
+
+ public PortletDescription(java.lang.String portletHandle,
org.jboss.portal.wsrp.core.MarkupType[] markupTypes, java.lang.String groupID,
org.jboss.portal.wsrp.core.LocalizedString description,
org.jboss.portal.wsrp.core.LocalizedString shortTitle,
org.jboss.portal.wsrp.core.LocalizedString title,
org.jboss.portal.wsrp.core.LocalizedString displayName,
org.jboss.portal.wsrp.core.LocalizedString[] keywords, java.lang.String[] userCategories,
java.lang.String[] userProfileItems, java.lang.Boolean usesMethodGet, java.lang.Boolean
defaultMarkupSecure, java.lang.Boolean onlySecure, java.lang.Boolean
userContextStoredInSession, java.lang.Boolean templatesStoredInSession, java.lang.Boolean
hasUserSpecificState, java.lang.Boolean doesUrlTemplateProcessing,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.portletHandle = portletHandle;
+ this.markupTypes = markupTypes;
+ this.groupID = groupID;
+ this.description = description;
+ this.shortTitle = shortTitle;
+ this.title = title;
+ this.displayName = displayName;
+ this.keywords = keywords;
+ this.userCategories = userCategories;
+ this.userProfileItems = userProfileItems;
+ this.usesMethodGet = usesMethodGet;
+ this.defaultMarkupSecure = defaultMarkupSecure;
+ this.onlySecure = onlySecure;
+ this.userContextStoredInSession = userContextStoredInSession;
+ this.templatesStoredInSession = templatesStoredInSession;
+ this.hasUserSpecificState = hasUserSpecificState;
+ this.doesUrlTemplateProcessing = doesUrlTemplateProcessing;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getPortletHandle()
+ {
+ return portletHandle;
+ }
+
+ public void setPortletHandle(java.lang.String portletHandle)
+ {
+ this.portletHandle = portletHandle;
+ }
+
+ public org.jboss.portal.wsrp.core.MarkupType[] getMarkupTypes()
+ {
+ return markupTypes;
+ }
+
+ public void setMarkupTypes(org.jboss.portal.wsrp.core.MarkupType[] markupTypes)
+ {
+ this.markupTypes = markupTypes;
+ }
+
+ public java.lang.String getGroupID()
+ {
+ return groupID;
+ }
+
+ public void setGroupID(java.lang.String groupID)
+ {
+ this.groupID = groupID;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public void setDescription(org.jboss.portal.wsrp.core.LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getShortTitle()
+ {
+ return shortTitle;
+ }
+
+ public void setShortTitle(org.jboss.portal.wsrp.core.LocalizedString shortTitle)
+ {
+ this.shortTitle = shortTitle;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getTitle()
+ {
+ return title;
+ }
+
+ public void setTitle(org.jboss.portal.wsrp.core.LocalizedString title)
+ {
+ this.title = title;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ public void setDisplayName(org.jboss.portal.wsrp.core.LocalizedString displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString[] getKeywords()
+ {
+ return keywords;
+ }
+
+ public void setKeywords(org.jboss.portal.wsrp.core.LocalizedString[] keywords)
+ {
+ this.keywords = keywords;
+ }
+
+ public java.lang.String[] getUserCategories()
+ {
+ return userCategories;
+ }
+
+ public void setUserCategories(java.lang.String[] userCategories)
+ {
+ this.userCategories = userCategories;
+ }
+
+ public java.lang.String[] getUserProfileItems()
+ {
+ return userProfileItems;
+ }
+
+ public void setUserProfileItems(java.lang.String[] userProfileItems)
+ {
+ this.userProfileItems = userProfileItems;
+ }
+
+ public java.lang.Boolean getUsesMethodGet()
+ {
+ return usesMethodGet;
+ }
+
+ public void setUsesMethodGet(java.lang.Boolean usesMethodGet)
+ {
+ this.usesMethodGet = usesMethodGet;
+ }
+
+ public java.lang.Boolean getDefaultMarkupSecure()
+ {
+ return defaultMarkupSecure;
+ }
+
+ public void setDefaultMarkupSecure(java.lang.Boolean defaultMarkupSecure)
+ {
+ this.defaultMarkupSecure = defaultMarkupSecure;
+ }
+
+ public java.lang.Boolean getOnlySecure()
+ {
+ return onlySecure;
+ }
+
+ public void setOnlySecure(java.lang.Boolean onlySecure)
+ {
+ this.onlySecure = onlySecure;
+ }
+
+ public java.lang.Boolean getUserContextStoredInSession()
+ {
+ return userContextStoredInSession;
+ }
+
+ public void setUserContextStoredInSession(java.lang.Boolean
userContextStoredInSession)
+ {
+ this.userContextStoredInSession = userContextStoredInSession;
+ }
+
+ public java.lang.Boolean getTemplatesStoredInSession()
+ {
+ return templatesStoredInSession;
+ }
+
+ public void setTemplatesStoredInSession(java.lang.Boolean templatesStoredInSession)
+ {
+ this.templatesStoredInSession = templatesStoredInSession;
+ }
+
+ public java.lang.Boolean getHasUserSpecificState()
+ {
+ return hasUserSpecificState;
+ }
+
+ public void setHasUserSpecificState(java.lang.Boolean hasUserSpecificState)
+ {
+ this.hasUserSpecificState = hasUserSpecificState;
+ }
+
+ public java.lang.Boolean getDoesUrlTemplateProcessing()
+ {
+ return doesUrlTemplateProcessing;
+ }
+
+ public void setDoesUrlTemplateProcessing(java.lang.Boolean doesUrlTemplateProcessing)
+ {
+ this.doesUrlTemplateProcessing = doesUrlTemplateProcessing;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescriptionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescriptionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescriptionResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PortletDescriptionResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.PortletDescription portletDescription;
+ protected org.jboss.portal.wsrp.core.ResourceList resourceList;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PortletDescriptionResponse()
+ {
+ }
+
+ public PortletDescriptionResponse(org.jboss.portal.wsrp.core.PortletDescription
portletDescription, org.jboss.portal.wsrp.core.ResourceList resourceList,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.portletDescription = portletDescription;
+ this.resourceList = resourceList;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletDescription getPortletDescription()
+ {
+ return portletDescription;
+ }
+
+ public void setPortletDescription(org.jboss.portal.wsrp.core.PortletDescription
portletDescription)
+ {
+ this.portletDescription = portletDescription;
+ }
+
+ public org.jboss.portal.wsrp.core.ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ public void setResourceList(org.jboss.portal.wsrp.core.ResourceList resourceList)
+ {
+ this.resourceList = resourceList;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletDescriptionResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletPropertyDescriptionResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletPropertyDescriptionResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletPropertyDescriptionResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PortletPropertyDescriptionResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.ModelDescription modelDescription;
+ protected org.jboss.portal.wsrp.core.ResourceList resourceList;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PortletPropertyDescriptionResponse()
+ {
+ }
+
+ public PortletPropertyDescriptionResponse(org.jboss.portal.wsrp.core.ModelDescription
modelDescription, org.jboss.portal.wsrp.core.ResourceList resourceList,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.modelDescription = modelDescription;
+ this.resourceList = resourceList;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.ModelDescription getModelDescription()
+ {
+ return modelDescription;
+ }
+
+ public void setModelDescription(org.jboss.portal.wsrp.core.ModelDescription
modelDescription)
+ {
+ this.modelDescription = modelDescription;
+ }
+
+ public org.jboss.portal.wsrp.core.ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ public void setResourceList(org.jboss.portal.wsrp.core.ResourceList resourceList)
+ {
+ this.resourceList = resourceList;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletPropertyDescriptionResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletStateChangeRequiredFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletStateChangeRequiredFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletStateChangeRequiredFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class PortletStateChangeRequiredFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public PortletStateChangeRequiredFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PortletStateChangeRequiredFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Postal.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Postal.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Postal.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,140 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Postal implements Serializable
+{
+ protected java.lang.String name;
+ protected java.lang.String street;
+ protected java.lang.String city;
+ protected java.lang.String stateprov;
+ protected java.lang.String postalcode;
+ protected java.lang.String country;
+ protected java.lang.String organization;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Postal()
+ {
+ }
+
+ public Postal(java.lang.String name, java.lang.String street, java.lang.String city,
java.lang.String stateprov, java.lang.String postalcode, java.lang.String country,
java.lang.String organization, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.name = name;
+ this.street = street;
+ this.city = city;
+ this.stateprov = stateprov;
+ this.postalcode = postalcode;
+ this.country = country;
+ this.organization = organization;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getName()
+ {
+ return name;
+ }
+
+ public void setName(java.lang.String name)
+ {
+ this.name = name;
+ }
+
+ public java.lang.String getStreet()
+ {
+ return street;
+ }
+
+ public void setStreet(java.lang.String street)
+ {
+ this.street = street;
+ }
+
+ public java.lang.String getCity()
+ {
+ return city;
+ }
+
+ public void setCity(java.lang.String city)
+ {
+ this.city = city;
+ }
+
+ public java.lang.String getStateprov()
+ {
+ return stateprov;
+ }
+
+ public void setStateprov(java.lang.String stateprov)
+ {
+ this.stateprov = stateprov;
+ }
+
+ public java.lang.String getPostalcode()
+ {
+ return postalcode;
+ }
+
+ public void setPostalcode(java.lang.String postalcode)
+ {
+ this.postalcode = postalcode;
+ }
+
+ public java.lang.String getCountry()
+ {
+ return country;
+ }
+
+ public void setCountry(java.lang.String country)
+ {
+ this.country = country;
+ }
+
+ public java.lang.String getOrganization()
+ {
+ return organization;
+ }
+
+ public void setOrganization(java.lang.String organization)
+ {
+ this.organization = organization;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Postal.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Property.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Property.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Property.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Property implements Serializable
+{
+ protected java.lang.String name;
+ protected java.lang.String lang;
+ protected java.lang.String stringValue;
+ protected javax.xml.soap.SOAPElement[] _any;
+
+ public Property()
+ {
+ }
+
+ public Property(java.lang.String name, java.lang.String lang, java.lang.String
stringValue, javax.xml.soap.SOAPElement[] _any)
+ {
+ this.name = name;
+ this.lang = lang;
+ this.stringValue = stringValue;
+ this._any = _any;
+ }
+
+ public java.lang.String getName()
+ {
+ return name;
+ }
+
+ public void setName(java.lang.String name)
+ {
+ this.name = name;
+ }
+
+ public java.lang.String getLang()
+ {
+ return lang;
+ }
+
+ public void setLang(java.lang.String lang)
+ {
+ this.lang = lang;
+ }
+
+ public java.lang.String getStringValue()
+ {
+ return stringValue;
+ }
+
+ public void setStringValue(java.lang.String stringValue)
+ {
+ this.stringValue = stringValue;
+ }
+
+ public javax.xml.soap.SOAPElement[] get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(javax.xml.soap.SOAPElement[] _any)
+ {
+ this._any = _any;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Property.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PropertyDescription implements Serializable
+{
+ protected java.lang.String name;
+ protected javax.xml.namespace.QName type;
+ protected org.jboss.portal.wsrp.core.LocalizedString label;
+ protected org.jboss.portal.wsrp.core.LocalizedString hint;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PropertyDescription()
+ {
+ }
+
+ public PropertyDescription(java.lang.String name, javax.xml.namespace.QName type,
org.jboss.portal.wsrp.core.LocalizedString label,
org.jboss.portal.wsrp.core.LocalizedString hint, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.name = name;
+ this.type = type;
+ this.label = label;
+ this.hint = hint;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getName()
+ {
+ return name;
+ }
+
+ public void setName(java.lang.String name)
+ {
+ this.name = name;
+ }
+
+ public javax.xml.namespace.QName getType()
+ {
+ return type;
+ }
+
+ public void setType(javax.xml.namespace.QName type)
+ {
+ this.type = type;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getLabel()
+ {
+ return label;
+ }
+
+ public void setLabel(org.jboss.portal.wsrp.core.LocalizedString label)
+ {
+ this.label = label;
+ }
+
+ public org.jboss.portal.wsrp.core.LocalizedString getHint()
+ {
+ return hint;
+ }
+
+ public void setHint(org.jboss.portal.wsrp.core.LocalizedString hint)
+ {
+ this.hint = hint;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyList.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyList.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyList.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class PropertyList implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.Property[] properties;
+ protected org.jboss.portal.wsrp.core.ResetProperty[] resetProperties;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public PropertyList()
+ {
+ }
+
+ public PropertyList(org.jboss.portal.wsrp.core.Property[] properties,
org.jboss.portal.wsrp.core.ResetProperty[] resetProperties,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.properties = properties;
+ this.resetProperties = resetProperties;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.Property[] getProperties()
+ {
+ return properties;
+ }
+
+ public void setProperties(org.jboss.portal.wsrp.core.Property[] properties)
+ {
+ this.properties = properties;
+ }
+
+ public org.jboss.portal.wsrp.core.ResetProperty[] getResetProperties()
+ {
+ return resetProperties;
+ }
+
+ public void setResetProperties(org.jboss.portal.wsrp.core.ResetProperty[]
resetProperties)
+ {
+ this.resetProperties = resetProperties;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/PropertyList.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class RegistrationContext implements Serializable
+{
+ protected java.lang.String registrationHandle;
+ protected byte[] registrationState;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public RegistrationContext()
+ {
+ }
+
+ public RegistrationContext(java.lang.String registrationHandle, byte[]
registrationState, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.registrationHandle = registrationHandle;
+ this.registrationState = registrationState;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getRegistrationHandle()
+ {
+ return registrationHandle;
+ }
+
+ public void setRegistrationHandle(java.lang.String registrationHandle)
+ {
+ this.registrationHandle = registrationHandle;
+ }
+
+ public byte[] getRegistrationState()
+ {
+ return registrationState;
+ }
+
+ public void setRegistrationState(byte[] registrationState)
+ {
+ this.registrationState = registrationState;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationData.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationData.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationData.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,152 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class RegistrationData implements Serializable
+{
+ protected java.lang.String consumerName;
+ protected java.lang.String consumerAgent;
+ protected boolean methodGetSupported;
+ protected java.lang.String[] consumerModes;
+ protected java.lang.String[] consumerWindowStates;
+ protected java.lang.String[] consumerUserScopes;
+ protected java.lang.String[] customUserProfileData;
+ protected org.jboss.portal.wsrp.core.Property[] registrationProperties;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public RegistrationData()
+ {
+ }
+
+ public RegistrationData(java.lang.String consumerName, java.lang.String consumerAgent,
boolean methodGetSupported, java.lang.String[] consumerModes, java.lang.String[]
consumerWindowStates, java.lang.String[] consumerUserScopes, java.lang.String[]
customUserProfileData, org.jboss.portal.wsrp.core.Property[] registrationProperties,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.consumerName = consumerName;
+ this.consumerAgent = consumerAgent;
+ this.methodGetSupported = methodGetSupported;
+ this.consumerModes = consumerModes;
+ this.consumerWindowStates = consumerWindowStates;
+ this.consumerUserScopes = consumerUserScopes;
+ this.customUserProfileData = customUserProfileData;
+ this.registrationProperties = registrationProperties;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getConsumerName()
+ {
+ return consumerName;
+ }
+
+ public void setConsumerName(java.lang.String consumerName)
+ {
+ this.consumerName = consumerName;
+ }
+
+ public java.lang.String getConsumerAgent()
+ {
+ return consumerAgent;
+ }
+
+ public void setConsumerAgent(java.lang.String consumerAgent)
+ {
+ this.consumerAgent = consumerAgent;
+ }
+
+ public boolean isMethodGetSupported()
+ {
+ return methodGetSupported;
+ }
+
+ public void setMethodGetSupported(boolean methodGetSupported)
+ {
+ this.methodGetSupported = methodGetSupported;
+ }
+
+ public java.lang.String[] getConsumerModes()
+ {
+ return consumerModes;
+ }
+
+ public void setConsumerModes(java.lang.String[] consumerModes)
+ {
+ this.consumerModes = consumerModes;
+ }
+
+ public java.lang.String[] getConsumerWindowStates()
+ {
+ return consumerWindowStates;
+ }
+
+ public void setConsumerWindowStates(java.lang.String[] consumerWindowStates)
+ {
+ this.consumerWindowStates = consumerWindowStates;
+ }
+
+ public java.lang.String[] getConsumerUserScopes()
+ {
+ return consumerUserScopes;
+ }
+
+ public void setConsumerUserScopes(java.lang.String[] consumerUserScopes)
+ {
+ this.consumerUserScopes = consumerUserScopes;
+ }
+
+ public java.lang.String[] getCustomUserProfileData()
+ {
+ return customUserProfileData;
+ }
+
+ public void setCustomUserProfileData(java.lang.String[] customUserProfileData)
+ {
+ this.customUserProfileData = customUserProfileData;
+ }
+
+ public org.jboss.portal.wsrp.core.Property[] getRegistrationProperties()
+ {
+ return registrationProperties;
+ }
+
+ public void setRegistrationProperties(org.jboss.portal.wsrp.core.Property[]
registrationProperties)
+ {
+ this.registrationProperties = registrationProperties;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationData.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationState.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationState.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationState.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class RegistrationState implements Serializable
+{
+ protected byte[] registrationState;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public RegistrationState()
+ {
+ }
+
+ public RegistrationState(byte[] registrationState,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.registrationState = registrationState;
+ this.extensions = extensions;
+ }
+
+ public byte[] getRegistrationState()
+ {
+ return registrationState;
+ }
+
+ public void setRegistrationState(byte[] registrationState)
+ {
+ this.registrationState = registrationState;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RegistrationState.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReleaseSessions.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReleaseSessions.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReleaseSessions.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ReleaseSessions implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected java.lang.String[] sessionIDs;
+
+ public ReleaseSessions()
+ {
+ }
+
+ public ReleaseSessions(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, java.lang.String[] sessionIDs)
+ {
+ this.registrationContext = registrationContext;
+ this.sessionIDs = sessionIDs;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public java.lang.String[] getSessionIDs()
+ {
+ return sessionIDs;
+ }
+
+ public void setSessionIDs(java.lang.String[] sessionIDs)
+ {
+ this.sessionIDs = sessionIDs;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReleaseSessions.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResetProperty.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResetProperty.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResetProperty.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ResetProperty implements Serializable
+{
+ protected java.lang.String name;
+
+ public ResetProperty()
+ {
+ }
+
+ public ResetProperty(java.lang.String name)
+ {
+ this.name = name;
+ }
+
+ public java.lang.String getName()
+ {
+ return name;
+ }
+
+ public void setName(java.lang.String name)
+ {
+ this.name = name;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResetProperty.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Resource.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Resource.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Resource.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Resource implements Serializable
+{
+ protected java.lang.String resourceName;
+ protected org.jboss.portal.wsrp.core.ResourceValue[] values;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Resource()
+ {
+ }
+
+ public Resource(java.lang.String resourceName,
org.jboss.portal.wsrp.core.ResourceValue[] values, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.resourceName = resourceName;
+ this.values = values;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getResourceName()
+ {
+ return resourceName;
+ }
+
+ public void setResourceName(java.lang.String resourceName)
+ {
+ this.resourceName = resourceName;
+ }
+
+ public org.jboss.portal.wsrp.core.ResourceValue[] getValues()
+ {
+ return values;
+ }
+
+ public void setValues(org.jboss.portal.wsrp.core.ResourceValue[] values)
+ {
+ this.values = values;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Resource.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceList.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceList.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceList.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ResourceList implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.Resource[] resources;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ResourceList()
+ {
+ }
+
+ public ResourceList(org.jboss.portal.wsrp.core.Resource[] resources,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.resources = resources;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.Resource[] getResources()
+ {
+ return resources;
+ }
+
+ public void setResources(org.jboss.portal.wsrp.core.Resource[] resources)
+ {
+ this.resources = resources;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceList.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceValue.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceValue.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceValue.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ResourceValue implements Serializable
+{
+ protected java.lang.String lang;
+ protected java.lang.String value;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ResourceValue()
+ {
+ }
+
+ public ResourceValue(java.lang.String lang, java.lang.String value,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.lang = lang;
+ this.value = value;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getLang()
+ {
+ return lang;
+ }
+
+ public void setLang(java.lang.String lang)
+ {
+ this.lang = lang;
+ }
+
+ public java.lang.String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(java.lang.String value)
+ {
+ this.value = value;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ResourceValue.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReturnAny.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReturnAny.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReturnAny.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ReturnAny implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ReturnAny()
+ {
+ }
+
+ public ReturnAny(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ReturnAny.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RuntimeContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RuntimeContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RuntimeContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,116 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class RuntimeContext implements Serializable
+{
+ protected java.lang.String userAuthentication;
+ protected java.lang.String portletInstanceKey;
+ protected java.lang.String namespacePrefix;
+ protected org.jboss.portal.wsrp.core.Templates templates;
+ protected java.lang.String sessionID;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public RuntimeContext()
+ {
+ }
+
+ public RuntimeContext(java.lang.String userAuthentication, java.lang.String
portletInstanceKey, java.lang.String namespacePrefix, org.jboss.portal.wsrp.core.Templates
templates, java.lang.String sessionID, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.userAuthentication = userAuthentication;
+ this.portletInstanceKey = portletInstanceKey;
+ this.namespacePrefix = namespacePrefix;
+ this.templates = templates;
+ this.sessionID = sessionID;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getUserAuthentication()
+ {
+ return userAuthentication;
+ }
+
+ public void setUserAuthentication(java.lang.String userAuthentication)
+ {
+ this.userAuthentication = userAuthentication;
+ }
+
+ public java.lang.String getPortletInstanceKey()
+ {
+ return portletInstanceKey;
+ }
+
+ public void setPortletInstanceKey(java.lang.String portletInstanceKey)
+ {
+ this.portletInstanceKey = portletInstanceKey;
+ }
+
+ public java.lang.String getNamespacePrefix()
+ {
+ return namespacePrefix;
+ }
+
+ public void setNamespacePrefix(java.lang.String namespacePrefix)
+ {
+ this.namespacePrefix = namespacePrefix;
+ }
+
+ public org.jboss.portal.wsrp.core.Templates getTemplates()
+ {
+ return templates;
+ }
+
+ public void setTemplates(org.jboss.portal.wsrp.core.Templates templates)
+ {
+ this.templates = templates;
+ }
+
+ public java.lang.String getSessionID()
+ {
+ return sessionID;
+ }
+
+ public void setSessionID(java.lang.String sessionID)
+ {
+ this.sessionID = sessionID;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/RuntimeContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ServiceDescription.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ServiceDescription.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ServiceDescription.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,176 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class ServiceDescription implements Serializable
+{
+ protected boolean requiresRegistration;
+ protected org.jboss.portal.wsrp.core.PortletDescription[] offeredPortlets;
+ protected org.jboss.portal.wsrp.core.ItemDescription[] userCategoryDescriptions;
+ protected org.jboss.portal.wsrp.core.ItemDescription[]
customUserProfileItemDescriptions;
+ protected org.jboss.portal.wsrp.core.ItemDescription[] customWindowStateDescriptions;
+ protected org.jboss.portal.wsrp.core.ItemDescription[] customModeDescriptions;
+ protected org.jboss.portal.wsrp.core.CookieProtocol requiresInitCookie;
+ protected org.jboss.portal.wsrp.core.ModelDescription
registrationPropertyDescription;
+ protected java.lang.String[] locales;
+ protected org.jboss.portal.wsrp.core.ResourceList resourceList;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public ServiceDescription()
+ {
+ }
+
+ public ServiceDescription(boolean requiresRegistration,
org.jboss.portal.wsrp.core.PortletDescription[] offeredPortlets,
org.jboss.portal.wsrp.core.ItemDescription[] userCategoryDescriptions,
org.jboss.portal.wsrp.core.ItemDescription[] customUserProfileItemDescriptions,
org.jboss.portal.wsrp.core.ItemDescription[] customWindowStateDescriptions,
org.jboss.portal.wsrp.core.ItemDescription[] customModeDescriptions,
org.jboss.portal.wsrp.core.CookieProtocol requiresInitCookie,
org.jboss.portal.wsrp.core.ModelDescription registrationPropertyDescription,
java.lang.String[] locales, org.jboss.portal.wsrp.core.ResourceList resourceList,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.requiresRegistration = requiresRegistration;
+ this.offeredPortlets = offeredPortlets;
+ this.userCategoryDescriptions = userCategoryDescriptions;
+ this.customUserProfileItemDescriptions = customUserProfileItemDescriptions;
+ this.customWindowStateDescriptions = customWindowStateDescriptions;
+ this.customModeDescriptions = customModeDescriptions;
+ this.requiresInitCookie = requiresInitCookie;
+ this.registrationPropertyDescription = registrationPropertyDescription;
+ this.locales = locales;
+ this.resourceList = resourceList;
+ this.extensions = extensions;
+ }
+
+ public boolean isRequiresRegistration()
+ {
+ return requiresRegistration;
+ }
+
+ public void setRequiresRegistration(boolean requiresRegistration)
+ {
+ this.requiresRegistration = requiresRegistration;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletDescription[] getOfferedPortlets()
+ {
+ return offeredPortlets;
+ }
+
+ public void setOfferedPortlets(org.jboss.portal.wsrp.core.PortletDescription[]
offeredPortlets)
+ {
+ this.offeredPortlets = offeredPortlets;
+ }
+
+ public org.jboss.portal.wsrp.core.ItemDescription[] getUserCategoryDescriptions()
+ {
+ return userCategoryDescriptions;
+ }
+
+ public void setUserCategoryDescriptions(org.jboss.portal.wsrp.core.ItemDescription[]
userCategoryDescriptions)
+ {
+ this.userCategoryDescriptions = userCategoryDescriptions;
+ }
+
+ public org.jboss.portal.wsrp.core.ItemDescription[]
getCustomUserProfileItemDescriptions()
+ {
+ return customUserProfileItemDescriptions;
+ }
+
+ public void
setCustomUserProfileItemDescriptions(org.jboss.portal.wsrp.core.ItemDescription[]
customUserProfileItemDescriptions)
+ {
+ this.customUserProfileItemDescriptions = customUserProfileItemDescriptions;
+ }
+
+ public org.jboss.portal.wsrp.core.ItemDescription[]
getCustomWindowStateDescriptions()
+ {
+ return customWindowStateDescriptions;
+ }
+
+ public void
setCustomWindowStateDescriptions(org.jboss.portal.wsrp.core.ItemDescription[]
customWindowStateDescriptions)
+ {
+ this.customWindowStateDescriptions = customWindowStateDescriptions;
+ }
+
+ public org.jboss.portal.wsrp.core.ItemDescription[] getCustomModeDescriptions()
+ {
+ return customModeDescriptions;
+ }
+
+ public void setCustomModeDescriptions(org.jboss.portal.wsrp.core.ItemDescription[]
customModeDescriptions)
+ {
+ this.customModeDescriptions = customModeDescriptions;
+ }
+
+ public org.jboss.portal.wsrp.core.CookieProtocol getRequiresInitCookie()
+ {
+ return requiresInitCookie;
+ }
+
+ public void setRequiresInitCookie(org.jboss.portal.wsrp.core.CookieProtocol
requiresInitCookie)
+ {
+ this.requiresInitCookie = requiresInitCookie;
+ }
+
+ public org.jboss.portal.wsrp.core.ModelDescription
getRegistrationPropertyDescription()
+ {
+ return registrationPropertyDescription;
+ }
+
+ public void
setRegistrationPropertyDescription(org.jboss.portal.wsrp.core.ModelDescription
registrationPropertyDescription)
+ {
+ this.registrationPropertyDescription = registrationPropertyDescription;
+ }
+
+ public java.lang.String[] getLocales()
+ {
+ return locales;
+ }
+
+ public void setLocales(java.lang.String[] locales)
+ {
+ this.locales = locales;
+ }
+
+ public org.jboss.portal.wsrp.core.ResourceList getResourceList()
+ {
+ return resourceList;
+ }
+
+ public void setResourceList(org.jboss.portal.wsrp.core.ResourceList resourceList)
+ {
+ this.resourceList = resourceList;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/ServiceDescription.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SessionContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SessionContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SessionContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,80 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class SessionContext implements Serializable
+{
+ protected java.lang.String sessionID;
+ protected int expires;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public SessionContext()
+ {
+ }
+
+ public SessionContext(java.lang.String sessionID, int expires,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.sessionID = sessionID;
+ this.expires = expires;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getSessionID()
+ {
+ return sessionID;
+ }
+
+ public void setSessionID(java.lang.String sessionID)
+ {
+ this.sessionID = sessionID;
+ }
+
+ public int getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(int expires)
+ {
+ this.expires = expires;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SessionContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SetPortletProperties.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SetPortletProperties.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SetPortletProperties.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class SetPortletProperties implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.RegistrationContext registrationContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.UserContext userContext;
+ protected org.jboss.portal.wsrp.core.PropertyList propertyList;
+
+ public SetPortletProperties()
+ {
+ }
+
+ public SetPortletProperties(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext, org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.UserContext userContext,
org.jboss.portal.wsrp.core.PropertyList propertyList)
+ {
+ this.registrationContext = registrationContext;
+ this.portletContext = portletContext;
+ this.userContext = userContext;
+ this.propertyList = propertyList;
+ }
+
+ public org.jboss.portal.wsrp.core.RegistrationContext getRegistrationContext()
+ {
+ return registrationContext;
+ }
+
+ public void setRegistrationContext(org.jboss.portal.wsrp.core.RegistrationContext
registrationContext)
+ {
+ this.registrationContext = registrationContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.UserContext getUserContext()
+ {
+ return userContext;
+ }
+
+ public void setUserContext(org.jboss.portal.wsrp.core.UserContext userContext)
+ {
+ this.userContext = userContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PropertyList getPropertyList()
+ {
+ return propertyList;
+ }
+
+ public void setPropertyList(org.jboss.portal.wsrp.core.PropertyList propertyList)
+ {
+ this.propertyList = propertyList;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/SetPortletProperties.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/StateChange.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/StateChange.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/StateChange.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+import java.io.Serializable;
+import java.util.HashMap;
+
+public class StateChange implements Serializable
+{
+ private java.lang.String value;
+ private static java.util.Map valueMap = new HashMap();
+ public static final java.lang.String _readWriteString = "readWrite";
+ public static final java.lang.String _cloneBeforeWriteString =
"cloneBeforeWrite";
+ public static final java.lang.String _readOnlyString = "readOnly";
+
+ public static final java.lang.String _readWrite = new
java.lang.String(_readWriteString);
+ public static final java.lang.String _cloneBeforeWrite = new
java.lang.String(_cloneBeforeWriteString);
+ public static final java.lang.String _readOnly = new
java.lang.String(_readOnlyString);
+
+ public static final StateChange readWrite = new StateChange(_readWrite);
+ public static final StateChange cloneBeforeWrite = new
StateChange(_cloneBeforeWrite);
+ public static final StateChange readOnly = new StateChange(_readOnly);
+
+ protected StateChange(java.lang.String value)
+ {
+ this.value = value;
+ valueMap.put(this.toString(), this);
+ }
+
+ public java.lang.String getValue()
+ {
+ return value;
+ }
+
+ public static StateChange fromValue(java.lang.String value)
+ throws java.lang.IllegalStateException
+ {
+ if (readWrite.value.equals(value))
+ {
+ return readWrite;
+ }
+ else if (cloneBeforeWrite.value.equals(value))
+ {
+ return cloneBeforeWrite;
+ }
+ else if (readOnly.value.equals(value))
+ {
+ return readOnly;
+ }
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ public static StateChange fromString(java.lang.String value)
+ throws java.lang.IllegalStateException
+ {
+ StateChange ret = (StateChange)valueMap.get(value);
+ if (ret != null)
+ {
+ return ret;
+ }
+ if (value.equals(_readWriteString))
+ {
+ return readWrite;
+ }
+ else if (value.equals(_cloneBeforeWriteString))
+ {
+ return cloneBeforeWrite;
+ }
+ else if (value.equals(_readOnlyString))
+ {
+ return readOnly;
+ }
+ throw new IllegalArgumentException();
+ }
+
+ public java.lang.String toString()
+ {
+ return value.toString();
+ }
+
+ private java.lang.Object readResolve()
+ throws java.io.ObjectStreamException
+ {
+ return fromValue(getValue());
+ }
+
+ public boolean equals(java.lang.Object obj)
+ {
+ if (!(obj instanceof StateChange))
+ {
+ return false;
+ }
+ return ((StateChange)obj).value.equals(value);
+ }
+
+ public int hashCode()
+ {
+ return value.hashCode();
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/StateChange.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Telecom.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Telecom.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Telecom.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Telecom implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.TelephoneNum telephone;
+ protected org.jboss.portal.wsrp.core.TelephoneNum fax;
+ protected org.jboss.portal.wsrp.core.TelephoneNum mobile;
+ protected org.jboss.portal.wsrp.core.TelephoneNum pager;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Telecom()
+ {
+ }
+
+ public Telecom(org.jboss.portal.wsrp.core.TelephoneNum telephone,
org.jboss.portal.wsrp.core.TelephoneNum fax, org.jboss.portal.wsrp.core.TelephoneNum
mobile, org.jboss.portal.wsrp.core.TelephoneNum pager,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.telephone = telephone;
+ this.fax = fax;
+ this.mobile = mobile;
+ this.pager = pager;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.TelephoneNum getTelephone()
+ {
+ return telephone;
+ }
+
+ public void setTelephone(org.jboss.portal.wsrp.core.TelephoneNum telephone)
+ {
+ this.telephone = telephone;
+ }
+
+ public org.jboss.portal.wsrp.core.TelephoneNum getFax()
+ {
+ return fax;
+ }
+
+ public void setFax(org.jboss.portal.wsrp.core.TelephoneNum fax)
+ {
+ this.fax = fax;
+ }
+
+ public org.jboss.portal.wsrp.core.TelephoneNum getMobile()
+ {
+ return mobile;
+ }
+
+ public void setMobile(org.jboss.portal.wsrp.core.TelephoneNum mobile)
+ {
+ this.mobile = mobile;
+ }
+
+ public org.jboss.portal.wsrp.core.TelephoneNum getPager()
+ {
+ return pager;
+ }
+
+ public void setPager(org.jboss.portal.wsrp.core.TelephoneNum pager)
+ {
+ this.pager = pager;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Telecom.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/TelephoneNum.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/TelephoneNum.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/TelephoneNum.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,116 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class TelephoneNum implements Serializable
+{
+ protected java.lang.String intcode;
+ protected java.lang.String loccode;
+ protected java.lang.String number;
+ protected java.lang.String ext;
+ protected java.lang.String comment;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public TelephoneNum()
+ {
+ }
+
+ public TelephoneNum(java.lang.String intcode, java.lang.String loccode,
java.lang.String number, java.lang.String ext, java.lang.String comment,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.intcode = intcode;
+ this.loccode = loccode;
+ this.number = number;
+ this.ext = ext;
+ this.comment = comment;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getIntcode()
+ {
+ return intcode;
+ }
+
+ public void setIntcode(java.lang.String intcode)
+ {
+ this.intcode = intcode;
+ }
+
+ public java.lang.String getLoccode()
+ {
+ return loccode;
+ }
+
+ public void setLoccode(java.lang.String loccode)
+ {
+ this.loccode = loccode;
+ }
+
+ public java.lang.String getNumber()
+ {
+ return number;
+ }
+
+ public void setNumber(java.lang.String number)
+ {
+ this.number = number;
+ }
+
+ public java.lang.String getExt()
+ {
+ return ext;
+ }
+
+ public void setExt(java.lang.String ext)
+ {
+ this.ext = ext;
+ }
+
+ public java.lang.String getComment()
+ {
+ return comment;
+ }
+
+ public void setComment(java.lang.String comment)
+ {
+ this.comment = comment;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/TelephoneNum.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Templates.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Templates.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Templates.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,152 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class Templates implements Serializable
+{
+ protected java.lang.String defaultTemplate;
+ protected java.lang.String blockingActionTemplate;
+ protected java.lang.String renderTemplate;
+ protected java.lang.String resourceTemplate;
+ protected java.lang.String secureDefaultTemplate;
+ protected java.lang.String secureBlockingActionTemplate;
+ protected java.lang.String secureRenderTemplate;
+ protected java.lang.String secureResourceTemplate;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public Templates()
+ {
+ }
+
+ public Templates(java.lang.String defaultTemplate, java.lang.String
blockingActionTemplate, java.lang.String renderTemplate, java.lang.String
resourceTemplate, java.lang.String secureDefaultTemplate, java.lang.String
secureBlockingActionTemplate, java.lang.String secureRenderTemplate, java.lang.String
secureResourceTemplate, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.defaultTemplate = defaultTemplate;
+ this.blockingActionTemplate = blockingActionTemplate;
+ this.renderTemplate = renderTemplate;
+ this.resourceTemplate = resourceTemplate;
+ this.secureDefaultTemplate = secureDefaultTemplate;
+ this.secureBlockingActionTemplate = secureBlockingActionTemplate;
+ this.secureRenderTemplate = secureRenderTemplate;
+ this.secureResourceTemplate = secureResourceTemplate;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getDefaultTemplate()
+ {
+ return defaultTemplate;
+ }
+
+ public void setDefaultTemplate(java.lang.String defaultTemplate)
+ {
+ this.defaultTemplate = defaultTemplate;
+ }
+
+ public java.lang.String getBlockingActionTemplate()
+ {
+ return blockingActionTemplate;
+ }
+
+ public void setBlockingActionTemplate(java.lang.String blockingActionTemplate)
+ {
+ this.blockingActionTemplate = blockingActionTemplate;
+ }
+
+ public java.lang.String getRenderTemplate()
+ {
+ return renderTemplate;
+ }
+
+ public void setRenderTemplate(java.lang.String renderTemplate)
+ {
+ this.renderTemplate = renderTemplate;
+ }
+
+ public java.lang.String getResourceTemplate()
+ {
+ return resourceTemplate;
+ }
+
+ public void setResourceTemplate(java.lang.String resourceTemplate)
+ {
+ this.resourceTemplate = resourceTemplate;
+ }
+
+ public java.lang.String getSecureDefaultTemplate()
+ {
+ return secureDefaultTemplate;
+ }
+
+ public void setSecureDefaultTemplate(java.lang.String secureDefaultTemplate)
+ {
+ this.secureDefaultTemplate = secureDefaultTemplate;
+ }
+
+ public java.lang.String getSecureBlockingActionTemplate()
+ {
+ return secureBlockingActionTemplate;
+ }
+
+ public void setSecureBlockingActionTemplate(java.lang.String
secureBlockingActionTemplate)
+ {
+ this.secureBlockingActionTemplate = secureBlockingActionTemplate;
+ }
+
+ public java.lang.String getSecureRenderTemplate()
+ {
+ return secureRenderTemplate;
+ }
+
+ public void setSecureRenderTemplate(java.lang.String secureRenderTemplate)
+ {
+ this.secureRenderTemplate = secureRenderTemplate;
+ }
+
+ public java.lang.String getSecureResourceTemplate()
+ {
+ return secureResourceTemplate;
+ }
+
+ public void setSecureResourceTemplate(java.lang.String secureResourceTemplate)
+ {
+ this.secureResourceTemplate = secureResourceTemplate;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/Templates.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedLocaleFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedLocaleFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedLocaleFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class UnsupportedLocaleFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public UnsupportedLocaleFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedLocaleFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedMimeTypeFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedMimeTypeFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedMimeTypeFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class UnsupportedMimeTypeFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public UnsupportedMimeTypeFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedMimeTypeFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedModeFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedModeFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedModeFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class UnsupportedModeFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public UnsupportedModeFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedModeFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedWindowStateFault.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedWindowStateFault.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedWindowStateFault.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+
+public class UnsupportedWindowStateFault extends org.jboss.portal.wsrp.core.Fault
+{
+
+
+ public UnsupportedWindowStateFault()
+ {
+ }
+
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UnsupportedWindowStateFault.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UpdateResponse.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UpdateResponse.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UpdateResponse.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,116 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class UpdateResponse implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.SessionContext sessionContext;
+ protected org.jboss.portal.wsrp.core.PortletContext portletContext;
+ protected org.jboss.portal.wsrp.core.MarkupContext markupContext;
+ protected java.lang.String navigationalState;
+ protected java.lang.String newWindowState;
+ protected java.lang.String newMode;
+
+ public UpdateResponse()
+ {
+ }
+
+ public UpdateResponse(org.jboss.portal.wsrp.core.SessionContext sessionContext,
org.jboss.portal.wsrp.core.PortletContext portletContext,
org.jboss.portal.wsrp.core.MarkupContext markupContext, java.lang.String
navigationalState, java.lang.String newWindowState, java.lang.String newMode)
+ {
+ this.sessionContext = sessionContext;
+ this.portletContext = portletContext;
+ this.markupContext = markupContext;
+ this.navigationalState = navigationalState;
+ this.newWindowState = newWindowState;
+ this.newMode = newMode;
+ }
+
+ public org.jboss.portal.wsrp.core.SessionContext getSessionContext()
+ {
+ return sessionContext;
+ }
+
+ public void setSessionContext(org.jboss.portal.wsrp.core.SessionContext
sessionContext)
+ {
+ this.sessionContext = sessionContext;
+ }
+
+ public org.jboss.portal.wsrp.core.PortletContext getPortletContext()
+ {
+ return portletContext;
+ }
+
+ public void setPortletContext(org.jboss.portal.wsrp.core.PortletContext
portletContext)
+ {
+ this.portletContext = portletContext;
+ }
+
+ public org.jboss.portal.wsrp.core.MarkupContext getMarkupContext()
+ {
+ return markupContext;
+ }
+
+ public void setMarkupContext(org.jboss.portal.wsrp.core.MarkupContext markupContext)
+ {
+ this.markupContext = markupContext;
+ }
+
+ public java.lang.String getNavigationalState()
+ {
+ return navigationalState;
+ }
+
+ public void setNavigationalState(java.lang.String navigationalState)
+ {
+ this.navigationalState = navigationalState;
+ }
+
+ public java.lang.String getNewWindowState()
+ {
+ return newWindowState;
+ }
+
+ public void setNewWindowState(java.lang.String newWindowState)
+ {
+ this.newWindowState = newWindowState;
+ }
+
+ public java.lang.String getNewMode()
+ {
+ return newMode;
+ }
+
+ public void setNewMode(java.lang.String newMode)
+ {
+ this.newMode = newMode;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UpdateResponse.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UploadContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UploadContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UploadContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class UploadContext implements Serializable
+{
+ protected java.lang.String mimeType;
+ protected byte[] uploadData;
+ protected org.jboss.portal.wsrp.core.NamedString[] mimeAttributes;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public UploadContext()
+ {
+ }
+
+ public UploadContext(java.lang.String mimeType, byte[] uploadData,
org.jboss.portal.wsrp.core.NamedString[] mimeAttributes,
org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.mimeType = mimeType;
+ this.uploadData = uploadData;
+ this.mimeAttributes = mimeAttributes;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getMimeType()
+ {
+ return mimeType;
+ }
+
+ public void setMimeType(java.lang.String mimeType)
+ {
+ this.mimeType = mimeType;
+ }
+
+ public byte[] getUploadData()
+ {
+ return uploadData;
+ }
+
+ public void setUploadData(byte[] uploadData)
+ {
+ this.uploadData = uploadData;
+ }
+
+ public org.jboss.portal.wsrp.core.NamedString[] getMimeAttributes()
+ {
+ return mimeAttributes;
+ }
+
+ public void setMimeAttributes(org.jboss.portal.wsrp.core.NamedString[]
mimeAttributes)
+ {
+ this.mimeAttributes = mimeAttributes;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UploadContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserContext.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class UserContext implements Serializable
+{
+ protected java.lang.String userContextKey;
+ protected java.lang.String[] userCategories;
+ protected org.jboss.portal.wsrp.core.UserProfile profile;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public UserContext()
+ {
+ }
+
+ public UserContext(java.lang.String userContextKey, java.lang.String[] userCategories,
org.jboss.portal.wsrp.core.UserProfile profile, org.jboss.portal.wsrp.core.Extension[]
extensions)
+ {
+ this.userContextKey = userContextKey;
+ this.userCategories = userCategories;
+ this.profile = profile;
+ this.extensions = extensions;
+ }
+
+ public java.lang.String getUserContextKey()
+ {
+ return userContextKey;
+ }
+
+ public void setUserContextKey(java.lang.String userContextKey)
+ {
+ this.userContextKey = userContextKey;
+ }
+
+ public java.lang.String[] getUserCategories()
+ {
+ return userCategories;
+ }
+
+ public void setUserCategories(java.lang.String[] userCategories)
+ {
+ this.userCategories = userCategories;
+ }
+
+ public org.jboss.portal.wsrp.core.UserProfile getProfile()
+ {
+ return profile;
+ }
+
+ public void setProfile(org.jboss.portal.wsrp.core.UserProfile profile)
+ {
+ this.profile = profile;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserContext.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserProfile.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserProfile.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserProfile.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,128 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import java.io.Serializable;
+
+
+public class UserProfile implements Serializable
+{
+ protected org.jboss.portal.wsrp.core.PersonName name;
+ protected java.util.Calendar bdate;
+ protected java.lang.String gender;
+ protected org.jboss.portal.wsrp.core.EmployerInfo employerInfo;
+ protected org.jboss.portal.wsrp.core.Contact homeInfo;
+ protected org.jboss.portal.wsrp.core.Contact businessInfo;
+ protected org.jboss.portal.wsrp.core.Extension[] extensions;
+
+ public UserProfile()
+ {
+ }
+
+ public UserProfile(org.jboss.portal.wsrp.core.PersonName name, java.util.Calendar
bdate, java.lang.String gender, org.jboss.portal.wsrp.core.EmployerInfo employerInfo,
org.jboss.portal.wsrp.core.Contact homeInfo, org.jboss.portal.wsrp.core.Contact
businessInfo, org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.name = name;
+ this.bdate = bdate;
+ this.gender = gender;
+ this.employerInfo = employerInfo;
+ this.homeInfo = homeInfo;
+ this.businessInfo = businessInfo;
+ this.extensions = extensions;
+ }
+
+ public org.jboss.portal.wsrp.core.PersonName getName()
+ {
+ return name;
+ }
+
+ public void setName(org.jboss.portal.wsrp.core.PersonName name)
+ {
+ this.name = name;
+ }
+
+ public java.util.Calendar getBdate()
+ {
+ return bdate;
+ }
+
+ public void setBdate(java.util.Calendar bdate)
+ {
+ this.bdate = bdate;
+ }
+
+ public java.lang.String getGender()
+ {
+ return gender;
+ }
+
+ public void setGender(java.lang.String gender)
+ {
+ this.gender = gender;
+ }
+
+ public org.jboss.portal.wsrp.core.EmployerInfo getEmployerInfo()
+ {
+ return employerInfo;
+ }
+
+ public void setEmployerInfo(org.jboss.portal.wsrp.core.EmployerInfo employerInfo)
+ {
+ this.employerInfo = employerInfo;
+ }
+
+ public org.jboss.portal.wsrp.core.Contact getHomeInfo()
+ {
+ return homeInfo;
+ }
+
+ public void setHomeInfo(org.jboss.portal.wsrp.core.Contact homeInfo)
+ {
+ this.homeInfo = homeInfo;
+ }
+
+ public org.jboss.portal.wsrp.core.Contact getBusinessInfo()
+ {
+ return businessInfo;
+ }
+
+ public void setBusinessInfo(org.jboss.portal.wsrp.core.Contact businessInfo)
+ {
+ this.businessInfo = businessInfo;
+ }
+
+ public org.jboss.portal.wsrp.core.Extension[] getExtensions()
+ {
+ return extensions;
+ }
+
+ public void setExtensions(org.jboss.portal.wsrp.core.Extension[] extensions)
+ {
+ this.extensions = extensions;
+ }
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/UserProfile.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRPService.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRPService.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRPService.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+import javax.xml.rpc.ServiceException;
+
+public interface WSRPService extends javax.xml.rpc.Service
+{
+ public org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType getWSRPMarkupService()
throws ServiceException;
+
+ public org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType
getWSRPServiceDescriptionService() throws ServiceException;
+
+ public org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType
getWSRPRegistrationService() throws ServiceException;
+
+ public org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType
getWSRPPortletManagementService() throws ServiceException;
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRPService.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Markup_PortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Markup_PortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Markup_PortType.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+public interface WSRP_v1_Markup_PortType extends java.rmi.Remote
+{
+ public org.jboss.portal.wsrp.core.MarkupResponse
getMarkup(org.jboss.portal.wsrp.core.GetMarkup getMarkup) throws
+ org.jboss.portal.wsrp.core.UnsupportedWindowStateFault,
org.jboss.portal.wsrp.core.InvalidCookieFault,
org.jboss.portal.wsrp.core.InvalidSessionFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.UnsupportedLocaleFault,
org.jboss.portal.wsrp.core.UnsupportedModeFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.BlockingInteractionResponse
performBlockingInteraction(org.jboss.portal.wsrp.core.PerformBlockingInteraction
performBlockingInteraction) throws
+ org.jboss.portal.wsrp.core.InvalidSessionFault,
org.jboss.portal.wsrp.core.UnsupportedModeFault,
org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.UnsupportedWindowStateFault,
org.jboss.portal.wsrp.core.UnsupportedLocaleFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.InvalidCookieFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.ReturnAny
releaseSessions(org.jboss.portal.wsrp.core.ReleaseSessions releaseSessions) throws
+ org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.AccessDeniedFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.ReturnAny
initCookie(org.jboss.portal.wsrp.core.InitCookie initCookie) throws
+ org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault, java.rmi.RemoteException;
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Markup_PortType.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_PortletManagement_PortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_PortletManagement_PortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_PortletManagement_PortType.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,50 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+public interface WSRP_v1_PortletManagement_PortType extends java.rmi.Remote
+{
+ public org.jboss.portal.wsrp.core.PortletDescriptionResponse
getPortletDescription(org.jboss.portal.wsrp.core.GetPortletDescription
getPortletDescription) throws
+ org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.OperationFailedFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.PortletContext
clonePortlet(org.jboss.portal.wsrp.core.ClonePortlet clonePortlet) throws
+ org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.MissingParametersFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.DestroyPortletsResponse
destroyPortlets(org.jboss.portal.wsrp.core.DestroyPortlets destroyPortlets) throws
+ org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.OperationFailedFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.PortletContext
setPortletProperties(org.jboss.portal.wsrp.core.SetPortletProperties setPortletProperties)
throws
+ org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.PropertyList
getPortletProperties(org.jboss.portal.wsrp.core.GetPortletProperties getPortletProperties)
throws
+ org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse
getPortletPropertyDescription(org.jboss.portal.wsrp.core.GetPortletPropertyDescription
getPortletPropertyDescription) throws
+ org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.InconsistentParametersFault,
org.jboss.portal.wsrp.core.InvalidUserCategoryFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault,
org.jboss.portal.wsrp.core.AccessDeniedFault,
org.jboss.portal.wsrp.core.InvalidHandleFault,
org.jboss.portal.wsrp.core.OperationFailedFault, java.rmi.RemoteException;
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_PortletManagement_PortType.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Registration_PortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Registration_PortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Registration_PortType.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+public interface WSRP_v1_Registration_PortType extends java.rmi.Remote
+{
+ public org.jboss.portal.wsrp.core.RegistrationContext
register(org.jboss.portal.wsrp.core.RegistrationData register) throws
+ org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.OperationFailedFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.ReturnAny
deregister(org.jboss.portal.wsrp.core.RegistrationContext deregister) throws
+ org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault, java.rmi.RemoteException;
+
+ public org.jboss.portal.wsrp.core.RegistrationState
modifyRegistration(org.jboss.portal.wsrp.core.ModifyRegistration modifyRegistration)
throws
+ org.jboss.portal.wsrp.core.MissingParametersFault,
org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault, java.rmi.RemoteException;
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_Registration_PortType.java
___________________________________________________________________
Name: svn:executable
+ *
Added:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_ServiceDescription_PortType.java
===================================================================
---
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_ServiceDescription_PortType.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_ServiceDescription_PortType.java 2009-07-31
22:55:19 UTC (rev 13649)
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.portal.wsrp.core;
+
+public interface WSRP_v1_ServiceDescription_PortType extends java.rmi.Remote
+{
+ public org.jboss.portal.wsrp.core.ServiceDescription
getServiceDescription(org.jboss.portal.wsrp.core.GetServiceDescription
getServiceDescription) throws
+ org.jboss.portal.wsrp.core.OperationFailedFault,
org.jboss.portal.wsrp.core.InvalidRegistrationFault, java.rmi.RemoteException;
+}
Property changes on:
jbossexo/modules/wsrp/trunk/wsrp1-rpc/src/main/java/org/jboss/portal/wsrp/core/WSRP_v1_ServiceDescription_PortType.java
___________________________________________________________________
Name: svn:executable
+ *