manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1528372 - in /manifoldcf/trunk/connectors/sharepoint/connector/src/main: java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
Date Wed, 02 Oct 2013 08:45:28 GMT
Author: kwright
Date: Wed Oct  2 08:45:27 2013
New Revision: 1528372

URL: http://svn.apache.org/r1528372
Log:
Finish refactoring SharePoint connector UI.

Added:
    manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
  (with props)
Modified:
    manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java

Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java?rev=1528372&r1=1528371&r2=1528372&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
(original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
Wed Oct  2 08:45:27 2013
@@ -3552,403 +3552,13 @@ public class SharePointRepository extend
   public void viewSpecification(IHTTPOutput out, Locale locale, DocumentSpecification ds)
     throws ManifoldCFException, IOException
   {
-    // Display path rules
-    out.print(
-"<table class=\"displaytable\">\n"+
-"  <tr>\n"
-    );
-    int i = 0;
-    int l = 0;
-    boolean seenAny = false;
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("startpoint"))
-      {
-        String site = sn.getAttributeValue("site");
-        String lib = sn.getAttributeValue("lib");
-        String siteLib = site + "/" + lib + "/";
-
-        // Old-style path.
-        // There will be an inclusion or exclusion rule for every entry in the path rules
for this startpoint, so loop through them.
-        int j = 0;
-        while (j < sn.getChildCount())
-        {
-          SpecificationNode node = sn.getChild(j++);
-          if (node.getType().equals("include") || node.getType().equals("exclude"))
-          {
-            String matchPart = node.getAttributeValue("match");
-            String ruleType = node.getAttributeValue("type");
-            // Whatever happens, we're gonna display a rule here, so go ahead and set that
up.
-            if (seenAny == false)
-            {
-              seenAny = true;
-              out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathRules")
+ "</nobr></td>\n"+
-"    <td class=\"boxcell\">\n"+
-"      <table class=\"formtable\">\n"+
-"        <tr class=\"formheaderrow\">\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathMatch")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.RuleType")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Action")
+ "</nobr></td>\n"+
-"        </tr>\n"
-              );
-            }
-            String action = node.getType();
-            // Display the path rule corresponding to this match rule
-            // The first part comes from the site/library
-            String completePath;
-            // The match applies to only the file portion.  Therefore, there are TWO rules
needed to emulate: sitelib/<match>, and sitelib/*/<match>
-            completePath = siteLib + matchPart;
-            out.print(
-"        <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-"          <td class=\"formcolumncell\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(completePath)+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.file")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+action+"</nobr></td>\n"+
-"        </tr>\n"
-            );
-            l++;
-            if (ruleType.equals("file") && !matchPart.startsWith("*"))
-            {
-              completePath = siteLib + "*/" + matchPart;
-              out.print(
-"        <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-"          <td class=\"formcolumncell\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(completePath)+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.file")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+action+"</nobr></td>\n"+
-"        </tr>\n"
-              );
-              l++;
-            }
-          }
-        }
-      }
-      else if (sn.getType().equals("pathrule"))
-      {
-        String path = sn.getAttributeValue("match");
-        String action = sn.getAttributeValue("action");
-        String ruleType = sn.getAttributeValue("type");
-        if (seenAny == false)
-        {
-          seenAny = true;
-          out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathRules")
+ "</nobr></td>\n"+
-"    <td class=\"boxcell\">\n"+
-"      <table class=\"formtable\">\n"+
-"        <tr class=\"formheaderrow\">\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathMatch")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.RuleType")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Action")
+ "</nobr></td>\n"+
-"        </tr>\n"
-          );
-        }
-        out.print(
-"        <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-"          <td class=\"formcolumncell\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(path)+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+ruleType+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+action+"</nobr></td>\n"+
-"        </tr>\n"
-        );
-        l++;
-      }
-    }
-    if (seenAny)
-    {
-      out.print(
-"      </table>\n"+
-"    </td>\n"
-      );
-    }
-    else
-    {
-      out.print(
-"    <td colspan=\"2\" class=\"message\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.NoDocumentsWillBeIncluded")
+ "</nobr></td>\n"
-      );
-    }
-    out.print(
-"  </tr>\n"
-    );
-  
-    // Finally, display metadata rules
-    out.print(
-"  <tr>\n"
-    );
-
-    i = 0;
-    l = 0;
-    seenAny = false;
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("startpoint"))
-      {
-        // Old-style
-        String site = sn.getAttributeValue("site");
-        String lib = sn.getAttributeValue("lib");
-        String path = site + "/" + lib + "/*";
-        
-        String allmetadata = sn.getAttributeValue("allmetadata");
-        StringBuilder metadataFieldList = new StringBuilder();
-        if (allmetadata == null || !allmetadata.equals("true"))
-        {
-          int j = 0;
-          while (j < sn.getChildCount())
-          {
-            SpecificationNode node = sn.getChild(j++);
-            if (node.getType().equals("metafield"))
-            {
-              String value = node.getAttributeValue("value");
-              if (metadataFieldList.length() > 0)
-                metadataFieldList.append(", ");
-              metadataFieldList.append(value);
-            }
-          }
-          allmetadata = "false";
-        }
-        if (allmetadata.equals("true") || metadataFieldList.length() > 0)
-        {
-          if (seenAny == false)
-          {
-            seenAny = true;
-            out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Metadata2")
+ "</nobr></td>\n"+
-"    <td class=\"boxcell\">\n"+
-"      <table class=\"formtable\">\n"+
-"        <tr class=\"formheaderrow\">\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathMatch")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Action")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.AllMetadata")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Fields")
+ "</nobr></td>\n"+
-"        </tr>\n"
-            );
-          }
-          out.print(
-"        <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-"          <td class=\"formcolumncell\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(path)+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.include2")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+allmetadata+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\">"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(metadataFieldList.toString())+"</td>\n"+
-"        </tr>\n"
-          );
-          l++;
-        }
-      }
-      else if (sn.getType().equals("metadatarule"))
-      {
-        String path = sn.getAttributeValue("match");
-        String action = sn.getAttributeValue("action");
-        String allmetadata = sn.getAttributeValue("allmetadata");
-        StringBuilder metadataFieldList = new StringBuilder();
-        if (action.equals("include"))
-        {
-          if (allmetadata == null || !allmetadata.equals("true"))
-          {
-            int j = 0;
-            while (j < sn.getChildCount())
-            {
-              SpecificationNode node = sn.getChild(j++);
-              if (node.getType().equals("metafield"))
-              {
-                String fieldName = node.getAttributeValue("value");
-                if (metadataFieldList.length() > 0)
-                  metadataFieldList.append(", ");
-                metadataFieldList.append(fieldName);
-              }
-            }
-            allmetadata = "false";
-          }
-        }
-        else
-          allmetadata = "";
-        if (seenAny == false)
-        {
-          seenAny = true;
-          out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Metadata2")
+ "</nobr></td>\n"+
-"    <td class=\"boxcell\">\n"+
-"      <table class=\"formtable\">\n"+
-"        <tr class=\"formheaderrow\">\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathMatch")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Action")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.AllMetadata")
+ "</nobr></td>\n"+
-"          <td class=\"formcolumnheader\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Fields")
+ "</nobr></td>\n"+
-"        </tr>\n"
-          );
-        }
-        out.print(
-"        <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-"          <td class=\"formcolumncell\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(path)+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+action+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\"><nobr>"+allmetadata+"</nobr></td>\n"+
-"          <td class=\"formcolumncell\">"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(metadataFieldList.toString())+"</td>\n"+
-"        </tr>\n"
-        );
-        l++;
-      }
-    }
-    if (seenAny)
-    {
-      out.print(
-"      </table>\n"+
-"    </td>\n"
-      );
-    }
-    else
-    {
-      out.print(
-"    <td colspan=\"2\" class=\"message\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.NoMetadataWillBeIncluded")
+ "</nobr></td>\n"
-      );
-    }
-    out.print(
-"  </tr>\n"+
-"  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
-    );
-    // Find whether security is on or off
-    i = 0;
-    boolean securityOn = true;
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("security"))
-      {
-        String securityValue = sn.getAttributeValue("value");
-        if (securityValue.equals("off"))
-          securityOn = false;
-        else if (securityValue.equals("on"))
-          securityOn = true;
-      }
-    }
-    out.print(
-"  <tr>\n"+
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.Security2")
+ "</nobr></td>\n"+
-"    <td class=\"value\"><nobr>"+(securityOn?Messages.getBodyString(locale,"SharePointRepository.Enabled2"):Messages.getBodyString(locale,"SharePointRepository.Disabled"))+"</nobr></td>\n"+
-"  </tr>\n"+
-"\n"+
-"  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
-    );
-    // Go through looking for access tokens
-    seenAny = false;
-    i = 0;
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("access"))
-      {
-        if (seenAny == false)
-        {
-          out.print(
-"  <tr><td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.AccessToken")
+ "</nobr></td>\n"+
-"    <td class=\"value\">\n"
-          );
-          seenAny = true;
-        }
-        String token = sn.getAttributeValue("token");
-        out.print(
-"      <nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(token)+"</nobr><br/>\n"
-        );
-      }
-    }
-
-    if (seenAny)
-    {
-      out.print(
-"    </td>\n"+
-"  </tr>\n"
-      );
-    }
-    else
-    {
-      out.print(
-"  <tr><td class=\"message\" colspan=\"2\">" + Messages.getBodyString(locale,"SharePointRepository.NoAccessTokensSpecified")
+ "</td></tr>\n"
-      );
-    }
-    out.print(
-"  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
-    );
-    // Find the path-name metadata attribute name
-    i = 0;
-    String pathNameAttribute = "";
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("pathnameattribute"))
-      {
-        pathNameAttribute = sn.getAttributeValue("value");
-      }
-    }
-    out.print(
-"  <tr>\n"
-    );
-    if (pathNameAttribute.length() > 0)
-    {
-      out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathMetadataAttributeName")
+ "</nobr></td>\n"+
-"    <td class=\"value\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(pathNameAttribute)+"</nobr></td>\n"
-      );
-    }
-    else
-    {
-      out.print(
-"    <td class=\"message\" colspan=\"2\">" + Messages.getBodyString(locale,"SharePointRepository.NoPathNameMetadataAttributeSpecified")
+ "</td>\n"
-      );
-    }
-    out.print(
-"  </tr>\n"+
-"\n"+
-"  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-"\n"+
-"  <tr>\n"+
-"\n"
-    );
-    // Find the path-value mapping data
-    i = 0;
-    org.apache.manifoldcf.crawler.connectors.sharepoint.MatchMap matchMap = new org.apache.manifoldcf.crawler.connectors.sharepoint.MatchMap();
-    while (i < ds.getChildCount())
-    {
-      SpecificationNode sn = ds.getChild(i++);
-      if (sn.getType().equals("pathmap"))
-      {
-        String pathMatch = sn.getAttributeValue("match");
-        String pathReplace = sn.getAttributeValue("replace");
-        matchMap.appendMatchPair(pathMatch,pathReplace);
-      }
-    }
-    if (matchMap.getMatchCount() > 0)
-    {
-      out.print(
-"    <td class=\"description\"><nobr>" + Messages.getBodyString(locale,"SharePointRepository.PathValueMapping")
+ "</nobr></td>\n"+
-"    <td class=\"value\">\n"+
-"      <table class=\"displaytable\">\n"
-      );
-      i = 0;
-      while (i < matchMap.getMatchCount())
-      {
-        String matchString = matchMap.getMatchString(i);
-        String replaceString = matchMap.getReplaceString(i);
-        out.print(
-"        <tr>\n"+
-"          <td class=\"value\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(matchString)+"</nobr></td>\n"+
-"          <td class=\"value\">==></td>\n"+
-"          <td class=\"value\"><nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(replaceString)+"</nobr></td>\n"+
-"        </tr>\n"
-        );
-        i++;
-      }
-      out.print(
-"      </table>\n"+
-"    </td>\n"
-      );
-    }
-    else
-    {
-      out.print(
-"    <td class=\"message\" colspan=\"2\">" + Messages.getBodyString(locale,"SharePointRepository.NoMappingsSpecified")
+ "</td>\n"
-      );
-    }
-    out.print(
-"  </tr>\n"+
-"</table>\n"
-    );
+    Map<String,Object> velocityContext = new HashMap<String,Object>();
+    
+    fillInSecurityTab(velocityContext,out,ds);
+    fillInPathsTab(velocityContext,out,ds);
+    fillInMetadataTab(velocityContext,out,ds);
+    
+    Messages.outputResourceWithVelocity(out,locale,"viewSpecification.html",velocityContext);
   }
 
   protected static class ExecuteMethodThread extends Thread

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html?rev=1528372&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
(added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
Wed Oct  2 08:45:27 2013
@@ -0,0 +1,138 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<table class="displaytable">
+  <tr>
+#if($RULES.size() != 0)
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathRules'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMatch'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.RuleType'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Action'))</nobr></td>
+        </tr>
+  
+  #set($rownumber = 0)
+  #foreach($rule in $RULES)
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell"><nobr>$Encoder.bodyEscape($rule.get('THEPATH'))</nobr></td>
+          <td class="formcolumncell"><nobr>$rule.get('THETYPE')</nobr></td>
+          <td class="formcolumncell"><nobr>$rule.get('THEACTION')</nobr></td>
+        </tr>
+    #set($rownumber = $rownumber + 1)
+  #end
+      </table>
+    </td>
+#else
+    <td colspan="2" class="message"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoDocumentsWillBeIncluded'))</nobr></td>
+#end
+  </tr>
+  
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  <tr>
+#if($METADATARULES.size() > 0)
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Metadata2'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMatch'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Action'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.AllMetadata'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Fields'))</nobr></td>
+        </tr>
+
+  #set($rownumber = 0)
+  #foreach($metadatarule in $METADATARULES)
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell"><nobr>$Encoder.bodyEscape($metadatarule.get('THEPATH'))</nobr></td>
+          <td class="formcolumncell"><nobr>$metadatarule.get('THEACTION')</nobr></td>
+          <td class="formcolumncell"><nobr>$metadatarule.get('ALLFLAG')</nobr></td>
+          <td class="formcolumncell">$Encoder.bodyEscape($metadatarule.get('FIELDS'))+"</td>
+        </tr>
+    #set($rownumber = $rownumber + 1)
+  #end
+      </table>
+    </td>
+#else
+    <td colspan="2" class="message"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMetadataWillBeIncluded'))</nobr></td>
+#end
+  </tr>
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Security2'))</nobr></td>
+    <td class="value"><nobr>$Encoder.bodyEscape($SECURITY)</nobr></td>
+  </tr>
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+  
+  <tr>
+#if($ACCESSTOKENS.size() > 0)
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.AccessToken'))</nobr></td>
+    <td class="value">
+  #foreach($token in $ACCESSTOKENS)
+      <nobr>$Encoder.bodyEscape($token)</nobr><br/>
+  #end
+    </td>
+  </tr>
+#else
+  <tr><td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoAccessTokensSpecified'))</td></tr>
+#end
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+  
+  <tr>
+#if($PATHNAMEATTRIBUTE.length() > 0)
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMetadataAttributeName'))</nobr></td>
+    <td class="value"><nobr>$Encoder.bodyEscape($PATHNAMEATTRIBUTE)</nobr></td>
+#else
+    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoPathNameMetadataAttributeSpecified'))</td>
+#end
+  </tr>
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  <tr>
+#if($MAPLIST.size() > 0)
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathValueMapping'))</nobr></td>
+    <td class="value">
+      <table class="displaytable">
+  #foreach($mapitem in $MAPLIST)
+        <tr>
+          <td class="value"><nobr>$Encoder.bodyEscape($mapitem.get('MATCH'))</nobr></td>
+          <td class="value">==></td>
+          <td class="value"><nobr>$Encoder.bodyEscape($mapitem.get('REPLACE'))</nobr></td>
+        </tr>
+  #end
+      </table>
+    </td>
+#else
+    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMappingsSpecified'))</td>
+#end
+  </tr>
+</table>

Propchange: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewSpecification.html
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message