Package com.wordpress.salaboy.smarttasks.formbuilder.api

Examples of com.wordpress.salaboy.smarttasks.formbuilder.api.ConnectionData


     * @return
     */
    @RequestMapping(value = "/list/{entity}/{profile}", method = RequestMethod.GET)
    public String list(@PathVariable("entity") String entity,
            @PathVariable("profile") String profile, Model model) {
        helper.connect(new ConnectionData(entity));
        String stringTaskList = helper.getTaskList(profile);

        TaskListsData taskListdata = (TaskListsData) yaml.load(stringTaskList);
        Object[][] data = taskListdata.getData();
        model.addAttribute("data", data);
View Full Code Here


   * @throws InvalidTaskException
   *             if a task is not found
   */
  protected void getTaskForm(String entity, String id, String profile)
      throws InvalidTaskException {
    ConnectionData connectionData = new ConnectionData(entity);
    helper.connect(connectionData);
    String taskType = this.getTaskType();

    String stringTaskform = helper.getTaskForm(id, taskType, profile);
    TaskForm deserializedForm = (TaskForm) yaml.load(stringTaskform);
View Full Code Here

     */
    @RequestMapping(value = "/list/{entity}/{profile}", method = RequestMethod.GET)
    public String list(@PathVariable("entity") String entity,
            @PathVariable("profile") String profile, Model model) {
        logger.info("Let's get the Task List!");
        ConnectionData connectionData = new ConnectionData(entity);
        helper.connect(connectionData);
        String set = helper.getTaskList(profile);
//        TaskListDataSet set = taskListHelper.getDataSet(0,
//                taskListHelper.getDataCount());
        Yaml yaml = new Yaml();
View Full Code Here

    public String taskInfo(@PathVariable("id") String id,
            @PathVariable("entity") String entity,
            @PathVariable("name") String name,
            @PathVariable("profile") String profile, Model model) {
        logger.info("Let's get the Task List!");
        ConnectionData connectionData = new ConnectionData(entity);
        helper.connect(connectionData);
//        taskHelper = helper.getTaskSupportHelper(id, name.trim(), profile);
        try {
            String stringTaskInfo = helper.getTaskForm(id, name.trim(), profile);
            Yaml yaml = new Yaml();
View Full Code Here

            @PathVariable("entity") String entity,
            @PathVariable("name") String name,
            @PathVariable("document") String document,
            @PathVariable("profile") String profile, Model model) {
        if (helper != null) {
          helper.connect(new ConnectionData(entity));
            try {
                Map<String, Object> map = new HashMap<String, Object>();
                map.put("document", document);
                helper.executeTaskAction(action, map, taskId);
            } catch (InvalidTaskException e) {
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.smarttasks.formbuilder.api.ConnectionData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.