Return-Path: X-Original-To: apmail-manifoldcf-commits-archive@www.apache.org Delivered-To: apmail-manifoldcf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E23AE758 for ; Tue, 26 Feb 2013 01:18:00 +0000 (UTC) Received: (qmail 80164 invoked by uid 500); 26 Feb 2013 01:18:00 -0000 Delivered-To: apmail-manifoldcf-commits-archive@manifoldcf.apache.org Received: (qmail 80116 invoked by uid 500); 26 Feb 2013 01:17:59 -0000 Mailing-List: contact commits-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list commits@manifoldcf.apache.org Received: (qmail 80109 invoked by uid 99); 26 Feb 2013 01:17:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 01:17:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 01:17:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D2AC12388900; Tue, 26 Feb 2013 01:17:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1449988 - /manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java Date: Tue, 26 Feb 2013 01:17:39 -0000 To: commits@manifoldcf.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130226011739.D2AC12388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kwright Date: Tue Feb 26 01:17:39 2013 New Revision: 1449988 URL: http://svn.apache.org/r1449988 Log: Include column name as well as its value Modified: manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java Modified: manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java?rev=1449988&r1=1449987&r2=1449988&view=diff ============================================================================== --- manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java (original) +++ manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java Tue Feb 26 01:17:39 2013 @@ -1650,6 +1650,8 @@ public class ManifoldCF extends org.apac protected static final String API_CONNECTIONNAMENODE = "connection_name"; protected final static String API_ROWNODE = "row"; protected final static String API_COLUMNNODE = "column"; + protected final static String API_NAMENODE = "name"; + protected final static String API_VALUENODE = "value"; protected final static String API_ACTIVITYNODE = "activity"; // Connector nodes @@ -2916,7 +2918,12 @@ public class ManifoldCF extends org.apac valueToUse = ""; else valueToUse = value.toString(); - columnValue.setValue(valueToUse); + ConfigurationNode nameNode = new ConfigurationNode(API_NAMENODE); + nameNode.setValue(columnName); + columnValue.addChild(columnValue.getChildCount(),nameNode); + ConfigurationNode valueNode = new ConfigurationNode(API_VALUENODE); + valueNode.setValue(valueToUse); + columnValue.addChild(columnValue.getChildCount(),valueNode); rowValue.addChild(rowValue.getChildCount(),columnValue); } output.addChild(output.getChildCount(),rowValue);