Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:dd="http://rice.kuali.org/dd" xsi:schemaLocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!--

    Copyright 2005-2013 The Kuali Foundation

    Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php

    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.

-->
  <bean id="DocumentType" parent="DocumentType-parentBean"/>

  <bean id="DocumentType-parentBean" abstract="true" parent="BusinessObjectEntry">
    <property name="dataObjectClass" value="org.kuali.rice.kew.doctype.bo.DocumentType"/>
    <property name="exporterClass" value="org.kuali.rice.kew.export.DataExporter"/>
    <property name="inquiryDefinition">
      <ref bean="DocumentType-inquiryDefinition"/>
    </property>
    <property name="lookupDefinition">
      <ref bean="DocumentType-lookupDefinition"/>
    </property>
    <property name="titleAttribute" value="documentTypeId"/>
    <property name="objectLabel" value="Document Type"/>
    <property name="attributes">
      <list>
        <ref bean="DocumentType-docTypeParentId"/> <!-- option -->
        <ref bean="DocumentType-parentDocType.name"/>
        <ref bean="DocumentType-documentTypeId"/>
        <ref bean="DocumentType-name"/> <!-- required -->
        <ref bean="DocumentType-description"/> <!-- option -->
        <ref bean="DocumentType-label"/> <!-- required -->
        <ref bean="DocumentType-active"/> <!-- required -->
        <ref bean="DocumentType-unresolvedDocHandlerUrl"/> <!-- required but inheritable from parent -->
        <ref bean="DocumentType-unresolvedHelpDefinitionUrl"/> <!-- option -->
        <ref bean="DocumentType-unresolvedDocSearchHelpUrl"/> <!-- option -->
        <ref bean="DocumentType-actualNotificationFromAddress"/> <!-- option -->
        <ref bean="DocumentType-applyRetroactively"/> <!-- option -->
              <!-- Policies
              editable
              USE_KEW_SUPERUSER_DOCHANDLER
              ALLOW_UNREQUESTED_ACTION
              LOOK_FUTURE
              NOTIFY_ON_SAVE
               -->

        <!-- BELOW USED FOR INQUIRY AND LOOKUP ONLY -->
        <ref bean="DocumentType-displayableApplicationId"/>

        <!-- BELOW USED FOR INQUIRY ONLY -->
        <ref bean="DocumentType-displayableUnresolvedDocHandlerUrl"/>
        <ref bean="DocumentType-displayablePostProcessorName"/>
        <ref bean="DocumentType-displayableNotificationFromAddress"/>
<!--
        <ref bean="DocumentType-postProcessorName" />
        <ref bean="DocumentType-summary" />
        <ref bean="DocumentType-shortLabel" />
        <ref bean="DocumentType-blanketApprovePolicy" />
        <ref bean="DocumentType-blanketApproveWorkgroupId" />
        <ref bean="DocumentType-reportingWorkgroupId" />
-->
      </list>
    </property>
    <property name="relationships">
      <list>
        <bean parent="RelationshipDefinition">
          <property name="objectAttributeName" value="parentDocType"/>
          <property name="primitiveAttributes">
            <list>
              <bean parent="PrimitiveAttributeDefinition" p:sourceName="docTypeParentId" p:targetName="documentTypeId"/>
            </list>
          </property>
          <property name="supportAttributes">
            <list>
              <bean parent="SupportAttributeDefinition" p:identifier="true" p:sourceName="parentDocType.name" p:targetName="name"/>
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

