TaxonEditorInput.java : added entire property paths list to taxon service call
authorCherian Mathew <c.mathew@bgbm.org>
Thu, 12 Dec 2013 14:45:13 +0000 (14:45 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Thu, 12 Dec 2013 14:45:13 +0000 (14:45 +0000)
spring-security-remoting-3.1.3.RELEASE.jar : jar for http invoker remoting
build.properties, .classpath, MANIFEST.MF : updates for new jar
CdmStore.java, CdmStoreConnector.java : used new CdmApplicationRemoteController
editorApplicationContext.xml : uses new remotingApplicationContext

.gitattributes
eu.etaxonomy.taxeditor.cdmlib/.classpath
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.cdmlib/build.properties
eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.equinox.common-3.6.0.v20110523.jar
eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.osgi-3.7.2.v20120110-1415.jar
eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-remoting-3.1.3.RELEASE.jar [new file with mode: 0644]
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStoreConnector.java
eu.etaxonomy.taxeditor.store/src/main/resources/eu/etaxonomy/cdm/editorApplicationContext.xml

index e2b9f9652c1370f290ee75ed5b6cd20d3aed25a1..6e58ce0bcca79a934844a944401827a1c416b2d9 100644 (file)
@@ -282,6 +282,7 @@ eu.etaxonomy.taxeditor.cdmlib/lib/spring-expression-3.2.2.RELEASE.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-modules-cache-0.7.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-config-3.1.3.RELEASE.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-core-3.1.3.RELEASE.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-modules-cache-0.7.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-config-3.1.3.RELEASE.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-core-3.1.3.RELEASE.jar -text
+eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-remoting-3.1.3.RELEASE.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/stax-1.2.0.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/stax-api-1.0.1.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/unitils-core-3.3.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/stax-1.2.0.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/stax-api-1.0.1.jar -text
 eu.etaxonomy.taxeditor.cdmlib/lib/unitils-core-3.3.jar -text
index 6d9c7e8a0453e81b2a445cf1161001720b83f4e2..148f28f6ef489f0d808e48c26c3fc60bd228ab5f 100644 (file)
        <classpathentry exported="true" kind="lib" path="lib/batik-xml-1.7.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/c3p0-0.9.2.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/batik-xml-1.7.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/c3p0-0.9.2.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-commons-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-ext-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-io-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-model-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-persistence-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-print-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.3.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-remote-3.3.0-SNAPSHOT-sources.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.3.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-services-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cglib-nodep-2.2.2.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.3.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-services-3.3.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cglib-nodep-2.2.2.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/google-api-translate-java-0.92.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/odfdom-0.8.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/h2mig_pagestore_addon.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/google-api-translate-java-0.92.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/odfdom-0.8.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/h2mig_pagestore_addon.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/spring-security-remoting-3.1.3.RELEASE.jar"/>
        <classpathentry kind="output" path="target/classes"/>
 </classpath>
        <classpathentry kind="output" path="target/classes"/>
 </classpath>
index 9a498aca84582754759d372d6e38f57016241cd9..ce694a8ae929ea3c6672e34bb01eb124d4a11952 100644 (file)
@@ -342,6 +342,7 @@ Export-Package: com.google.api,
  org.springframework.security.core.context,
  org.springframework.security.core.userdetails,
  org.springframework.security.provisioning,
  org.springframework.security.core.context,
  org.springframework.security.core.userdetails,
  org.springframework.security.provisioning,
+ org.springframework.security.remoting.httpinvoker,
  org.springframework.stereotype,
  org.springframework.transaction;uses:="org.springframework.core",
  org.springframework.transaction.annotation;uses:="javax.ejb,org.springframework.transaction.interceptor",
  org.springframework.stereotype,
  org.springframework.transaction;uses:="org.springframework.core",
  org.springframework.transaction.annotation;uses:="javax.ejb,org.springframework.transaction.interceptor",
@@ -592,4 +593,5 @@ Bundle-ClassPath: .,
  lib/yjp-controller-api-redist-9.0.8.jar,
  lib/google-api-translate-java-0.92.jar,
  lib/odfdom-0.8.jar,
  lib/yjp-controller-api-redist-9.0.8.jar,
  lib/google-api-translate-java-0.92.jar,
  lib/odfdom-0.8.jar,
- lib/h2mig_pagestore_addon.jar
+ lib/h2mig_pagestore_addon.jar,
+ lib/spring-security-remoting-3.1.3.RELEASE.jar
index f1fbc5b03f88720a74aa2e8621cd53e7679dc8a1..45fcf8b85417a18c75e9feb0025166df3620660b 100644 (file)
@@ -200,5 +200,6 @@ bin.includes = META-INF/,\
                lib/yjp-controller-api-redist-9.0.8.jar,\\r
                lib/google-api-translate-java-0.92.jar,\\r
                lib/odfdom-0.8.jar,\\r
                lib/yjp-controller-api-redist-9.0.8.jar,\\r
                lib/google-api-translate-java-0.92.jar,\\r
                lib/odfdom-0.8.jar,\\r
-               lib/h2mig_pagestore_addon.jar\r
+               lib/h2mig_pagestore_addon.jar,\\r
+               lib/spring-security-remoting-3.1.3.RELEASE.jar\r
 \r
 \r
index 9fb167cc8644ced846238dee40784f7341832719..4cf488ee33f1a17bac6e7badc2adfac6cf54f75d 100644 (file)
Binary files a/eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.equinox.common-3.6.0.v20110523.jar and b/eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.equinox.common-3.6.0.v20110523.jar differ
index 25f118068392d39fda76feea6c855dfb3633db17..f131a431cbf20a8f2194c84912950bd3e0a6485b 100644 (file)
Binary files a/eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.osgi-3.7.2.v20120110-1415.jar and b/eu.etaxonomy.taxeditor.cdmlib/lib/org.eclipse.osgi-3.7.2.v20120110-1415.jar differ
diff --git a/eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-remoting-3.1.3.RELEASE.jar b/eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-remoting-3.1.3.RELEASE.jar
new file mode 100644 (file)
index 0000000..6268e58
Binary files /dev/null and b/eu.etaxonomy.taxeditor.cdmlib/lib/spring-security-remoting-3.1.3.RELEASE.jar differ
index 6a295e64e9a9763f8d9f779ea4d814aab2523b6c..6bfcead6dcd609534c42e178511fc509d0152f4a 100644 (file)
@@ -9,7 +9,9 @@
 
 package eu.etaxonomy.taxeditor.editor;
 
 
 package eu.etaxonomy.taxeditor.editor;
 
+import java.util.Arrays;
 import java.util.HashSet;
 import java.util.HashSet;
+import java.util.List;
 import java.util.Set;
 import java.util.UUID;
 
 import java.util.Set;
 import java.util.UUID;
 
@@ -322,7 +324,426 @@ public class TaxonEditorInput implements IEditorInput, IConversationEnabled, IPe
         * @return the taxon
         */
        public Taxon getTaxon(){
         * @return the taxon
         */
        public Taxon getTaxon(){
-               return taxonNode.getTaxon();
+               
+                       List<String> TAXON_INIT_STRATEGY = Arrays.asList(new String []{
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // IdentifiableEntity           : toMany-> "credits, extensions, rights, sources" 
+                                       //                                                      : toOne-> "lsid"
+                                       // TaxonBase                            : toOne-> "homotypicgroup, name, sec"
+                                       // Taxon                                        : toMany-> "descriptions, heterotypicSynonymyGroups, homotypicSynonymsByHomotypicGroup, homotypicSynonymsByHomotypicRelationship, homotypicSynonymyGroups, misappliedNames, relationsFromThisTaxon, relationsToThisTaxon, synonymNames, synonymRelations, synonyms, synonymsSortedByType, taxonNodes, taxonRelations"
+                                       //                                                      : toOne-> "imageGallery"
+                                       "*",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // LanguageStringBase           : toOne-> "language"
+                                       // Annotation                           : toOne-> "annotatedObj, annotationType, commentator, linkbackUrl
+                                       "annotations.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // Marker                                       : toOne-> "markedObj, markerType"       
+                                       "markers.$",
+                                       "markers.markerType.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // LanguageStringBase           : toOne-> "language"
+                                       // Annotation                           : toOne-> "annotatedObj, annotationType, commentator, linkbackUrl
+                                       // Credit                                       : toOne-> "agent"       
+                                       "credits.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // Extension                            : toOne-> "extendedObj, type"   
+                                       "extensions.$",
+                                       "extensions.type.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // LanguageStringBase           : toOne-> "language"
+                                       // Rights                                       : toOne-> "agent, type, uri"    
+                                       "rights.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // OriginalSourceBase           :       
+                                       // IdentifiableSource           : toOne-> "sourcedObj"  
+                                       "sources.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // HomotypicalGroup                     : toMany-> "" (available: "basionymAndReplacedSynonymRelations, basionyms, basionymsOrReplacedSynonyms, nameTypeDesignations, newCombinations, replacedSynonym, specimenTypeDesignations, synonymsInGroup, typeDesignations, typifiedNames, unrelatedNames" )  
+                                       "homotypicGroup.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // AnnotatableEntity            : toMany-> "" (available: "annotations, markers")
+                                       // TaxonNameBase                        : toMany-> "" (available: "basionyms, descriptions, nameRelations, nameTypeDesignations, relationsFromThisName, relationsToThisName, specimenTypeDesignations, specimenTypeDesignationsOfHomotypicalGroup, status, synonyms, taggedName, taxa, taxonBases, typeDesignations" ) 
+                                       //                                                      : toOne-> "basionym, citation, homotypicalGroup, nomenclaturalCode, nomenclaturalReference, rank"
+                                       // ViralName 
+                                       // NonViralName                         : toMany->"" (available: "childRelationships, hybridChildRelations, hybridParentRelations, orderedChildRelationships, parentRelationships") 
+                                       //                                                      : toOne-> "basionymAuthorTeam, combinationAuthorTeam, exBasionymAuthorTeam, exCombinationAuthorTeam"
+                                       "name.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // IdentifiableEntity           : toMany-> "credits, extensions, rights, sources" 
+                                       //                                                      : toOne-> "lsid"
+                                       // IdentifiableMediaEntity      : toMany->"" (available: "media") 
+                                       // Reference                            : toOne->"authorTeam, datePublished, inBook, inJournal, inProceedings, inReference, inSeries, institution, school, type, uri" 
+                                       "sec.$",
+                                       
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // IdentifiableEntity           : toMany-> "credits, extensions, rights, sources" 
+                                       //                                                      : toOne-> "lsid"
+                                       // DescriptionBase                      : toMany->"" (available: "describedSpecimenOrObservations, descriptiveSystem, elements, workingSets" )
+                                       // TaxonDescription                     : toMany->"" (available: "geoScopes, scopes" )
+                                       //                                                      : toOne-> "taxon"
+                                       "descriptions.$",
+
+                                       
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // RelationshipBase                     : 
+                                       // TaxonRelationship            : toOne->"fromTaxon, relatedFrom, relatedTo, toTaxon, type"
+                                       "relationsFromThisTaxon.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // RelationshipBase                     : 
+                                       // TaxonRelationship            : toOne->"fromTaxon, relatedFrom, relatedTo, toTaxon, type"
+                                       "relationsToThisTaxon.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // RelationshipBase                     : 
+                                       // SynonymRelationship          : toOne->"acceptedTaxon, relatedFrom, relatedTo, synonym, type"
+                                       "synonymRelations.$",
+
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // IdentifiableEntity           : toMany-> "credits, extensions, rights, sources" 
+                                       //                                                      : toOne-> "lsid"
+                                       // TaxonBase                            : toOne-> "homotypicgroup, name, sec"
+                                       // Synonym                                      : toMany-> "" (available: "acceptedTaxa, relationType, synonymRelations" )
+                                       "synonyms.$",
+
+
+                                       "misappliedNames.$",
+                                       "misappliedNames.name.extensions.type.$",
+                                       "misappliedNames.name.status.$",
+                                       "misappliedNames.name.status.type.$",
+                                       "misappliedNames.name.descriptions.elements.$",
+                                       "misappliedNames.name.typeDesignations.$",
+                                       "misappliedNames.name.typeDesignations.typeStatus.$",
+
+//                                     "relationsFromThisTaxon.fromTaxon.$",
+//                                     "relationsFromThisTaxon.fromTaxon.name.status.$",
+//                                     "relationsFromThisTaxon.fromTaxon.name.status.type.$",
+//                                     "relationsFromThisTaxon.fromTaxon.name.descriptions.elements.$",
+//                                     "relationsFromThisTaxon.fromTaxon.name.typeDesignations.typeStatus.$",
+//                                     "relationsFromThisTaxon.toTaxon.$",
+////                                   "relationsFromThisTaxon.toTaxon.name.extensions.type.$",
+//                                     "relationsFromThisTaxon.toTaxon.name.status.$",
+//                                     "relationsFromThisTaxon.toTaxon.name.status.type.$",
+//                                     "relationsFromThisTaxon.toTaxon.name.descriptions.elements.$",
+//                                     "relationsFromThisTaxon.toTaxon.name.typeDesignations.typeStatus.$",
+
+//                                     "relationsToThisTaxon.fromTaxon.$",
+//                                     "relationsToThisTaxon.fromTaxon.name.extensions.type.$",
+//                                     "relationsToThisTaxon.fromTaxon.name.status.type.$",
+//                                     "relationsToThisTaxon.fromTaxon.name.descriptions.elements.$",
+//                                     "relationsToThisTaxon.fromTaxon.name.typeDesignations.typeStatus.$",
+//                                     "relationsToThisTaxon.toTaxon.$",
+//                                     "relationsToThisTaxon.toTaxon.name.status.type.$",
+//                                     "relationsToThisTaxon.toTaxon.name.descriptions.elements.$",
+//                                     "relationsToThisTaxon.toTaxon.name.typeDesignations.typeStatus.$",
+
+                                       // TaxonNameEditor.createOrUpdateNameComposites()
+                                       // ContainerFactory.createOrUpdateAcceptedTaxonsHomotypicGroup()
+                                       "name.homotypicalGroup.typifiedNames.$",
+                                       "name.homotypicalGroup.synonymsInGroup",
+                                       "name.synonymRelations",
+                                       "name.descriptions.elements.$",
+                                       
+//                                     "name.descriptions.scopes.$",
+//                                     "name.descriptions.scopes.terms.$",
+                                       "name.descriptions.geoscopes.$",
+                                       "name.descriptions.geoscopes.vocabulary.$",
+                                       "name.descriptions.geoscopes.vocabulary.terms.$",
+                                       
+                                       // ContainerFactory.createOrUpdateAcceptedTaxonsHomotypicGroup()
+                                       "name.homotypicalGroup.$",
+                                       "name.homotypicalGroup.typifiedNames:$",                                        
+
+                                       "synonymRelations.synonym.name.$",
+                                       "synonymRelations.synonym.name.descriptions.elements.$",
+                                       "synonymRelations.synonym.name.homotypicalGroup.$",
+                                       "synonymRelations.synonym.name.homotypicalGroup.typifiedNames.$",
+                                       "synonymRelations.synonym.name.status.$",
+
+                                       "synonymRelations.synonym.name.typeDesignations.$",
+                                       "synonymRelations.synonym.name.typeDesignations.typifiedNames.$",
+                                       "synonymRelations.synonym.name.typeDesignations.typeStatus.$",
+                                       "synonymRelations.synonym.name.typeDesignations.typeName.$",
+                                       "synonymRelations.synonym.name.typeDesignations.typeSpecimen.$",
+
+                                       
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // DescriptionElementBase       : toMany->"" (available: "media, modifiers, modifyingText, sources" )
+                                       //                                                      : toOne-> "feature, inDescription"
+                                       // CategoricalData                      : toMany->"" (available: "states" )
+                                       // CommonTaxaName                       : toOne->"area, language"
+                                       // Distribution                         : toOne->"area, status"
+                                       // IndividualsAssociation       : toMany->"" (available: "description" )
+                                       //                                                      : toOne-> "associatedSpecimenOrObserviation"
+                                       // QuantitativeData                     : toMany->"" (available: "statisticalValues" )
+                                       //                                                      : toOne-> "unit"
+                                       // TaxonInteraction                     : toMany->"" (available: "descriptions" )
+                                       //                                                      : toOne-> "taxon2"
+                                       // TextData                                     : toMany->"" (available: "multilanguageText" )
+                                       //                                                      : toOne-> "format, languageText, preferredLanguageString"
+                                       "descriptions.elements.$",
+
+                                       "descriptions.elements.annotations.$",
+                                       "descriptions.elements.markers.markerType.$",
+
+                                       "descriptions.elements.modifiers.$",
+                                       "descriptions.elements.modifyingText.$",
+                                       
+                                       "descriptions.elements.description.$",
+
+                                       "descriptions.elements.associatedSpecimenOrObservation.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.annotations.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.annotations.annotationType.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.markers.markerType.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.credits.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.extensions.type.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.rights.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.sources.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.media.$",
+                                       "descriptions.elements.associatedSpecimenOrObservation.media.representations.parts.$",
+                                       
+                                       "descriptions.elements.descriptions.$",
+
+                                       "descriptions.elements.multilanguageText.$",
+                                       
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // IdentifiableEntity           : toMany-> "credits, extensions, rights, sources" 
+                                       //                                                      : toOne-> "lsid"
+                                       // Media                                        : toMany->"allDescriptions, allTitles, representations"
+                                       //                                                      : toOne-> "artist, description, mediaCreated, title"
+                           "descriptions.elements.media.$",
+//                         "descriptions.elements.media.allDescriptions.$",
+                                       // CdmBase                                      : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                           // MediaRepresentation              : toMany-> "parts"
+                                       //                                                      : toOne-> "media"
+                           // MediaRepresentationPart  : toOne-> "mediaRepresentation, size, uri"
+                           "descriptions.elements.media.representations.parts.$",
+
+                           "descriptions.elements.media.annotations.$",
+                           "descriptions.elements.media.annotations.annotationType.$",
+                           "descriptions.elements.media.credits.$",
+                           "descriptions.elements.media.extensions.$",
+                           "descriptions.elements.media.extensions.type.$",
+                           "descriptions.elements.media.markers.$",
+                           "descriptions.elements.media.markers.marker.Type.$",
+                           "descriptions.elements.media.rights.$",
+                           "descriptions.elements.media.sources.$",
+
+                                       "descriptions.elements.states.$",
+                                       "descriptions.elements.statisticalValues.$",
+                           
+                           
+                           // DescriptiveContentProvider.getContainerTreeForDesription()
+                           // FeatureNodeContainerTree.getDescriptionsElementsForFeature()                         
+                           // DescriptionHelper.getElementText()
+
+                           // CdmBase                                  : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // DescriptionElementSource     : toOne-> "nameUsedInSource, sourcedObj"
+                                       "descriptions.elements.sources.$",
+
+                                       // NamedArea.labelWithLevel()
+
+                           // CdmBase                                  : toOne-> "created, createdBy, uuid"
+                                       // VersionableEntity            : toOne-> "updated, updatedBy"
+                                       // AnnotatableEntity            : toMany-> "annotations, markers"
+                                       // ReferencedEntityBase         : toOne-> "citation"    
+                                       // NamedArea                            : toMany->"" (available: "allLevelList, generalizationOf, includes, waterbodiesOrCountries" )
+                                       //                                                      : toOne-> "hierarchieList, kindOf, level, partOf, pointApproximation, shape, type, validPeriod"
+                                       "descriptions.elements.area.$",
+                                       "descriptions.elements.area.allLevelList.$",
+                                       "descriptions.elements.area.allLevelList.vocabulary.$",
+                                       "descriptions.elements.area.allLevelList.vocabulary.terms.$",
+                                       "descriptions.elements.area.vocabulary.$",
+                                       "descriptions.elements.area.vocabulary.terms.$",
+                                       "descriptions.elements.vocabulary.$",
+                                       "descriptions.elements.vocabulary.terms.$",
+                                       
+                                       
+//                                     "descriptions.scopes.$",
+//                                     "descriptions.scopes.terms.$",
+//                                     "descriptions.geoscopes.$",
+//                                     "descriptions.geoscopes.vocabulary.$",
+//                                     "descriptions.geoscopes.vocabulary.terms.$",
+                                       
+                                       // NameRelationshipDetailSection.createElementComposite()
+                                       // NameRelationshipDetailElement.setEntity()
+                                       "name.nameRelations.$",
+
+                                       
+                                       "name.extensions.$",
+                                       "name.extensions.type.$",
+                                       
+                                       "name.basionymAuthorTeam.$",                                    
+                                       "name.basionymAuthorTeam.annotations.$",
+                                       "name.basionymAuthorTeam.annotations.annotationType.$",
+                                       "name.basionymAuthorTeam.markers.markerType.$",
+                                       "name.basionymAuthorTeam.credits.$",
+                                       "name.basionymAuthorTeam.extensions.type.$",
+                                       "name.basionymAuthorTeam.rights.$",
+                                       "name.basionymAuthorTeam.sources.$",
+                                       "name.basionymAuthorTeam.media.$",
+                                       "name.basionymAuthorTeam.media.representations.parts.$",
+                                       "name.basionymAuthorTeam.teamMembers.$",
+                                       "name.basionymAuthorTeam.teamMembers.annotations.$",
+                                       "name.basionymAuthorTeam.teamMembers.annotations.annotationType.$",
+                                       "name.basionymAuthorTeam.teamMembers.markers.markerType.$",
+                                       "name.basionymAuthorTeam.teamMembers.credits.$",
+                                       "name.basionymAuthorTeam.teamMembers.extensions.type.$",
+                                       "name.basionymAuthorTeam.teamMembers.rights.$",
+                                       "name.basionymAuthorTeam.teamMembers.sources.$",
+                                       "name.basionymAuthorTeam.teamMembers.media.$",
+                                       "name.basionymAuthorTeam.teamMembers.media.representations.parts.$",
+
+                                       "name.combinationAuthorTeam.$",                                 
+                                       "name.combinationAuthorTeam.annotations.$",
+                                       "name.combinationAuthorTeam.annotations.annotationType.$",
+                                       "name.combinationAuthorTeam.markers.markerType.$",
+                                       "name.combinationAuthorTeam.credits.$",
+                                       "name.combinationAuthorTeam.extensions.type.$",
+                                       "name.combinationAuthorTeam.rights.$",
+                                       "name.combinationAuthorTeam.sources.$",
+                                       "name.combinationAuthorTeam.media.$",
+                                       "name.combinationAuthorTeam.media.representations.parts.$",
+                                       "name.combinationAuthorTeam.teamMembers.$",
+                                       "name.combinationAuthorTeam.teamMembers.annotations.$",
+                                       "name.combinationAuthorTeam.teamMembers.annotations.annotationType.$",
+                                       "name.combinationAuthorTeam.teamMembers.markers.markerType.$",
+                                       "name.combinationAuthorTeam.teamMembers.credits.$",
+                                       "name.combinationAuthorTeam.teamMembers.extensions.type.$",
+                                       "name.combinationAuthorTeam.teamMembers.rights.$",
+                                       "name.combinationAuthorTeam.teamMembers.sources.$",
+                                       "name.combinationAuthorTeam.teamMembers.media.$",
+                                       "name.combinationAuthorTeam.teamMembers.media.representations.parts.$",
+
+                                       "name.exBasionymAuthorTeam.$",                                  
+                                       "name.exBasionymAuthorTeam.annotations.$",
+                                       "name.exBasionymAuthorTeam.annotations.annotationType.$",
+                                       "name.exBasionymAuthorTeam.markers.markerType.$",
+                                       "name.exBasionymAuthorTeam.credits.$",
+                                       "name.exBasionymAuthorTeam.extensions.type.$",
+                                       "name.exBasionymAuthorTeam.rights.$",
+                                       "name.exBasionymAuthorTeam.sources.$",
+                                       "name.exBasionymAuthorTeam.media.$",
+                                       "name.exBasionymAuthorTeam.media.representations.parts.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.annotations.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.annotations.annotationType.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.markers.markerType.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.credits.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.extensions.type.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.rights.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.sources.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.media.$",
+                                       "name.exBasionymAuthorTeam.teamMembers.media.representations.parts.$",
+
+                                       "name.exCombinationAuthorTeam.$",                                       
+                                       "name.exCombinationAuthorTeam.annotations.$",
+                                       "name.exCombinationAuthorTeam.annotations.annotationType.$",
+                                       "name.exCombinationAuthorTeam.markers.markerType.$",
+                                       "name.exCombinationAuthorTeam.credits.$",
+                                       "name.exCombinationAuthorTeam.extensions.type.$",
+                                       "name.exCombinationAuthorTeam.rights.$",
+                                       "name.exCombinationAuthorTeam.sources.$",
+                                       "name.exCombinationAuthorTeam.media.$",
+                                       "name.exCombinationAuthorTeam.media.representations.parts.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.annotations.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.annotations.annotationType.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.markers.markerType.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.credits.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.extensions.type.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.rights.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.sources.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.media.$",
+                                       "name.exCombinationAuthorTeam.teamMembers.media.representations.parts.$",
+                                       
+                                       "name.nomenclaturalReference.annotations.$",
+                                       "name.nomenclaturalReference.annotations.annotationType.$",
+                                       "name.nomenclaturalReference.authorTeam.$",
+                                       "name.nomenclaturalReference.authorTeam.media.$",
+                                       "name.nomenclaturalReference.authorTeam.media.representations.parts.$",
+                                       "name.nomenclaturalReference.markers.markerType.$",
+                                       "name.nomenclaturalReference.credits.$",
+                                       "name.nomenclaturalReference.extensions.type.$",
+                                       "name.nomenclaturalReference.rights.$",
+                                       "name.nomenclaturalReference.rights.type.$",
+                                       "name.nomenclaturalReference.sources.$",
+                                       "name.nomenclaturalReference.media.$",
+                                       "name.nomenclaturalReference.media.representations.parts.$",
+                                       "name.nomenclaturalReference.inReference.$",
+                                       "name.nomenclaturalReference.inReference.annotations.$",
+                                       "name.nomenclaturalReference.inReference.annotations.annotationType.$",
+                                       "name.nomenclaturalReference.inReference.markers.markerType.$",                                 
+
+                                       "name.nomenclaturalReference.inReference.credits.$",
+                                       "name.nomenclaturalReference.inReference.extensions.type.$",
+                                       "name.nomenclaturalReference.inReference.rights.$",
+                                       "name.nomenclaturalReference.inReference.rights.type.$",
+                                       "name.nomenclaturalReference.inReference.sources.$",
+                                       "name.nomenclaturalReference.inReference.media.$",
+                                       "name.nomenclaturalReference.inReference.media.representations.parts.$",
+
+                                       "name.status.$",
+                                       "name.status.annotations.$",
+                                       "name.status.annotations.annotationType.$",
+                                       "name.status.markers.markerType.$",
+                                       "name.status.type.$",
+
+                                       "name.typeDesignations.$",
+                                       "name.typeDesignations.typifiedNames.$",
+                                       "name.typeDesignations.typeStatus.$",
+                                       "name.typeDesignations.typeName.$",
+                                       "name.typeDesignations.typeSpecimen.$",
+
+                       });
+                       
+                       return (Taxon) CdmStore.getService(ITaxonService.class).load(taxonNode.getTaxon().getUuid(), TAXON_INIT_STRATEGY);
+
        }
 
        /**
        }
 
        /**
index 586dbfc0502730ee507419eaec24b46cbf52668c..6f91273f13b8e16c4f3dda01aa6fa2b21ad5889e 100644 (file)
@@ -26,6 +26,7 @@ import org.springframework.security.core.context.SecurityContext;
 import org.springframework.security.core.context.SecurityContextHolder;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationController;
 import org.springframework.security.core.context.SecurityContextHolder;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationController;
+import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController;
 import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.service.IService;
 import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.service.IService;
@@ -185,12 +186,12 @@ public class CdmStore {
                cdmDatasource = null;
        }
 
                cdmDatasource = null;
        }
 
-       static void setInstance(CdmApplicationController applicationController,
+       static void setInstance(CdmApplicationRemoteController applicationController,
                        ICdmDataSource dataSource) {
                instance = new CdmStore(applicationController, dataSource);
        }
 
                        ICdmDataSource dataSource) {
                instance = new CdmStore(applicationController, dataSource);
        }
 
-       private CdmStore(CdmApplicationController applicationController,
+       private CdmStore(CdmApplicationRemoteController applicationController,
                        ICdmDataSource dataSource) {
                this.applicationConfiguration = applicationController;
                this.cdmDatasource = dataSource;
                        ICdmDataSource dataSource) {
                this.applicationConfiguration = applicationController;
                this.cdmDatasource = dataSource;
index 6eabada4751c750a5f1441ae08a80c1829ed9291..5d1b7104a6d73912d36332c9b1e72b234f5c2364 100644 (file)
@@ -21,6 +21,7 @@ import org.eclipse.swt.widgets.Display;
 import org.springframework.core.io.Resource;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationController;
 import org.springframework.core.io.Resource;
 
 import eu.etaxonomy.cdm.api.application.CdmApplicationController;
+import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController;
 import eu.etaxonomy.cdm.database.DatabaseTypeEnum;
 import eu.etaxonomy.cdm.database.DbSchemaValidation;
 import eu.etaxonomy.cdm.database.ICdmDataSource;
 import eu.etaxonomy.cdm.database.DatabaseTypeEnum;
 import eu.etaxonomy.cdm.database.DbSchemaValidation;
 import eu.etaxonomy.cdm.database.ICdmDataSource;
@@ -83,16 +84,14 @@ class CdmStoreConnector extends Job {
                        CdmStore.close(monitor);
                }
 
                        CdmStore.close(monitor);
                }
 
-               CdmApplicationController applicationController = null;
+               CdmApplicationRemoteController applicationController = null;
 
                if (!monitor.isCanceled()) {
                        CdmProgressMonitorAdapter subprogressMonitor = CdmProgressMonitorAdapter
                                        .CreateSubMonitor(monitor, 7);
                        // This is where we instantiate the application controller
                        try {
 
                if (!monitor.isCanceled()) {
                        CdmProgressMonitorAdapter subprogressMonitor = CdmProgressMonitorAdapter
                                        .CreateSubMonitor(monitor, 7);
                        // This is where we instantiate the application controller
                        try {
-                               applicationController = CdmApplicationController.NewInstance(
-                                               applicationContextBean, dataSource, dbSchemaValidation,
-                                               false, subprogressMonitor);
+                               applicationController = CdmApplicationRemoteController.NewInstance();
                        } catch (Exception e) {
                                if(! causeIsCancelationExceptionRecursive(e)){
                                        return new Status(IStatus.ERROR, "Could not connect to CDM Store", "An error occurred while trying to connect to datasource: " + dataSource.getName(), e);
                        } catch (Exception e) {
                                if(! causeIsCancelationExceptionRecursive(e)){
                                        return new Status(IStatus.ERROR, "Could not connect to CDM Store", "An error occurred while trying to connect to datasource: " + dataSource.getName(), e);
index 6c394edea6cfee96373917d4e99a0a685df16b19..718401b9236c3ece4d72216d4a8922fbdc25a693 100644 (file)
@@ -7,11 +7,15 @@
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">\r
 \r
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">\r
 \r
-  <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>\r
-  <!-- <import resource="classpath:/eu/etaxonomy/cdm/remotingApplicationContext.xml"/> -->\r
-  <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">\r
+  <!-- <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/> -->\r
+  <import resource="classpath:/eu/etaxonomy/cdm/remotingApplicationContext.xml"/>\r
+  \r
+   <!-- <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">\r
     <property name="omit" value="false" />\r
     <property name="omit" value="false" />\r
-  </bean>\r
+  </bean> -->\r
+   \r
+  <!-- <bean id="remoteTermInitializer" class="eu.etaxonomy.cdm.remote.service.RemoteTermInitializer">    \r
+  </bean> -->\r
   \r
   <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>\r
   <import resource="classpath:eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml"/>\r
   \r
   <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>\r
   <import resource="classpath:eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml"/>\r