]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5989: Add 'id' tags for two configuration blocks in Services tenant bindings...
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 3 May 2013 22:35:26 +0000 (15:35 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 3 May 2013 22:35:26 +0000 (15:35 -0700)
services/common/src/main/cspace/config/services/tenants/lifesci/tenant-bindings.delta.xml
services/common/src/main/cspace/config/services/tenants/tenant-bindings-proto.xml

index d02817f3f39d400730dcd394f1a2c37d2a72cd43..2de5a104b1692c46bf2bcf7b656e81159e095037 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
 <tenant:TenantBindingConfig
-       xmlns:merge='http://xmlmerge.el4j.elca.ch'
-       xmlns:tenant='http://collectionspace.org/services/config/tenant'>
-                
-  <tenant:tenantBinding id="2" name="lifesci.collectionspace.org" displayName="Life Sciences/Natural History Demo Tenant" version="0.1">
+    xmlns:merge='http://xmlmerge.el4j.elca.ch'
+    xmlns:tenant='http://collectionspace.org/services/config/tenant'>
+             
+    <tenant:tenantBinding id="2" name="lifesci.collectionspace.org" displayName="Life Sciences/Natural History Demo Tenant" version="0.1">
 
-    <tenant:repositoryDomain name="default-domain" storageName="lifesci_domain" repositoryName="lifesci_domain" repositoryClient="nuxeo-java" />
-               <!--
-                                If you have term completion performance problems and are willing to 
-                                live with not defaulting to an initial wildcard, uncomment this
-                                section. Note that in term completion, you can always specify 
-                                something like "*atrick" (without quotes) to force the wildcard
-                                at the beginning.
-                                Performance may be an issue for very large authorities, especially if
-                                many of them share common substrings.
-               <tenant:properties>
-                       <types:item xmlns:types="http://collectionspace.org/services/config/types"
-                                                                                                       merge:matcher="skip" merge:action="insert" >
-                               <types:key>ptStartingWildcard</types:key>
-                               <types:value>false</types:value>
-                       </types:item>
-               </tenant:properties>
-               -->
-       
-       <tenant:serviceBindings merge:matcher="id" id="CollectionObjects">
-    <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
-                       <service:params>
-                               <service:ListResultsFields>
-                                       <service:ListResultField merge:matcher="skip" merge:action="insert" >
-              <service:element>taxon</service:element>
-              <service:schema>collectionobjects_naturalhistory</service:schema>
-                                                       <service:xpath>taxonomicIdentGroupList/[0]/taxon</service:xpath>
-            </service:ListResultField>
-                               </service:ListResultsFields>
-                       </service:params>
-    </service:DocHandlerParams>
+        <tenant:repositoryDomain name="default-domain" storageName="lifesci_domain" repositoryName="lifesci_domain" repositoryClient="nuxeo-java" />
+        <!--
+            Uncomment any setting(s) below to override system default values.
+            See tenant-bindings-proto.xml for explanation of these settings.
+        -->
+        <tenant:properties>
+            <!--
+            <types:item id="ptstartingwildcard" xmlns:types="http://collectionspace.org/services/config/types"
+                        merge:matcher="id" merge:action="replace">
+                <types:key>ptStartingWildcard</types:key>
+                <types:value>false</types:value>
+            </types:item>
+            -->
+            <!--
+            <types:item id="maxlistitemsjdbc" xmlns:types="http://collectionspace.org/services/config/types"
+                        merge:matcher="id" merge:action="replace">
+                <types:key>maxListItemsReturnedLimitOnJdbcQueries</types:key>
+                <types:value>100</types:value>
+            </types:item>
+            -->
+        </tenant:properties>
+    
+        <tenant:serviceBindings merge:matcher="id" id="CollectionObjects">
+            <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
+                <service:params>
+                    <service:ListResultsFields>
+                        <service:ListResultField merge:matcher="skip" merge:action="insert" >
+                            <service:element>taxon</service:element>
+                            <service:schema>collectionobjects_naturalhistory</service:schema>
+                            <service:xpath>taxonomicIdentGroupList/[0]/taxon</service:xpath>
+                        </service:ListResultField>
+                    </service:ListResultsFields>
+                </service:params>
+            </service:DocHandlerParams>
 
-               <service:object xmlns:service="http://collectionspace.org/services/config/service" >
-                       <service:part id="3" merge:matcher="skip" merge:action="insert" control_group="Managed" versionable="true" auditable="false" label="collectionobjects_naturalhistory" updated="" order="3">
-                               <!-- Include authRefs for fields in the added schema -->
-                               <service:properties>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>taxonomicIdentGroupList/*/taxon</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>associatedTaxaGroupList/*/taxon</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>taxonomicIdentGroupList/*/identBy</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>taxonomicIdentGroupList/*/institution</types:value>
-                                       </types:item>
-                                       <!--
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>annotationGroupList/*/annotationAuthor</types:value>
-                                       </types:item>
-                                        -->
-                               </service:properties>
-                         <service:content contentType="application/xml">
-                               <service:xmlContent namespaceURI="http://collectionspace.org/services/collectionobject/domain/naturalhistory" schemaLocation="http://collectionspace.org/services/collectionobject/domain/naturalhistory http://collectionspace.org/services/collectionobject/domain/collectionobjects_naturalhistory.xsd" />
-                         </service:content>
-                       </service:part>
-               </service:object>
+            <service:object xmlns:service="http://collectionspace.org/services/config/service" >
+                <service:part id="3" merge:matcher="skip" merge:action="insert" control_group="Managed" versionable="true" auditable="false" label="collectionobjects_naturalhistory" updated="" order="3">
+                    <!-- Include authRefs for fields in the added schema -->
+                    <service:properties>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>taxonomicIdentGroupList/*/taxon</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>associatedTaxaGroupList/*/taxon</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>taxonomicIdentGroupList/*/identBy</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>taxonomicIdentGroupList/*/institution</types:value>
+                        </types:item>
+                        <!--
+                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                           <types:key>authRef</types:key>
+                           <types:value>annotationGroupList/*/annotationAuthor</types:value>
+                       </types:item>
+                        -->
+                    </service:properties>
+                    <service:content contentType="application/xml">
+                        <service:xmlContent namespaceURI="http://collectionspace.org/services/collectionobject/domain/naturalhistory" schemaLocation="http://collectionspace.org/services/collectionobject/domain/naturalhistory http://collectionspace.org/services/collectionobject/domain/collectionobjects_naturalhistory.xsd" />
+                    </service:content>
+                </service:part>
+            </service:object>
 
-       </tenant:serviceBindings>
+        </tenant:serviceBindings>
 
-       <tenant:serviceBindings merge:matcher="id" id="Movements">
-               <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
-                       <service:params>
-                               <service:SupportsVersioning>true</service:SupportsVersioning>
-                                       <service:ListResultsFields merge:action="preserve" />
-                       </service:params>
-               </service:DocHandlerParams>
-       </tenant:serviceBindings>
+        <tenant:serviceBindings merge:matcher="id" id="Movements">
+            <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
+                <service:params>
+                    <service:SupportsVersioning>true</service:SupportsVersioning>
+                    <service:ListResultsFields merge:action="preserve" />
+                </service:params>
+            </service:DocHandlerParams>
+        </tenant:serviceBindings>
 
-       <tenant:serviceBindings merge:matcher="id" id="Persons">
-    <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
-                       <service:params>
-                               <service:ListResultsFields>
-                                       <service:ListResultField merge:matcher="skip" merge:action="insert" >
-              <service:element>entityType</service:element>
-              <service:schema>persons_naturalhistory</service:schema>
-                                                       <service:xpath>entityType</service:xpath>
-            </service:ListResultField>
-                               </service:ListResultsFields>
-                       </service:params>
-    </service:DocHandlerParams>
+        <tenant:serviceBindings merge:matcher="id" id="Persons">
+            <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
+                <service:params>
+                    <service:ListResultsFields>
+                        <service:ListResultField merge:matcher="skip" merge:action="insert" >
+                            <service:element>entityType</service:element>
+                            <service:schema>persons_naturalhistory</service:schema>
+                            <service:xpath>entityType</service:xpath>
+                        </service:ListResultField>
+                    </service:ListResultsFields>
+                </service:params>
+            </service:DocHandlerParams>
 
-               <service:object xmlns:service="http://collectionspace.org/services/config/service">
-                       <service:part id="3" merge:matcher="skip" merge:action="insert" control_group="Managed"
-                               versionable="true" auditable="false" label="persons_naturalhistory" updated="" order="3">
-                               <service:content contentType="application/xml">
-                                       <service:xmlContent namespaceURI="http://collectionspace.org/services/person/domain/naturalhistory"
-                                               schemaLocation="http://collectionspace.org/services/person/domain/naturalhistory http://collectionspace.org/services/person/domain/persons_naturalhistory.xsd"
-                                       />
-                               </service:content>
-                               <service:properties>
-                                       <!-- See CSPACE-3938 for potential additional authRef and termRef entries -->
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>affiliatedPersonOrgGroupList/*/affiliatedPersonOrg</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>authRef</types:key>
-                                               <types:value>orgContactNames|orgContactName</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>termRef</types:key>
-                                               <types:value>affiliatedPersonOrgGroupList/*/affiliatedPersonOrgType</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>termRef</types:key>
-                                               <types:value>nameTypes|nameType</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>termRef</types:key>
-                                               <types:value>nameSource</types:value>
-                                       </types:item>
-                                       <types:item xmlns:types="http://collectionspace.org/services/config/types">
-                                               <types:key>termRef</types:key>
-                                               <types:value>entityType</types:value>
-                                       </types:item>
-                               </service:properties>
-                       </service:part>
-               </service:object>
-       </tenant:serviceBindings>
-       
-  </tenant:tenantBinding>
-                      
+            <service:object xmlns:service="http://collectionspace.org/services/config/service">
+                <service:part id="3" merge:matcher="skip" merge:action="insert" control_group="Managed"
+                              versionable="true" auditable="false" label="persons_naturalhistory" updated="" order="3">
+                    <service:content contentType="application/xml">
+                        <service:xmlContent namespaceURI="http://collectionspace.org/services/person/domain/naturalhistory"
+                                            schemaLocation="http://collectionspace.org/services/person/domain/naturalhistory http://collectionspace.org/services/person/domain/persons_naturalhistory.xsd"
+                        />
+                    </service:content>
+                    <service:properties>
+                        <!-- See CSPACE-3938 for potential additional authRef and termRef entries -->
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>affiliatedPersonOrgGroupList/*/affiliatedPersonOrg</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>authRef</types:key>
+                            <types:value>orgContactNames|orgContactName</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>termRef</types:key>
+                            <types:value>affiliatedPersonOrgGroupList/*/affiliatedPersonOrgType</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>termRef</types:key>
+                            <types:value>nameTypes|nameType</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>termRef</types:key>
+                            <types:value>nameSource</types:value>
+                        </types:item>
+                        <types:item xmlns:types="http://collectionspace.org/services/config/types">
+                            <types:key>termRef</types:key>
+                            <types:value>entityType</types:value>
+                        </types:item>
+                    </service:properties>
+                </service:part>
+            </service:object>
+        </tenant:serviceBindings>
+    
+    </tenant:tenantBinding>
+                   
 </tenant:TenantBindingConfig>
index ed2da9e89210e4f21a5b068aa8e5f0aca02a2248..3206f8939b9e915e9b680b9ec4bf873b358bca91 100644 (file)
                 <types:value>da</types:value>
             </types:item>
             -->
-            <types:item xmlns:types="http://collectionspace.org/services/config/types">
+            <!--
+                Controls whether term completion (aka partial term matching,
+                aka autocomplete) searches will automatically insert a leading
+                wildcard, in order to match your search expression when found
+                anywhere within a term, not just at the beginning of a term.
+                
+                The default value is 'true', which will match your search
+                expression when found anywhere within a term. If this value is
+                set to 'false', searches will only find terms which begin with
+                your search expression. However, even after doing so, you can
+                manually add a wildcard at the beginning of any search; e.g.
+                "*atrick" (without quotes) will match the string "atrick"
+                anywhere, not just at the beginning of a term.
+
+                See the tenant-bindings.delta.xml file for the 'lifesci' tenant,
+                for an example of how to override this value in your tenant.
+            -->
+            <types:item id="ptstartingwildcard" xmlns:types="http://collectionspace.org/services/config/types">
+                <types:key>ptStartingWildcard</types:key>
+                <types:value>true</types:value>
+            </types:item>
+            <!--
+               By default, term completion searches return a maximum number
+               of terms in their search results. The default value is 40 terms
+               See the tenant-bindings.delta.xml file for the 'lifesci' tenant,
+               for an example of how to override this value in your tenant.
+            -->
+            <types:item id="maxlistitemsjdbc" xmlns:types="http://collectionspace.org/services/config/types">
                 <types:key>maxListItemsReturnedLimitOnJdbcQueries</types:key>
                 <types:value>40</types:value>
-           </types:item>
+            </types:item>
         </tenant:properties>        
         
         <!-- begin idgenerator service meta-data -->