All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JETSPEED-INF.ojb.capabilities_repository.xml Maven / Gradle / Ivy

Go to download

Capability Components defines an api for "guessing" what client is accessing a web application by looking for clues in the request headers then return a list of that client's capabilites i.e. HTML 4.0, WML, Javascript 1.2, etc.

There is a newer version: 2.3.1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->   
    
<!--
   - C A P A B I L I T Y  M A P P I N G
-->	

<descriptor-repository version="1.0">
<!--
   - M E D I A T Y P E
  -->
    <class-descriptor
   	  class="org.apache.jetspeed.capabilities.impl.MediaTypeImpl"
   	  table="MEDIA_TYPE"
   >
      
        <field-descriptor
         name="mediatypeId"
         column="MEDIATYPE_ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"            
      />
      
      <field-descriptor
         name="name"
         column="NAME"
         jdbc-type="VARCHAR"     
      />
           
      <field-descriptor
         name="characterSet"
         column="CHARACTER_SET"
         jdbc-type="VARCHAR"
      />   
      
      <field-descriptor
         name="title"
         column="TITLE"
         jdbc-type="VARCHAR"
      />  
      
      <field-descriptor
         name="description"
         column="DESCRIPTION"
         jdbc-type="VARCHAR"
      /> 
      
      <collection-descriptor
          name="capabilities"
          element-class-ref="org.apache.jetspeed.capabilities.impl.CapabilityImpl"
          auto-retrieve="true"
          auto-update = "object"
          indirection-table="MEDIATYPE_TO_CAPABILITY"
       >
          <fk-pointing-to-this-class column="MEDIATYPE_ID"/>
          <fk-pointing-to-element-class column="CAPABILITY_ID"/>
       </collection-descriptor>
       
       <collection-descriptor
          name="mimetypes"
          element-class-ref="org.apache.jetspeed.capabilities.impl.MimeTypeImpl"
          auto-retrieve="true"
          auto-update = "object"
          indirection-table="MEDIATYPE_TO_MIMETYPE"
       >
          <fk-pointing-to-this-class column="MEDIATYPE_ID"/>
          <fk-pointing-to-element-class column="MIMETYPE_ID"/>
       </collection-descriptor>
      
      </class-descriptor>
             
  <!--
   - C L I E N T
  -->
    <class-descriptor
   	  class="org.apache.jetspeed.capabilities.impl.ClientImpl"
   	  table="CLIENT"
   >
        <field-descriptor
         name="clientId"
         column="CLIENT_ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"         
       />

      <field-descriptor
         name="evalOrder"
         column="EVAL_ORDER"
         jdbc-type="INTEGER"     
      />
      
        <field-descriptor
         name="name"
         column="NAME"
         jdbc-type="VARCHAR"     
      />
      
      <field-descriptor
         name="userAgentPattern"
         column="USER_AGENT_PATTERN"
         jdbc-type="VARCHAR"     
      />
      
      <field-descriptor
         name="manufacturer"
         column="MANUFACTURER"
         jdbc-type="VARCHAR"     
      />
      
      <field-descriptor
         name="model"
         column="MODEL"
         jdbc-type="VARCHAR"     
      />
      
      <field-descriptor
         name="version"
         column="VERSION"
         jdbc-type="VARCHAR"     
      />
      
      <field-descriptor
         name="preferredMimeTypeId"
         column="PREFERRED_MIMETYPE_ID"
         jdbc-type="INTEGER"     
      />
      
      <collection-descriptor
          name="capabilities"
          element-class-ref="org.apache.jetspeed.capabilities.impl.CapabilityImpl"
          auto-retrieve="true"
          auto-update = "object"
 
          indirection-table="CLIENT_TO_CAPABILITY"
       >
          <fk-pointing-to-this-class column="CLIENT_ID"/>
          <fk-pointing-to-element-class column="CAPABILITY_ID"/>
       </collection-descriptor>
       
       <collection-descriptor
          name="mimetypes"
          element-class-ref="org.apache.jetspeed.capabilities.impl.MimeTypeImpl"
           auto-retrieve="true"
          auto-update = "object"
         indirection-table="CLIENT_TO_MIMETYPE"
       >
          <fk-pointing-to-this-class column="CLIENT_ID"/>
          <fk-pointing-to-element-class column="MIMETYPE_ID"/>
       </collection-descriptor>
      
    </class-descriptor>

<!--
   - M I M E T Y P E 
  -->
    <class-descriptor
   	  class="org.apache.jetspeed.capabilities.impl.MimeTypeImpl"
   	  table="MIMETYPE"
   >
        <field-descriptor
         name="mimeTypeId"
         column="MIMETYPE_ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"         
      />
      
      
      <field-descriptor
         name="name"
         column="NAME"
         jdbc-type="VARCHAR"
      />  
    </class-descriptor>
    
<!--
   - C A P A B I L I T Y
  -->
    <class-descriptor
   	  class="org.apache.jetspeed.capabilities.impl.CapabilityImpl"
   	  table="CAPABILITY"
   >
        <field-descriptor
         name="capabilityId"
         column="CAPABILITY_ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"         
      />
      
       <field-descriptor
         name="name"
         column="CAPABILITY"
         jdbc-type="VARCHAR"     
      />
      
    </class-descriptor>
    
</descriptor-repository>
 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy