]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3865: Consistent naming - for now - of 'taxonomy identification item' as ...
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 6 May 2011 22:28:23 +0000 (22:28 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 6 May 2011 22:28:23 +0000 (22:28 +0000)
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/schemas/taxon_common.xsd [moved from services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/schemas/taxonomy_common.xsd with 84% similarity]
services/taxonomy/client/src/main/java/org/collectionspace/services/client/TaxonomyAuthorityClient.java
services/taxonomy/client/src/main/java/org/collectionspace/services/client/TaxonomyAuthorityClientUtils.java
services/taxonomy/client/src/main/java/org/collectionspace/services/client/TaxonomyAuthorityProxy.java
services/taxonomy/client/src/test/java/org/collectionspace/services/client/test/TaxonomyAuthorityServiceTest.java
services/taxonomy/jaxb/src/main/resources/taxon_common.xsd [moved from services/taxonomy/jaxb/src/main/resources/taxonomy_common.xsd with 94% similarity]
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/TaxonomyAuthorityResource.java
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/nuxeo/TaxonomyDocumentModelHandler.java
services/taxonomy/service/src/main/java/org/collectionspace/services/taxonomy/nuxeo/TaxonomyValidatorHandler.java

similarity index 84%
rename from services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/schemas/taxonomy_common.xsd
rename to services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/schemas/taxon_common.xsd
index d4e124eda3d2bc708c1ea7830b6116687153d2d7..b477c790aedb9bb52eac8d1de5aa8a63175980c3 100644 (file)
@@ -1,26 +1,26 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 
 <!--
-    Taxonomy schema (XSD)
+    Taxon schema (XSD)
     
-    Entity  : Taxonomy
+    Entity  : Taxon (item child of a TaxonomyAuthority) 
     Part    : Common
     Used for: Nuxeo EP core document type
     
-    $LastChangedRevision$
-    $LastChangedDate$
+    $LastChangedRevision: 4622 $
+    $LastChangedDate: 2011-05-05 16:51:51 -0700 (Thu, 05 May 2011) $
 -->
 
 <xs:schema 
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:ns="http://collectionspace.org/services/taxonomy"
-  xmlns="http://collectionspace.org/services/taxonomy"
-  targetNamespace="http://collectionspace.org/services/taxonomy"
+  xmlns:ns="http://collectionspace.org/services/taxon"
+  xmlns="http://collectionspace.org/services/taxon"
+  targetNamespace="http://collectionspace.org/services/taxon"
   version="0.1"
 >
 <!-- See http://wiki.collectionspace.org/display/collectionspace/Taxonomy+Service+Home -->    
 
-    <!--  Taxonomy Information Group -->
+    <!--  Taxonomic Identifier Information Group -->
     <!--  inAuthority is the csid of the owning TaxonomyAuthority -->
     <xs:element name="inAuthority" type="xs:string" />
     <xs:element name="shortIdentifier" type="xs:string"/>
index 9a31bdcdc3637cbe8c0c5bd2eb2f85aea5f0fd61..4915ca1c016f606a247c523d18fac661a89a39d8 100644 (file)
@@ -33,7 +33,7 @@ import javax.ws.rs.core.Response;
 import org.collectionspace.services.common.authorityref.AuthorityRefDocList;
 import org.collectionspace.services.contact.ContactsCommonList;
 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommonList;
-import org.collectionspace.services.taxonomy.TaxonomyCommonList;
+import org.collectionspace.services.taxonomy.TaxonCommonList;
 import org.collectionspace.services.client.TaxonomyAuthorityProxy;
 
 import org.jboss.resteasy.client.ClientResponse;
@@ -45,7 +45,7 @@ import org.jboss.resteasy.spi.ResteasyProviderFactory;
 /**
  * The Class TaxonomyAuthorityClient.
  */
-public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonomyauthorityCommonList, TaxonomyCommonList, TaxonomyAuthorityProxy> {
+public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonomyauthorityCommonList, TaxonCommonList, TaxonomyAuthorityProxy> {
        public static final String SERVICE_NAME = "Taxonomyauthority";
        public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;       
        public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
index 9d04693d958e0c2a3e0fb8878b2c6fa443731b36..42063d35cf74c5fd93f1c066054ece9487e04c86 100644 (file)
@@ -13,7 +13,7 @@ import javax.ws.rs.core.Response;
 import org.apache.commons.io.FileUtils;
 import org.collectionspace.services.TaxonomyJAXBSchema;
 import org.collectionspace.services.client.test.ServiceRequestType;
-import org.collectionspace.services.taxonomy.TaxonomyCommon;
+import org.collectionspace.services.taxonomy.TaxonCommon;
 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommon;
 import org.dom4j.DocumentException;
 import org.jboss.resteasy.client.ClientResponse;
@@ -62,7 +62,7 @@ public class TaxonomyAuthorityClientUtils {
     public static PoxPayloadOut createTaxonomyInstance( 
                String taxonomyAuthRefName, Map<String, String> taxonomyInfo, 
                                String headerLabel){
-        TaxonomyCommon taxonomy = new TaxonomyCommon();
+        TaxonCommon taxonomy = new TaxonCommon();
        String shortId = taxonomyInfo.get(TaxonomyJAXBSchema.SHORT_IDENTIFIER);
        String displayName = taxonomyInfo.get(TaxonomyJAXBSchema.DISPLAY_NAME);
        taxonomy.setShortIdentifier(shortId);
@@ -85,7 +85,7 @@ public class TaxonomyAuthorityClientUtils {
         commonPart.setLabel(headerLabel);
 
         if(logger.isDebugEnabled()){
-               logger.debug("to be created, taxonomy common ", taxonomy, TaxonomyCommon.class);
+               logger.debug("to be created, taxonomy common ", taxonomy, TaxonCommon.class);
         }
 
         return multipart;
index 80fb93dd0c76f48f1b6d747a0ac3e42fcfd7cc63..aa8aadc2a6d25a04263550702439e6b626722ffc 100644 (file)
@@ -10,7 +10,7 @@ import javax.ws.rs.QueryParam;
 
 import org.collectionspace.services.client.workflow.WorkflowClient;
 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommonList;
-import org.collectionspace.services.taxonomy.TaxonomyCommonList;
+import org.collectionspace.services.taxonomy.TaxonCommonList;
 
 /**
  * @version $Revision$
@@ -20,7 +20,7 @@ import org.collectionspace.services.taxonomy.TaxonomyCommonList;
 @Path(TaxonomyAuthorityClient.SERVICE_PATH + "/")
 @Produces("application/xml")
 @Consumes("application/xml")
-public interface TaxonomyAuthorityProxy extends AuthorityProxy<TaxonomyauthorityCommonList, TaxonomyCommonList> {
+public interface TaxonomyAuthorityProxy extends AuthorityProxy<TaxonomyauthorityCommonList, TaxonCommonList> {
 
     // List Taxonomyauthority
     @GET
@@ -35,7 +35,7 @@ public interface TaxonomyAuthorityProxy extends AuthorityProxy<Taxonomyauthority
        @GET
     @Produces({"application/xml"})
     @Path("/{csid}/items/")
-    ClientResponse<TaxonomyCommonList> readItemList(
+    ClientResponse<TaxonCommonList> readItemList(
                @PathParam("csid") String vcsid,
             @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
             @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords,
@@ -46,7 +46,7 @@ public interface TaxonomyAuthorityProxy extends AuthorityProxy<Taxonomyauthority
        @GET
     @Produces({"application/xml"})
     @Path("/urn:cspace:name({specifier})/items/")
-    ClientResponse<TaxonomyCommonList> readItemListForNamedAuthority(
+    ClientResponse<TaxonCommonList> readItemListForNamedAuthority(
                @PathParam("specifier") String specifier,
             @QueryParam (IQueryManager.SEARCH_TYPE_PARTIALTERM) String partialTerm,
             @QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords,
index 7a80e2242bba2531af17fcc6396a02429060bfcd..2342112ece022c937876388c28610fbef16c9004 100644 (file)
@@ -42,8 +42,8 @@ import org.collectionspace.services.client.TaxonomyAuthorityClientUtils;
 import org.collectionspace.services.jaxb.AbstractCommonList;
 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommon;
 import org.collectionspace.services.taxonomy.TaxonomyauthorityCommonList;
-import org.collectionspace.services.taxonomy.TaxonomyCommon;
-import org.collectionspace.services.taxonomy.TaxonomyCommonList;
+import org.collectionspace.services.taxonomy.TaxonCommon;
+import org.collectionspace.services.taxonomy.TaxonCommonList;
 
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
@@ -135,7 +135,7 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
     @Override
        protected AbstractCommonList getAbstractCommonList(
                        ClientResponse<AbstractCommonList> response) {
-        return response.getEntity(TaxonomyCommonList.class);
+        return response.getEntity(TaxonCommonList.class);
     }
 
     @Override
@@ -458,13 +458,13 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        
                // Check whether we've received a taxonomy.
                PoxPayloadIn input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon taxonomy = (TaxonomyCommon) extractPart(input,
-                       client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon taxonomy = (TaxonCommon) extractPart(input,
+                       client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(taxonomy);
                boolean showFull = true;
                if(showFull && logger.isDebugEnabled()){
                    logger.debug(testName + ": returned payload:");
-                   logger.debug(objectAsXmlString(taxonomy, TaxonomyCommon.class));
+                   logger.debug(objectAsXmlString(taxonomy, TaxonCommon.class));
                }
                Assert.assertEquals(taxonomy.getInAuthority(), knownResourceId);
            } finally {
@@ -506,8 +506,8 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        
                // Check whether taxonomy has expected displayName.
                PoxPayloadIn input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon taxonomy = (TaxonomyCommon) extractPart(input,
-                       client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon taxonomy = (TaxonCommon) extractPart(input,
+                       client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(taxonomy);
                String displayName = taxonomy.getDisplayName();
                // Make sure displayName matches computed form
@@ -540,9 +540,9 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        
                // Retrieve the updated resource and verify that its contents exist.
                input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon updatedTaxonomy =
-                       (TaxonomyCommon) extractPart(input,
-                               client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon updatedTaxonomy =
+                       (TaxonCommon) extractPart(input,
+                               client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(updatedTaxonomy);
        
                // Verify that the updated resource received the correct data.
@@ -576,8 +576,8 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                // Retrieve the updated resource and verify that its contents exist.
                input = new PoxPayloadIn(res.getEntity());
                updatedTaxonomy =
-                       (TaxonomyCommon) extractPart(input,
-                               client.getItemCommonPartName(), TaxonomyCommon.class);
+                       (TaxonCommon) extractPart(input,
+                               client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(updatedTaxonomy);
        
                // Verify that the updated resource received the correct data.
@@ -626,8 +626,8 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        
                // Check whether Taxonomy has expected displayName.
                PoxPayloadIn input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon taxonomy = (TaxonomyCommon) extractPart(input,
-                       client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon taxonomy = (TaxonCommon) extractPart(input,
+                       client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(taxonomy);
                // Try to Update with computed false and no displayName
                taxonomy.setDisplayNameComputed(false);
@@ -820,7 +820,7 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
         
         // Submit the request to the service and store the response.
         TaxonomyAuthorityClient client = new TaxonomyAuthorityClient();
-        ClientResponse<TaxonomyCommonList> res = null;
+        ClientResponse<TaxonCommonList> res = null;
         if(vcsid!= null) {
                res = client.readItemList(vcsid, null, null);
         } else if(shortId!= null) {
@@ -829,7 +829,7 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                Assert.fail("readItemList passed null csid and name!");
         }
         try {
-               TaxonomyCommonList list = res.getEntity();
+               TaxonCommonList list = res.getEntity();
                int statusCode = res.getStatus();
        
                // Check the status code of the response: does it match
@@ -841,8 +841,8 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                        invalidStatusCodeMessage(REQUEST_TYPE, statusCode));
                Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
        
-               List<TaxonomyCommonList.TaxonomyListItem> items =
-                   list.getTaxonomyListItem();
+               List<TaxonCommonList.TaxonListItem> items =
+                   list.getTaxonListItem();
                int nItemsReturned = items.size();
                // There will be one item created, associated with a
                // known parent resource, by the createItem test.
@@ -858,7 +858,7 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                Assert.assertEquals(nItemsReturned, nExpectedItems);
        
                int i = 0;
-               for (TaxonomyCommonList.TaxonomyListItem item : items) {
+               for (TaxonCommonList.TaxonListItem item : items) {
                        Assert.assertTrue((null != item.getRefName()), "Item refName is null!");
                        Assert.assertTrue((null != item.getDisplayName()), "Item displayName is null!");
                        // Optionally output additional data about list members for debugging.
@@ -991,8 +991,8 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                        " in TaxonomyAuthority: " + knownResourceId );
                }
                PoxPayloadIn input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon taxonomy = (TaxonomyCommon) extractPart(input,
-                       client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon taxonomy = (TaxonCommon) extractPart(input,
+                       client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(taxonomy);
        
                // Update the contents of this resource.
@@ -1001,7 +1001,7 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
                if(logger.isDebugEnabled()){
                    logger.debug("to be updated Taxonomy");
                    logger.debug(objectAsXmlString(taxonomy,
-                       TaxonomyCommon.class));
+                       TaxonCommon.class));
                }        
        
                // Submit the updated resource to the service and store the response.
@@ -1022,9 +1022,9 @@ public class TaxonomyAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        
                // Retrieve the updated resource and verify that its contents exist.
                input = new PoxPayloadIn(res.getEntity());
-               TaxonomyCommon updatedTaxonomy =
-                       (TaxonomyCommon) extractPart(input,
-                               client.getItemCommonPartName(), TaxonomyCommon.class);
+               TaxonCommon updatedTaxonomy =
+                       (TaxonCommon) extractPart(input,
+                               client.getItemCommonPartName(), TaxonCommon.class);
                Assert.assertNotNull(updatedTaxonomy);
        
                // Verify that the updated resource received the correct data.
similarity index 94%
rename from services/taxonomy/jaxb/src/main/resources/taxonomy_common.xsd
rename to services/taxonomy/jaxb/src/main/resources/taxon_common.xsd
index e9b27429b047423c27c0dc919d97283c090249f3..a0dd18a2463f1fe04618297e39802efba5526b48 100644 (file)
@@ -9,12 +9,11 @@
     version="0.1"
     >
     
-    
     <!-- avoid XmlRootElement nightnmare, see http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html-->
     <!-- See http://wiki.collectionspace.org/display/collectionspace/Taxonomy+Service+Home -->    
     
-    <!-- Taxonomy -->
-    <xs:element name="taxonomy_common">
+    <!-- Taxon (item child of a TaxonomyAuthority) -->
+    <xs:element name="taxon_common">
         <xs:complexType>
             <xs:sequence>
                 <!--  Common identifier -->
     </xs:complexType>
     
     <!-- Taxonomy instances, as in nuxeo repository -->
-    <xs:element name="taxonomy-common-list">
+    <xs:element name="taxon-common-list">
         <xs:complexType>
             <xs:complexContent>
                 <xs:extension base="abstractCommonListItem">                    
                     <xs:sequence>
-                        <xs:element name="taxonomy_list_item" maxOccurs="unbounded">
+                        <xs:element name="taxon_list_item" maxOccurs="unbounded">
                             <xs:complexType>
                                 <xs:sequence>
                                     <xs:element name="displayName" type="xs:string"
                                         minOccurs="1" />
                                                                        <xs:element name="shortIdentifier" type="xs:string"
                                         minOccurs="1" />
-                                    <!-- uri to retrieve taxonomy details -->
+                                    <!-- uri to retrieve taxon details -->
                                     <xs:element name="uri" type="xs:anyURI"
                                         minOccurs="1" />
                                     <xs:element name="refName" type="xs:string"
index 9e61475c6879b870d82b7065ef2be5149d4af07d..ebcaaf75ff37d620914cb1fa6fe7340d6ccbd995 100644 (file)
@@ -80,7 +80,7 @@ import org.slf4j.LoggerFactory;
 @Produces("application/xml")
 public class TaxonomyAuthorityResource 
        extends AuthorityResource<TaxonomyauthorityCommon, TaxonomyauthorityCommonList, 
-                                                       TaxonomyCommon, TaxonomyDocumentModelHandler> {
+                                                       TaxonCommon, TaxonomyDocumentModelHandler> {
 
     private final static String taxonomyAuthorityServiceName = "taxonomyauthorities";
        private final static String LOCATIONAUTHORITIES_COMMON = "taxonomyauthority_common";
index d67d2f14d8dd486e6af4e1e52f9465bed7cd7c45..f39cdab34b7be8884f571667a334d484ebb98a74 100644 (file)
@@ -38,9 +38,9 @@ import org.collectionspace.services.common.vocabulary.nuxeo.AuthorityItemDocumen
 import org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl;
 import org.collectionspace.services.nuxeo.util.NuxeoUtils;
 import org.collectionspace.services.jaxb.AbstractCommonList;
-import org.collectionspace.services.taxonomy.TaxonomyCommon;
-import org.collectionspace.services.taxonomy.TaxonomyCommonList;
-import org.collectionspace.services.taxonomy.TaxonomyCommonList.TaxonomyListItem;
+import org.collectionspace.services.taxonomy.TaxonCommon;
+import org.collectionspace.services.taxonomy.TaxonCommonList;
+import org.collectionspace.services.taxonomy.TaxonCommonList.TaxonListItem;
 import org.nuxeo.ecm.core.api.DocumentModel;
 import org.nuxeo.ecm.core.api.DocumentModelList;
 import org.slf4j.Logger;
@@ -57,7 +57,7 @@ import org.slf4j.LoggerFactory;
  *
  */
 public class TaxonomyDocumentModelHandler
-        extends AuthorityItemDocumentModelHandler<TaxonomyCommon, TaxonomyCommonList> {
+        extends AuthorityItemDocumentModelHandler<TaxonCommon, TaxonCommonList> {
 
     /** The logger. */
     private final Logger logger = LoggerFactory.getLogger(TaxonomyDocumentModelHandler.class);
@@ -143,18 +143,18 @@ public class TaxonomyDocumentModelHandler
      * @see org.collectionspace.services.nuxeo.client.java.DocumentModelHandler#extractCommonPartList(org.collectionspace.services.common.document.DocumentWrapper)
      */
     @Override
-       public TaxonomyCommonList extractCommonPartList(
+       public TaxonCommonList extractCommonPartList(
                        DocumentWrapper<DocumentModelList> wrapDoc) throws Exception {
-               TaxonomyCommonList coList = extractPagingInfo(new TaxonomyCommonList(), wrapDoc);
+               TaxonCommonList coList = extractPagingInfo(new TaxonCommonList(), wrapDoc);
         AbstractCommonList commonList = (AbstractCommonList) coList;
         commonList.setFieldsReturned("displayName|refName|shortIdentifier|uri|csid");
-               List<TaxonomyCommonList.TaxonomyListItem> list = coList.getTaxonomyListItem();
+               List<TaxonCommonList.TaxonListItem> list = coList.getTaxonListItem();
                Iterator<DocumentModel> iter = wrapDoc.getWrappedObject().iterator();
                String commonPartLabel = getServiceContext().getCommonPartLabel(
                                "taxonomy");
                while (iter.hasNext()) {
                        DocumentModel docModel = iter.next();
-                       TaxonomyListItem ilistItem = new TaxonomyListItem();
+                       TaxonListItem ilistItem = new TaxonListItem();
                        ilistItem.setDisplayName((String) docModel.getProperty(
                                        commonPartLabel, AuthorityItemJAXBSchema.DISPLAY_NAME));
                        ilistItem.setShortIdentifier((String) docModel.getProperty(commonPartLabel,
index f6c7355a7adbe9ea984ada302dab6737aa6085d1..8216ee411c42d18d7bce0fb65dd40dab02984b0c 100644 (file)
@@ -23,7 +23,7 @@
  */
 package org.collectionspace.services.taxonomy.nuxeo;
 
-import org.collectionspace.services.taxonomy.TaxonomyCommon;
+import org.collectionspace.services.taxonomy.TaxonCommon;
 import org.collectionspace.services.common.context.MultipartServiceContext;
 import org.collectionspace.services.common.context.ServiceContext;
 import org.collectionspace.services.common.document.DocumentHandler.Action;
@@ -48,8 +48,8 @@ public class TaxonomyValidatorHandler implements ValidatorHandler {
         }
         try {
             MultipartServiceContext mctx = (MultipartServiceContext) ctx;
-            TaxonomyCommon taxonomy = (TaxonomyCommon) mctx.getInputPart(mctx.getCommonPartLabel(),
-                    TaxonomyCommon.class);
+            TaxonCommon taxonomy = (TaxonCommon) mctx.getInputPart(mctx.getCommonPartLabel(),
+                    TaxonCommon.class);
             String msg = "";
             boolean invalid = false;
             if(!taxonomy.isDisplayNameComputed() && (taxonomy.getDisplayName()==null)) {