@Controller @RequestMapping(value="/name/{uuid}") public class NameController extends AbstractIdentifiableController<TaxonName,INameService>
Modifier and Type | Field and Description |
---|---|
static EntityInitStrategy |
FULL_TITLE_CACHE_INIT_STRATEGY |
static EntityInitStrategy |
NAME_CACHE_INIT_STRATEGY |
static EntityInitStrategy |
NAME_REGISTRATIONS_INIT_STRATEGY |
static EntityInitStrategy |
NAME_RELATIONS_INIT_STRATEGY |
static EntityInitStrategy |
TYPEDESIGNATION_INIT_STRATEGY |
baseClass
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
NameController() |
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<java.lang.String> |
doGetNameCache(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
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.Set<Registration> |
doGetRegistrations(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.util.List<TaggedText> |
doGetTaggedFullTitle(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.util.List<TaggedText> |
doGetTaggedName(java.util.UUID uuid,
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. |
void |
setService(INameService service) |
doGetTitleCache, initBinder
checkExistsAccessType, checkExistsAndAccess, doGet, doGetMethod, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseProperty, getClassificationOrError, getSubtreeOrError, pageFromCollection
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
public static final EntityInitStrategy TYPEDESIGNATION_INIT_STRATEGY
public static final EntityInitStrategy FULL_TITLE_CACHE_INIT_STRATEGY
public static final EntityInitStrategy NAME_RELATIONS_INIT_STRATEGY
public static final EntityInitStrategy NAME_CACHE_INIT_STRATEGY
public static final EntityInitStrategy NAME_REGISTRATIONS_INIT_STRATEGY
@Autowired public void setService(INameService service)
setService
in class AbstractController<TaxonName,INameService>
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>
@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}/name/{name-uuid}/typeDesignations
request
- response
- TypeDesignationBase
entities which are initialized
using the 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="nameCache", method=GET) public java.util.List<java.lang.String> doGetNameCache(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@RequestMapping(value="taggedName", method=GET) public java.util.List<TaggedText> doGetTaggedName(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@RequestMapping(value="taggedFullTitle", method=GET) public java.util.List<TaggedText> doGetTaggedFullTitle(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@RequestMapping(value="registrations", method=GET) public java.util.Set<Registration> doGetRegistrations(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
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.