From: Aron Roberts Date: Wed, 21 Sep 2011 19:59:45 +0000 (+0000) Subject: CSPACE-3270,CSPACE-1018: Displayname in Contact records is now updated when record... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=5abe69ec0e20c48fb02ceda98c6410109eb1e549;p=tmp%2Fjakarta-migration.git CSPACE-3270,CSPACE-1018: Displayname in Contact records is now updated when record updates are performed. --- diff --git a/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java b/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java index d3cb257af..0cb6d71fa 100644 --- a/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java +++ b/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java @@ -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 wrapDoc) throws Exception { + super.handleUpdate(wrapDoc); + handleDisplayNames(wrapDoc.getWrappedObject()); + } /** * Check the logic around the parent pointer. Note that we only need do this on