Class N2oController
java.lang.Object
net.n2oapp.framework.autotest.run.N2oController
Контроллер n2o запросов для автотестов
-
Constructor Summary
ConstructorsConstructorDescriptionN2oController(net.n2oapp.framework.engine.modules.stack.DataProcessingStack dataProcessingStack, net.n2oapp.framework.api.ui.AlertMessageBuilder messageBuilder, net.n2oapp.framework.api.data.QueryProcessor queryProcessor, net.n2oapp.framework.engine.data.N2oOperationProcessor operationProcessor, net.n2oapp.framework.api.data.DomainProcessor domainProcessor, net.n2oapp.framework.api.ui.AlertMessagesConstructor messagesConstructor, net.n2oapp.framework.api.data.InvocationProcessor serviceProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigProperty(String key, Object value) net.n2oapp.framework.api.config.AppConfigconfig()org.springframework.http.ResponseEntity<byte[]>export(jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.GetDataResponse>getData(jakarta.servlet.http.HttpServletRequest request) net.n2oapp.framework.api.metadata.meta.page.Pagepage(jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.N2oResponse>sendErrorMessage(net.n2oapp.framework.api.exception.N2oException e) org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.SetDataResponse>voidsetUp(net.n2oapp.framework.config.N2oApplicationBuilder builder) org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.ValidationDataResponse>validateData(Object body, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
N2oController
@Autowired public N2oController(net.n2oapp.framework.engine.modules.stack.DataProcessingStack dataProcessingStack, net.n2oapp.framework.api.ui.AlertMessageBuilder messageBuilder, net.n2oapp.framework.api.data.QueryProcessor queryProcessor, net.n2oapp.framework.engine.data.N2oOperationProcessor operationProcessor, net.n2oapp.framework.api.data.DomainProcessor domainProcessor, net.n2oapp.framework.api.ui.AlertMessagesConstructor messagesConstructor, net.n2oapp.framework.api.data.InvocationProcessor serviceProvider)
-
-
Method Details
-
config
@GetMapping("/n2o/config") public net.n2oapp.framework.api.config.AppConfig config() -
page
@GetMapping({"/n2o/page/**","/n2o/page/","/n2o/page"}) public net.n2oapp.framework.api.metadata.meta.page.Page page(jakarta.servlet.http.HttpServletRequest request) -
getData
@GetMapping({"/n2o/data/**","/n2o/data/","/n2o/data"}) public org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.GetDataResponse> getData(jakarta.servlet.http.HttpServletRequest request) -
setData
@PostMapping({"/n2o/data/**","/n2o/data/","/n2o/data"}) public org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.SetDataResponse> setData(@RequestBody Object body, jakarta.servlet.http.HttpServletRequest request) -
validateData
@PostMapping(path={"/n2o/validation/**","/n2o/validation/","/n2o/validation"}) public org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.ValidationDataResponse> validateData(@RequestBody Object body, jakarta.servlet.http.HttpServletRequest request) -
export
@GetMapping({"/n2o/export/**","/n2o/export/","/n2o/export"}) public org.springframework.http.ResponseEntity<byte[]> export(jakarta.servlet.http.HttpServletRequest request) -
sendErrorMessage
@ExceptionHandler(net.n2oapp.framework.api.exception.N2oException.class) public org.springframework.http.ResponseEntity<net.n2oapp.framework.api.rest.N2oResponse> sendErrorMessage(net.n2oapp.framework.api.exception.N2oException e) -
setUp
public void setUp(net.n2oapp.framework.config.N2oApplicationBuilder builder) -
addConfigProperty
-