<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2005-2014 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.

-->
<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
                           http://rice.kuali.org/dd
                           http://rice.kuali.org/dd/dd.xsd">

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

  <bean id="AttachmentSampleMaintenanceDocument-parentBean" abstract="true"
        parent="MaintenanceDocumentEntry" p:businessObjectClass="edu.sampleu.travel.bo.AttachmentSample"
        p:documentClass="edu.sampleu.travel.bo.AttachmentSample"
        p:maintainableClass="org.kuali.rice.kns.maintenance.KualiMaintainableImpl"
        p:businessRulesClass="org.kuali.rice.kns.maintenance.SampleRuleImpl"
        p:allowsRecordDeletion="false">
    <property name="documentAuthorizerClass" value="org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase" />
    <property name="documentPresentationControllerClass" value="org.kuali.rice.kns.document.authorization.MaintenanceDocumentPresentationControllerBase" />
    <property name="webScriptFiles">
      <list>
        <value>../dwr/interface/AccountService.js</value>
        <value>../scripts/coa/accountGlobal.js</value>
        <value>../scripts/coa/accountDelegateGlobalDetail.js</value>
        <value>../scripts/sys/objectInfo.js</value>
      </list>
    </property>
    <property name="maintainableSections">
      <list>
        <ref bean="AttachmentSampleMaintenanceDocument-DocumentMaintenance"/>
        <bean id="MultiAttachmentSampleMaintenanceDocument-AttachmentList"
              abstract="true" parent="MaintainableSectionDefinition">
          <property name="title" value="Multi Attachment List Sample Maintenance"/>
          <property name="maintainableItems">
            <list>
              <bean parent="MaintainableCollectionDefinition">
                <property name="businessObjectClass" value="edu.sampleu.travel.bo.MultiAttachmentSample"/>
                <property name="name" value="attachments"/>
                <property name="sourceClassName" value="edu.sampleu.travel.bo.newMultiAttachmentSample"/>
                <property name="includeAddLine" value="true"/>
                <property name="includeMultipleLookupLine" value="true"/>
                <property name="summaryTitle" value="Multi Attachment"/>
                <property name="maintainableFields">
                  <list>
                    <bean parent="MaintainableFieldDefinition" p:name="description"/>
                    <bean parent="MaintainableFieldDefinition" p:name="attachmentFile" p:template="newAttachmentFile"/>
                  </list>
                </property>
              </bean>
            </list>
          </property>
        </bean>
      </list>
    </property>
    <property name="lockingKeys">
      <list>
        <value>id</value>
      </list>
    </property>
    <property name="documentTypeName" value="AttachmentSampleDocumentType"/>
  </bean>

  <!-- Maintenance Section Definitions -->

  <bean id="AttachmentSampleMaintenanceDocument-DocumentMaintenance"
        parent="AttachmentSampleMaintenanceDocument-DocumentMaintenance-parentBean"/>

  <bean id="AttachmentSampleMaintenanceDocument-DocumentMaintenance-parentBean"
        abstract="true" parent="MaintainableSectionDefinition">
    <property name="title" value="Attachment Sample Maintenance"/>
    <property name="defaultOpen" value="true"/>
    <property name="maintainableItems">
      <list>
        <bean parent="MaintainableFieldDefinition" p:name="id" p:required="true" p:readOnlyAfterAdd="true" />
        <bean parent="MaintainableFieldDefinition" p:name="description" p:unconditionallyReadOnly="false" p:webUILeaveFieldFunction="onblur_alertDescription"/>
        <bean parent="MaintainableFieldDefinition" p:name="license" p:required="true" p:defaultValueFinderClass="edu.sampleu.attachments.licenseTypeValueFinder"
              p:webUILeaveFieldFunction="onblur_alertLicense" p:webUILeaveFieldCallbackFunction ="onblur_alertLicense_CallBack"/>
        <bean parent="MaintainableFieldDefinition" p:name="attachmentFile"
                                                   p:additionalDisplayAttributeName="contentType"
                                                   p:alternateDisplayAttributeName="fileName" p:webUILeaveFieldFunction="onblur_attachmentFile">
          <property name="webUILeaveFieldFunctionParameters">
            <list>
              <value>license</value>
            </list>
          </property>
        </bean>  />
      </list>
    </property>
  </bean>

  <bean id="AttachmentSampleMaintenanceDocument-EditAttachment-parentBean" abstract="true"
        parent="MaintainableSectionDefinition">
    <property name="id" value="Edit attachment"/>
    <property name="title" value="Edit attachment"/>
    <property name="defaultOpen" value="false"/>
    <property name="helpUrl" value="linkUrl"/>
    <property name="maintainableItems">
      <list>
        <bean parent="MaintainableFieldDefinition"
              p:name="attachmentRefId"/>
        <bean parent="MaintainableFieldDefinition"
              p:name="attachmentId"/>
        <bean parent="MaintainableFieldDefinition"
              p:name="sequenceNumber"/>
        <bean parent="MaintainableFieldDefinition"<commit_msg>KULRICE-11457: Isolated read only test bean from other test beans<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2005-2014 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.

