Adapt all transient services to latest API changes
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 10 Jun 2016 14:16:24 +0000 (16:16 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 10 Jun 2016 14:16:24 +0000 (16:16 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientAgentService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientClassificationService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientCollectionService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientDescriptionService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientNameService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientOccurenceService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientReferenceService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientTaxonService.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientTermService.java

index bd0723b7ea5fc1a728e20a53a9e23456554c8f6d..f740dbe2b225f52e84cfd68923e4d98255cc2122 100644 (file)
@@ -463,14 +463,6 @@ public class TransientAgentService implements IAgentService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<AgentBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
 
     /**
      * @param clazz
@@ -842,11 +834,17 @@ public class TransientAgentService implements IAgentService {
         return defaultService.load(arg0, arg1);
     }
 
-    /**
-     * {@inheritDoc}
-     */
-    @Override
-    public List<UuidAndTitleCache<AgentBase>> getUuidAndAbbrevTitleCache() {
-        return defaultService.getUuidAndAbbrevTitleCache();
-    }
+       @Override
+       public List<UuidAndTitleCache<AgentBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
+
+       @Override
+       public List<UuidAndTitleCache<AgentBase>> getUuidAndAbbrevTitleCache(
+                       Integer limit, String pattern, Class clazz) {
+                return defaultService.getUuidAndAbbrevTitleCache(limit, pattern, clazz);
+       }
+
+
 }
index 9a8a1b83ab794cc5969196afe37cab2674cb3795..a3a7c515a00a3e8d406d294e3392031e65761304 100644 (file)
@@ -454,15 +454,6 @@ public class TransientClassificationService implements IClassificationService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<Classification>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -991,5 +982,24 @@ public class TransientClassificationService implements IClassificationService {
         return defaultService.load(arg0, arg1);
     }
 
+       @Override
+       public List<UuidAndTitleCache<Classification>> getUuidAndTitleCache(Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(null, null);
+       }
+
+       @Override
+       public List<UuidAndTitleCache<TaxonNode>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
+                       UUID classificationUuid, List<UUID> excludeTaxa, Integer limit,
+                       String pattern) {
+               return defaultService.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid, excludeTaxa, limit, pattern);
+       }
+
+       @Override
+       public List<UuidAndTitleCache<TaxonNode>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
+                       Classification classification, List<UUID> excludeTaxa,
+                       Integer limit, String pattern) {
+               return defaultService.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification, excludeTaxa, limit, pattern);
+       }
+
 
 }
index 006809900ddd8d45b5783371cd2a92689df5341b..990beafb64de35d802466eca8d323bc64d5be1ed 100644 (file)
@@ -416,15 +416,6 @@ public class TransientCollectionService implements ICollectionService {
         return defaultService.getSourcedObjectByIdInSource(clazz, idInSource, idNamespace);
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<Collection>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param queryString
@@ -743,9 +734,6 @@ public class TransientCollectionService implements ICollectionService {
         return defaultService.merge(arg0, arg1);
     }
 
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
-     */
     @Override
     public Collection loadWithUpdate(UUID arg0) {
         return defaultService.loadWithUpdate(arg0);
@@ -759,5 +747,12 @@ public class TransientCollectionService implements ICollectionService {
         return defaultService.load(arg0, arg1);
     }
 
+       @Override
+       public List<UuidAndTitleCache<Collection>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
+
+
 
 }
index ee1e09b6bda5ba4d832d9febf8225c163ab08335..a26c55393f74658634a1c23cc9222651c4fa391f 100644 (file)
@@ -51,6 +51,7 @@ import eu.etaxonomy.cdm.model.media.Media;
 import eu.etaxonomy.cdm.model.media.Rights;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
+import eu.etaxonomy.cdm.model.taxon.TaxonBase;
 import eu.etaxonomy.cdm.model.view.AuditEvent;
 import eu.etaxonomy.cdm.model.view.AuditEventRecord;
 import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
@@ -466,15 +467,6 @@ public class TransientDescriptionService implements IDescriptionService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<DescriptionBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -1240,4 +1232,11 @@ public class TransientDescriptionService implements IDescriptionService {
         return defaultService.load(arg0, arg1);
     }
 
+       @Override
+       public List<UuidAndTitleCache<DescriptionBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
+
+
 }
index 9a85236c18668551ff3e583fe0997cae7d8c66f7..cb0ab1b04d11f8d75864c452caefd3c24588f49f 100644 (file)
@@ -48,6 +48,7 @@ import eu.etaxonomy.cdm.model.common.MarkerType;
 import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
 import eu.etaxonomy.cdm.model.common.RelationshipBase;
 import eu.etaxonomy.cdm.model.common.RelationshipBase.Direction;
+import eu.etaxonomy.cdm.model.description.DescriptionBase;
 import eu.etaxonomy.cdm.model.media.Rights;
 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
 import eu.etaxonomy.cdm.model.name.HybridRelationship;
