-// $Id$
/**
* Copyright (C) 2018 EDIT
* European Distributed Institute of Taxonomy
/**
* @author pplitzner
* @date 05.11.2018
- *
*/
public class TermCollectionDto extends AbstractTermDto {
private boolean containsDuplicates = false;
private boolean isOrderRelevant;
private boolean isFlat;
- private boolean isAllowModifications = true;
public TermCollectionDto(UUID uuid, Set<Representation> representations, TermType termType, String titleCache, boolean isAllowDuplicate, boolean isOrderRelevant, boolean isFlat) {
super(uuid, representations, titleCache);
terms.remove(term);
}
-
-
- /**
- * @return the isAllowDuplicate
- */
public boolean isAllowDuplicate() {
return isAllowDuplicate;
}
-
- /**
- * @param isAllowDuplicate the isAllowDuplicate to set
- */
public void setAllowDuplicate(boolean isAllowDuplicate) {
this.isAllowDuplicate = isAllowDuplicate;
}
this.containsDuplicates = containsDuplicates;
}
- /**
- * @return the isOrderRelevant
- */
public boolean isOrderRelevant() {
return isOrderRelevant;
}
-
- /**
- * @param isOrderRelevant the isOrderRelevant to set
- */
public void setOrderRelevant(boolean isOrderRelevant) {
this.isOrderRelevant = isOrderRelevant;
}
- /**
- * @return the isFlat
- */
public boolean isFlat() {
return isFlat;
}
-
- /**
- * @param isFlat the isFlat to set
- */
public void setFlat(boolean isFlat) {
this.isFlat = isFlat;
}
+ "a.orderRelevant,"
+ "a.isFlat "
-
+ "FROM "+fromTable+" as a "
+ "LEFT JOIN a.representations AS r ";
-
}
-
-
-
-
-}
+}
\ No newline at end of file
* 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;
import java.util.ArrayList;
this.dao = dao;
}
-
@Override
@Transactional(readOnly = false)
public UpdateResult updateCaches(Class<? extends TermVocabulary> clazz, Integer stepSize, IIdentifiableEntityCacheStrategy<TermVocabulary> cacheStrategy, IProgressMonitor monitor) {
return super.updateCachesImpl(clazz, stepSize, cacheStrategy, monitor);
}
-
@Override
public List<TermVocabulary> listByTermType(TermType termType, boolean includeSubTypes,
Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
@Transactional(readOnly = false)
@Override
public TermDto addNewTerm(TermType termType, UUID vocabularyUUID) {
- DefinedTermBase term = termType.getEmptyDefinedTermBase();
+ DefinedTermBase<?> term = termType.getEmptyDefinedTermBase();
termService.save(term);
TermVocabulary vocabulary = dao.load(vocabularyUUID);
vocabulary.addTerm(term);
return dao.getUuidAndTitleCache(clazz, termType, limit, pattern);
}
-
@Override
public List<TermVocabularyDto> findVocabularyDtoByVocabularyUuids(List<UUID> vocUuids) {
return dao.findVocabularyDtoByUuids(vocUuids);