@Controller @RequestMapping(value="/portal/classification") public class ClassificationPortalListController extends AbstractIdentifiableListController<Classification,IClassificationService>
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
ClassificationPortalListController() |
Modifier and Type | Method and Description |
---|---|
java.util.List<TaxonNode> |
getChildNodesOfTaxon(java.util.UUID treeUuid,
java.util.UUID taxonUuid,
java.util.UUID subtreeUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
java.util.List<TaxonNode> |
getPathFromTaxon(java.util.UUID classificationUuid,
java.util.UUID taxonUuid,
java.util.UUID subtreeUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Provides path of
TaxonNode s from the base node to the node of the specified taxon. |
java.util.List<TaxonNode> |
getPathFromTaxonToRank(java.util.UUID treeUuid,
java.util.UUID taxonUuid,
java.util.UUID rankUuid,
java.util.UUID subtreeUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Provides path of
TaxonNode s from the base node to the node of the specified taxon. |
java.util.List<TaxonNode> |
getSiblingsOfTaxon(java.util.UUID treeUuid,
java.util.UUID taxonUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
void |
setService(IClassificationService service) |
void |
setTaxonNodeService(ITaxonNodeService taxonNodeService) |
void |
setTaxonService(ITaxonService taxonService) |
void |
setTermService(ITermService termService) |
doFindByIdentifier, doFindByMarker, doFindByTitle, doGetUuidAndTitleCache
doList, doPage, doPageByRestrictions, getClassificationOrError, getSubtreeOrError, pageByRestrictions
localizeTerms
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
public static final Logger logger
@Autowired public void setService(IClassificationService service)
setService
in class AbstractController<Classification,IClassificationService>
@Autowired public void setTermService(ITermService termService)
@Autowired public void setTaxonService(ITaxonService taxonService)
@Autowired public void setTaxonNodeService(ITaxonNodeService taxonNodeService)
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder
in class AbstractIdentifiableListController<Classification,IClassificationService>
@RequestMapping(value="{treeUuid}/childNodesOf/{taxonUuid}", method=GET) public java.util.List<TaxonNode> getChildNodesOfTaxon(@PathVariable(value="treeUuid") java.util.UUID treeUuid, @PathVariable(value="taxonUuid") java.util.UUID taxonUuid, @RequestParam(value="subtree",required=false) java.util.UUID subtreeUuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TaxonNode
s of the specified Taxon
in the Classification
. The
a given Rank
is ignored in this method but for consistency reasons it has been allowed to included it into the URI.
URI: /portal/classification/{treeUuid}/childNodesOf/{taxonUuid}
URI elements:
Classification
by its UUID - required.
Taxon
by its UUID. - required.
response
- request
- TaxonNode
entities initialized by
the NODE_INIT_STRATEGY
java.io.IOException
@RequestMapping(value="{treeUuid}/siblingsOf/{taxonUuid}", method=GET) public java.util.List<TaxonNode> getSiblingsOfTaxon(@PathVariable(value="treeUuid") java.util.UUID treeUuid, @PathVariable(value="taxonUuid") java.util.UUID taxonUuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@RequestMapping(value="{treeUuid}/pathFrom/{taxonUuid}/toRank/{rankUuid}", method=GET) public java.util.List<TaxonNode> getPathFromTaxonToRank(@PathVariable(value="treeUuid") java.util.UUID treeUuid, @PathVariable(value="taxonUuid") java.util.UUID taxonUuid, @PathVariable(value="rankUuid") java.util.UUID rankUuid, @RequestParam(value="subtree",required=false) java.util.UUID subtreeUuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TaxonNode
s from the base node to the node of the specified taxon.
URI:/portal/classification/{treeUuid}/pathFrom/{taxonUuid}/toRank/{rankUuid}
URI elements:
Classification
by its UUID - required.
Rank
Taxon
by its UUID. - required.
response
- request
- TaxonNode
entities initialized by
the NODE_INIT_STRATEGY
java.io.IOException
@RequestMapping(value="{treeUuid}/pathFrom/{taxonUuid}", method=GET) public java.util.List<TaxonNode> getPathFromTaxon(@PathVariable(value="treeUuid") java.util.UUID classificationUuid, @PathVariable(value="taxonUuid") java.util.UUID taxonUuid, @RequestParam(value="subtree",required=false) java.util.UUID subtreeUuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TaxonNode
s from the base node to the node of the specified taxon.
URI:/portal/classification/{treeUuid}/pathFrom/{taxonUuid}
URI elements:
Classification
by its UUID - required.
Taxon
by its UUID. - required.
response
- request
- TaxonNode
entities initialized by
the NODE_INIT_STRATEGY
java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.