You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tdk-dev@turbine.apache.org by jv...@apache.org on 2001/07/03 15:14:50 UTC

cvs commit: jakarta-turbine-tdk/src/share/sample/conf project-intake.xml

jvanzyl     01/07/03 06:14:48

  Added:       src/share/sample/conf project-intake.xml
  Log:
  - adding intake conf to repo
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-tdk/src/share/sample/conf/project-intake.xml
  
  Index: project-intake.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
  <!DOCTYPE input-data SYSTEM
            "http://jakarta.apache.org/turbine/dtd/intake.dtd">
  
  <!-- PUBLIC "-//Apache//Apache-Turbine-Intake Application Data//EN" --> 
  
  <!-- ==================================================================== -->
  <!--                                                                      -->
  <!--                P R O J E C T  I N P U T S                            -->
  <!--                                                                      -->
  <!-- ==================================================================== -->
  <!-- This is an example.                      .                           -->
  <!-- ==================================================================== -->
  
  <input-data basePackage="org.tigris.scarab.">
  
  <group class="Attribute" key="att" mapToObject="om.Attribute">
    
    <field name="Id" key="id" type="NumberKey" mapToProperty="PrimaryKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
          
    <field name="TypeId" key="typeid" type="NumberKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
    
    <field name="Name" key="name" type="String" />
    
    <field name="Deleted" key="del" type="boolean" />
  
  </group>
  
  <group class="AttributeValue" key="attv" mapToObject="om.AttributeValue">
    
    <field name="Id" key="id" type="ComboKey" mapToProperty="PrimaryKey">
      <rule mask="([0-9]|:)+">badIdMessage</rule>
    </field>
    
    <field name="OptionId" key="optionid" type="NumberKey">
      <rule mask="^$|[0-9]+">Please select a valid choice</rule>
      <required-message>
        This module requires that you select an option for this attribute.
      </required-message>
    </field>
    
    <field name="UserId" key="visid" type="NumberKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
    
    <field name="Value" key="val" type="String">
      <rule maxLength="255">Value length cannot be &gt; 255</rule>
      <required-message>
        This module requires data for this attribute.
      </required-message>
    </field>
    
    <field name="Url" key="url" type="String" mapToProperty="Value">
      <rule maxLength="255">Url length cannot be &gt; 255</rule>
      <rule mask="^$|http.+">Please enter an url starting with "http"</rule>
      <required-message>This module requires a valid url.</required-message>
    </field>
    
    <field name="Deleted" key="del" type="boolean" />
  
  </group>
  
  <group class="Issue" key="issue" mapToObject="om.Issue">
    
    <field name="Id" key="id" type="NumberKey" mapToProperty="PrimaryKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
    
    <field name="ModuleId" key="modid" type="NumberKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
    
    <field name="Deleted" key="del" type="boolean" />
  
  </group>
  
  <group class="Module" key="mod" mapToObject="om.Module">
    
    <field name="Id" key="o" type="NumberKey" mapToProperty="PrimaryKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
          
    <field name="Name" key="name" type="String">
      <rule maxLength="255"/>
    </field>
    
    <field name="Description" key="desc" type="String">
      <rule maxLength="1024"/>
    </field>
          
    <field name="URL" key="url" type="String">
      <rule maxLength="255"/>
    </field>
          
    <field name="ParentId" key="parentid" type="NumberKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
          
    <field name="OwnerId" key="ownerid" type="NumberKey">
      <rule mask="[0-9]+">badIdMessage</rule>
    </field>
          
    <field name="Deleted" key="del" type="boolean" />
  
  </group>
  
  <group class="Login" key="login" mapToObject="om.ScarabUser">
    
    <field name="Username" key="u" type="String" mapToProperty="Username">
      <rule minLength="1">Please enter an email address</rule>
      <rule mask=".+@.+\..+">Please enter a valid email address</rule>
    </field>
    
    <field name="Password" key="p" type="String">
      <rule minLength="1">Please enter a password</rule>
    </field>
  
  </group>
  
  </input-data>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-tdk-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-tdk-dev-help@jakarta.apache.org