<!-- Attribute Definitions -->

  <bean id="DocumentType-documentTypeId" parent="DocumentType-documentTypeId-parentBean"/>

  <bean id="DocumentType-documentTypeId-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Id"/>
    <property name="maxLength" value="19"/>
    <property name="validationPattern">
      <bean parent="NumericValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="30"/>
    </property>
    <property name="name" value="documentTypeId"/>
    <property name="label" value="Id"/>
  </bean>
  
 <bean id="DocumentType-docTypeParentId" parent="DocumentType-docTypeParentId-parentBean"/>

  <bean id="DocumentType-docTypeParentId-parentBean" abstract="true" parent="DocumentType-documentTypeId">
    <property name="shortLabel" value="Parent Id"/>
    <property name="name" value="docTypeParentId"/>
    <property name="label" value="Parent Id"/>
  </bean>
  
  <bean id="DocumentType-name" parent="DocumentType-name-parentBean"/>

  <bean id="DocumentType-name-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Name"/>
    <property name="maxLength" value="64"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="false"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
    <property name="name" value="name"/>
    <property name="label" value="Name"/>
  </bean>

  <bean id="DocumentType-parentDocType.name" parent="DocumentType-parentDocType.name-parentBean"/>

  <bean id="DocumentType-parentDocType.name-parentBean" abstract="true" parent="DocumentType-name">
    <property name="shortLabel" value="Parent Name"/>
    <property name="name" value="parentDocType.name"/>
    <property name="label" value="Parent Name"/>
    <property name="control">
    	<bean parent="LookupReadonlyControlDefinition" p:size="50"/>
    </property>
  </bean>
  
  <bean id="DocumentType-label" parent="DocumentType-label-parentBean"/>

  <bean id="DocumentType-label-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Label"/>
    <property name="maxLength" value="128"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
    <property name="name" value="label"/>
    <property name="label" value="Label"/>
  </bean>

  <bean id="DocumentType-active" parent="DocumentType-active-parentBean"/>
  
  <bean id="DocumentType-active-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="active"/>
    <property name="forceUppercase" value="false"/>
    <property name="label" value="Active Indicator"/>
    <property name="shortLabel" value="active"/>
    <property name="maxLength" value="1"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="CheckboxControlDefinition"/>
    </property>
    <property name="formatterClass" value="org.kuali.rice.core.web.format.BooleanFormatter"/>
  </bean>
  
  <bean id="DocumentType-description" parent="DocumentType-description-parentBean"/>

  <bean id="DocumentType-description-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Description"/>
    <property name="maxLength" value="4000"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
    <property name="control">
        <bean parent="TextareaControlDefinition" p:rows="3" p:cols="80"/>
    </property>
    <property name="name" value="description"/>
    <property name="label" value="Description"/>
  </bean>
  
<!--
  <bean id="DocumentType-shortLabel" parent="DocumentType-shortLabel-parentBean" />

  <bean id="DocumentType-shortLabel-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Shrt Lbl" />
    <property name="maxLength" value="255" />
    <property name="validationPattern" >
      <bean parent="AnyCharacterValidationPattern"
            p:allowWhitespace="true" />
    </property>
    <property name="control" >
      <bean parent="TextControlDefinition"
            p:size="50" />
    </property>
    <property name="name" value="shortLabel" />
    <property name="label" value="Short Label" />
  </bean>

  <bean id="DocumentType-summary" parent="DocumentType-summary-parentBean" />

  <bean id="DocumentType-summary-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Summary" />
    <property name="maxLength" value="4000" />
    <property name="validationPattern" >
      <bean parent="AnyCharacterValidationPattern"
            p:allowWhitespace="true" />
    </property>
    <property name="control" >
        <bean parent="TextareaControlDefinition" p:rows="3" p:cols="80" />
    </property>
    <property name="name" value="summary" />
    <property name="label" value="Summary" />
  </bean>
-->

  <bean id="DocumentType-applicationId" parent="DocumentType-applicationId-parentBean"/>

  <bean id="DocumentType-applicationId-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Svc Nmspc"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
    <property name="name" value="applicationId"/>
    <property name="label" value="Application ID"/>
  </bean>
  
  <bean id="DocumentType-displayableApplicationId" parent="DocumentType-displayableApplicationId-parentBean"/>

  <bean id="DocumentType-displayableApplicationId-parentBean" abstract="true" parent="DocumentType-applicationId">
    <property name="name" value="displayableApplicationId"/>
    <property name="validationPattern">
      <null/>
    </property>
  </bean>
  
  <bean id="DocumentType-unresolvedDocHandlerUrl" parent="DocumentType-unresolvedDocHandlerUrl-parentBean"/>

  <bean id="DocumentType-unresolvedDocHandlerUrl-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Doc Handler URL"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="false"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
    <property name="name" value="unresolvedDocHandlerUrl"/>
    <property name="label" value="Document Handler URL"/>
  </bean>

  <bean id="DocumentType-displayableUnresolvedDocHandlerUrl" parent="DocumentType-displayableUnresolvedDocHandlerUrl-parentBean"/>

  <bean id="DocumentType-displayableUnresolvedDocHandlerUrl-parentBean" abstract="true" parent="DocumentType-unresolvedDocHandlerUrl">
    <property name="name" value="displayableUnresolvedDocHandlerUrl"/>
    <property name="maxLength" value="5000"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
  </bean>

  <bean id="DocumentType-unresolvedHelpDefinitionUrl" parent="DocumentType-unresolvedHelpDefinitionUrl-parentBean"/>

  <bean id="DocumentType-unresolvedHelpDefinitionUrl-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="unresolvedHelpDefinitionUrl"/>
    <property name="label" value="Help Definition URL"/>
    <property name="shortLabel" value="Help URL"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="false"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
  </bean>
  
  <bean id="DocumentType-unresolvedDocSearchHelpUrl" parent="DocumentType-unresolvedDocSearchHelpUrl-parentBean" />

  <bean id="DocumentType-unresolvedDocSearchHelpUrl-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="unresolvedDocSearchHelpUrl"/>
    <property name="label" value="Document Search Help URL"/>
    <property name="shortLabel" value="Search Help URL"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="false"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="50"/>
    </property>
  </bean>
  
  <bean id="DocumentType-postProcessorName" parent="DocumentType-postProcessorName-parentBean"/>

  <bean id="DocumentType-postProcessorName-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Post Processor"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="JavaClassValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="100"/>
    </property>
    <property name="name" value="postProcessorName"/>
    <property name="label" value="Post Processor Class"/>
  </bean>
  
  <bean id="DocumentType-displayablePostProcessorName" parent="DocumentType-displayablePostProcessorName-parentBean"/>

  <bean id="DocumentType-displayablePostProcessorName-parentBean" abstract="true" parent="DocumentType-postProcessorName">
    <property name="name" value="displayablePostProcessorName"/>
    <property name="maxLength" value="5000"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
  </bean>
  
