]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
For Richard
authorRichard Millet <richard.millet@berkeley.edu>
Mon, 15 Jul 2013 19:12:33 +0000 (12:12 -0700)
committerRichard Millet <richard.millet@berkeley.edu>
Mon, 15 Jul 2013 19:12:33 +0000 (12:12 -0700)
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationGen.java
services/common/src/main/cspace/config/services/tenants/tenant-bindings-proto-unified.xml

index bfd913991144f774f6e801920633f1df94392503..97e6714cadd19b68d352854111c473c2fedb4970 100644 (file)
@@ -68,6 +68,8 @@ public class AuthorizationGen {
     final public static boolean AUTHZ_IS_ENTITY_PROXY = false;
     
     final public static String TENANT_MGMNT_ID = "0";
+
+       private static final boolean USE_APP_GENERATED_BINDINGS = true;
     
     final Logger logger = LoggerFactory.getLogger(AuthorizationGen.class);
     private List<Permission> tenantMgmntPermList = new ArrayList<Permission>();
@@ -90,7 +92,7 @@ public class AuthorizationGen {
 
     public void initialize(String tenantRootDirPath) throws Exception {
        ServicesConfigReaderImpl servicesConfigReader = new ServicesConfigReaderImpl(tenantRootDirPath);
-        servicesConfigReader.read();        
+        servicesConfigReader.read(USE_APP_GENERATED_BINDINGS);        
         Boolean useAppGeneratedBindings = servicesConfigReader.getConfiguration().isUseAppGeneratedTenantBindings();
 
         TenantBindingConfigReaderImpl tenantBindingConfigReader =
index cac352b90544c05b7a3bb522970438cfbcc4a08a..622996325073e49ce8d824a0e84d76fd78b7ed4e 100644 (file)
@@ -1,10 +1,50 @@
 <?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="100" name="core.collectionspace.org" displayName="CollectionSpace Core Demo Tenant" version="0.1">
-        <tenant:repositoryDomain name="default-domain" storageName="core-domain" repositoryClient="nuxeo-java" />
+<tenant:TenantBindingConfig xmlns:merge="http://xmlmerge.el4j.elca.ch" xmlns:tenant="http://collectionspace.org/services/config/tenant">
+
+    <tenant:tenantBinding>
+
+        <!-- begin idgenerator service meta-data -->
+        <tenant:serviceBindings id="idgenerators" merge:matcher="id" name="idgenerators" type="utility" version="0.1">
+            <!-- other URI paths through which this service could be accessed -->
+            <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
+            <service:initHandler xmlns:service="http://collectionspace.org/services/config/service">
+                <service:classname>org.collectionspace.services.common.init.RunSqlScripts</service:classname>
+                <service:params>
+                    <service:property>
+                        <service:key>sqlScriptName</service:key>
+                        <service:value>create_id_generators_table.sql</service:value>
+                    </service:property>
+                    <service:property>
+                        <service:key>sqlScriptName</service:key>
+                        <service:value>load_id_generators.sql</service:value>
+                    </service:property>
+                </service:params>
+            </service:initHandler>
+        </tenant:serviceBindings>
+        <!-- end idgenerator service meta-data -->
+
+        <!-- begin id service meta-data -->
+        <tenant:serviceBindings id="id" merge:matcher="id" name="id" type="utility" version="0.1">
+            <!-- other URI paths through which this service could be accessed -->
+            <!-- 
+                <service:uriPath xmlns:service='http://collectionspace.org/services/config/service'>
+                    /idgenerators/*/ids
+                </service:uriPath>
+            -->
+            <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
+        </tenant:serviceBindings>
+        <!-- end id service meta-data -->
+
+        <!-- begin servicegroup service meta-data -->
+        <!-- Servicegroup is a task service that has no representation in the repo, 
+               but provides tools like keyword search across many types of services. 
+        -->
+        <tenant:serviceBindings id="servicegroups" merge:matcher="id" name="servicegroups" type="utility" version="0.1">
+            <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
+            <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler</service:documentHandler>
+        </tenant:serviceBindings>
+        <!-- end servicegroup service meta-data -->
+
     </tenant:tenantBinding>
-                      
+
 </tenant:TenantBindingConfig>