<commit_before><?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:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans         
                           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                           http://www.springframework.org/schema/util 
                           http://www.springframework.org/schema/util/spring-util-3.0.xsd">       
  <!--
   Copyright 2007-2009 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="AgendaEditorMaintenanceDocument" parent="MaintenanceDocumentEntry">
    <property name="businessObjectClass" value="org.kuali.rice.krms.impl.ui.AgendaEditor"/>
    <property name="maintainableClass" value="org.kuali.rice.krms.impl.ui.AgendaEditorMaintainable"/>
    <property name="documentTypeName" value="AgendaEditorMaintenanceDocument"/>
    <property name="documentAuthorizerClass"
              value="org.kuali.rice.krad.document.authorization.MaintenanceDocumentAuthorizerBase"/>
    <property name="lockingKeys">
      <list>
        <value>agenda.id</value>
      </list>
    </property>
  </bean>
  
  <util:list id="buttonClasses"><value>ui-button ui-widget</value></util:list>

  <!-- hack to merge a list with one of those util:lists -->
  <bean id="krms-css" class="org.apache.commons.collections.ListUtils" factory-method="union">
      <constructor-arg>
          <ref bean="kns-css" />
      </constructor-arg> 
      <constructor-arg><list><value>/krms/css/agendaTree.css</value></list></constructor-arg>
  </bean>

  <bean id="AgendaTreeWidget" parent="TreeWidget">
    <property name="template" value="/krad/WEB-INF/jsp/templates/widget/agendaTree.jsp"/>
  </bean>

  <bean id="Editor-MaintenanceView" parent="MaintenanceView">
    <property name="additionalCssFiles" ref="krms-css" /> 
    <property name="title" value="Business Rules"/>
    <property name="dataObjectClassName" value="org.kuali.rice.krms.impl.ui.AgendaEditor"/>
    <property name="items">
      <list merge="false"> <!-- this gets rid of header, notes, route log -->
        <bean parent="GroupSection" p:accordion.render="false">
          <property name="items">
            <list>
              <bean parent="FieldGroup" p:label="Field Group 4">
                <!-- p:width="40%" p:labelField.width="10%" -->
                <property name="group.layoutManager.orientation" value="HORIZONTAL"/>
                <property name="items">
                  <list>
                    <bean parent="AttributeField" p:propertyName="context.name" p:labelPlacement="LEFT">
                      <!--  property name="required" value="true" / -->
                      <property name="control">
                        <bean parent="TextControl" p:size="30" p:watermarkText="name"/>
                      </property>
                      <property name="fieldLookup.dataObjectClassName"
                                value="org.kuali.rice.krms.impl.repository.ContextBo"/>
                      <property name="fieldLookup.fieldConversions">
                      <!-- Spring shortcuts for maps and lists:
                        [12:20:06 PDT] Jerry Neal: prop="one,two,three'
                        [12:20:18 PDT] Jerry Neal: map="key:value,key:value"
                       -->
                        <map>
                          <entry key="name" value="document.newMaintainableObject.dataObject.context.name"/>
                          <entry key="namespace" value="document.newMaintainableObject.dataObject.context.namespace"/>
                          <entry key="id" value="document.newMaintainableObject.dataObject.context.id"/>
                        </map>
                      </property>
                      <property name="label" value="Name"/>
                      <property name="fieldSuggest.render" value="true" />
                      <property name="fieldSuggest.sourcePropertyName" value="name" />
                      <property name="fieldSuggest.suggestQuery.dataObjectClassName" value="org.kuali.rice.krms.impl.repository.ContextBo" />
                    </bean>
                    <bean parent="AttributeField" p:propertyName="context.namespace"
                          p:label="Namespace" p:labelPlacement="LEFT">
                      <property name="control">
                        <bean parent="TextControl" p:size="30" p:watermarkText="namespace"/>
                      </property>
                    </bean>
                    <bean parent="AttributeField" p:propertyName="context.id"
                            p:showLabel="false" p:label="id" p:maxLength="40">
                      <property name="control">
                        <bean parent="HiddenControl"/>
                      </property>
                    </bean>
                  </list>
                </property>
              </bean>
            </list>

          </property>
          <property name="title" value="Context"/>
        </bean>

        <bean parent="GroupSection">
          <property name="title" value="Agenda Editor"/>
          <property name="items">
            <list>
              <bean parent="GroupGridBodyOnly" p:layoutManager.numberOfColumns="4">
                <property name="items">
                  <list >
                    <ref bean="agendaName"/>
                    <ref bean="agendaActive"/>
                  </list>
                </property>
              </bean>
              
              <bean parent="GroupBodyOnly" p:style="border: 1px solid #999999; padding: 5px; margin: 5px; background: white; ">
                <property name="items">
                  <list>
                    <bean parent="GroupGridBodyOnly" p:style="margin-bottom: 5pt;">
                      <property name="items">
                        <list>
                          <ref bean="treeControls"/>
                        </list>
                      </property>
                    </bean>
                    <ref bean="treeExpandCollapse" />
                    <ref bean="tree" />
                  </list>
                </property>
              </bean>


            </list>
          </property>
        </bean>
        
      </list>
    </property>
  </bean>
  
  <bean id="treeExpandCollapse" parent="FieldGroup" p:label="Field Group 4" 
    p:conditionalRender="document.newMaintainableObject.dataObject.agenda != null" p:style="font-size: smaller;">
    <property name="group.layoutManager.orientation" value="HORIZONTAL"/>
    <property name="items">
      <list>                            
        <bean parent="ActionLinkField" p:clientSideJs="jq('.jstree').jstree('open_all');" 
          p:actionLabel="[+] expand all" p:style="font-size: smaller; margin-left: 2em;"><commit_msg>KULRICE-5310 Fixed conditional display of expand all / collapse all links above agenda tree.<commit_after><?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:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans         
                           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                           http://www.springframework.org/schema/util 
                           http://www.springframework.org/schema/util/spring-util-3.0.xsd">       
  <!--
   Copyright 2007-2009 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="AgendaEditorMaintenanceDocument" parent="MaintenanceDocumentEntry">
    <property name="businessObjectClass" value="org.kuali.rice.krms.impl.ui.AgendaEditor"/>
    <property name="maintainableClass" value="org.kuali.rice.krms.impl.ui.AgendaEditorMaintainable"/>
    <property name="documentTypeName" value="AgendaEditorMaintenanceDocument"/>
    <property name="documentAuthorizerClass"
              value="org.kuali.rice.krad.document.authorization.MaintenanceDocumentAuthorizerBase"/>
    <property name="lockingKeys">
      <list>
        <value>agenda.id</value>
      </list>
    </property>
  </bean>
  
  <util:list id="buttonClasses"><value>ui-button ui-widget</value></util:list>

  <!-- hack to merge a list with one of those util:lists -->
  <bean id="krms-css" class="org.apache.commons.collections.ListUtils" factory-method="union">
      <constructor-arg>
          <ref bean="kns-css" />
      </constructor-arg> 
      <constructor-arg><list><value>/krms/css/agendaTree.css</value></list></constructor-arg>
  </bean>

  <bean id="AgendaTreeWidget" parent="TreeWidget">
    <property name="template" value="/krad/WEB-INF/jsp/templates/widget/agendaTree.jsp"/>
  </bean>

  <bean id="Editor-MaintenanceView" parent="MaintenanceView">
    <property name="additionalCssFiles" ref="krms-css" /> 
    <property name="title" value="Business Rules"/>
    <property name="dataObjectClassName" value="org.kuali.rice.krms.impl.ui.AgendaEditor"/>
    <property name="items">
      <list merge="false"> <!-- this gets rid of header, notes, route log -->
        <bean parent="GroupSection" p:accordion.render="false">
          <property name="items">
            <list>
              <bean parent="FieldGroup" p:label="Field Group 4">
                <!-- p:width="40%" p:labelField.width="10%" -->
                <property name="group.layoutManager.orientation" value="HORIZONTAL"/>
                <property name="items">
                  <list>
                    <bean parent="AttributeField" p:propertyName="context.name" p:labelPlacement="LEFT">
                      <!--  property name="required" value="true" / -->
                      <property name="control">
                        <bean parent="TextControl" p:size="30" p:watermarkText="name"/>
                      </property>
                      <property name="fieldLookup.dataObjectClassName"
                                value="org.kuali.rice.krms.impl.repository.ContextBo"/>
                      <property name="fieldLookup.fieldConversions">
                      <!-- Spring shortcuts for maps and lists:
                        [12:20:06 PDT] Jerry Neal: prop="one,two,three'
                        [12:20:18 PDT] Jerry Neal: map="key:value,key:value"
                       -->
                        <map>
                          <entry key="name" value="document.newMaintainableObject.dataObject.context.name"/>
                          <entry key="namespace" value="document.newMaintainableObject.dataObject.context.namespace"/>
                          <entry key="id" value="document.newMaintainableObject.dataObject.context.id"/>
                        </map>
                      </property>
                      <property name="label" value="Name"/>
                      <property name="fieldSuggest.render" value="true" />
                      <property name="fieldSuggest.sourcePropertyName" value="name" />
                      <property name="fieldSuggest.suggestQuery.dataObjectClassName" value="org.kuali.rice.krms.impl.repository.ContextBo" />
                    </bean>
                    <bean parent="AttributeField" p:propertyName="context.namespace"
                          p:label="Namespace" p:labelPlacement="LEFT">
                      <property name="control">
                        <bean parent="TextControl" p:size="30" p:watermarkText="namespace"/>
                      </property>
                    </bean>
                    <bean parent="AttributeField" p:propertyName="context.id"
                            p:showLabel="false" p:label="id" p:maxLength="40">
                      <property name="control">
                        <bean parent="HiddenControl"/>
                      </property>
                    </bean>
                  </list>
                </property>
              </bean>
            </list>

          </property>
          <property name="title" value="Context"/>
        </bean>

        <bean parent="GroupSection">
          <property name="title" value="Agenda Editor"/>
          <property name="items">
            <list>
              <bean parent="GroupGridBodyOnly" p:layoutManager.numberOfColumns="4">
                <property name="items">
                  <list >
                    <ref bean="agendaName"/>
                    <ref bean="agendaActive"/>
                  </list>
                </property>
              </bean>
              
              <bean parent="GroupBodyOnly" p:style="border: 1px solid #999999; padding: 5px; margin: 5px; background: white; ">
                <property name="items">
                  <list>
                    <bean parent="GroupGridBodyOnly" p:style="margin-bottom: 5pt;">
                      <property name="items">
                        <list>
                          <ref bean="treeControls"/>
                        </list>
                      </property>
                    </bean>
                    <ref bean="treeExpandCollapse" />
                    <ref bean="tree" />
                  </list>
                </property>
              </bean>


            </list>
          </property>
        </bean>
        
      </list>
    </property>
  </bean>
  
  <bean id="treeExpandCollapse" parent="FieldGroup" p:label="Field Group 4" 
    p:conditionalRender="document.newMaintainableObject.dataObject.agenda != null and document.newMaintainableObject.dataObject.agenda.name != null and !document.newMaintainableObject.dataObject.agenda.name.isEmpty()"
    p:style="font-size: smaller;">
    <property name="group.layoutManager.orientation" value="HORIZONTAL"/>
    <property name="items">
      <list>                            
        <bean parent="ActionLinkField" p:clientSideJs="jq('.jstree').jstree('open_all');" 
          p:actionLabel="[+] expand all" p:style="font-size: smaller; margin-left: 2em;">
{'fraction_non_alphanumeric': 0.13170315982693065, 'fraction_numerical': 0.007997902189589616, 'mean_word_length': 1.9325259515570934, 'pattern_counts': {'":': 0, '<': 249, '<?xml version=': 2, '>': 249, 'https://': 0, 'lorem ipsum': 0, 'www.': 18, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6274148', 'n_tokens_mistral': 4151, 'n_tokens_neox': 3883, 'n_words': 764}