Package com.itedge.solutionmanager.domain.impl

Examples of com.itedge.solutionmanager.domain.impl.Solution


  public List<SolutionTaskInboxData> constructInboxDataList(List<Task> tasks, Locale currentLocale) {
    List<SolutionTaskInboxData> inboxList = new ArrayList<SolutionTaskInboxData>();
    Iterator<Task> taskIt = tasks.iterator();
    while(taskIt.hasNext()) {
      Task taskRecord = taskIt.next();
      Solution linkedSolution = solutionService.findEntityByProcessId(taskRecord.getProcessInstanceId());
      SolutionTaskInboxData inboxData = new SolutionTaskInboxData(linkedSolution, taskRecord, messageSource, currentLocale);
      inboxList.add(inboxData);
    }
    return inboxList;
  }
View Full Code Here


  @Autowired
  IProcessEntityService<Solution> solutionService;
 
    public boolean isRejected() {
      String currentProcId = Context.getExecutionContext().getProcessInstance().getProcessInstanceId();
        Solution linkedSolution = solutionService.findEntityByProcessId(currentProcId);   
        if (SolutionPhase.REJECTED.equals(linkedSolution.getPhase())) {
          return true;
        } else {
          return false;
        }
    }
View Full Code Here

        }
    }
   
    public boolean isCompleted() {
      String currentProcId = Context.getExecutionContext().getProcessInstance().getProcessInstanceId();
      Solution linkedSolution = solutionService.findEntityByProcessId(currentProcId);   
        if (SolutionPhase.REJECTED.equals(linkedSolution.getPhase()) || SolutionPhase.FINISHED.equals(linkedSolution.getPhase())) {
          return true;
        } else {
          return false;
        }
    } 
View Full Code Here

    return SolutionManagerConstants.DEFAULT_SIZE_PER_PAGE;
  }

  @Override
  protected void addModelAttributesForShow(Model model) {
    Solution solution = (Solution)model.asMap().get(getModelKeyForEntity());
    model.addAttribute("linkedCustomer", solution.getCustomer() != null ? solution.getCustomer() : new Customer())
  }
View Full Code Here

        return "redirect:/solutions/" + WebUtil.encodeUrlPathSegment(solution.getId().toString(), request);
    }

  @RequestMapping(params = "form", method = RequestMethod.GET)
    public String createForm(Model model) {
        model.addAttribute("solution", new Solution());
        return "solutions/create";
    }
View Full Code Here

  @RequestMapping(params = "searchForm", method = RequestMethod.POST, headers = "Accept=application/json")
    public @ResponseBody List<SolutionDto> searchAsyncForSolutions(@RequestParam(value = "searchName") String searchName,
        @RequestParam(value = "maxResults", required = false) Integer maxResults, HttpServletRequest request) {   
    Locale currentLocale = request.getLocale()
    List<SolutionDto> solutionDtoList = new ArrayList<SolutionDto>();
        Solution searchSolution = new Solution();
        searchSolution.setInitialInfo(searchName);
        searchSolution.setName(searchName);
        Iterator<Solution> it = solutionService.findEntitiesByCriteria(searchSolution, maxResults).iterator();
        while(it.hasNext()) {
          solutionDtoList.add(new SolutionDto(it.next(), messageSource, currentLocale));
        }
    return solutionDtoList;
View Full Code Here

TOP

Related Classes of com.itedge.solutionmanager.domain.impl.Solution

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.