You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2005/08/24 20:00:55 UTC

cvs commit: ws-wsrp4j/sandbox/wsrp4j/consumer/src/webapp/WEB-INF/persistence/producers org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml

dlouzan     2005/08/24 11:00:55

  Added:       sandbox/wsrp4j/consumer/src/webapp/WEB-INF/persistence
                        ProducerMapping.xml
               sandbox/wsrp4j/consumer/src/webapp/WEB-INF/persistence/producers
                        org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml
  Log:
  Initial commit.
  
  Revision  Changes    Path
  1.1                  ws-wsrp4j/sandbox/wsrp4j/consumer/src/webapp/WEB-INF/persistence/ProducerMapping.xml
  
  Index: ProducerMapping.xml
  ===================================================================
  <?xml version="1.0"?>
  <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN"
                           "http://castor.exolab.org/mapping.dtd">
  
  <!--
  Copyright 2003-2005 The Apache Software Foundation.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  
  <mapping>
  
      <class name="org.apache.wsrp4j.consumer.driver.ProducerImpl">
          <map-to xml="Producer"/>
  
  
          <field name="ProducerID"
                 type="java.lang.String"
                 get-method="getID"
                 set-method="setID"
                 required="true">
              <bind-xml name="id" node="attribute"/>
          </field>
  
          <field name="RegistrationRequired"
                 type="boolean"
                 get-method="isRegistrationRequired"
                 set-method="setIsRegistrationRequired"
                 required="false">
              <bind-xml name="registrationRequired" node="attribute"/>
          </field>
  
          <field name="RegistrationData"
                 type="oasis.names.tc.wsrp.v1.types.RegistrationData"
                 get-method="getRegistrationData"
                 set-method="setRegistrationData"
                 required="false">
              <bind-xml name="registration-data"/>
          </field>
  
          <field name="markupInterfaceURL"
                 type="java.lang.String"
                 get-method="getMarkupInterfaceEndpoint"
                 set-method="setMarkupInterfaceEndpoint"
                 required="true">
              <bind-xml name="markup-interface-url" node="element"/>
          </field>
  
          <field name="ServiceDescriptionInterfaceURL"
                 type="java.lang.String"
                 get-method="getServiceDescriptionInterfaceEndpoint"
                 set-method="initServiceDescInterface"
                 required="true">
              <bind-xml name="service-description-interface-url" node="element"/>
          </field>
  
          <field name="RegistrationInterfaceURL"
                 type="java.lang.String"
                 get-method="getRegistrationInterfaceEndpoint"
                 set-method="initRegistrationInterface"
                 required="false">
              <bind-xml name="registration-interface-url" node="element"/>
          </field>
  
          <field name="portletManagementInterfaceURL"
                 type="java.lang.String"
                 get-method="getPortletManagementInterfaceEndpoint"
                 set-method="initPortletManagementInterface"
                 required="false">
              <bind-xml name="portlet-management-interface-url" node="element"/>
          </field>
  
          
          <field name="Name"
                 type="java.lang.String"
                 get-method="getName"
                 set-method="setName"
                 required="false">
              <bind-xml name="Name" node="element"/>
          </field>
  
          <field name="Description"
                 type="java.lang.String"
                 get-method="getDescription"
                 set-method="setDescription"
                 required="false">
              <bind-xml name="Desc" node="element"/>
          </field>
  
          <field name="RegistrationContext"
                 type="oasis.names.tc.wsrp.v1.types.RegistrationContext"
                 get-method="getRegistrationContext"
                 set-method="setRegistrationContext"
                 required="false">
              <bind-xml name="registration-context" node="element"/>
          </field>
  
      </class>
  
      <class name="oasis.names.tc.wsrp.v1.types.RegistrationData">
          <map-to xml="RegistrationData"/>
  
          <field name="ConsumerName"
                 type="java.lang.String"
                 get-method="getConsumerName"
                 set-method="setConsumerName"
                 required="true">
              <bind-xml name="consumer-name" node="element"/>
          </field>
  
          <field name="ConsumerAgent"
                 type="java.lang.String"
                 get-method="getConsumerAgent"
                 set-method="setConsumerAgent"
                 required="true">
              <bind-xml name="consumer-agent" node="element"/>
          </field>
  
          <field name="ConsumerModes"
                 type="java.lang.String" collection="array"
                 get-method="getConsumerModes"
                 set-method="setConsumerModes"
                 required="false">
              <bind-xml name="supported-mode"/>
          </field>
  
          <field name="ConsumerWindowStates"
                 type="java.lang.String" collection="array"
                 get-method="getConsumerWindowStates"
                 set-method="setConsumerWindowStates"
                 required="false">
              <bind-xml name="supported-window-state"/>
          </field>
  
          <field name="CustomUserProfileData"
                 type="java.lang.String" collection="array"
                 get-method="getCustomUserProfileData"
                 set-method="setCustomUserProfileData"
                 required="false">
              <bind-xml name="user-profile-data"/>
          </field>
  
          <field name="RegistrationProperties"
                 type="oasis.names.tc.wsrp.v1.types.Property" collection="array"
                 get-method="getRegistrationProperties"
                 set-method="setRegistrationProperties"
                 required="false">
              <bind-xml name="registration-props"/>
          </field>
  
      </class>
  
  </mapping>
  
  
  
  1.1                  ws-wsrp4j/sandbox/wsrp4j/consumer/src/webapp/WEB-INF/persistence/producers/org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml
  
  Index: org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
  Copyright 2003-2005 The Apache Software Foundation.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  
  
  <Producer id="1">    
  
      <markup-interface-url>
          http://localhost:8081/wsrp/wsrp4j/WSRPBaseService
      </markup-interface-url>
      <service-description-interface-url>
          http://localhost:8081/wsrp/wsrp4j/WSRPServiceDescriptionService
      </service-description-interface-url>
      <registration-interface-url>
          http://localhost:8081/wsrp/wsrp4j/WSRPRegistrationService
      </registration-interface-url>
      <portlet-management-interface-url>
          http://localhost:8081/wsrp/wsrp4j/WSRPPortletManagementService
      </portlet-management-interface-url>
  
      <registration-data>
          <consumer-name>WSRP4J Consumer</consumer-name>
          <consumer-agent>WSRP4J Consumer</consumer-agent>
      </registration-data>
      
  </Producer>