@Controller @RequestMapping(value="/agent") public class AgentListController extends AbstractIdentifiableListController<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/ Depending on the URI parameters used this service returns either aPager
on or a List of theAgentBase
entities identified by the{agent-uuid}
. The returned AgentBase instances are initialized by the following strategy:AbstractController.DEFAULT_INIT_STRATEGY
URI Parameters to return a
Pager
:
- pageNumber the number of the page to be returned, the first page has the pageNumber = 1 - optional parameter
- pageSize the maximum number of entities returned per page (can be null to return all entities in a single page) - optional parameter
- type Further restricts the type of entities to be returned. If null the base type
<T>
is being used. - optional parameterURI Parameters to return a
List
:
- start The offset index from the start of the list. The first entity has the index = 0 - required parameter The start parameter is used to distinguish between the List and Pager variants!
- limit The maximum number of entities returned. - optional parameter
- type Further restricts the type of entities to be returned. If null the base type
<T>
is being used. - optional parameter
logger
DEFAULT_BATCH_THREAD_PRIORITY, DEFAULT_INIT_STRATEGY, DEFAULT_PAGE_SIZE, INCLUDE_UNPUBLISHED, initializationStrategy, NO_UNPUBLISHED, service, userHelper
Constructor and Description |
---|
AgentListController() |
Modifier and Type | Method and Description |
---|---|
void |
setService(IAgentService service) |
doFindByIdentifier, doFindByMarker, doFindByTitle, doGetUuidAndTitleCache, initBinder
doList, doPage, doPageByRestrictions, getClassificationOrError, getSubtreeOrError, pageByRestrictions
localizeTerms
getInitializationStrategy, readPathParameter, requestPathAndQuery, setInitializationStrategy
@Autowired public void setService(IAgentService service)
setService
in class AbstractController<AgentBase,IAgentService>
Copyright © 2007-2020 EDIT. All Rights Reserved.