@Controller @RequestMapping(value="/agent/{uuid}") public class AgentController extends AbstractIdentifiableController<AgentBase,IAgentService>
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}/agent/name/{agent-uuid} Get theAgentBase
instance identified by the{agent-uuid}
. The returned AgentBase is initialized by the default initialization strategy:AbstractController.DEFAULT_INIT_STRATEGY
URI: /{datasource-name}/agent/name/{agent-uuid}/annotation Returns aPager
on theAnnotation
s for theAgentBase
instance identified by the{agent-uuid}
. The returned AgentBase instances are initialized by the following strategy:#ANNOTATION_INIT_STRATEGY
baseClass
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
AgentController() |
Modifier and Type | Method and Description |
---|---|
Pager<TaxonNodeAgentRelation> |
doGetTaxonNodeAgentRelations(java.util.UUID uuid,
java.util.UUID classificationUuid,
java.util.UUID taxonUuid,
java.util.UUID relTypeUuid,
Rank rank,
java.lang.Integer pageNumber,
java.lang.Integer pageSize,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
See also
TaxonController#doGetTaxonNodeAgentRelations(UUID, UUID, Integer, Integer, HttpServletRequest, HttpServletResponse) |
java.util.List<java.lang.String> |
getTaxonNodeAgentRelationsInitStrategy() |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
void |
setService(IAgentService service) |
doGetTitleCache
checkExistsAccessType, checkExistsAndAccess, complementInitStrategy, doGet, doGetMethod, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseInstance, getCdmBaseProperty, getClassificationOrError, getSubtreeOrError, pageFromCollection
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
public java.util.List<java.lang.String> getTaxonNodeAgentRelationsInitStrategy()
@Autowired public void setService(IAgentService service)
setService
in class AbstractController<AgentBase,IAgentService>
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder
in class AbstractIdentifiableController<AgentBase,IAgentService>
@RequestMapping(value="taxonNodeAgentRelations", method=GET) public Pager<TaxonNodeAgentRelation> doGetTaxonNodeAgentRelations(@PathVariable(value="uuid") java.util.UUID uuid, @RequestParam(value="classification_uuid",required=false) java.util.UUID classificationUuid, @RequestParam(value="taxon_uuid",required=false) java.util.UUID taxonUuid, @RequestParam(value="relType_uuid",required=false) java.util.UUID relTypeUuid, @RequestParam(value="rank",required=false) Rank rank, @RequestParam(value="pageNumber",required=false) java.lang.Integer pageNumber, @RequestParam(value="pageSize",required=false) java.lang.Integer pageSize, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
TaxonController#doGetTaxonNodeAgentRelations(UUID, UUID, Integer, Integer, HttpServletRequest, HttpServletResponse)
uuid
- classificationUuid
- pageNumber
- pageSize
- request
- response
- java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.