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/07/15 02:49:08 UTC
svn commit: r1503094 - in
/manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler:
authorities/DCTM/AuthorityConnector.java connectors/DCTM/DCTM.java
Author: kwright
Date: Mon Jul 15 00:49:07 2013
New Revision: 1503094
URL: http://svn.apache.org/r1503094
Log:
Make documentum connector password safe.
Modified:
manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
Modified: manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java?rev=1503094&r1=1503093&r2=1503094&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java (original)
+++ manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java Mon Jul 15 00:49:07 2013
@@ -1123,27 +1123,29 @@ public class AuthorityConnector extends
Locale locale, ConfigParams parameters, String tabName)
throws ManifoldCFException, IOException
{
- String docbaseName = parameters.getParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_DOCBASE);
+ String docbaseName = parameters.getParameter(CONFIG_PARAM_DOCBASE);
if (docbaseName == null)
docbaseName = "";
- String docbaseUserName = parameters.getParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_USERNAME);
+ String docbaseUserName = parameters.getParameter(CONFIG_PARAM_USERNAME);
if (docbaseUserName == null)
docbaseUserName = "";
- String docbasePassword = parameters.getObfuscatedParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_PASSWORD);
+ String docbasePassword = parameters.getObfuscatedParameter(CONFIG_PARAM_PASSWORD);
if (docbasePassword == null)
docbasePassword = "";
+ else
+ docbasePassword = out.mapPasswordToKey(docbasePassword);
- String docbaseDomain = parameters.getParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_DOMAIN);
+ String docbaseDomain = parameters.getParameter(CONFIG_PARAM_DOMAIN);
if (docbaseDomain == null)
docbaseDomain = "";
- String caseInsensitiveUser = parameters.getParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_CASEINSENSITIVE);
+ String caseInsensitiveUser = parameters.getParameter(CONFIG_PARAM_CASEINSENSITIVE);
if (caseInsensitiveUser == null)
caseInsensitiveUser = "false";
- String useSystemAcls = parameters.getParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_USESYSTEMACLS);
+ String useSystemAcls = parameters.getParameter(CONFIG_PARAM_USESYSTEMACLS);
if (useSystemAcls == null)
useSystemAcls = "true";
@@ -1298,27 +1300,27 @@ public class AuthorityConnector extends
{
String docbaseName = variableContext.getParameter("docbasename");
if (docbaseName != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_DOCBASE,docbaseName);
+ parameters.setParameter(CONFIG_PARAM_DOCBASE,docbaseName);
String docbaseUserName = variableContext.getParameter("docbaseusername");
if (docbaseUserName != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_USERNAME,docbaseUserName);
+ parameters.setParameter(CONFIG_PARAM_USERNAME,docbaseUserName);
String docbasePassword = variableContext.getParameter("docbasepassword");
if (docbasePassword != null)
- parameters.setObfuscatedParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_PASSWORD,docbasePassword);
+ parameters.setObfuscatedParameter(CONFIG_PARAM_PASSWORD,variableContext.mapKeyToPassword(docbasePassword));
String docbaseDomain = variableContext.getParameter("docbasedomain");
if (docbaseDomain != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_DOMAIN,docbaseDomain);
+ parameters.setParameter(CONFIG_PARAM_DOMAIN,docbaseDomain);
String caseInsensitiveUser = variableContext.getParameter("usernamecaseinsensitive");
if (caseInsensitiveUser != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_CASEINSENSITIVE,caseInsensitiveUser);
+ parameters.setParameter(CONFIG_PARAM_CASEINSENSITIVE,caseInsensitiveUser);
String useSystemAcls = variableContext.getParameter("usesystemacls");
if (useSystemAcls != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.authorities.DCTM.AuthorityConnector.CONFIG_PARAM_USESYSTEMACLS,useSystemAcls);
+ parameters.setParameter(CONFIG_PARAM_USESYSTEMACLS,useSystemAcls);
String cacheLifetime = variableContext.getParameter("cachelifetime");
if (cacheLifetime != null)
Modified: manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java?rev=1503094&r1=1503093&r2=1503094&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java (original)
+++ manifoldcf/branches/CONNECTORS-737/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java Mon Jul 15 00:49:07 2013
@@ -2014,19 +2014,21 @@ public class DCTM extends org.apache.man
Locale locale, ConfigParams parameters, String tabName)
throws ManifoldCFException, IOException
{
- String docbaseName = parameters.getParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_DOCBASE);
+ String docbaseName = parameters.getParameter(CONFIG_PARAM_DOCBASE);
if (docbaseName == null)
docbaseName = "";
- String docbaseUserName = parameters.getParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_USERNAME);
+ String docbaseUserName = parameters.getParameter(CONFIG_PARAM_USERNAME);
if (docbaseUserName == null)
docbaseUserName = "";
- String docbasePassword = parameters.getObfuscatedParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PASSWORD);
+ String docbasePassword = parameters.getObfuscatedParameter(CONFIG_PARAM_PASSWORD);
if (docbasePassword == null)
docbasePassword = "";
- String docbaseDomain = parameters.getParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_DOMAIN);
+ else
+ docbasePassword = out.mapPasswordToKey(docbasePassword);
+ String docbaseDomain = parameters.getParameter(CONFIG_PARAM_DOMAIN);
if (docbaseDomain == null)
docbaseDomain = "";
- String webtopBaseUrl = parameters.getParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_WEBTOPBASEURL);
+ String webtopBaseUrl = parameters.getParameter(CONFIG_PARAM_WEBTOPBASEURL);
if (webtopBaseUrl == null)
webtopBaseUrl = "http://localhost/webtop/";
@@ -2099,23 +2101,23 @@ public class DCTM extends org.apache.man
{
String docbaseName = variableContext.getParameter("docbasename");
if (docbaseName != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_DOCBASE,docbaseName);
+ parameters.setParameter(CONFIG_PARAM_DOCBASE,docbaseName);
String docbaseUserName = variableContext.getParameter("docbaseusername");
if (docbaseUserName != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_USERNAME,docbaseUserName);
+ parameters.setParameter(CONFIG_PARAM_USERNAME,docbaseUserName);
String docbasePassword = variableContext.getParameter("docbasepassword");
if (docbasePassword != null)
- parameters.setObfuscatedParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PASSWORD,docbasePassword);
+ parameters.setObfuscatedParameter(CONFIG_PARAM_PASSWORD,variableContext.mapKeyToPassword(docbasePassword));
String docbaseDomain = variableContext.getParameter("docbasedomain");
if (docbaseDomain != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_DOMAIN,docbaseDomain);
+ parameters.setParameter(CONFIG_PARAM_DOMAIN,docbaseDomain);
String webtopBaseUrl = variableContext.getParameter("webtopbaseurl");
if (webtopBaseUrl != null)
- parameters.setParameter(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_WEBTOPBASEURL,webtopBaseUrl);
+ parameters.setParameter(CONFIG_PARAM_WEBTOPBASEURL,webtopBaseUrl);
return null;
}
@@ -2282,7 +2284,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION))
+ if (sn.getType().equals(CONFIG_PARAM_LOCATION))
{
String pathDescription = "_" + Integer.toString(k);
String pathOpName = "pathop" + pathDescription;
@@ -2397,7 +2399,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION))
+ if (sn.getType().equals(CONFIG_PARAM_LOCATION))
{
String pathDescription = "_" + Integer.toString(k);
out.print(
@@ -2530,7 +2532,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_OBJECTTYPE))
+ if (sn.getType().equals(CONFIG_PARAM_OBJECTTYPE))
{
String token = sn.getAttributeValue("token");
if (token != null && token.length() > 0)
@@ -2546,7 +2548,7 @@ public class DCTM extends org.apache.man
while (kk < sn.getChildCount())
{
SpecificationNode dsn = sn.getChild(kk++);
- if (dsn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_ATTRIBUTENAME))
+ if (dsn.getType().equals(CONFIG_PARAM_ATTRIBUTENAME))
{
String attr = dsn.getAttributeValue("attrname");
attrMap.put(attr,attr);
@@ -2706,7 +2708,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_FORMAT))
+ if (sn.getType().equals(CONFIG_PARAM_FORMAT))
{
String token = sn.getAttributeValue("value");
if (token != null && token.length() > 0)
@@ -2808,7 +2810,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_MAXLENGTH))
+ if (sn.getType().equals(CONFIG_PARAM_MAXLENGTH))
{
maxDocLength = sn.getAttributeValue("value");
}
@@ -2846,7 +2848,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHNAMEATTRIBUTE))
+ if (sn.getType().equals(CONFIG_PARAM_PATHNAMEATTRIBUTE))
{
pathNameAttribute = sn.getAttributeValue("value");
}
@@ -2858,7 +2860,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHMAP))
+ if (sn.getType().equals(CONFIG_PARAM_PATHMAP))
{
String pathMatch = sn.getAttributeValue("match");
String pathReplace = sn.getAttributeValue("replace");
@@ -2963,7 +2965,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION))
+ if (sn.getType().equals(CONFIG_PARAM_LOCATION))
ds.removeChild(i);
else
i++;
@@ -2986,7 +2988,7 @@ public class DCTM extends org.apache.man
}
// Path inserts won't happen until the very end
String path = variableContext.getParameter("specpath"+pathDescription);
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_LOCATION);
node.setAttribute("path",path);
ds.addChild(ds.getChildCount(),node);
i++;
@@ -2997,7 +2999,7 @@ public class DCTM extends org.apache.man
if (op != null && op.equals("Add"))
{
String path = variableContext.getParameter("specpath");
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_LOCATION);
node.setAttribute("path",path);
ds.addChild(ds.getChildCount(),node);
}
@@ -3100,7 +3102,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_OBJECTTYPE))
+ if (sn.getType().equals(CONFIG_PARAM_OBJECTTYPE))
ds.removeChild(i);
else
i++;
@@ -3111,7 +3113,7 @@ public class DCTM extends org.apache.man
while (i < y.length)
{
String fileType = y[i++];
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_OBJECTTYPE);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_OBJECTTYPE);
node.setAttribute("token",fileType);
String isAll = variableContext.getParameter("specfileallattrs_"+fileType);
if (isAll != null)
@@ -3122,7 +3124,7 @@ public class DCTM extends org.apache.man
int k = 0;
while (k < z.length)
{
- SpecificationNode attrNode = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_ATTRIBUTENAME);
+ SpecificationNode attrNode = new SpecificationNode(CONFIG_PARAM_ATTRIBUTENAME);
attrNode.setAttribute("attrname",z[k++]);
node.addChild(node.getChildCount(),attrNode);
}
@@ -3139,7 +3141,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_FORMAT))
+ if (sn.getType().equals(CONFIG_PARAM_FORMAT))
ds.removeChild(i);
else
i++;
@@ -3150,7 +3152,7 @@ public class DCTM extends org.apache.man
while (i < y.length)
{
String fileType = y[i++];
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_FORMAT);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_FORMAT);
node.setAttribute("value",fileType);
ds.addChild(ds.getChildCount(),node);
}
@@ -3164,7 +3166,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_MAXLENGTH))
+ if (sn.getType().equals(CONFIG_PARAM_MAXLENGTH))
ds.removeChild(i);
else
i++;
@@ -3172,7 +3174,7 @@ public class DCTM extends org.apache.man
if (x.length() > 0)
{
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_MAXLENGTH);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_MAXLENGTH);
node.setAttribute("value",x);
ds.addChild(ds.getChildCount(),node);
}
@@ -3186,14 +3188,14 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHNAMEATTRIBUTE))
+ if (sn.getType().equals(CONFIG_PARAM_PATHNAMEATTRIBUTE))
ds.removeChild(i);
else
i++;
}
if (xc.length() > 0)
{
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHNAMEATTRIBUTE);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_PATHNAMEATTRIBUTE);
node.setAttribute("value",xc);
ds.addChild(ds.getChildCount(),node);
}
@@ -3207,7 +3209,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHMAP))
+ if (sn.getType().equals(CONFIG_PARAM_PATHMAP))
ds.removeChild(i);
else
i++;
@@ -3232,7 +3234,7 @@ public class DCTM extends org.apache.man
// Inserts won't happen until the very end
String match = variableContext.getParameter("specmatch"+pathDescription);
String replace = variableContext.getParameter("specreplace"+pathDescription);
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHMAP);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_PATHMAP);
node.setAttribute("match",match);
node.setAttribute("replace",replace);
ds.addChild(ds.getChildCount(),node);
@@ -3245,7 +3247,7 @@ public class DCTM extends org.apache.man
{
String match = variableContext.getParameter("specmatch");
String replace = variableContext.getParameter("specreplace");
- SpecificationNode node = new SpecificationNode(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHMAP);
+ SpecificationNode node = new SpecificationNode(CONFIG_PARAM_PATHMAP);
node.setAttribute("match",match);
node.setAttribute("replace",replace);
ds.addChild(ds.getChildCount(),node);
@@ -3273,7 +3275,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_LOCATION))
+ if (sn.getType().equals(CONFIG_PARAM_LOCATION))
{
if (seenAny == false)
{
@@ -3312,7 +3314,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_OBJECTTYPE))
+ if (sn.getType().equals(CONFIG_PARAM_OBJECTTYPE))
{
if (seenAny == false)
{
@@ -3342,7 +3344,7 @@ public class DCTM extends org.apache.man
while (k < sn.getChildCount())
{
SpecificationNode dsn = sn.getChild(k++);
- if (dsn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_ATTRIBUTENAME))
+ if (dsn.getType().equals(CONFIG_PARAM_ATTRIBUTENAME))
{
String attrName = dsn.getAttributeValue("attrname");
out.print(
@@ -3382,7 +3384,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_FORMAT))
+ if (sn.getType().equals(CONFIG_PARAM_FORMAT))
{
if (seenAny == false)
{
@@ -3421,7 +3423,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_MAXLENGTH))
+ if (sn.getType().equals(CONFIG_PARAM_MAXLENGTH))
{
maxDocumentLength = sn.getAttributeValue("value");
}
@@ -3511,7 +3513,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHNAMEATTRIBUTE))
+ if (sn.getType().equals(CONFIG_PARAM_PATHNAMEATTRIBUTE))
{
pathNameAttribute = sn.getAttributeValue("value");
}
@@ -3548,7 +3550,7 @@ public class DCTM extends org.apache.man
while (i < ds.getChildCount())
{
SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(org.apache.manifoldcf.crawler.connectors.DCTM.DCTM.CONFIG_PARAM_PATHMAP))
+ if (sn.getType().equals(CONFIG_PARAM_PATHMAP))
{
String pathMatch = sn.getAttributeValue("match");
String pathReplace = sn.getAttributeValue("replace");