@@ -483,15 +484,6 @@ public class TransientNameService implements INameService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<TaxonNameBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -1098,15 +1090,6 @@ public class TransientNameService implements INameService {
         return defaultService.search(clazz, queryString, pageSize, pageNumber, orderHints, propertyPaths);
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.INameService#getUuidAndTitleCacheOfNames()
-     */
-    @Override
-    public List<UuidAndTitleCache> getUuidAndTitleCacheOfNames() {
-        return defaultService.getUuidAndTitleCacheOfNames();
-    }
-
     /**
      * @param clazz
      * @param queryString
@@ -1236,4 +1219,16 @@ public class TransientNameService implements INameService {
         return defaultService.load(arg0, arg1);
     }
 
+    @Override
+       public List<UuidAndTitleCache<TaxonNameBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
+
+       @Override
+       public List<UuidAndTitleCache> getUuidAndTitleCacheOfNames(Integer limit,
+                       String pattern) {
+               return defaultService.getUuidAndTitleCacheOfNames(limit, pattern);
+       }
+
 }
index 96726beeb6a67054ff540ae36bb7bf60ad42f3ef..d742c926d6b00c3acb7e380b39c04f98109a9455 100644 (file)
@@ -42,6 +42,7 @@ import eu.etaxonomy.cdm.api.service.util.TaxonRelationshipEdge;
 import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
 import eu.etaxonomy.cdm.model.common.Annotation;
 import eu.etaxonomy.cdm.model.common.DefinedTerm;
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;
 import eu.etaxonomy.cdm.model.common.ICdmBase;
 import eu.etaxonomy.cdm.model.common.ISourceable;
 import eu.etaxonomy.cdm.model.common.IdentifiableSource;
@@ -439,15 +440,6 @@ public class TransientOccurenceService implements IOccurrenceService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<SpecimenOrObservationBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -1106,5 +1098,10 @@ public class TransientOccurenceService implements IOccurrenceService {
         return defaultService.getAllChildDerivatives(arg0);
     }
 
+    @Override
+       public List<UuidAndTitleCache<SpecimenOrObservationBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
 
 }
index 605f12b780543a8423881eadf4bbeb7bf438fa22..d985d1d81f6347271fab275692630043dc4504b0 100644 (file)
@@ -35,6 +35,7 @@ import eu.etaxonomy.cdm.model.common.LSID;
 import eu.etaxonomy.cdm.model.common.Marker;
 import eu.etaxonomy.cdm.model.common.MarkerType;
 import eu.etaxonomy.cdm.model.media.Rights;
+import eu.etaxonomy.cdm.model.name.TaxonNameBase;
 import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.model.taxon.TaxonBase;
 import eu.etaxonomy.cdm.model.view.AuditEvent;
@@ -414,15 +415,6 @@ public class TransientReferenceService implements IReferenceService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<Reference>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -767,5 +759,10 @@ public class TransientReferenceService implements IReferenceService {
         return defaultService.load(arg0, arg1);
     }
 
+    @Override
+       public List<UuidAndTitleCache<Reference>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
 
 }
index aacf841c8e8926187d0b1e4c69d82057a6dac4fa..c09b51ad7a032f548e7040e31275c0b958453e78 100644 (file)
@@ -431,15 +431,6 @@ public class TransientTaxonService implements ITaxonService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -1278,23 +1269,6 @@ public class TransientTaxonService implements ITaxonService {
         return defaultService.findBestMatchingSynonym(taxonName);
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.ITaxonService#getUuidAndTitleCacheTaxon()
-     */
-    @Override
-    public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheTaxon() {
-        return defaultService.getUuidAndTitleCacheTaxon();
-    }
-
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.ITaxonService#getUuidAndTitleCacheSynonym()
-     */
-    @Override
-    public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheSynonym() {
-        return defaultService.getUuidAndTitleCacheSynonym();
-    }
 
     /**
      * @param configurator
@@ -1558,5 +1532,23 @@ public class TransientTaxonService implements ITaxonService {
         return defaultService.load(arg0, arg1);
     }
 
+       @Override
+       public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
+
+       @Override
+       public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheTaxon(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCacheTaxon(limit, pattern);
+       }
+
+       @Override
+       public List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheSynonym(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCacheSynonym(limit, pattern);
+       }
+
 
 }
index e032eb3eb45a73424fd4344dbd9e6de7da9653b4..c904025c94edb1f6db8ee83fa59807e131b92402 100644 (file)
@@ -49,6 +49,7 @@ import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
 import eu.etaxonomy.cdm.model.location.NamedAreaType;
 import eu.etaxonomy.cdm.model.media.Media;
 import eu.etaxonomy.cdm.model.media.Rights;
+import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.model.view.AuditEvent;
 import eu.etaxonomy.cdm.model.view.AuditEventRecord;
 import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
@@ -509,15 +510,6 @@ public class TransientTermService implements ITermService {
         return defaultService.getSession();
     }
 
-    /**
-     * @return
-     * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
-     */
-    @Override
-    public List<UuidAndTitleCache<DefinedTermBase>> getUuidAndTitleCache() {
-        return defaultService.getUuidAndTitleCache();
-    }
-
     /**
      * @param clazz
      * @param limit
@@ -921,5 +913,9 @@ public class TransientTermService implements ITermService {
         return defaultService.load(arg0, arg1);
     }
 
-
+    @Override
+       public List<UuidAndTitleCache<DefinedTermBase>> getUuidAndTitleCache(
+                       Integer limit, String pattern) {
+               return defaultService.getUuidAndTitleCache(limit, pattern);
+       }
 }