Project

General

Profile

Revision 66172879

ID6617287928350cd0dc16c523427073d5e10fd524
Parent 0da5fc18
Child 30fc7ac4

Added by Katja Luther over 1 year ago

ref #8096: termservice adapted

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TermServiceImpl.java
56 56
import eu.etaxonomy.cdm.persistence.dao.common.IRepresentationDao;
57 57
import eu.etaxonomy.cdm.persistence.dto.TermDto;
58 58
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
59
import eu.etaxonomy.cdm.persistence.query.MatchMode;
59 60
import eu.etaxonomy.cdm.persistence.query.OrderHint;
60 61
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
61 62

  
......
395 396

  
396 397
	@Override
397 398
	@Transactional(readOnly = false)
398
    public void updateCaches(Class<? extends DefinedTermBase> clazz, Integer stepSize, IIdentifiableEntityCacheStrategy<DefinedTermBase> cacheStrategy, IProgressMonitor monitor) {
399
    public UpdateResult updateCaches(Class<? extends DefinedTermBase> clazz, Integer stepSize, IIdentifiableEntityCacheStrategy<DefinedTermBase> cacheStrategy, IProgressMonitor monitor) {
399 400
		//TODO shouldn't this be TermBase instead of DefinedTermBase
400 401
		if (clazz == null){
401 402
			clazz = DefinedTermBase.class;
402 403
		}
403
		super.updateCachesImpl(clazz, stepSize, cacheStrategy, monitor);
404
		return super.updateCachesImpl(clazz, stepSize, cacheStrategy, monitor);
404 405
	}
405 406

  
406 407
	@Override
......
470 471
        return result;
471 472
    }
472 473

  
474
//    @Override
475
//    @Transactional(readOnly = true)
476
//    public List<UuidAndTitleCache<NamedArea>> getUuidAndTitleCache(List<TermVocabulary> vocs, Integer pageNumber, Integer limit, String pattern, Language lang, MatchMode matchMode) {
477
//        List<NamedArea> areas = dao.getUuidAndTitleCache(vocs, pageNumber, limit, pattern, matchMode);
478
//
479
//        List<UuidAndTitleCache<NamedArea>> result = new ArrayList();
480
//        UuidAndTitleCache<NamedArea> uuidAndTitleCache;
481
//        for (NamedArea area: areas){
482
//            uuidAndTitleCache = new UuidAndTitleCache<>(area.getUuid(), area.getId(), area.labelWithLevel(area, lang));
483
//            result.add(uuidAndTitleCache);
484
//        }
485
//
486
//        return result;
487
//    }
488
//
489
//    @Override
490
//    public long count(List<TermVocabulary> vocs, String pattern, Language lang) {
491
//        long count = dao.count(vocs, pattern);
492
//        return count;
493
//    }
494

  
473 495
    @Override
474 496
    public Collection<TermDto> getIncludesAsDto(
475 497
            TermDto parentTerm) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)