Class MobileFormServerSideController

Object
MobileFormServerSideController

@Controller public class MobileFormServerSideController extends Object
  • Constructor Details

    • MobileFormServerSideController

      public MobileFormServerSideController()
  • Method Details

    • setConexaoService

      @Autowired public void setConexaoService(ConexaoService conexaoService)
    • setScriptService

      @Autowired public void setScriptService(ScriptService scriptService)
    • setFormService

      @Autowired public void setFormService(FormService formService)
    • setQueryService

      @Autowired public void setQueryService(QueryService queryService)
    • setPanelService

      @Autowired public void setPanelService(PanelService panelService)
    • setContextVariablesFactory

      @Autowired public void setContextVariablesFactory(ContextVariablesFactory contextVariablesFactory)
    • 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