Examples of execute()


Examples of org.xdams.page.command.QueryPageCommand.execute()

  @RequestMapping(value = "/search/{archive}/query", method = RequestMethod.GET)
  public String queryPage(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    QueryPageCommand queryPageCommand = new QueryPageCommand(request.getParameterMap(), modelMap);
    queryPageCommand.execute();
    QueryPageView pageView = new QueryPageView();
    WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
    pageView.generateView(workFlowBean, confBean, userBean, modelMap);
    modelMap.put("positionMap", pageView.getPositionMap());
    modelMap.put("positionAdminMap", pageView.getPositionAdminMap());
View Full Code Here

Examples of org.xdams.page.command.TitlePageCommand.execute()

  @RequestMapping(value = "/search/{archive}/title")
  public String titlePage(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    TitlePageCommand titlePageCommand = new TitlePageCommand(request.getParameterMap(), modelMap);
    titlePageCommand.execute();
    String pageName = MyRequest.getParameter("pageName", request);
    if (!pageName.equals("")) {
      modelMap.put("pageName", pageName);
      return "search/" + pageName;
    }
View Full Code Here

Examples of org.xdams.page.command.ViewPageCommand.execute()

  @RequestMapping(value = "/viewTab/{archive}/{pageName}", method = RequestMethod.GET)
  public String viewTab(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, @PathVariable String pageName, HttpServletRequest request, HttpServletResponse response) throws Exception {
    modelMap.put("pageName", pageName);
    common(confBean, userBean, archive, modelMap, request, response);
    ViewPageCommand viewPageCommand = new ViewPageCommand(request.getParameterMap(), modelMap);
    viewPageCommand.execute();
    Map<String, String> mapParams = new TreeMap<String, String>();
    mapParams.put("viewTab", pageName);
    mapParams.put("frontUrl", (String) modelMap.get("frontUrl"));
    try {
      mapParams.put("mediaURL", this.getClass().getClassLoader().getResource(confBean.getMediaPath()).getPath());
View Full Code Here

Examples of org.xdams.page.command.VocabolarioMultiCommand.execute()

  @RequestMapping(value = "/search/{archive}/vocabulary", method = RequestMethod.GET)
  public String vocabularyPage(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    VocabolarioMultiCommand vocabolarioMultiCommand = new VocabolarioMultiCommand(request.getParameterMap(), modelMap);
    vocabolarioMultiCommand.execute();
    if (MyRequest.getParameter("isExport", request.getParameterMap()).equalsIgnoreCase("true")) {
      return "search/vocabularyTxt";
    }
    if (!MyRequest.getParameter("jspOutPut", request.getParameterMap()).equalsIgnoreCase("")) {
      return "search/" + StringUtils.remove(MyRequest.getParameter("jspOutPut", request.getParameterMap()), ".jsp");
View Full Code Here

Examples of org.xdams.page.factory.AjaxFactory.execute()

    common(confBean, userBean, archive, modelMap, request, response);

    AjaxFactory ajaxFactory = new AjaxFactory(request, response, modelMap);
    AjaxBean ajaxBean = new AjaxBean();
    try {
      ajaxBean = ajaxFactory.execute();
    } catch (Exception e) {
      e.printStackTrace();
    }
    HttpHeaders responseHeaders = new HttpHeaders();
    responseHeaders.add("Content-Type", ajaxBean.getContentType().equals("") ? "text/xml; charset=iso-8859-1" : ajaxBean.getContentType());
View Full Code Here

Examples of org.xdams.page.factory.ManagingFactory.execute()

  @RequestMapping(value = "/{archive}/managing")
  public String managing(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    ManagingFactory managingFactory = new ManagingFactory(request.getParameterMap(), modelMap);
    ManagingBean managingBean = managingFactory.execute();
    System.out.println("xDamsController.managing() " + managingBean);
    return "managing/" + managingBean.getDispatchView();
  }

  @RequestMapping(value = "/{archive}/pdfView")
View Full Code Here

Examples of org.xdams.page.multiarchive.command.MultiQueryPageCommand.execute()

    common(confBean, userBean, archive, modelMap, request, response);
    Map<String, List<Archive>> usersArchives = new LinkedHashMap<String, List<Archive>>();
    serviceUser.loadArchives(userBean, usersArchives);
    modelMap.addAttribute("usersArchives", usersArchives);
    MultiQueryPageCommand queryPageCommand = new MultiQueryPageCommand(request.getParameterMap(), modelMap);
    queryPageCommand.execute();
    QueryPageView pageView = new QueryPageView();
    WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
    pageView.generateView(workFlowBean, confBean, userBean, modelMap);
    modelMap.put("positionMap", pageView.getPositionMap());
    modelMap.put("positionAdminMap", pageView.getPositionAdminMap());
View Full Code Here

Examples of org.xdams.page.multiarchive.command.MultiTitlePageCommand.execute()

  @RequestMapping(value = "/search/{archive}/title-multiarchive")
  public String titlePage(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    MultiTitlePageCommand multiTitlePageCommand = new MultiTitlePageCommand(request.getParameterMap(), modelMap);
    multiTitlePageCommand.execute();
    return "multiArchive/search/title-multiarchive";
  }

}
View Full Code Here

Examples of org.xdams.page.query.command.FindDocumentCommand.execute()

      if (MyRequest.getParameter("fromId", parameterMap).equals("")) {
        FindDocumentCommand findDocumentCommand = null;
        try {
          findDocumentCommand = new FindDocumentCommand(parameterMap, modelMap);
          queryResult = findDocumentCommand.execute(workFlowBean, xwconn);
          // mi setto il selid per le operazioni di raffinamento
          workFlowBean.getRequest().setAttribute("qrId", queryResult.id);
          QueryBean queryBean = new QueryBean();
          queryBean.setDb(workFlowBean.getAlias());
          System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
View Full Code Here

Examples of org.xdams.page.upload.command.AssociateCommand.execute()

  @RequestMapping(value = "/associate/{archive}/associateMenu")
  public String associateFile(@ModelAttribute("uploadBean") UploadBean uploadBean, @ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response)
      throws Exception {
    common(confBean, userBean, archive, modelMap, request, response);
    AssociateCommand associateCommand = new AssociateCommand(request.getParameterMap(), modelMap);
    associateCommand.execute();
    modelMap.addAttribute("uploadBean", uploadBean);

    return "upload/associateMenu";
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.