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" 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="Note" parent="Note-parentBean"/>

  <bean id="Note-parentBean" abstract="true" parent="BusinessObjectEntry">
    <property name="businessObjectClass" value="org.kuali.rice.krad.bo.Note"/>
    <property name="attributes">
      <list>
        <ref bean="Note-authorUniversalIdentifier"/>
        <ref bean="Note-notePostedTimestamp"/>
        <ref bean="Note-notePurgeCode"/>
        <ref bean="Note-noteText"/>
        <ref bean="Note-noteTopicText"/>
        <ref bean="Note-noteTypeCode"/>
        <ref bean="Note-remoteObjectIdentifier"/>
        <ref bean="Note-attachment"/>
        <ref bean="Note-attachmentLink"/>
        <ref bean="Note-versionNumber"/>
        <ref bean="Note-authorUniversal.principalName"/>
      </list>
    </property>
    <property name="relationships">
    	<list>
    		<bean parent="RelationshipDefinition">
    			<property name="objectAttributeName" value="authorUniversal" />
    			<property name="primitiveAttributes">
    				<list>
    					<!-- FIXME: RICE MODULARITY -->
    					<!-- after configurer work app fails to start up with this relationship across modules -->
    					<!-- <bean parent="PrimitiveAttributeDefinition" p:sourceName="authorUniversal.principalName" p:targetName="principalName" />-->
    				</list>
    			</property>
    		</bean>
    	</list>
    </property>
    <property name="objectLabel" value="Note"/>
  </bean>

