Project

General

Profile

Revision 629035f4

ID629035f40b843f66bfa1a5fef56916b48e2d5f0a
Parent 5bafde13
Child 25a98c3f

Added by Katja Luther about 2 months ago

ref #8677: getNamedAreaDTO

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IVocabularyService.java
95 95
     */
96 96
    public Collection<TermDto> getTerms(List<UUID> vocabularyUuids);
97 97

  
98
    /**
99
     * Loads all namedArea term dtos with level informations for the given vocabularies
100
     * @param vocabularyUuids the ids of the vocabularies
101
     * @return a collection of named areaterm dtos
102
     */
103
    public Collection<TermDto> getNamedAreaTerms(List<UUID> vocabularyUuids);
98 104
	/**
99 105
	 * Initializes the complete term hierarchy consisting of {@link TermDto}s
100 106
	 * for the given vocabulary
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/VocabularyServiceImpl.java
111 111
    }
112 112

  
113 113
    @Override
114
    public Collection<TermDto> getNamedAreaTerms(List<UUID> vocabularyUuids) {
115
        return dao.getNamedAreaTerms(vocabularyUuids);
116
    }
117

  
118
    @Override
114 119
    public Collection<TermDto> getCompleteTermHierarchy(TermVocabularyDto vocabularyDto) {
115
        Collection<TermDto> topLevelTerms = dao.getTopLevelTerms(vocabularyDto.getUuid());
120
        Collection<TermDto> topLevelTerms = dao.getTopLevelTerms(vocabularyDto.getUuid(), vocabularyDto.getTermType());
116 121
        for (TermDto termDto : topLevelTerms) {
117 122
            termDto.setVocabularyDto(vocabularyDto);
118 123
            initializeIncludes(termDto);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)