Class MobileFormServerSideController
Object
MobileFormServerSideController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContrato de construcao de DataSourcesstatic classstatic interfacestatic final classstatic interfaceClasse helper para parse de String em um Objeto dinamico JavaScript que possa ser informado para outras classes server-sidestatic interfaceContrato de construcao de DataSources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteFormScript(String params, Integer panelId, String bridge, HttpServletResponse response, HttpServletRequest request) executeFormScript(String params, String processDefinitionId, String formKey, String bridge, HttpServletResponse response, HttpServletRequest request) executeFormScript(String processDefinitionId, String formKey, String bridge, HttpServletResponse response, HttpServletRequest request) executeFormValidator(String requestData, String processDefinitionId, String formKey, String validator, HttpServletResponse response) executeFormValidators(String requestData, String processDefinitionId, String formKey, HttpServletResponse response) executePanelScript(Integer panelId, String bridge, HttpServletResponse response, HttpServletRequest request) findDataSourceItemFromQuery(String sigla, String requestData, HttpServletResponse response) getDataPanelDataSource(Integer panelId, String datasource, HttpServletResponse response) getDataPanelDataSource(String requestData, Integer panelId, String datasource, Long offset, Long limit, HttpServletResponse response) getDataPanelDataSource(String requestData, Integer panelId, String datasource, HttpServletResponse response) getDataPanelDataSourceAsSQLScript(Integer panelId, String datasource, DatasourceConverterSettingsDTO settings, HttpServletResponse response) getDataSourceFromFormDef(String requestData, String processDefinitionId, String formKey, String datasource, Long offset, Long limit, HttpServletResponse response) getDataSourceFromFormDef(String requestData, String processDefinitionId, String formKey, String datasource, HttpServletResponse response) getDataSourceFromFormDef(String processDefinitionId, String formKey, String datasource, HttpServletResponse response) getDataSourceFromFormDefAsSQLScript(String processDefinitionId, String formKey, String datasource, DatasourceConverterSettingsDTO settings, HttpServletResponse response) getDataSourceFromQuery(String sigla, HttpServletResponse response) getDataSourceFromQueryAsSQLScript(String sigla, DatasourceConverterSettingsDTO settings, HttpServletResponse response) getGlobalQueryInfo(String sigla, HttpServletResponse response) getItemDataPanelDataSource(Integer panelId, String datasource, String requestData, HttpServletResponse response) getItemDataSourceFromFormDef(String processDefinitionId, String formKey, String datasource, String requestData, HttpServletResponse response) voidsetConexaoService(ConexaoService conexaoService) voidsetContextVariablesFactory(ContextVariablesFactory contextVariablesFactory) voidsetFormService(FormService formService) voidsetPanelService(PanelService panelService) voidsetQueryService(QueryService queryService) voidsetScriptService(ScriptService scriptService)
-
Constructor Details
-
MobileFormServerSideController
public MobileFormServerSideController()
-
-
Method Details
-
setConexaoService
-
setScriptService
-
setFormService
-
setQueryService
-
setPanelService
-
setContextVariablesFactory
-
getDataSourceFromQuery
@RequestMapping(value="/api/datasource/query/{sigla}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getDataSourceFromQuery(@PathVariable("sigla") String sigla, HttpServletResponse response) -
findDataSourceItemFromQuery
@RequestMapping(value="/api/datasource-item/query/{sigla}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO findDataSourceItemFromQuery(@PathVariable("sigla") String sigla, @RequestBody String requestData, HttpServletResponse response) -
getGlobalQueryInfo
@RequestMapping(value="/api/datasource-info/query/{sigla}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public GlobalQueryDTO getGlobalQueryInfo(@PathVariable("sigla") String sigla, HttpServletResponse response) -
getDataSourceFromQueryAsSQLScript
@RequestMapping(value="/api/datasource-dump/query/{sigla}", method=POST, produces="text/plain; charset=UTF-8") @ResponseBody public String getDataSourceFromQueryAsSQLScript(@PathVariable("sigla") String sigla, @RequestBody DatasourceConverterSettingsDTO settings, HttpServletResponse response) -
getDataSourceFromFormDef
@RequestMapping(value="/api/form-datasource/{processDefinitionId}/{formKey}/{datasource}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getDataSourceFromFormDef(@RequestBody String requestData, @PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("datasource") String datasource, @RequestParam(value="offset",required=false) Long offset, @RequestParam(value="limit",required=false) Long limit, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataSourceFromFormDef
@RequestMapping(value="/api/form-datasource/{processDefinitionId}/{formKey}/{datasource}/aggregates", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public Map<String,Number> getDataSourceFromFormDef(@RequestBody String requestData, @PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("datasource") String datasource, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataSourceFromFormDef
@RequestMapping(value="/api/form-datasource/{processDefinitionId}/{formKey}/{datasource}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getDataSourceFromFormDef(@PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("datasource") String datasource, HttpServletResponse response) throws IOException - Throws:
IOException
-
getItemDataSourceFromFormDef
@RequestMapping(value="/api/form-datasource-item/{processDefinitionId}/{formKey}/{datasource}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getItemDataSourceFromFormDef(@PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("datasource") String datasource, @RequestBody String requestData, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataSourceFromFormDefAsSQLScript
@RequestMapping(value="/api/form-datasource-dump/{processDefinitionId}/{formKey}/{datasource}", method=POST, produces="text/plain; charset=UTF-8") @ResponseBody public String getDataSourceFromFormDefAsSQLScript(@PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("datasource") String datasource, @RequestBody DatasourceConverterSettingsDTO settings, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataPanelDataSource
@RequestMapping(value="/api/panel-datasource/{panelId}/{datasource}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getDataPanelDataSource(@RequestBody String requestData, @PathVariable Integer panelId, @PathVariable("datasource") String datasource, @RequestParam(value="offset",required=false) Long offset, @RequestParam(value="limit",required=false) Long limit, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataPanelDataSource
@RequestMapping(value="/api/panel-datasource/{panelId}/{datasource}/aggregates", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public Map<String,Number> getDataPanelDataSource(@RequestBody String requestData, @PathVariable Integer panelId, @PathVariable("datasource") String datasource, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataPanelDataSource
@RequestMapping(value="/api/panel-datasource/{panelId}/{datasource}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getDataPanelDataSource(@PathVariable Integer panelId, @PathVariable("datasource") String datasource, HttpServletResponse response) throws IOException - Throws:
IOException
-
getItemDataPanelDataSource
@RequestMapping(value="/api/panel-datasource-item/{panelId}/{datasource}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public DatasourceDTO getItemDataPanelDataSource(@PathVariable Integer panelId, @PathVariable("datasource") String datasource, @RequestBody String requestData, HttpServletResponse response) throws IOException - Throws:
IOException
-
getDataPanelDataSourceAsSQLScript
@RequestMapping(value="/api/panel-datasource-dump/{panelId}/{datasource}", method=POST, produces="text/plain; charset=UTF-8") @ResponseBody public String getDataPanelDataSourceAsSQLScript(@PathVariable Integer panelId, @PathVariable("datasource") String datasource, @RequestBody DatasourceConverterSettingsDTO settings, HttpServletResponse response) throws IOException - Throws:
IOException
-
executeFormValidator
@RequestMapping(value="/api/form-validator/{processDefinitionId}/{formKey}/{validator}", method={POST,GET}, headers="Accept=application/json", produces="application/json") @ResponseBody public FormValidationResponseDTO executeFormValidator(@RequestBody String requestData, @PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("validator") String validator, HttpServletResponse response) throws IOException - Throws:
IOException
-
executeFormValidators
@RequestMapping(value="/api/form-validator/{processDefinitionId}/{formKey}", method={POST,GET}, headers="Accept=application/json", produces="application/json") @ResponseBody public Map<String,FormValidationResponseDTO> executeFormValidators(@RequestBody String requestData, @PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, HttpServletResponse response) throws IOException - Throws:
IOException
-
executeFormScript
@RequestMapping(value="/api/form-script/{processDefinitionId}/{formKey}/{bridge}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public String executeFormScript(@PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("bridge") String bridge, HttpServletResponse response, HttpServletRequest request) throws IOException - Throws:
IOException
-
executeFormScript
@RequestMapping(value="/api/form-script/{processDefinitionId}/{formKey}/{bridge}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public String executeFormScript(@RequestBody String params, @PathVariable("processDefinitionId") String processDefinitionId, @PathVariable("formKey") String formKey, @PathVariable("bridge") String bridge, HttpServletResponse response, HttpServletRequest request) throws IOException - Throws:
IOException
-
executePanelScript
@RequestMapping(value="/api/panel-script/{panelId}/{bridge}", method=GET, headers="Accept=application/json", produces="application/json") @ResponseBody public String executePanelScript(@PathVariable("panelId") Integer panelId, @PathVariable("bridge") String bridge, HttpServletResponse response, HttpServletRequest request) throws IOException - Throws:
IOException
-
executeFormScript
@RequestMapping(value="/api/panel-script/{panelId}/{bridge}", method=POST, headers="Accept=application/json", produces="application/json") @ResponseBody public String executeFormScript(@RequestBody String params, @PathVariable("panelId") Integer panelId, @PathVariable("bridge") String bridge, HttpServletResponse response, HttpServletRequest request) throws IOException - Throws:
IOException
-