Package org.xdams.conf.master

Examples of org.xdams.conf.master.ConfBean


  }

  public void execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    String physDoc = MyRequest.getParameter("physDoc", parameterMap);
    UploadBean uploadBean = (UploadBean) modelMap.get("uploadBean");
    List<String> confControl = new ArrayList<String>();
    confControl.add("upload");
    try {
      UserBean userBean = (UserBean) modelMap.get("userBean");
      confBean = (ConfBean) modelMap.get("confBean");
      WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
      xwconn = connectionManager.getConnection(workFlowBean.getArchive());
      MultiEditingManager editingManager = new MultiEditingManager(parameterMap, confBean, userBean, workFlowBean);
      editingManager.setTheXML(new XMLBuilder(xwconn.getSingleXMLFromNumDoc(Integer.parseInt(physDoc)), "ISO-8859-1"));
      confBean = editingManager.rewriteMultipleConf(confControl);
      LoadUploadBean.loadUploadBean(uploadBean, confBean.getTheXMLConfUpload(), modelMap);
      System.out.println(uploadBean);
      // da prendere dentro workflowBean
      String archiveName = workFlowBean.getAlias();
      String domainName = userBean.getAccountRef();
      for (int i = 0; i < uploadBean.getCommandLine().size(); i++) {
View Full Code Here


  }

  public void execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    HttpServletRequest request = null;
    try {
      UserBean userBean = (UserBean) modelMap.get("userBean");
      confBean = (ConfBean) modelMap.get("confBean");
      WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
View Full Code Here

  }

  public void execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    String physDoc = MyRequest.getParameter("physDoc", parameterMap);
    String pathToView = MyRequest.getParameter("pathToView", parameterMap);
    UploadBean uploadBean = (UploadBean) modelMap.get("uploadBean");
    List<String> confControl = new ArrayList<String>();
    confControl.add("upload");
    try {
      UserBean userBean = (UserBean) modelMap.get("userBean");
      confBean = (ConfBean) modelMap.get("confBean");
      WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
      xwconn = connectionManager.getConnection(workFlowBean.getArchive());
      MultiEditingManager editingManager = new MultiEditingManager(parameterMap, confBean, userBean, workFlowBean);
      editingManager.setTheXML(new XMLBuilder(xwconn.getSingleXMLFromNumDoc(Integer.parseInt(physDoc)), "ISO-8859-1"));
      confBean = editingManager.rewriteMultipleConf(confControl);
      LoadUploadBean.loadUploadBean(uploadBean, confBean.getTheXMLConfUpload(), modelMap);
       if (!pathToView.equals("")) {
        File file = new File(pathToView);
        File[] files = file.listFiles();
        modelMap.put("files", files);
      }else{
View Full Code Here

  // il doc xml
  private XMLBuilder theXMLDoc = null;

  public int doStartTag() {
    try {
      ConfBean confBean = (ConfBean) pageContext.findAttribute("confBean");
      UserBean userBean = (UserBean) pageContext.findAttribute("userBean");
      JspWriter out = pageContext.getOut();
      // media.conf.xml
      XMLBuilder theXMLConfMedia = confBean.getTheXMLConfMedia();
      MediaBean mediaBean = new MediaBean();
      //System.out.println("AttachmentViewer.doStartTag() "+getMediaBuilder().getXML("ISO-8859-1"));
      //System.out.println("AttachmentViewer.doStartTag() "+theXMLConfMedia.getXML("ISO-8859-1"));
      mediaBean.setPhysDoc(getPhysDoc());
      mediaBean.setClipBoardType(getMediaBuilder().valoreNodo("/elemento/@clipBoardType"));
View Full Code Here

  private String theMultiEditingPath = "managing";

  public int doStartTag() {
    try {

      ConfBean confBean = (ConfBean) pageContext.findAttribute("confBean");

      UserBean userBean = (UserBean) pageContext.findAttribute("userBean");

      ViewBean viewBean = (ViewBean) pageContext.findAttribute("viewBean");

      EditingBean editingBean = (EditingBean) pageContext.findAttribute("editingBean");

      WorkFlowBean workFlowBean = (WorkFlowBean) pageContext.findAttribute("workFlowBean");

      JspWriter out = pageContext.getOut();

      HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
      if (request.getParameter("infoFlag") != null && request.getParameter("infoFlag").equals("true")) {
        return EVAL_BODY_INCLUDE;
      }

      MultiEditingManager editingManager = new MultiEditingManager(request.getParameterMap(), confBean, userBean, workFlowBean);
      if (editingBean != null) {
        editingManager.setTheXML(editingBean.getXmlBuilder());
      } else if (viewBean != null) {
        editingManager.setTheXML(viewBean.getXmlBuilder());
      }

      XMLBuilder builderManaging = null;
      if (getConfFile().equals("bar-vis")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarVis();
      } else if (getConfFile().equals("bar-query")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarQuery();
      } else if (getConfFile().equals("bar-preinsert")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarPreInsert();
      } else if (getConfFile().equals("bar-nav")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarNav();
      } else if (getConfFile().equals("bar-managing")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarManaging();
      } else if (getConfFile().equals("bar-edt")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarEdt();
      } else if (getConfFile().equals("bar-docedit")) {
        List<String> confControl = new ArrayList<String>();
        confControl.add(getConfFile());
        confBean = editingManager.rewriteMultipleConf(confControl);
        builderManaging = confBean.getTheXMLConfBarDocEdit();
      } else {
        builderManaging = new XMLBuilder("root");
      }

      // System.out.println(ExpressionEvaluationUtils.evaluateString(builderManaging.getXML("ISO-8859-1"), builderManaging.getXML("ISO-8859-1"), pageContext));
View Full Code Here

  // private ViewBean viewBean = null;

  public int doStartTag() {
    try {

      ConfBean confBean = (ConfBean) pageContext.findAttribute("confBean");

      UserBean userBean = (UserBean) pageContext.findAttribute("userBean");

      ViewBean viewBean = (ViewBean) pageContext.findAttribute("viewBean");

      WorkFlowBean workFlowBean = (WorkFlowBean) pageContext.findAttribute("workFlowBean");

      JspWriter out = pageContext.getOut();
      if (targetServlet.equals("")) {
        targetServlet = "_top";
      }
      TitleManager titleManager = new TitleManager(confBean.getTheXMLConfTitle());
      int numeroLivelli = hierPath.depth();
      String divHierPath = "";
      if (getHierMode().equals("")) {
        for (int i = 0; i < numeroLivelli - 1; i++) {
          int spaziatore = 18 * (i - 1);
View Full Code Here

  }

  public ManagingBean execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    ManagingBean managingBean = null;
    String physDoc = MyRequest.getParameter("physDoc", parameterMap); // myRequest.getParameter("physDoc");
    String makeAction = MyRequest.getParameter("makeAction", parameterMap); // myRequest.getParameter("makeAction");
    String theValue = MyRequest.getParameter("theValue", parameterMap); // myRequest.getParameter("theValue");
    String theXpath = MyRequest.getParameter("theXpath", parameterMap); // myRequest.getParameter("theXpath");
View Full Code Here

  }

  public ManagingBean execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    ManagingBean managingBean = null;
    String physDoc = MyRequest.getParameter("physDoc", parameterMap);// myRequest.getParameter("physDoc");
    String makeAction = MyRequest.getParameter("makeAction", parameterMap); // myRequest.getParameter("makeAction");
    String applyTo = MyRequest.getParameter("applyTo", parameterMap); // myRequest.getParameter("applyTo");
    String selid = MyRequest.getParameter("selid", parameterMap); // myRequest.getParameter("selid");
View Full Code Here

  }

  public void execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    PreInsertBean preInsertBean = null;
    List<String> confControl = new ArrayList<String>();
    confControl.add("docEdit");
    confControl.add("valoriControllati");
    confControl.add("titleManager");
    String physDoc = MyRequest.getParameter("physDoc", parameterMap);
    try {
      UserBean userBean = (UserBean) modelMap.get("userBean");
      confBean = (ConfBean) modelMap.get("confBean");
      WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean");
      preInsertBean = new PreInsertBean();
      // serve quando sono in preinsert dalla lookup
      if(modelMap.containsAttribute("srcArchive")){
        preInsertBean.setSrcArchive((String)modelMap.get("srcArchive"));
      }
      xwconn = connectionManager.getConnection(workFlowBean.getArchive());
      // Mi carico il file selezionato per l'inserimento se il physDoc e diverso da null
      if (!physDoc.equals("")) {
        // System.out.println("PreInsertPageCommand.execute() INIZIO CARICAMENTO DOCUMENTO SELEZIONATO");
        preInsertBean.setPhysDocSelected(Integer.parseInt(physDoc));
        String docXML = xwconn.getSingleXMLFromNumDoc(preInsertBean.getPhysDocSelected());
        preInsertBean.setDocXmlSelected(docXML);
        HierPath hierPath = xwconn.getHierPath(Integer.parseInt(physDoc));
        XMLBuilder theXMLDoc = new XMLBuilder(preInsertBean.getDocXmlSelected(), "ISO-8859-1");
        preInsertBean.setXmlBuilderSelected(theXMLDoc);
        preInsertBean.setDepthSelected(hierPath.depth());
        preInsertBean.setTitleSelected((xwconn.getTitle(xwconn.connection, xwconn.getTheDb(), Integer.parseInt(physDoc))).getTitle());
        MultiEditingManager editingManager = new MultiEditingManager(parameterMap, confBean, userBean, workFlowBean);
        editingManager.setTheXML(theXMLDoc);
        confBean = editingManager.rewriteMultipleConf(confControl);
        // System.out.println("PreInsertPageCommand.execute() FINE CARICAMENTO DOCUMENTO SELEZIONATO");
        // prendo il documento padre ma controllo che non sono il padre stesso...
        String ilPath = "/hierValues";
        preInsertBean.setXPathHierValues(ilPath);
        // System.out.println("aaaaaaaaaa " + "/" + ilPath + "/macroarea");
        int numeroMacroarea = (confBean.getTheXMLConfEditing()).contaNodi("/" + ilPath + "/macroarea");
        // System.out.println("numeroMacroarea " + numeroMacroarea);
        if (numeroMacroarea > 0) {
          int iLivelli = Integer.parseInt((confBean.getTheXMLConfEditing()).valoreNodo("/" + ilPath + "/@level"));
          int docFather = Integer.parseInt(physDoc);
          if (iLivelli > 0) {
            for (int i = 0; i < iLivelli; i++) {
              if (xwconn.getNumDocFather(docFather) > 0) {
                docFather = xwconn.getNumDocFather(docFather);
View Full Code Here

  }

  public AjaxBean execute() throws Exception {
    XWConnection xwconn = null;
    ConnectionManager connectionManager = new ConnectionManager();
    ConfBean confBean = null;
    AjaxBean ajaxBean = new AjaxBean();
    String laChiave = MyRequest.getParameter("key", req.getParameterMap());
    String ilValore = MyRequest.getParameter("value", req.getParameterMap());
    String filterQuery = MyRequest.getParameter("filterQuery", req.getParameterMap());
    WorkFlowBean workFlowBean = null;
View Full Code Here

TOP

Related Classes of org.xdams.conf.master.ConfBean

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.