]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3270,CSPACE-1018: Displayname in Contact records is now updated when record...
authorAron Roberts <aron@socrates.berkeley.edu>
Wed, 21 Sep 2011 19:59:45 +0000 (19:59 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Wed, 21 Sep 2011 19:59:45 +0000 (19:59 +0000)
services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java

index d3cb257af4bfec4a6f61222f90588ca9132069ec..0cb6d71fa1f84f844c86be7e8cc5c8f493a602e9 100644 (file)
@@ -92,6 +92,15 @@ public class ContactDocumentModelHandler
         handleInAuthority(wrapDoc.getWrappedObject());
         handleDisplayNames(wrapDoc.getWrappedObject());
     }
+    
+    /* (non-Javadoc)
+     * @see org.collectionspace.services.nuxeo.client.java.DocumentModelHandler#handleUpdate(org.collectionspace.services.common.document.DocumentWrapper)
+     */
+    @Override
+    public void handleUpdate(DocumentWrapper<DocumentModel> wrapDoc) throws Exception {
+       super.handleUpdate(wrapDoc);
+       handleDisplayNames(wrapDoc.getWrappedObject());
+    }
 
     /**
      * Check the logic around the parent pointer. Note that we only need do this on