You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/10/23 19:00:47 UTC
svn commit: r1535073 -
/manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Author: kwright
Date: Wed Oct 23 17:00:47 2013
New Revision: 1535073
URL: http://svn.apache.org/r1535073
Log:
get/set authdomain value in rest API
Modified:
manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Modified: manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java?rev=1535073&r1=1535072&r2=1535073&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java (original)
+++ manifoldcf/branches/CONNECTORS-792/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java Wed Oct 23 17:00:47 2013
@@ -4528,6 +4528,7 @@ public class ManifoldCF extends org.apac
protected static final String CONNECTIONNODE_MATCH = "match";
protected static final String CONNECTIONNODE_MATCHDESCRIPTION = "match_description";
protected static final String CONNECTIONNODE_RATE = "rate";
+ protected static final String CONNECTIONNODE_AUTHDOMAIN = "authdomain";
// Output connection API support.
@@ -4691,6 +4692,12 @@ public class ManifoldCF extends org.apac
throw new ManifoldCFException("Connection prerequisite node requires a value");
connection.setPrerequisiteMapping(child.getValue());
}
+ else if (childType.equals(CONNECTIONNODE_AUTHDOMAIN))
+ {
+ if (child.getValue() == null)
+ throw new ManifoldCFException("Connection authdomain node requires a value");
+ connection.setAuthDomain(child.getValue());
+ }
else if (childType.equals(CONNECTIONNODE_DESCRIPTION))
{
if (child.getValue() == null)
@@ -4755,6 +4762,13 @@ public class ManifoldCF extends org.apac
connectionNode.addChild(connectionNode.getChildCount(),child);
}
+ if (connection.getAuthDomain() != null)
+ {
+ child = new ConfigurationNode(CONNECTIONNODE_AUTHDOMAIN);
+ child.setValue(connection.getAuthDomain());
+ connectionNode.addChild(connectionNode.getChildCount(),child);
+ }
+
ConfigParams cp = connection.getConfigParams();
child = new ConfigurationNode(CONNECTIONNODE_CONFIGURATION);
j = 0;