<!--
  <bean id="DocumentType-blanketApprovePolicy" parent="DocumentType-blanketApprovePolicy-parentBean" />

  <bean id="DocumentType-blanketApprovePolicy-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="BA Policy" />
    <property name="maxLength" value="10" />
    <property name="validationPattern" >
      <bean parent="AnyCharacterValidationPattern" />
    </property>
    <property name="control" >
      <bean parent="SelectControlDefinition"
            p:valuesFinderClass="org.kuali.rice.kew.doctype.bo.BlanketApprovePolicyValuesFinder" />
    </property>
    <property name="name" value="blanketApprovePolicy" />
    <property name="label" value="Blanket Approve Policy" />
  </bean>

  <bean id="DocumentType-blanketApproveWorkgroupId" parent="DocumentType-blanketApproveWorkgroupId-parentBean" />

  <bean id="DocumentType-blanketApproveWorkgroupId-parentBean" abstract="true" parent="ExternalizableAttributeDefinitionProxy"
    p:sourceExternalizableBusinessObjectInterface="org.kuali.rice.kim.bo.Group"
    p:sourceAttributeName="groupId">
    <property name="name" value="blanketApproveWorkgroupId" />
    <property name="label" value="Blanket Approve Group" />
    <property name="shortLabel" value="BA Group" />
  </bean>

  <bean id="DocumentType-blanketApproveWorkgroup.groupName" parent="DocumentType-blanketApproveWorkgroup.groupName-parentBean" />

  <bean id="DocumentType-blanketApproveWorkgroup.groupName-parentBean" abstract="true" parent="Group-name">
    <property name="name" value="blanketApproveWorkgroup.groupName" />
    <property name="label" value="Blanket Approve Group Name" />
    <property name="shortLabel" value="BA Group Name" />
    <property name="control" >
      <bean parent="TextControlDefinition"
            p:size="30" />
    </property>
  </bean>

  <bean id="DocumentType-reportingWorkgroupId" parent="DocumentType-reportingWorkgroupId-parentBean" />

  <bean id="DocumentType-reportingWorkgroupId-parentBean" abstract="true" parent="ExternalizableAttributeDefinitionProxy"
    p:sourceExternalizableBusinessObjectInterface="org.kuali.rice.kim.bo.Group"
    p:sourceAttributeName="groupId">
    <property name="name" value="reportingWorkgroupId" />
    <property name="label" value="Reporting Group" />
    <property name="shortLabel" value="Report Group" />
  </bean>

  <bean id="DocumentType-reportingWorkgroup.groupName" parent="DocumentType-reportingWorkgroup.groupName-parentBean" />

  <bean id="DocumentType-reportingWorkgroup.groupName-parentBean" abstract="true" parent="Group-name">
    <property name="name" value="reportingWorkgroup.groupName" />
    <property name="label" value="Reporting Group Name" />
    <property name="shortLabel" value="Report Group Name" />
    <property name="control" >
      <bean parent="TextControlDefinition"
            p:size="30" />
    </property>
  </bean>