<!-- Attribute Definitions -->


  <bean id="Note-authorUniversalIdentifier" parent="Note-authorUniversalIdentifier-parentBean"/>

  <bean id="Note-authorUniversalIdentifier-parentBean" abstract="true" parent="AttributeReferenceDummy-genericSystemId">
    <property name="shortLabel" value="Author"/>
    <property name="required" value="true"/>
    <property name="name" value="authorUniversalIdentifier"/>
    <property name="label" value="Author Universal Id"/>
    <property name="description" value="A free-form text field for the full name of the Author of the Note, expressed as &quot;Lastname, Firstname Initial&quot;"/>
  </bean>
  <bean id="Note-notePostedTimestamp" parent="Note-notePostedTimestamp-parentBean"/>

  <bean id="Note-notePostedTimestamp-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Posted Timestamp"/>
    <property name="maxLength" value="36"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="36"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="12"/>
    </property>      
    <property name="summary" value="&amp;nbsp;"/>
    <property name="name" value="notePostedTimestamp"/>
    <property name="label" value="Posted Date/Time Stamp"/>
    <property name="description" value="A free-form text field that identifies the time and date at which the Notes is posted."/>
  </bean>
  <bean id="Note-notePurgeCode" parent="Note-notePurgeCode-parentBean"/>

  <bean id="Note-notePurgeCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Code"/>
    <property name="maxLength" value="1"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="3"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="3"/>
    </property>     
    <property name="summary" value="notePurgeCode"/>
    <property name="name" value="notePurgeCode"/>
    <property name="label" value="Note Purge Code"/>
    <property name="description" value="notePurgeCode description..."/>
  </bean>
  <bean id="Note-noteText" parent="Note-noteText-parentBean"/>

  <bean id="Note-noteText-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="false"/>
    <property name="shortLabel" value="Note Text"/>
    <property name="maxLength" value="800"/>
    <property name="validationPattern">
      <!-- KULRICE-8176: KFS Notes or Attachments Tab Functionality for Note Text Error - Visible or Special characters, spaces, or tabs -->
      <bean parent="UTF8AnyCharacterValidationPattern" p:allowWhitespace="true"/>
    </property>
    <property name="required" value="true"/>
    <property name="control">
      <bean parent="TextareaControlDefinition" p:cols="50" p:rows="3"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextAreaControl" p:cols="50" p:rows="3"/>
    </property>     
    <property name="summary" value="&amp;nbsp;"/>
    <property name="name" value="noteText"/>
    <property name="label" value="Note Text"/>
    <property name="description" value="A free-form text field for the text of the Note."/>
  </bean>
  <bean id="Note-noteTopicText" parent="Note-noteTopicText-parentBean"/>

  <bean id="Note-noteTopicText-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="false"/>
    <property name="shortLabel" value="Note Topic"/>
    <property name="maxLength" value="40"/>
    <property name="required" value="false"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="20"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="20"/>
    </property>     
    <property name="summary" value="&amp;nbsp;"/>
    <property name="name" value="noteTopicText"/>
    <property name="label" value="Note Topic"/>
    <property name="description" value="A free-form text field for entering the topic of the Note."/>
  </bean>
  <bean id="Note-noteTypeCode" parent="Note-noteTypeCode-parentBean"/>

  <bean id="Note-noteTypeCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Code"/>
    <property name="maxLength" value="4"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="6"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="6"/>
    </property>    
    <property name="summary" value="noteTypeCode"/>
    <property name="name" value="noteTypeCode"/>
    <property name="label" value="Note Type Code"/>
    <property name="description" value="noteTypeCode description..."/>
  </bean>
  <bean id="Note-remoteObjectIdentifier" parent="Note-remoteObjectIdentifier-parentBean"/>

  <bean id="Note-remoteObjectIdentifier-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Identifier"/>
    <property name="maxLength" value="36"/>
    <property name="validationPattern">
      <bean parent="AnyCharacterValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="38"/>
    </property>
    <property name="summary" value="remoteObjectIdentifier"/>
    <property name="name" value="remoteObjectIdentifier"/>
    <property name="label" value="Remote Object Identifier"/>
    <property name="description" value="remoteObjectIdentifier description..."/>
  </bean>
  <bean id="Note-attachment" parent="Note-attachment-parentBean"/>

  <bean id="Note-attachment-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Attached File"/>
    <property name="maxLength" value="36"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="36"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="36"/>
    </property>     
    <property name="summary" value="&amp;nbsp;"/>
    <property name="name" value="attachment"/>
    <property name="label" value="Attachment"/>
    <property name="description" value="The pathname of a related file to attach to the Note. Use the &quot;Browse...&quot; button to open the file dialog, select the file and automatically fill in the pathname."/>
  </bean>

  <bean id="Note-attachmentLink" parent="Note-attachmentLink-parentBean"/>

  <bean id="Note-attachmentLink-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="attachmentLink"/>
    <property name="label" value="Attached File"/>
    <property name="maxLength" value="1000"/>
    <property name="required" value="false"/>
    <property name="control">
      <bean parent="LinkControlDefinition" p:styleClass="globalLinks" p:target="_blank" p:hrefText="Download Attachment"/>
    </property>
  </bean>

  <bean id="Note-versionNumber" parent="Note-versionNumber-parentBean"/>

  <bean id="Note-versionNumber-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="shortLabel" value="Number"/>
    <property name="maxLength" value="8"/>
    <property name="validationPattern">
      <bean parent="NumericValidationPattern"/>
    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
    <property name="summary" value="versionNumber"/>
    <property name="name" value="versionNumber"/>
    <property name="label" value="Version Number"/>
    <property name="description" value="versionNumber description..."/>
  </bean>
  
  <bean id="Note-authorUniversal.principalName" parent="Note-authorUniversal.principalName-parentBean"/>

  <bean id="Note-authorUniversal.principalName-parentBean"  parent="AttributeDefinition" abstract="true"
        p:name="authorUniversal.principalName"
        p:forceUppercase="false"
        p:label="Principal Name"
        p:shortLabel="Principal Name"
        p:maxLength="40"
        p:required="false" >
    <property name="validationPattern" >
      <bean parent="AlphaNumericValidationPattern" p:lowerCase="true" />
    </property>
    <property name="control" >
      <bean parent="TextControlDefinition" p:size="10" />
    </property> 
  </bean>
</beans>
New to GrepCode? Check out our FAQ X