Package org.openbravo.dal.xml

Examples of org.openbravo.dal.xml.EntityXMLConverter.process()


            exc.setOptionIncludeChildren(true);
            exc.setOptionIncludeReferenced(false);
            exc.setOptionExportClientOrganizationReferences(true);
            StringWriter sw = new StringWriter();
            exc.setOutput(sw);
            exc.process(obq.list());
            final String xml = sw.toString();
            doc = DocumentHelper.parseText(xml);

            // PRODUCTS
            if (entityName.equals("ExternalPOS") && erp_pos != null) {
View Full Code Here


                        .createQuery("Product", whereClauseProduct);
                obq2.setFilterOnReadableClients(false);
                obq2.setFilterOnReadableOrganization(false);
                sw = new StringWriter();
                exc.setOutput(sw);
                exc.process(obq2.list());
                final String xml2 = sw.toString();
                doc = DocumentHelper.parseText(xml2);

                final Map<String, String> pBuy = priceBuyProductByPriceList(obq2);
                final Map<String, String> pSell = priceSellProductByPriceList(
View Full Code Here

        exc.setOptionIncludeChildren(true);
        exc.setOptionIncludeReferenced(false);
        exc.setOptionExportClientOrganizationReferences(true);
        final StringWriter sw = new StringWriter();
        exc.setOutput(sw);
        exc.process(obq3.list());

        final String xml = sw.toString();
        Document doc2 = null;
        try {
            doc2 = DocumentHelper.parseText(xml);
View Full Code Here

          exc.setOptionEmbedChildren(true);
          exc.setOptionIncludeChildren(true);
          exc.setOptionIncludeReferenced(false);
          exc.setOptionExportClientOrganizationReferences(true);
          exc.setOutput(sw);
          exc.process(obq.list());
          xml = sw.toString();
        }
      } else {
        final BaseOBObject result = OBDal.getInstance().get(entityName, id);
        if (result == null) {
View Full Code Here

        exc.setOptionEmbedChildren(true);
        exc.setOptionIncludeChildren(true);
        exc.setOptionIncludeReferenced(false);
        exc.setOptionExportClientOrganizationReferences(true);
        exc.setOutput(sw);
        exc.process(result);
        xml = sw.toString();
      }
    }
    if (request.getParameter("template") != null) {
      final String url = request.getRequestURL().toString();
View Full Code Here

            parameters);
        toExport.addAll(list);
      }

      if (toExport.size() > 0) {
        exc.process(toExport);
      }

    } finally {
      OBContext.getOBContext().setInAdministratorMode(prevMode);
    }
View Full Code Here

          moduleId, parameters);
      toExport.addAll(list);
    }

    if (toExport.size() > 0) {
      exc.process(toExport);
    }
    return out.toString();
  }

  // sort the datatable by id
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.