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

  <bean id="DocEmail-parentBean" abstract="true" parent="BusinessObjectEntry" p:businessObjectClass="org.kuali.rice.kim.bo.ui.PersonDocumentEmail" p:titleAttribute="emailTypeCode" p:objectLabel="Person Email" p:inquiryDefinition-ref="DocEmail-inquiryDefinition" p:lookupDefinition-ref="DocEmail-lookupDefinition">
    <property name="attributes">
      <list>
        <ref bean="DocEmail-emailAddress"/>
        <ref bean="DocEmail-emailTypeCode"/>
        <ref bean="DocEmail-active"/>
        <ref bean="DocEmail-dflt"/>
      </list>
    </property>
  </bean>

  <bean id="DocEmail-emailAddress" parent="DocEmail-emailAddress-parentBean"/>
  <bean id="DocEmail-emailAddress-parentBean" abstract="true" parent="AttributeReferenceDummy-emailAddress"/>

   <bean id="DocEmail-emailTypeCode" parent="DocEmail-emailTypeCode-parentBean"/>
  <bean id="DocEmail-emailTypeCode-parentBean" parent="AttributeDefinition" abstract="true" p:name="emailTypeCode" p:forceUppercase="true" p:label="Type" p:shortLabel="Type" p:maxLength="10" p:required="false">
    <property name="control">
      <bean parent="SelectControlDefinition" p:businessObjectClass="org.kuali.rice.kim.impl.identity.email.EntityEmailTypeBo" p:valuesFinderClass="org.kuali.rice.krad.keyvalues.PersistableBusinessObjectValuesFinder" p:includeKeyInLabel="false" p:keyAttribute="code" p:labelAttribute="name"/>
    </property>
  </bean>
      
  <bean id="DocEmail-inquiryDefinition" parent="DocEmail-inquiryDefinition-parentBean"/>

  <bean id="DocEmail-inquiryDefinition-parentBean" abstract="true" parent="InquiryDefinition" p:title="Person Email Inquiry">
    <property name="inquirySections">
      <list>
        <bean parent="InquirySectionDefinition" p:title="Person Attributes" p:numberOfColumns="1">
          <property name="inquiryFields">
            <list>
              <bean parent="FieldDefinition" p:attributeName="emailTypeCode"/>
              <bean parent="FieldDefinition" p:attributeName="emailAddress"/>
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

   <bean id="DocEmail-active" parent="DocEmail-active-parentBean"/>
  <bean id="DocEmail-active-parentBean" abstract="true" parent="AttributeReferenceDummy-genericBoolean">
    <property name="name" value="active"/>
    <property name="label" value="Active"/>
    <property name="shortLabel" value="Active"/>
    <property name="required" value="false"/>
    <property name="summary" value="Active"/>
    <property name="description" value="Active"/>
  </bean>
 
  <bean id="DocEmail-dflt" parent="DocEmail-dflt-parentBean"/>
  <bean id="DocEmail-dflt-parentBean" abstract="true" parent="AttributeReferenceDummy-genericBoolean">
    <property name="name" value="dflt"/>
    <property name="label" value="Default"/>
    <property name="shortLabel" value="Default"/>
    <property name="required" value="false"/>
    <property name="summary" value="Default"/>
    <property name="description" value="Default"/>
  </bean>


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

  <bean id="DocEmail-lookupDefinition-parentBean" abstract="true" parent="LookupDefinition" p:title="Person Email Lookup">
    <property name="defaultSort">
      <bean parent="SortDefinition">
        <property name="attributeNames">
          <list>
            <value>emailTypeCode</value>
          </list>
        </property>
        <property name="sortAscending" value="true"/>
      </bean>
    </property>
    <property name="lookupFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="emailTypeCode"/>
        <bean parent="FieldDefinition" p:attributeName="emailAddress"/>
      </list>
    </property>
    <property name="resultFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="emailTypeCode"/>
        <bean parent="FieldDefinition" p:attributeName="emailAddress"/>
      </list>
    </property>
  </bean>

</beans>
New to GrepCode? Check out our FAQ X