@Controller @RequestMapping(value="/portal/name/{uuid}") public class NamePortalController extends BaseController<TaxonName,INameService>
The syntax of the mapped service URIs contains the the {datasource-name} path element.
The available {datasource-name}s are defined in a configuration file which
is loaded by the UpdatableRoutingDataSource
. If the
UpdatableRoutingDataSource is not being used in the actual application
context any arbitrary {datasource-name} may be used.
Methods mapped at type level, inherited from super classes (BaseController
):
URI: /{datasource-name}/portal/name/{name-uuid} Get theTaxonName
instance identified by the{name-uuid}
. The returned TaxonName is initialized by the following strategy: -- NONE --
baseClass
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
NamePortalController() |
Modifier and Type | Method and Description |
---|---|
protected <CDM_BASE extends CdmBase> |
complementInitStrategy(java.lang.Class<CDM_BASE> clazz,
java.util.List<java.lang.String> pathProperties)
Implementations of the BaseController can override this method to
extend the
pathProperties to for example avoid
LazyInitializationExceptions which can happen when
BaseController.doGetMethod(UUID, Integer, Integer, Integer, Integer, HttpServletRequest, HttpServletResponse) is being used. |
java.util.List<TaxonNameDescription> |
doGetNameDescriptions(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the list of
TaxonNameDescription s of the Name associated with the
TaxonName instance identified by the {name-uuid} . |
java.lang.Object |
doGetNameRelations(java.util.UUID uuid,
java.lang.Integer pageNumber,
java.lang.Integer pageSize,
java.lang.Integer start,
java.lang.Integer limit,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.util.List<TypeDesignationBase> |
doGetTypeDesignations(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
java.util.List<TypeDesignationBase> |
doGetTypeDesignationsInHomotypicalGroup(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the list of
TypeDesignationBase s associated to any name in the same homotypical group to which
the TaxonName identified by the {name-uuid} belongs. |
static EntityInitStrategy |
getNameRelationsInitStrategy() |
void |
setService(INameService service) |
checkExistsAccessType, checkExistsAndAccess, doGet, doGetMethod, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseProperty, getClassificationOrError, getSubtreeOrError, initBinder, pageFromCollection
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
public static EntityInitStrategy getNameRelationsInitStrategy()
protected <CDM_BASE extends CdmBase> java.util.List<java.lang.String> complementInitStrategy(java.lang.Class<CDM_BASE> clazz, java.util.List<java.lang.String> pathProperties)
BaseController
pathProperties
to for example avoid
LazyInitializationExceptions
which can happen when
BaseController.doGetMethod(UUID, Integer, Integer, Integer, Integer, HttpServletRequest, HttpServletResponse)
is being used.complementInitStrategy
in class BaseController<TaxonName,INameService>
@Autowired public void setService(INameService service)
setService
in class AbstractController<TaxonName,INameService>
@RequestMapping(value="typeDesignations", method=GET) public java.util.List<TypeDesignationBase> doGetTypeDesignations(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TypeDesignationBase
s of the
TaxonName
instance identified by the {name-uuid}
.
URI: /{datasource-name}/portal/name/{name-uuid}/typeDesignations
request
- response
- TypeDesignationBase
entities which are initialized
using the following initialization strategy:
TYPEDESIGNATION_INIT_STRATEGY
java.io.IOException
@RequestMapping(value="typeDesignationsInHomotypicalGroup", method=GET) public java.util.List<TypeDesignationBase> doGetTypeDesignationsInHomotypicalGroup(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TypeDesignationBase
s associated to any name in the same homotypical group to which
the TaxonName
identified by the {name-uuid}
belongs.
URI: /{datasource-name}/name/{name-uuid}/typeDesignations
request
- response
- TypeDesignationBase
entities which are initialized
using the TYPEDESIGNATION_INIT_STRATEGY
java.io.IOException
@RequestMapping(value="taxonNameDescriptions", method=GET) public java.util.List<TaxonNameDescription> doGetNameDescriptions(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TaxonNameDescription
s of the Name associated with the
TaxonName
instance identified by the {name-uuid}
.
URI: /{datasource-name}/portal/name/{name-uuid}/descriptions
request
- response
- TaxonNameDescription
entities which are initialized
using the following initialization strategy:
NAMEDESCRIPTION_INIT_STRATEGY
java.io.IOException
@RequestMapping(value="nameRelations", method=GET) public java.lang.Object doGetNameRelations(@PathVariable(value="uuid") java.util.UUID uuid, @RequestParam(value="pageNumber",required=false) java.lang.Integer pageNumber, @RequestParam(value="pageSize",required=false) java.lang.Integer pageSize, @RequestParam(value="start",required=false) java.lang.Integer start, @RequestParam(value="limit",required=false) java.lang.Integer limit, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.