@Controller @RequestMapping(value="/description") public class DescriptionListController extends AbstractIdentifiableListController<DescriptionBase,IDescriptionService>
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<java.lang.String> |
DESCRIPTION_ELEMENT_INIT_STRATEGY |
ProgressMonitorController |
progressMonitorController |
logger
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
DescriptionListController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
doAccumulateDistributions(AggregationMode mode,
AggregationMode mode2,
java.util.UUID targetAreaLevelUuid,
java.lang.String frontendBaseUrl,
java.lang.Integer priority,
java.util.UUID lowerRank,
java.util.UUID upperRank,
UuidList subtreeUuids,
UuidList classificationUuids,
UuidList taxonUuids,
UuidList taxonNodeUuids,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Runs the
DistributionAggregation in a separate Thread and
responds with a redirect to a progress monitor REST service end point. |
org.springframework.web.servlet.ModelAndView |
doGetDistributionInfo(java.util.UUID taxonUuid,
java.util.Set<DistributionInfoDTO.InfoPart> partSet,
boolean subAreaPreference,
boolean statusOrderPreference,
DefinedTermBaseList<MarkerType> hideMarkedAreasList,
java.util.Set<NamedAreaLevel> omitLevels,
java.lang.String statusColorsString,
DistributionOrder distributionOrder,
CondensedDistributionRecipe recipe,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Pager<TermDto> |
doPageNamedAreasInUse(boolean includeAllParents,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.util.List<java.lang.String> |
getDescriptionInfoInitStrategy() |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
void |
setService(IDescriptionService service) |
doFindByIdentifier, doFindByMarker, doFindByTitle, doGetUuidAndTitleCache
doList, doPage, doPageByRestrictions, getClassificationOrError, getSubtreeOrError, pageByRestrictions
localizeTerms
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
@Autowired public ProgressMonitorController progressMonitorController
protected static final java.util.List<java.lang.String> DESCRIPTION_ELEMENT_INIT_STRATEGY
@Autowired public void setService(IDescriptionService service)
setService
in class AbstractController<DescriptionBase,IDescriptionService>
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder
in class AbstractIdentifiableListController<DescriptionBase,IDescriptionService>
protected java.util.List<java.lang.String> getDescriptionInfoInitStrategy()
@RequestMapping(value="accumulateDistributions", method=GET) public org.springframework.web.servlet.ModelAndView doAccumulateDistributions(@RequestParam(value="mode",required=true) AggregationMode mode, @RequestParam(value="mode2",required=true) AggregationMode mode2, @RequestParam(value="targetAreaLevel",required=true) java.util.UUID targetAreaLevelUuid, @RequestParam(value="frontendBaseUrl",required=false) java.lang.String frontendBaseUrl, @RequestParam(value="priority",required=false,defaultValue="3") java.lang.Integer priority, @RequestParam(value="minRank",required=false) java.util.UUID lowerRank, @RequestParam(value="maxRank",required=false) java.util.UUID upperRank, @RequestParam(value="subtrees",required=false) UuidList subtreeUuids, @RequestParam(value="classifications",required=false) UuidList classificationUuids, @RequestParam(value="taxa",required=false) UuidList taxonUuids, @RequestParam(value="taxonnodes",required=false) UuidList taxonNodeUuids, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
DistributionAggregation
in a separate Thread and
responds with a redirect to a progress monitor REST service end point.
mode
- one of byAreas
, byRanks
,
byAreasAndRanks
frontendBaseUrl
- the cdm server instance base URL, this is needed for the a
proper redirect URL when the service is running behind a
reverse HTTP proxypriority
- the priority for the Thread to spawn, see
Thread.setPriority(int)
, defaults to 3targetAreaLevel
- The level of target areas to project the distributions to.lowerRank
- upperRank
- request
- response
- java.io.IOException
@RequestMapping(value="namedAreasInUse", method=GET) public Pager<TermDto> doPageNamedAreasInUse(@RequestParam(value="includeAllParents",required=false) boolean includeAllParents, @RequestParam(value="pageSize",required=false) java.lang.Integer pageSize, @RequestParam(value="pageNumber",required=false) java.lang.Integer pageNumber, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@RequestMapping(value="distributionInfoFor/{uuid}", method=GET) public org.springframework.web.servlet.ModelAndView doGetDistributionInfo(@PathVariable(value="uuid") java.util.UUID taxonUuid, @RequestParam(value="part") java.util.Set<DistributionInfoDTO.InfoPart> partSet, @RequestParam(value="subAreaPreference",required=false) boolean subAreaPreference, @RequestParam(value="statusOrderPreference",required=false) boolean statusOrderPreference, @RequestParam(value="hiddenAreaMarkerType",required=false) DefinedTermBaseList<MarkerType> hideMarkedAreasList, @RequestParam(value="omitLevels",required=false) java.util.Set<NamedAreaLevel> omitLevels, @RequestParam(value="statusColors",required=false) java.lang.String statusColorsString, @RequestParam(value="distributionOrder",required=false,defaultValue="LABEL") DistributionOrder distributionOrder, @RequestParam(value="recipe",required=false,defaultValue="EuroPlusMed") CondensedDistributionRecipe recipe, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
taxonUuid
- parts
- possible values: condensedStatus, tree, mapUriParams,
elements,subAreaPreference
- statusOrderPreference
- hideMarkedAreasList
- omitLevels
- request
- response
- distributionOrder
- Default is LABELrecipe
- The recipe for creating the condensed distribution statusjava.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
Copyright © 2007-2020 EDIT. All Rights Reserved.