\r
/**\r
* Returns a list of entities of type <T> optionally restricted\r
- * to objects belonging to a class that that extends <T>\r
+ * to objects belonging to a class that extends <T>\r
*\r
* @param type The type of entities to return (can be null to count all entities of type <T>)\r
* @param limit The maximum number of objects returned (can be null for all matching objects)\r
package eu.etaxonomy.cdm.api.service;
-import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import eu.etaxonomy.cdm.model.term.TermTree;
import eu.etaxonomy.cdm.model.term.TermType;
import eu.etaxonomy.cdm.persistence.dao.common.Restriction;
-import eu.etaxonomy.cdm.persistence.dao.common.Restriction.Operator;
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
import eu.etaxonomy.cdm.persistence.query.OrderHint;
public <S extends TermTree> List<UuidAndTitleCache<S>> getUuidAndTitleCacheByTermType(
Class<S> clazz, TermType termType, Integer limit, String pattern);
- List<Restriction<?>> buildTermTypeFilterRestrictions(TermType termType);
+ public List<Restriction<?>> buildTermTypeFilterRestrictions(TermType termType);
}
import eu.etaxonomy.cdm.model.view.AuditEventRecord;
import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
-public interface IVersionableService<T extends VersionableEntity> extends IService<T> {
+public interface IVersionableService<T extends VersionableEntity>
+ extends IService<T> {
/**
* Returns a paged list of audit events (in order) which affected the state of an entity t.
public class LongRunningTasksService implements ILongRunningTasksService{
@Autowired
- ITaxonNodeService taxonNodeService;
+ private ITaxonNodeService taxonNodeService;
@Autowired
- IDescriptiveDataSetService descriptiveDataSetService;
+ private IDescriptiveDataSetService descriptiveDataSetService;
@Autowired
- IProgressMonitorService progressMonitorService;
+ private IProgressMonitorService progressMonitorService;
@Autowired
- CacheUpdater updater;
+ private CacheUpdater updater;
@Autowired
- SortIndexUpdaterWrapper sortIndexUpdater;
+ private SortIndexUpdaterWrapper sortIndexUpdater;
@Autowired
@Qualifier("cdmRepository")
}
monitor.setResult(updateResult);
return updateResult;
-
}
};
UUID uuid = progressMonitorService.registerNewRemotingMonitor(monitorThread);
RemotingProgressMonitorThread monitorThread = new RemotingProgressMonitorThread() {
@Override
public Serializable doRun(IRemotingProgressMonitor monitor) {
- UpdateResult result;
config.setMonitor(monitor);
- result = updateData(config);
+ UpdateResult result = updateData(config);
for(Exception e : result.getExceptions()) {
monitor.addReport(e.getMessage());
}
RemotingProgressMonitorThread monitorThread = new RemotingProgressMonitorThread() {
@Override
public Serializable doRun(IRemotingProgressMonitor monitor) {
- UpdateResult result;
- configurator.setMonitor(monitor);
- result = sortIndexUpdater.doInvoke(configurator);
+ configurator.setMonitor(monitor);
+ UpdateResult result = sortIndexUpdater.doInvoke(configurator);
for(Exception e : result.getExceptions()) {
monitor.addReport(e.getMessage());
monitorThread.start();
return uuid;
}
-
}
+/**
+* Copyright (C) 2016 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
package eu.etaxonomy.cdm.api.service.util;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
-import eu.etaxonomy.cdm.model.common.RelationshipTermBase;
import eu.etaxonomy.cdm.model.common.RelationshipBase.Direction;
+import eu.etaxonomy.cdm.model.common.RelationshipTermBase;
/**
* Holds a RelationshipType ({@link RelationshipTermBase}) of type {@code <T>}
* @author a.kohlbecker
* @since Dec 7, 2012
*
- *
* @param <T> a sub class of ({@link RelationshipTermBase})
*/
public class AbstractRelationshipEdge<T extends RelationshipTermBase> {
public boolean isBidirectional() {
return directions.equals(EnumSet.allOf(Direction.class));
}
-
-
}
+/**
+* Copyright (C) 2016 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
package eu.etaxonomy.cdm.api.service.util;
import java.io.Serializable;
public class CacheUpdater implements Serializable {
private static final long serialVersionUID = -1410600568024821771L;
-
private static final Logger logger = Logger.getLogger(CacheUpdater.class);
@Autowired
protected INameService nameService;
-
@Autowired
protected ITaxonService taxonService;
-
@Autowired
protected IClassificationService classificationService;
-
@Autowired
protected IReferenceService referenceService;
-
@Autowired
protected IAgentService agentService;
-
-
@Autowired
protected IOccurrenceService occurrenceService;
-
@Autowired
protected ITermService termService;
@Autowired
protected IDescriptionService descriptionService;
-
@Autowired
protected ICollectionService collectionService;
@Autowired
@Autowired
protected IVocabularyService vocabularyService;
-
@Autowired
protected IPolytomousKeyService polytomousKeyService;
@Autowired
+/**
+* Copyright (C) 2016 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
package eu.etaxonomy.cdm.api.service.util;
import org.apache.log4j.Logger;
private static final long serialVersionUID = 7667521864001167289L;
private static final Logger logger = Logger.getLogger(CacheUpdaterWithNewCacheStrategy.class);
-
private boolean handleSingleTableClass(Class<? extends IdentifiableEntity> clazz) {
logger.warn("Updating class " + clazz.getSimpleName() + " ...");
try {
/**
* @author pplitzner
* @since 31.03.2014
- *
*/
-public class AmplificationServiceTest extends CdmTransactionalIntegrationTest {
+public class AmplificationServiceTest extends CdmTransactionalIntegrationTest {
+
@SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(AmplificationServiceTest.class);
@SpringBeanByType
private IAmplificationService amplificationService;
-
@Test
public void testNothingTest(){
//dummy as min 1 Test is required
}
-
- /* (non-Javadoc)
- * @see eu.etaxonomy.cdm.test.integration.CdmIntegrationTest#createTestData()
- */
@Override
- public void createTestDataSet() throws FileNotFoundException {
- // TODO Auto-generated method stub
-
- }
-}
+ public void createTestDataSet() throws FileNotFoundException {}
+}
\ No newline at end of file
/**
* @author a.kohlbecker
* @since Oct 1, 2018
- *
*/
public class TaxonGraphHibernateListenerTest extends CdmTransactionalIntegrationTestWithSecurity {
europeanAbiesClassification.setUuid(UUID.fromString(CLASSIFICATION_UUID));
// classificationDao.save(europeanAbiesClassification);
- Reference sec = ReferenceFactory.newBook();
+ Reference sec = ReferenceFactory.newBook();
sec.setTitleCache("Kohlbecker, A., Testcase standart views, 2013", true);
Reference sec_sensu = ReferenceFactory.newBook();
sec_sensu.setTitleCache("Komarov, V. L., Flora SSSR 29", true);