コード例 #1
0
 /* (non-Javadoc)
  * @see org.collectionspace.services.nuxeo.client.java.DocumentModelHandler#handleCreate(org.collectionspace.services.common.document.DocumentWrapper)
  */
 @Override
 public void handleCreate(DocumentWrapper<DocumentModel> wrapDoc) throws Exception {
   // first fill all the parts of the document, refname and short ID get set as well
   super.handleCreate(wrapDoc);
   // Ensure we have required fields set properly
   handleInAuthority(wrapDoc.getWrappedObject());
 }
コード例 #2
0
 @Override
 public void handleCreate(DocumentWrapper<DocumentModel> wrapDoc) throws Exception {
   super.handleCreate(wrapDoc);
   // CSPACE-3178:
   // Uncomment once debugged and App layer is read to integrate
   // Experimenting with this uncommented now ...
   handleDisplayNameAsShortIdentifier(wrapDoc.getWrappedObject(), authorityCommonSchemaName);
   updateRefnameForAuthority(wrapDoc, authorityCommonSchemaName); // CSPACE-3178
 }