Project

General

Profile

« Previous | Next » 

Revision a1ab6a74

Added by Patrick Plitzner over 5 years ago

ref #7887 Implement term service methods based on DTOs

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/common/ITermVocabularyDao.java
10 10
package eu.etaxonomy.cdm.persistence.dao.common;
11 11

  
12 12

  
13
import java.util.Collection;
13 14
import java.util.List;
14 15
import java.util.Map;
15 16
import java.util.Set;
......
18 19
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
19 20
import eu.etaxonomy.cdm.model.common.TermType;
20 21
import eu.etaxonomy.cdm.model.common.TermVocabulary;
22
import eu.etaxonomy.cdm.persistence.dto.TermDto;
23
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto;
21 24
import eu.etaxonomy.cdm.persistence.query.OrderHint;
22 25

  
23 26

  
......
102 105
			Map<UUID, Set<UUID>> uuidsRepsonse,
103 106
			Map<UUID, TermVocabulary<?>> vocabularyResponse);
104 107

  
108
    /**
109
     * Loads all top level terms, i.e. terms that have no parent terms, for the given vocabulary
110
     * @param vocabularyUuid the id of the vocabulary
111
     * @return a collection of top level terms
112
     */
113
    public Collection<TermDto> getTopLevelTerms(UUID vocabularyUuid);
114

  
115
    /**
116
     * Returns term vocabularies that contain terms of a certain {@link TermType} e.g. Feature, Modifier, State.
117
     *
118
     * @param termType the {@link TermType} of the terms in the vocabulary and of the vocabulary
119
     * @return a list of term vocabularies
120
     */
121
    public List<TermVocabularyDto> findVocabularyDtoByTermType(TermType termType);
122

  
105 123
}

Also available in: Unified diff