dlouzan     2005/08/31 13:06:38

  Added:       sandbox/wsrp4j/consumer-swingconsumer/src/resources/persistence
                        PageMapping.xml PortletMapping.xml
                        ProducerMapping.xml UserMapping.xml
  Log:
  Initial commit.
  
  Revision  Changes    Path
  1.1                  
ws-wsrp4j/sandbox/wsrp4j/consumer-swingconsumer/src/resources/persistence/PageMapping.xml
  
  Index: PageMapping.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.commons.consumer.driver.PageImpl">
      
          <map-to xml="page"/>
  
          <field name="PageID"
                 type="java.lang.String"
                 get-method="getPageID"
                 set-method="setPageID">
              <bind-xml name="pageID" node="attribute"/>
          </field>
  
          <field name="Title"
                 type="java.lang.String"
                 get-method="getTitle"
                 set-method="setTitle">
              <bind-xml name="title" node="attribute"/>
          </field>
  
          <field name="MaximizedPortletInstanceKey"
                 type="java.lang.String"
                 get-method="getMaximizedPortletInstanceKey"
                 set-method="setMaximizedPortletInstanceKey">
              <bind-xml name="maximizedPortletInstanceKey" node="attribute"/>
          </field>
  
          <field name="portlet-key"
                 type="java.util.Hashtable"
                 collection="hashtable"
                 get-method="getPortlets"
                 set-method="setPortlets">
              <bind-xml name="portlet-key" node="element"/>
          </field>
  
      </class>
  
  </mapping>
  
  
  
  1.1                  
ws-wsrp4j/sandbox/wsrp4j/consumer-swingconsumer/src/resources/persistence/PortletMapping.xml
  
  Index: PortletMapping.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.commons.consumer.driver.WSRPPortletImpl">
      
          <map-to xml="Portlet"/>
  
          <field name="PortletKey"
                 type="org.apache.wsrp4j.commons.consumer.driver.PortletKeyImpl"
                 get-method="getPortletKey"
                 set-method="setPortletKey">
              <bind-xml name="portlet-key" node="element"/>
          </field>
  
          <field name="ParentHandle"
                 type="java.lang.String"
                 get-method="getParent"
                 set-method="setParent">
              <bind-xml name="parent-handle" node="element"/>
          </field>
  
      </class>
  
  </mapping>
  
  
  
  1.1                  
ws-wsrp4j/sandbox/wsrp4j/consumer-swingconsumer/src/resources/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.commons.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="ServiceDescriptionInterfaceEndpoint"
                 type="java.lang.String"
                 get-method="getServiceDescriptionInterfaceEndpoint"
                 set-method="initServiceDescInterface"
                 required="true">
              <bind-xml name="service-description-interface-url" 
node="element"/>
          </field>
  
          <field name="RegistrationInterfaceEndpoint"
                 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-swingconsumer/src/resources/persistence/UserMapping.xml
  
  Index: UserMapping.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.commons.consumer.driver.UserImpl">
      
          <map-to xml="User"/>
  
          <field name="UserID"
                 type="java.lang.String"
                 get-method="getUserID"
                 set-method="setUserID">
              <bind-xml name="UserID" node="element"/>
          </field>
  
          <field name="UserContext"
                 type="oasis.names.tc.wsrp.v1.types.UserContext"
                 get-method="getUserContext"
                 set-method="setUserContext">
              <bind-xml name="userContext" node="element"/>
          </field>
  
      </class>
  
  </mapping>
  
  
  

Reply via email to