]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3865: More naming tweaks; part of create test now passes in local testing...
authorAron Roberts <aron@socrates.berkeley.edu>
Sat, 7 May 2011 03:43:30 +0000 (03:43 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Sat, 7 May 2011 03:43:30 +0000 (03:43 +0000)
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/OSGI-INF/ecm-types-contrib.xml
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/OSGI-INF/layouts-contrib.xml
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/OSGI-INF/life-cycle-contrib.xml
services/taxonomy/build.xml
services/taxonomy/client/src/main/java/org/collectionspace/services/client/TaxonomyAuthorityClient.java
services/taxonomy/jaxb/src/main/java/org/collectionspace/services/TaxonomyJAXBSchema.java
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/TaxonomyAuthorityResource.java
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/nuxeo/TaxonDocumentModelHandler.java
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/nuxeo/TaxonValidatorHandler.java

index 2c6ca5c92384ce4387026ea2cec4c061020cc109..a305cbb943da5edf0d8eddc08781455f83e9674f 100644 (file)
 
   </extension>
   <extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">
-    <type id="Taxonomyitem" coretype="Taxonomyitem">
-      <label>org.collectionspace.taxonomy</label>
+    <type id="Taxon" coretype="Taxon">
+      <label>org.collectionspace.taxon</label>
       <!--icon>/icons/file.gif</icon-->
       <default-view>view_documents</default-view>
 
       <layouts mode="any">
         <layout>heading</layout>
-        <layout>taxonomy</layout>
+        <layout>taxon</layout>
       </layouts>        
     </type>
 
     <type id="Folder" coretype="Folder">
       <subtypes>
-        <type>Taxonomy</type>
+        <type>Taxon</type>
       </subtypes>
     </type>
     
     <type id="Workspace" coretype="Workspace">
       <subtypes>
-        <type>Taxonomy</type>
+        <type>Taxon</type>
       </subtypes>
     </type>
 
index e0e97f04fdc4031f530bff21ecc08e071a53d892..c286fa53031bb1ff6f77de095ec4897456b724ec 100644 (file)
@@ -73,7 +73,7 @@
   <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
     point="layouts">
 
-    <layout name="taxonomy">
+    <layout name="taxon">
       <templates>
         <template mode="any">/layouts/layout_default_template.xhtml</template>
       </templates>
index fd1293b817a3bbb6dc046f4e9fbda1838aeb24a4..829162528ec498599480a95e9b520083606f75af 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<component name="org.collectionspace.ecm.platform.location.LifeCycleManagerExtensions">
+<component name="org.collectionspace.ecm.platform.taxonomy.LifeCycleManagerExtensions">
 
   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
              point="types">
index dba523a4f9bf20a94ec0d41d20a9293ffaa0314c..fe67dbd1919faaa31f9762ad72c7dbd49e8cf612 100644 (file)
@@ -1,11 +1,10 @@
-
 <project name="taxonomy" default="package" basedir=".">
     <description>
         Taxonomy Authority service
     </description>
-  <!-- set global properties for this build -->
+    <!-- set global properties for this build -->
     <property name="services.trunk" value="../.."/>
-        <!-- enviornment should be declared before reading build.properties -->
+    <!-- environment should be declared before reading build.properties -->
     <property environment="env" />
     <property file="${services.trunk}/build.properties" />
     <property name="mvn.opts" value="" />
index 4915ca1c016f606a247c523d18fac661a89a39d8..7200c3da3291edaa50e0b1965382dbea123db786 100644 (file)
@@ -46,7 +46,7 @@ import org.jboss.resteasy.spi.ResteasyProviderFactory;
  * The Class TaxonomyAuthorityClient.
  */
 public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonomyauthorityCommonList, TaxonCommonList, TaxonomyAuthorityProxy> {
-       public static final String SERVICE_NAME = "Taxonomyauthority";
+       public static final String SERVICE_NAME = "taxonomyauthorities";
        public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;       
        public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
        public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
index 4bf6824af2b341ec9bcd534c8b0626743cd5a0fc..c1aa4a3689a7282daa8199ccaae10acf79f6fa30 100644 (file)
@@ -4,13 +4,9 @@
 package org.collectionspace.services;
 import org.collectionspace.services.common.vocabulary.AuthorityItemJAXBSchema;
 
-/**
- * @author pschmitz
- *
- */
 public interface TaxonomyJAXBSchema extends AuthorityItemJAXBSchema {
        final static String TAXONOMY_COMMON = "taxonomy_common";
-       final static String NAME = "fullName";
+       final static String NAME = "taxonFullName";
        final static String RANK = "taxonRank";
 
 }
index 5c1b792a966cfa8d0307f19bab33bf91b85a9d0b..ea1bb16ef03bbeac88c2b9f9ba87c7bebf9ab4a7 100644 (file)
@@ -66,7 +66,7 @@ import org.collectionspace.services.common.vocabulary.AuthorityResource;
 import org.collectionspace.services.common.vocabulary.RefNameServiceUtils;
 import org.collectionspace.services.common.vocabulary.RefNameUtils;
 import org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl;
-import org.collectionspace.services.taxonomy.nuxeo.TaxonomyDocumentModelHandler;
+import org.collectionspace.services.taxonomy.nuxeo.TaxonDocumentModelHandler;
 import org.jboss.resteasy.util.HttpResponseCodes;
 import org.nuxeo.ecm.core.api.DocumentModel;
 import org.slf4j.Logger;
@@ -80,7 +80,7 @@ import org.slf4j.LoggerFactory;
 @Produces("application/xml")
 public class TaxonomyAuthorityResource 
        extends AuthorityResource<TaxonomyauthorityCommon, TaxonomyauthorityCommonList, 
-                                                       TaxonCommon, TaxonomyDocumentModelHandler> {
+                                                       TaxonCommon, TaxonDocumentModelHandler> {
 
     private final static String taxonomyAuthorityServiceName = "taxonomyauthorities";
        private final static String TAXONOMYAUTHORITY_COMMON = "taxonomyauthority_common";
@@ -118,7 +118,7 @@ public class TaxonomyAuthorityResource
      * @return the item service name
      */
     public String getItemServiceName() {
-        return taxononomyItemServiceName;
+        return taxonomyItemServiceName;
     }
 
     @Override
index f39cdab34b7be8884f571667a334d484ebb98a74..d83adf87f621a3288b8423469e97ab59587ddcf0 100644 (file)
@@ -56,17 +56,17 @@ import org.slf4j.LoggerFactory;
  * @author pschmitz
  *
  */
-public class TaxonomyDocumentModelHandler
+public class TaxonDocumentModelHandler
         extends AuthorityItemDocumentModelHandler<TaxonCommon, TaxonCommonList> {
 
     /** The logger. */
-    private final Logger logger = LoggerFactory.getLogger(TaxonomyDocumentModelHandler.class);
+    private final Logger logger = LoggerFactory.getLogger(TaxonDocumentModelHandler.class);
     /**
      * Common part schema label
      */
     private static final String COMMON_PART_LABEL = "taxonomy_common";
     
-    public TaxonomyDocumentModelHandler() {
+    public TaxonDocumentModelHandler() {
        super(COMMON_PART_LABEL);
     }
        
index 8216ee411c42d18d7bce0fb65dd40dab02984b0c..6fa78a93e5736bec9e2a623f898c90548b7717fe 100644 (file)
@@ -36,9 +36,9 @@ import org.slf4j.LoggerFactory;
  *
  * @author 
  */
-public class TaxonomyValidatorHandler implements ValidatorHandler {
+public class TaxonValidatorHandler implements ValidatorHandler {
 
-    final Logger logger = LoggerFactory.getLogger(TaxonomyValidatorHandler.class);
+    final Logger logger = LoggerFactory.getLogger(TaxonValidatorHandler.class);
 
     @Override
     public void validate(Action action, ServiceContext ctx)