From: Cherian Mathew Date: Fri, 17 Jul 2015 16:07:58 +0000 (+0200) Subject: Merge branch 'develop' into remoting-4.0 X-Git-Tag: remoting-3.9.0~91 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/ad69c198f8951f2b49c08d1ad59d2d60dd35d3ca Merge branch 'develop' into remoting-4.0 Conflicts: eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java eu.etaxonomy.taxeditor.cdmlib/.classpath eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF eu.etaxonomy.taxeditor.cdmlib/build.properties eu.etaxonomy.taxeditor.cdmlib/pom.xml eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java --- ad69c198f8951f2b49c08d1ad59d2d60dd35d3ca diff --cc eu.etaxonomy.taxeditor.application/.classpath index 4c0364cad,4c7e96f59..0f0d04b90 --- a/eu.etaxonomy.taxeditor.application/.classpath +++ b/eu.etaxonomy.taxeditor.application/.classpath @@@ -3,6 -3,6 +3,7 @@@ - + ++ diff --cc eu.etaxonomy.taxeditor.application/META-INF/MANIFEST.MF index daf34dcf4,81bdf0a83..a2467b13c --- a/eu.etaxonomy.taxeditor.application/META-INF/MANIFEST.MF +++ b/eu.etaxonomy.taxeditor.application/META-INF/MANIFEST.MF @@@ -9,7 -9,7 +9,8 @@@ Bundle-Localization: OSGI-INF/l10n/plug Export-Package: eu.etaxonomy.taxeditor Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.6 --Import-Package: org.apache.log4j, ++Import-Package: eu.etaxonomy.cdm.database, ++ org.apache.log4j, org.eclipse.equinox.app, org.eclipse.equinox.p2.repository.metadata, org.osgi.framework, diff --cc eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java index ebaf9d2b8,041359836..1350207e8 --- a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java +++ b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java @@@ -17,33 -22,45 +17,15 @@@ import org.eclipse.jface.viewers.ISelec import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IViewPart; -import org.eclipse.ui.IViewReference; -import org.eclipse.ui.PlatformUI; import org.eclipse.ui.handlers.HandlerUtil; import org.eclipse.ui.texteditor.IDocumentProvider; -import org.eclipse.ui.IWorkbenchPage; - -import eu.etaxonomy.cdm.api.service.DeleteResult; -import eu.etaxonomy.cdm.api.service.IAgentService; -import eu.etaxonomy.cdm.api.service.IGroupService; -import eu.etaxonomy.cdm.api.service.INameService; -import eu.etaxonomy.cdm.api.service.IOccurrenceService; -import eu.etaxonomy.cdm.api.service.IReferenceService; -import eu.etaxonomy.cdm.api.service.ITaxonService; -import eu.etaxonomy.cdm.api.service.IUserService; -import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator; -import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; -import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; -import eu.etaxonomy.cdm.model.common.CdmBase; -import eu.etaxonomy.cdm.model.common.Group; -import eu.etaxonomy.cdm.model.common.IdentifiableEntity; -import eu.etaxonomy.cdm.model.common.User; -import eu.etaxonomy.cdm.model.name.TaxonNameBase; -import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; -import eu.etaxonomy.cdm.model.reference.Reference; -import eu.etaxonomy.cdm.model.taxon.Synonym; -import eu.etaxonomy.cdm.model.taxon.Taxon; -import eu.etaxonomy.cdm.model.taxon.TaxonBase; -import eu.etaxonomy.cdm.persistence.dao.hibernate.HibernateBeanInitializer; -import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration; + - import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration; - import eu.etaxonomy.cdm.api.service.DeleteResult; - import eu.etaxonomy.cdm.api.service.IAgentService; - import eu.etaxonomy.cdm.api.service.IGroupService; - import eu.etaxonomy.cdm.api.service.INameService; - import eu.etaxonomy.cdm.api.service.IOccurrenceService; - import eu.etaxonomy.cdm.api.service.IReferenceService; - import eu.etaxonomy.cdm.api.service.ITaxonService; - import eu.etaxonomy.cdm.api.service.IUserService; - import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator; - import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; - import eu.etaxonomy.cdm.model.common.Group; - import eu.etaxonomy.cdm.model.common.User; - import eu.etaxonomy.cdm.model.name.TaxonNameBase; - import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; - import eu.etaxonomy.cdm.model.reference.Reference; - import eu.etaxonomy.cdm.model.taxon.Synonym; - import eu.etaxonomy.cdm.model.taxon.Taxon; - import eu.etaxonomy.cdm.model.taxon.TaxonBase; import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService; import eu.etaxonomy.taxeditor.annotatedlineeditor.LineAnnotation; import eu.etaxonomy.taxeditor.annotatedlineeditor.LineAnnotationModel; import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; + import eu.etaxonomy.taxeditor.bulkeditor.internal.TaxeditorBulkeditorPlugin; -import eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView; import eu.etaxonomy.taxeditor.model.MessagingUtils; -import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; -import eu.etaxonomy.taxeditor.preference.PreferencesUtil; import eu.etaxonomy.taxeditor.store.CdmStore; @@@ -126,18 -152,29 +108,28 @@@ public class DeleteHandler extends Abst } } else if (object instanceof TeamOrPersonBase){ IAgentService service = controller.getAgentService(); - TeamOrPersonBase teamOrPerson = (TeamOrPersonBase)service.load(((TeamOrPersonBase) object).getUuid()); - result = service.delete((TeamOrPersonBase)object); + //TeamOrPersonBase teamOrPerson = (TeamOrPersonBase)service.load(((TeamOrPersonBase) object).getUuid()); + result = service.delete(((TeamOrPersonBase)object).getUuid()); } } catch (Exception e){ - MessagingUtils.messageDialog("Exception occured. Could not delete", getClass(), e.getMessage(), null); + MessagingUtils.errorDialog("Exception occured. Delete not possible", getClass(), e.getMessage(), TaxeditorBulkeditorPlugin.PLUGIN_ID, null, true); } if (result.isError() || result.isAbort()){ if (!result.getExceptions().isEmpty()) { - MessagingUtils.messageDialog("Could not delete", getClass(), result.getExceptions().toString(), null); - }else{ - MessagingUtils.messageDialog("Could not delete", getClass(), "The object could not be deleted. An exception occured.", null); + String message = null; + int i = result.getExceptions().size(); + for (Exception e:result.getExceptions()){ + i--; + message+= e.getMessage(); + if (i>0){ + message+= ", "; + } + } - - + ++ + MessagingUtils.messageDialog("Delete not possible", getClass(), result.getExceptions().toString(), null); + }else{ + MessagingUtils.messageDialog("Delete not possible", getClass(), "The object could not be deleted. An exception occured.", null); - } } if (result.isOk() ){ diff --cc eu.etaxonomy.taxeditor.cdmlib/.classpath index 24ade0a87,3962c23f1..b149b77d4 --- a/eu.etaxonomy.taxeditor.cdmlib/.classpath +++ b/eu.etaxonomy.taxeditor.cdmlib/.classpath @@@ -188,14 -205,5 +188,14 @@@ - - - - - - - - - ++ ++ ++ ++ ++ ++ ++ ++ + + diff --cc eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF index f20a9a636,158f930cf..a7449bf40 --- a/eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF +++ b/eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF @@@ -655,13 -612,12 +655,13 @@@ Bundle-ClassPath: . lib/xmlbeans-2.3.0.jar, lib/poi-ooxml-schemas-3.10-FINAL.jar, lib/swagger-annotations-1.3.5.jar, - lib/cdmlib-commons-3.6.3-SNAPSHOT.jar, - lib/cdmlib-ext-3.6.3-SNAPSHOT.jar, - lib/cdmlib-io-3.6.3-SNAPSHOT.jar, - lib/cdmlib-model-3.6.3-SNAPSHOT.jar, - lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar, - lib/cdmlib-print-3.6.3-SNAPSHOT.jar, - lib/cdmlib-remote-3.6.3-SNAPSHOT.jar, - lib/cdmlib-services-3.6.3-SNAPSHOT.jar, + lib/cdmlib-commons-3.8.0-SNAPSHOT.jar, + lib/cdmlib-ext-3.8.0-SNAPSHOT.jar, + lib/cdmlib-io-3.8.0-SNAPSHOT.jar, + lib/cdmlib-model-3.8.0-SNAPSHOT.jar, + lib/cdmlib-persistence-3.8.0-SNAPSHOT.jar, + lib/cdmlib-print-3.8.0-SNAPSHOT.jar, + lib/cdmlib-remote-3.8.0-SNAPSHOT.jar, - lib/cdmlib-services-3.8.0-SNAPSHOT.jar ++ lib/cdmlib-services-3.8.0-SNAPSHOT.jar, + lib/apache-log4j-extras-1.2.17.jar Import-Package: eu.etaxonomy.cdm.api.application diff --cc eu.etaxonomy.taxeditor.cdmlib/build.properties index 882048b6d,3ce2b145d..3e92568d4 --- a/eu.etaxonomy.taxeditor.cdmlib/build.properties +++ b/eu.etaxonomy.taxeditor.cdmlib/build.properties @@@ -185,15 -194,14 +185,15 @@@ bin.includes = META-INF/, lib/poi-ooxml-schemas-3.10-FINAL.jar,\ lib/xmlbeans-2.3.0.jar,\ lib/swagger-annotations-1.3.5.jar,\ - lib/cdmlib-commons-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-ext-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-io-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-model-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-print-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-remote-3.6.3-SNAPSHOT.jar,\ - lib/cdmlib-services-3.6.3-SNAPSHOT.jar,\ + lib/cdmlib-commons-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-ext-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-io-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-model-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-persistence-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-print-3.8.0-SNAPSHOT.jar,\ + lib/cdmlib-remote-3.8.0-SNAPSHOT.jar,\ - lib/cdmlib-services-3.8.0-SNAPSHOT.jar ++ lib/cdmlib-services-3.8.0-SNAPSHOT.jar,\ + lib/apache-log4j-extras-1.2.17.jar jars.compile.order = . output.. = bin/ diff --cc eu.etaxonomy.taxeditor.cdmlib/pom.xml index 2e11bc366,336971169..2138a725c --- a/eu.etaxonomy.taxeditor.cdmlib/pom.xml +++ b/eu.etaxonomy.taxeditor.cdmlib/pom.xml @@@ -1,598 -1,158 +1,597 @@@ - - - - - eu.etaxonomy - taxeditor-parent - 3.6.1-SNAPSHOT - - 4.0.0 - eu.etaxonomy.taxeditor.cdmlib - eclipse-plugin - CDM Library Bundle - Cdm Library Plugin Taxonomic Editor + + + + eu.etaxonomy + taxeditor-parent + 3.8.0-SNAPSHOT + + 4.0.0 + eu.etaxonomy.taxeditor.cdmlib + eclipse-plugin + CDM Library Dependencies Plugin - CDM Library and dependencies as a plugin - - ++ CDM Library and dependencies as a plugin + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.7 + + + - ++ - org.apache.maven.plugins - maven-dependency-plugin - 2.4 - - - copy-dependencies - validate - - copy-dependencies - - - cdmlib-commons,cdmlib-model,cdmlib-persistence,cdmlib-remote,cdmlib-print,cdmlib-services,cdmlib-ext,cdmlib-io - lib - true - true - true - - - - copy-dependencies-sources - validate - - copy-dependencies - - - sources - cdmlib-commons,cdmlib-model,cdmlib-persistence,cdmlib-remote,cdmlib-print,cdmlib-services,cdmlib-ext,cdmlib-io - lib - true - true - true - false - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - remove-existing-jars - clean - - run - - - - Remove all cdmlib jars - - - - - - - - update-snapshot-jar-names - validate - - run - - - - Update cdmlib jars to SNAPSHOT when build with timestamp - - - - - - - - - - - - - - - - - - identificationKeyAPI - identificationKeyAPI - 1.0-SNAPSHOT - - - eu.etaxonomy - cdmlib-commons - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-model - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-persistence - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-remote - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-print - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-services - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-io - ${cdmlib.version} - - - eu.etaxonomy - cdmlib-ext - ${cdmlib.version} - - - org.aspectj - aspectjrt - 1.7.1 - - - org.aspectj - aspectjweaver - 1.7.1 - - - + org.apache.maven.plugins + maven-dependency-plugin + 2.4 + + + copy-dependencies + validate + + copy-dependencies + + + + cdmlib-remote-webapp + + + cdmlib-services,cdmlib-commons,cdmlib-persistence,cdmlib-ext,cdmlib-model,cdmlib-io,cdmlib-print,cdmlib-remote + + ${basedir}/lib + true + true + true + + + + copy-dependency-war + validate + + copy-dependencies + + + + cdmlib-remote-webapp + + + ${basedir}/src/main/resources/etc/jetty + + true + true + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + update-snapshot-jar-names + validate + + run + + + + Anonymizing war + + + + + + + + + Update cdmlib jars to SNAPSHOT when build with + timestamp + + + + + + + + + + + + + + + + + + + cleanCdmlibJars + + + + maven-clean-plugin + 2.3 + + + + ${basedir}/lib + + cdmlib-* + + false + + + + + + + + + cleanAllJars + + + + maven-clean-plugin + 2.3 + + + + ${basedir}/lib + + * + + false + + + + + + + + + copyAllJars + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.4 + + + copy-all-dependencies + validate + + copy-dependencies + + + + cdmlib-remote-webapp + + ${basedir}/lib + true + true + true + + + + + + + + + + + SpringSource Enterprise Bundle Repository - External Bundle + Milestones + + http://repository.springsource.com/maven/bundles/milestone + + + + SpringSource Enterprise Bundle Repository - SpringSource + Bundle + Releases + + http://repository.springsource.com/maven/bundles/release + + + + SpringSource Enterprise Bundle Repository - External Bundle + Releases + + http://repository.springsource.com/maven/bundles/external + + + + + + eu.etaxonomy + cdmlib-remote-webapp + ${cdmlib.version} + war + + + eu.etaxonomy + cdmlib-commons + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-model + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-persistence + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-remote + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-print + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-services + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-io + ${cdmlib.version} + + + eu.etaxonomy + cdmlib-ext + ${cdmlib.version} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + net.sf.ehcache + ehcache-core + 2.4.3 + + + org.hibernate + hibernate-core + 4.1.10.Final + + + org.hibernate.common + hibernate-commons-annotations + 4.0.1.Final + + + org.hibernate + hibernate-search-engine + 4.2.0.Final + + + org.hibernate.javax.persistence + hibernate-jpa-2.0-api + 1.0.1.Final + + + org.hibernate + hibernate-envers + 4.1.10.Final + + + org.hibernate + hibernate-entitymanager + 4.1.10.Final + + + dom4j + dom4j + 1.6 + + + org.jadira.usertype + usertype.jodatime + 2.0.1 + + + org.jadira.usertype + usertype.spi + 2.0.1 + + + + junit + junit + 4.11 + test + + + log4j + log4j + 1.2.17 + + + org.jdom + jdom + 1.1.3 + + + org.springframework + org.springframework.context + 3.2.2.RELEASE + + + org.springframework + org.springframework.context.support + 3.2.2.RELEASE + + + org.springframework + org.springframework.aspects + 3.2.2.RELEASE + + + org.springframework + org.springframework.test + 3.2.2.RELEASE + + + org.springframework + org.springframework.beans + 3.2.2.RELEASE + + + org.springframework + org.springframework.transaction + 3.2.2.RELEASE + + + org.springframework + org.springframework.web + 3.2.2.RELEASE + + + org.springframework + org.springframework.core + 3.2.2.RELEASE + + + org.springframework + org.springframework.aop + 3.2.2.RELEASE + + + org.springframework + org.springframework.expression + 3.2.2.RELEASE + + + org.springframework + org.springframework.orm + 3.2.2.RELEASE + + + org.springframework + org.springframework.jdbc + 3.2.2.RELEASE + + + org.springframework.security + spring-security-core + 3.1.3.RELEASE + + + org.springframework.security + spring-security-config + 3.1.3.RELEASE + + + org.springframework.security + spring-security-remoting + 3.1.3.RELEASE + + + org.jboss.logging + jboss-logging + 3.1.3.GA + + + org.hamcrest + hamcrest-core + 1.3 + + + com.mchange + c3p0 + 0.9.2 + + + org.jboss.spec.javax.transaction + jboss-transaction-api_1.1_spec + 1.0.0.Final + + + org.aspectj + aspectjrt + 1.7.1 + + + commons-logging + commons-logging + 1.1.1 + + + commons-lang + commons-lang + 2.6 + + + aopalliance + aopalliance + 1.0 + + + joda-time + joda-time + 2.1 + + + com.ibm.lsid + lsid-client + 1.1.2 + + + com.ibm.lsid + lsid-server + 1.1.2 + + + org.apache.lucene + lucene-core + 3.6.2 + + + org.slf4j + slf4j-api + 1.7.2 + + + org.javassist + javassist + 3.17.1-GA + + + au.com.bytecode + opencsv + 2.4 + + + + + + org.unitils + unitils-core + 3.4.2 + + + org.unitils + unitils-spring + 3.4.2 + + + org.unitils + unitils-database + 3.4.2 + + + commons-dbcp + commons-dbcp + 1.4 + + + commons-pool + commons-pool + 1.5.4 + + + org.unitils + unitils-dbmaintainer + 3.4.2 + + + com.h2database + h2 + 1.4.181 + + + org.unitils + unitils-dbunit + 3.4.2 + + + org.dbunit + dbunit + 2.4.9 + + + + + + wsdl4j + wsdl4j + 1.6.3 + + + javax.validation + validation-api + 1.1.0.Final + + diff --cc eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java index 6c8193a72,273d9ad36..a0d9bb6d8 --- a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java +++ b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java @@@ -31,18 -28,14 +31,6 @@@ import org.eclipse.ui.IViewSite import org.eclipse.ui.PartInitException; import org.eclipse.ui.navigator.CommonNavigator; - import eu.etaxonomy.cdm.api.application.CdmApplicationState; - import eu.etaxonomy.cdm.api.application.CdmChangeEvent; - import eu.etaxonomy.cdm.api.application.ICdmChangeListener; --import eu.etaxonomy.cdm.api.conversation.ConversationHolder; --import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; --import eu.etaxonomy.cdm.api.service.IClassificationService; --import eu.etaxonomy.cdm.model.common.CdmBase; - import eu.etaxonomy.cdm.model.taxon.Classification; --import eu.etaxonomy.cdm.model.taxon.TaxonNaturalComparator; --import eu.etaxonomy.cdm.model.taxon.TaxonNode; - import eu.etaxonomy.cdm.model.taxon.TaxonNodeComparator; -import eu.etaxonomy.cdm.model.taxon.TaxonNodeByRankAndNameComparator; --import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; import eu.etaxonomy.taxeditor.model.DataChangeBridge; import eu.etaxonomy.taxeditor.model.IDataChangeBehavior; import eu.etaxonomy.taxeditor.model.MessagingUtils; diff --cc pom.xml index 2e392d287,fac701883..0ffb9d953 --- a/pom.xml +++ b/pom.xml @@@ -18,12 -18,10 +18,11 @@@ 1.6 UTF-8 - 3.6.3-SNAPSHOT - + 3.8.0-SNAPSHOT 0.22.0 - 3.6.1-SNAPSHOT + 3.8.0-SNAPSHOT snapshot + 3.4.2 eu.etaxonomy.taxeditor.cdmlib