protected static final List<String> DESCRIPTION_ELEMENT_INIT_STRATEGY = Arrays.asList(new String []{
"$",
- "multilanguageText"
+ "multilanguageText",
+ "stateData.modifyingText",
+ "stateData.categoricalData.$",
+ "annotations.$",
+ "annotations.type.$",
+ "annotations.type.includes.$"
});
protected List<String> getInitializationStrategy() {
HttpStatusMessage.UUID_NOT_FOUND.send(response);
}
}
-
+ List<String> propertyPath = getInitializationStrategy();
Pager<T> pager = service.pageDescriptionElementsForTaxon(taxon, features != null ? features.asSet() : null, type, pageSize,
pageIndex, getInitializationStrategy());
return pager;
protected static final List<String> ORDERED_DISTRIBUTION_INIT_STRATEGY = Arrays.asList(new String []{
"elements.$",
"elements.annotations",
+ "elements.annotations.includes.$",
"elements.markers",
"elements.sources.citation.authorship.$",
"elements.sources.nameUsedInSource",
protected static final List<String> DISTRIBUTION_INFO_INIT_STRATEGY = Arrays.asList(new String []{
"sources.citation.authorship.$",
"sources.nameUsedInSource",
- "annotations"
+ "annotations",
+ "annotations.includes.$"
});
@Autowired
"rights.agent",\r
"credits.agent",\r
"representations.parts",\r
+ "annotations.$",\r
+ "annotations.type.$",\r
+ "annotations.type.includes.$",\r
"allDescriptions",\r
"sources.citation.authorship",\r
"sources.links",\r
super();
setInitializationStrategy(Arrays.asList(new String[]{
"$",
+ "annotations.$",
+ "annotations.type.includes.$",
"name.nomenclaturalSource.citation"
}));
}
"secSource.nameUsedInSource.nomenclaturalSource.citation.authorship",
"secSource.nameUsedInSource.nomenclaturalSource.citation.inReference.authorship",
"secSource.citation.authorship.$",
- "secSource.citation.inReference.authorship.$"
+ "secSource.citation.inReference.authorship.$",
+ "annotations.$",
+ "annotations.type.includes.$"
// "descriptions" // TODO remove
}));
// IVocabularyService vocabularyService = null;
// Map<PresenceAbsenceTerm, Color> distributionStatusColors = DistributionServiceUtilities.buildStatusColorMap(
// statusColorsString, termService, vocabularyService);
-
+
TaxonPageDtoConfiguration config = new TaxonPageDtoConfiguration();
config.setTaxonUuid(taxonUuid);
private static final EntityInitStrategy SIMPLE_TAXON_INIT_STRATEGY = TaxonPortalController.SIMPLE_TAXON_INIT_STRATEGY.clone().extend(
null,
Arrays.asList(
+ "annotations.$",
+ "annotations.type.includes.$",
"synonym.name.nomenclaturalSource.citation.authorship",
"synonym.name.nomenclaturalSource.citation.inReference.authorship",
"relationsFromThisTaxon.toTaxon.taxonNodes" // needed for misapplications, see Taxon.isMisapplicationOnly()
extends AbstractIdentifiableController<DefinedTermBase, ITermService> {
private static final List<String> TERM_COMPARE_INIT_STRATEGY = Arrays.asList(new String []{
- "vocabulary"
+ "vocabulary",
+ "includes"
});
@Autowired
@Override
public void setService(ITermService service) {
this.service = service;
+ setInitializationStrategy(TERM_COMPARE_INIT_STRATEGY);
}
/**
@RequestMapping(value = {"/termNode/{uuid}"})
public class TermNodeController extends BaseController<TermNode, ITermNodeService> {
+
@Override
@Autowired
public void setService(ITermNodeService service) {
private static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
"$",
"vocabulary",
+ "includes",
"countries" // NamedArea.countries
});
*/
package eu.etaxonomy.cdm.remote.controller;
+import java.util.Arrays;
+import java.util.List;
+
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
public class VocabularyListController extends AbstractIdentifiableListController<TermVocabulary, IVocabularyService> {
private static final Logger logger = LogManager.getLogger();
+ private static final List<String> TERM_INIT_STRATEGY = Arrays.asList(
+ new String[]{
+ "terms.$",
+ "terms.includes.$",
+ "includes"
+ });
+
@Autowired
@Override
public void setService(IVocabularyService service) {
this.service = service;
+ setInitializationStrategy(TERM_INIT_STRATEGY);
}