-->
<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
                           http://rice.kuali.org/dd
                           http://rice.kuali.org/dd/dd.xsd">

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

  <bean id="AttachmentSampleMaintenanceDocument-parentBean" abstract="true"
        parent="MaintenanceDocumentEntry" p:businessObjectClass="edu.sampleu.travel.bo.AttachmentSample"
        p:documentClass="edu.sampleu.travel.bo.AttachmentSample"
        p:maintainableClass="org.kuali.rice.kns.maintenance.KualiMaintainableImpl"
        p:businessRulesClass="org.kuali.rice.kns.maintenance.SampleRuleImpl"
        p:allowsRecordDeletion="false">
    <property name="documentAuthorizerClass" value="org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase" />
    <property name="documentPresentationControllerClass" value="org.kuali.rice.kns.document.authorization.MaintenanceDocumentPresentationControllerBase" />
    <property name="webScriptFiles">
      <list>
        <value>../dwr/interface/AccountService.js</value>
        <value>../scripts/coa/accountGlobal.js</value>
        <value>../scripts/coa/accountDelegateGlobalDetail.js</value>
        <value>../scripts/sys/objectInfo.js</value>
      </list>
    </property>
    <property name="maintainableSections">
      <list>
        <ref bean="AttachmentSampleMaintenanceDocument-DocumentMaintenance"/>
        <bean id="MultiAttachmentSampleMaintenanceDocument-AttachmentList"
              abstract="true" parent="MaintainableSectionDefinition">
          <property name="title" value="Multi Attachment List Sample Maintenance"/>
          <property name="maintainableItems">
            <list>
              <bean parent="MaintainableCollectionDefinition">
                <property name="businessObjectClass" value="edu.sampleu.travel.bo.MultiAttachmentSample"/>
                <property name="name" value="attachments"/>
                <property name="sourceClassName" value="edu.sampleu.travel.bo.newMultiAttachmentSample"/>
                <property name="includeAddLine" value="true"/>
                <property name="includeMultipleLookupLine" value="true"/>
                <property name="summaryTitle" value="Multi Attachment"/>
                <property name="maintainableFields">
                  <list>
                    <bean parent="MaintainableFieldDefinition" p:name="description"/>
                    <bean parent="MaintainableFieldDefinition" p:name="attachmentFile" p:template="newAttachmentFile"/>
                  </list>
                </property>
              </bean>
            </list>
          </property>
        </bean>
      </list>
    </property>
    <property name="lockingKeys">
      <list>
        <value>id</value>
      </list>
    </property>
    <property name="documentTypeName" value="AttachmentSampleDocumentType"/>
  </bean>

  <!-- Maintenance Section Definitions -->

  <bean id="AttachmentSampleMaintenanceDocument-DocumentMaintenance"
        parent="AttachmentSampleMaintenanceDocument-DocumentMaintenance-parentBean"/>

  <bean id="AttachmentSampleMaintenanceDocument-DocumentMaintenance-parentBean"
        abstract="true" parent="MaintainableSectionDefinition">
    <property name="title" value="Attachment Sample Maintenance"/>
    <property name="defaultOpen" value="true"/>
    <property name="maintainableItems">
      <list>
        <bean parent="MaintainableFieldDefinition" p:name="id" p:required="true" p:readOnlyAfterAdd="true" />
        <bean parent="MaintainableFieldDefinition" p:name="description" p:unconditionallyReadOnly="false" p:webUILeaveFieldFunction="onblur_alertDescription"/>
        <bean parent="MaintainableFieldDefinition" p:name="license" p:required="true" p:defaultValueFinderClass="edu.sampleu.attachments.licenseTypeValueFinder"
              p:webUILeaveFieldFunction="onblur_alertLicense" p:webUILeaveFieldCallbackFunction ="onblur_alertLicense_CallBack"/>
        <bean parent="MaintainableFieldDefinition" p:name="attachmentFile"
                                                   p:additionalDisplayAttributeName="contentType"
                                                   p:alternateDisplayAttributeName="fileName" p:webUILeaveFieldFunction="onblur_attachmentFile">
          <property name="webUILeaveFieldFunctionParameters">
            <list>
              <value>license</value>
            </list>
          </property>
        </bean>  />
      </list>
    </property>
  </bean>

  <bean id="AttachmentSampleMaintenanceDocument-ReadOnlyProperty-parentBean"
        abstract="true" parent="MaintainableSectionDefinition">
    <property name="title" value="Attachment Sample Maintenance"/>
    <property name="defaultOpen" value="true"/>
    <property name="maintainableItems">
      <list>
        <bean parent="MaintainableFieldDefinition" p:name="id" p:required="true" p:readOnlyAfterAdd="true" />
        <bean parent="MaintainableFieldDefinition" p:name="description" p:unconditionallyReadOnly="false"/>
      </list>
    </property>
  </bean>

  <bean id="AttachmentSampleMaintenanceDocument-EditAttachment-parentBean" abstract="true"
        parent="MaintainableSectionDefinition">
    <property name="id" value="Edit attachment"/>
    <property name="title" value="Edit attachment"/>
    <property name="defaultOpen" value="false"/>
    <property name="helpUrl" value="linkUrl"/>
    <property name="maintainableItems">
      <list>
        <bean parent="MaintainableFieldDefinition"
              p:name="attachmentRefId"/>
        <bean parent="MaintainableFieldDefinition"
              p:name="attachmentId"/>
        <bean parent="MaintainableFieldDefinition"
              p:name="sequenceNumber"/>
        <bean parent="MaintainableFieldDefinition"
{'fraction_non_alphanumeric': 0.11754439216876612, 'fraction_numerical': 0.0035665503111246017, 'mean_word_length': 3.2417122626327646, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 2, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3115422', 'n_tokens_mistral': 3505, 'n_tokens_neox': 3431, 'n_words': 591}