-->

  <bean id="DocumentType-actualNotificationFromAddress" parent="DocumentType-actualNotificationFromAddress-parentBean"/>

  <bean id="DocumentType-actualNotificationFromAddress-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="shortLabel" value="Notify Address"/>
    <property name="maxLength" value="255"/>
    <property name="validationPattern">
      <bean parent="EmailAddressValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="30"/>
    </property>
    <property name="name" value="actualNotificationFromAddress"/>
    <property name="label" value="Notification From Address"/>
  </bean>

  <bean id="DocumentType-displayableNotificationFromAddress" parent="DocumentType-displayableNotificationFromAddress-parentBean"/>

  <bean id="DocumentType-displayableNotificationFromAddress-parentBean" abstract="true" parent="DocumentType-actualNotificationFromAddress">
    <property name="name" value="displayableNotificationFromAddress"/>
    <property name="maxLength" value="5000"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
  </bean>

  <bean id="DocumentType-applyRetroactively" parent="DocumentType-applyRetroactively-parentBean"/>

  <bean id="DocumentType-applyRetroactively-parentBean" abstract="true" parent="AttributeReferenceDummy-genericBoolean">
    <property name="name" value="applyRetroactively"/>
    <property name="label" value="Apply Label Change Retroactively"/>
    <property name="shortLabel" value="Apply Retroactively"/>
    <property name="description" value="Indicator to see if the label should be applied to older documents in the system"/>
  </bean>

  <!-- Business Object Inquiry Definition -->

  <bean id="DocumentType-inquiryDefinition" parent="DocumentType-inquiryDefinition-parentBean"/>

  <bean id="DocumentType-inquiryDefinition-parentBean" abstract="true" parent="InquiryDefinition">
    <property name="title" value="Document Type Inquiry"/>
    <property name="inquirySections">
      <list>
     	<bean parent="InquirySectionDefinition">
          <property name="title" value="Document Type"/>
          <property name="numberOfColumns" value="1"/>
          <property name="inquiryFields">
            <list>
              <bean parent="FieldDefinition" p:attributeName="docTypeParentId"/>
              <bean parent="FieldDefinition" p:attributeName="parentDocType.name"/>
              <bean parent="FieldDefinition" p:attributeName="documentTypeId"/>
              <bean parent="FieldDefinition" p:attributeName="name"/>
              <bean parent="FieldDefinition" p:attributeName="label"/>
              <bean parent="FieldDefinition" p:attributeName="description"/>
              <bean parent="FieldDefinition" p:attributeName="displayableUnresolvedDocHandlerUrl"/>
              <bean parent="FieldDefinition" p:attributeName="unresolvedHelpDefinitionUrl"/>
              <bean parent="FieldDefinition" p:attributeName="unresolvedDocSearchHelpUrl"/>
              <bean parent="FieldDefinition" p:attributeName="displayablePostProcessorName"/>
              <bean parent="FieldDefinition" p:attributeName="displayableNotificationFromAddress"/>
              <bean parent="FieldDefinition" p:attributeName="displayableApplicationId"/>    
              <bean parent="FieldDefinition" p:attributeName="active"/>
              <!-- Policies -->                            
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

  <!-- Business Object Lookup Definition -->

  <bean id="DocumentType-lookupDefinition" parent="DocumentType-lookupDefinition-parentBean"/>

  <bean id="DocumentType-lookupDefinition-parentBean" abstract="true" parent="LookupDefinition">
    <property name="lookupableID" value="docTypeLookupable"/>
    
    <property name="defaultSort">
      <bean parent="SortDefinition">
      </bean>
    </property>
    <property name="lookupFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="parentDocType.name" p:noDirectInquiry="true"/>
        <bean parent="FieldDefinition" p:attributeName="name"/>
        <bean parent="FieldDefinition" p:attributeName="label"/>
        <bean parent="FieldDefinition" p:attributeName="documentTypeId"/>
        <bean parent="FieldDefinition" p:attributeName="active"/>
      </list>
    </property>
    <property name="resultFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="documentTypeId"/>
        <bean parent="FieldDefinition" p:attributeName="name"/>
        <bean parent="FieldDefinition" p:attributeName="parentDocType.name"/>
        <bean parent="FieldDefinition" p:attributeName="label"/>
        <bean parent="FieldDefinition" p:attributeName="active"/>
        <bean parent="FieldDefinition" p:attributeName="displayableApplicationId"/>
      </list>
    </property>
    <property name="title" value="Document Type Lookup"/>
  </bean>
</beans>
New to GrepCode? Check out our FAQ X