return deduplicateResult(super.list(type, limit, start, orderHints, propertyPath));
}
- @Override
- public <S extends DefinedTermBase> List<S> list(Class<S> clazz, List<TermVocabulary> vocs, Integer limit, String pattern, TermSearchField type) {
- return list(clazz, vocs, 0, limit, pattern, MatchMode.BEGINNING, type);
- }
-
@Override
public <S extends DefinedTermBase> List<S> list(Class<S> clazz, List<TermVocabulary> vocs, Integer pageNumber, Integer limit, String pattern,
MatchMode matchmode, TermSearchField abbrevType){
public <S extends DefinedTermBase> List<S> list(Class<S> clazz, List<TermVocabulary> vocs, Integer pageNumber, Integer limit, String pattern, MatchMode matchmode, TermSearchField type);
- public <S extends DefinedTermBase> List<S> list(Class<S> clazz, List<TermVocabulary> vocs, Integer limit, String pattern, TermSearchField type);
-
/**
* Returns all terms that are included in the given parent term resp. a part of the given term.
* @param parentTerm the parent term
import eu.etaxonomy.cdm.persistence.dao.term.ITermCollectionDao;
import eu.etaxonomy.cdm.persistence.dto.TermDto;
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
+import eu.etaxonomy.cdm.persistence.query.MatchMode;
import eu.etaxonomy.cdm.persistence.query.OrderHint;
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
@SuppressWarnings("rawtypes")
List<TermVocabulary> vocs = filterCollectionType(TermVocabulary.class, termCollections);
if (!vocs.isEmpty() || CdmUtils.isNullSafeEmpty(termCollections)) { //search on all vocabularies if no filter is set
- terms = dao.list(clazz, vocs, limit, pattern, type); //TODO lang still missing;
+ terms = dao.list(clazz, vocs, null, limit, pattern, MatchMode.BEGINNING, type); //TODO lang still missing;
}
@SuppressWarnings("rawtypes")