manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1528269 [3/3] - in /manifoldcf/trunk/connectors/sharepoint/connector/src/main: java/org/apache/manifoldcf/crawler/connectors/sharepoint/ native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/ resources/org/apache/manifoldcf/craw...
Date Tue, 01 Oct 2013 23:34:58 GMT
Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_en_US.properties?rev=1528269&r1=1528268&r2=1528269&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_en_US.properties (original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_en_US.properties Tue Oct  1 23:34:58 2013
@@ -20,6 +20,9 @@ SharePointRepository.AddListToRulePath=A
 SharePointRepository.PleaseSelectAListFirst=Please select a list first
 SharePointRepository.AddListToMetadataRulePath=Add List to Metadata Rule Path
 
+SharePointRepository.AddToMappings=Add to mappings
+SharePointRepository.AddPathMapping=Add Path Mapping
+
 SharePointRepository.NoAccessTokensPresent=No access tokens present
 SharePointRepository.NoAccessTokensSpecified=No access tokens specified
 SharePointRepository.Server=Server
@@ -47,7 +50,6 @@ SharePointRepository.Action=Action
 SharePointRepository.InsertNewRule=Insert New Rule
 SharePointRepository.Delete=Delete
 SharePointRepository.DeleteRule=Delete rule #
-SharePointRepository.InsertNewRule=Insert New Rule
 SharePointRepository.NoDocumentsCurrentlyIncluded=No documents currently included
 SharePointRepository.AddNewRule=Add New Rule
 SharePointRepository.File=File
@@ -66,8 +68,6 @@ SharePointRepository.PathMatch=Path matc
 SharePointRepository.Action=Action
 SharePointRepository.AllMetadata=All metadata?
 SharePointRepository.Fields=Fields
-SharePointRepository.InsertNewRule=Insert New Rule
-SharePointRepository.AddNewRule=Add New Rule
 SharePointRepository.ResetPath=Reset Path
 SharePointRepository.PathMetadata=Path metadata:
 SharePointRepository.AttributeName=Attribute name:
@@ -83,7 +83,7 @@ SharePointRepository.Metadata2=Metadata:
 SharePointRepository.include2=include
 SharePointRepository.NoMetadataWillBeIncluded=No metadata will be included
 SharePointRepository.AccessToken=Access tokens:
-SharePointRepository.PathMetadataAttributeName:=Path metadata attribute name:
+SharePointRepository.PathMetadataAttributeName=Path metadata attribute name:
 SharePointRepository.NoPathNameMetadataAttributeSpecified=No path-name metadata attribute specified
 SharePointRepository.PathValueMapping=Path-value mapping:
 SharePointRepository.NoMappingsSpecified=No mappings specified
@@ -110,7 +110,6 @@ SharePointRepository.MatchStringCannotBe
 SharePointRepository.MatchStringMustBeValidRegularExpression=Match string must be valid regular expression
 SharePointRepository.InsertNewRuleBeforeRule=Insert new rule before rule #
 SharePointRepository.DeleteRule=Delete rule #
-SharePointRepository.InsertNewRuleBeforeRule=Insert new rule before rule #
 SharePointRepository.NewRule=New rule:
 SharePointRepository.ResetRulePath=Reset Rule Path
 SharePointRepository.RemoveFromRulePath=Remove from Rule Path

Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_ja_JP.properties?rev=1528269&r1=1528268&r2=1528269&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_ja_JP.properties (original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/sharepoint/common_ja_JP.properties Tue Oct  1 23:34:58 2013
@@ -20,6 +20,9 @@ SharePointRepository.AddListToRulePath=�
 SharePointRepository.PleaseSelectAListFirst=最初のリストを選択してください
 SharePointRepository.AddListToMetadataRulePath=メタデータ·ルールのパスに一覧を追加します
 
+SharePointRepository.AddToMappings=Add to mappings
+SharePointRepository.AddPathMapping=Add Path Mapping
+
 SharePointRepository.NoAccessTokensPresent=アクセストークンが存在しません
 SharePointRepository.NoAccessTokensSpecified=アクセストークンが未定義です
 SharePointRepository.Server=サーバ

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration.js
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration.js?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration.js (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration.js Tue Oct  1 23:34:58 2013
@@ -0,0 +1,127 @@
+<!--
+ 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.
+-->
+
+<script type="text/javascript">
+<!--
+function ShpDeleteCertificate(aliasName)
+{
+  editconnection.shpkeystorealias.value = aliasName;
+  editconnection.configop.value = "Delete";
+  postForm();
+}
+
+function ShpAddCertificate()
+{
+  if (editconnection.shpcertificate.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.ChooseACertificateFile'))");
+    editconnection.shpcertificate.focus();
+  }
+  else
+  {
+    editconnection.configop.value = "Add";
+    postForm();
+  }
+}
+
+function checkConfig()
+{
+  if (editconnection.serverPort.value != "" && !isInteger(editconnection.serverPort.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSupplyAValidNumber'))");
+    editconnection.serverPort.focus();
+    return false;
+  }
+  if (editconnection.serverName.value.indexOf("/") >= 0)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSpecifyAnyServerPathInformation'))");
+    editconnection.serverName.focus();
+    return false;
+  }
+  var svrloc = editconnection.serverLocation.value;
+  if (svrloc != "" && svrloc.charAt(0) != "/")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.SitePathMustBeginWithWCharacter'))");
+    editconnection.serverLocation.focus();
+    return false;
+  }
+  if (svrloc != "" && svrloc.charAt(svrloc.length - 1) == "/")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.SitePathCannotEndWithACharacter'))");
+    editconnection.serverLocation.focus();
+    return false;
+  }
+  if (editconnection.userName.value != "" && editconnection.userName.value.indexOf("\\") <= 0)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.AValidSharePointUserNameHasTheForm'))");
+    editconnection.userName.focus();
+    return false;
+  }
+  return true;
+}
+
+function checkConfigForSave() 
+{
+  if (editconnection.serverName.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseFillInASharePointServerName'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.serverName.focus();
+    return false;
+  }
+  if (editconnection.serverName.value.indexOf("/") >= 0)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSpecifyAnyServerPathInformationInTheSitePathField'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.serverName.focus();
+    return false;
+  }
+  var svrloc = editconnection.serverLocation.value;
+  if (svrloc != "" && svrloc.charAt(0) != "/")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.SitePathMustBeginWithWCharacter'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.serverLocation.focus();
+    return false;
+  }
+  if (svrloc != "" && svrloc.charAt(svrloc.length - 1) == "/")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.SitePathCannotEndWithACharacter'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.serverLocation.focus();
+    return false;
+  }
+  if (editconnection.serverPort.value != "" && !isInteger(editconnection.serverPort.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSupplyASharePointPortNumber'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.serverPort.focus();
+    return false;
+  }
+  if (editconnection.userName.value != "" && editconnection.userName.value.indexOf("\\") <= 0)
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.TheConnectionRequiresAValidSharePointUserName'))");
+    SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.Server'))");
+    editconnection.userName.focus();
+    return false;
+  }
+  return true;
+}
+
+//-->
+</script>
+

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration_Server.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration_Server.html?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration_Server.html (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editConfiguration_Server.html Tue Oct  1 23:34:58 2013
@@ -0,0 +1,121 @@
+<!--
+ 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.
+-->
+
+#if($KEYSTORE)
+<input type="hidden" name="keystoredata" value="$Encoder.attributeEscape($KEYSTORE)"/>
+#end
+
+#if($TabName == $ResourceBundle.getString('SharePointRepository.Server'))
+
+<table class="displaytable">
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerSharePointVersion'))</nobr></td>
+    <td class="value">
+      <select name="serverVersion">
+  #if($SERVERVERSION == '2.0')
+        <option value="2.0" selected="true">SharePoint Services 2.0 (2003)</option>
+  #else
+        <option value="2.0">SharePoint Services 2.0 (2003)</option>
+  #end
+  #if($SERVERVERSION == '3.0')
+        <option value="3.0" selected="true">SharePoint Services 3.0 (2007)</option>
+  #else
+        <option value="3.0">SharePoint Services 3.0 (2007)</option>
+  #end
+  #if($SERVERVERSION == '4.0')
+        <option value="4.0" selected="true">SharePoint Services 4.0 (2010)</option>
+  #else
+        <option value="4.0">SharePoint Services 4.0 (2010)</option>
+  #end
+      </select>
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerProtocol'))</nobr></td>
+    <td class="value">
+      <select name="serverProtocol">
+  #if($SERVERPROTOCOL == 'http')
+        <option value="http" selected="true">http</option>
+  #else
+        <option value="http">http</option>
+  #end
+  #if($SERVERPROTOCOL == 'https')
+        <option value="https" selected="true">https</option>
+  #else
+        <option value="https">https</option>
+  #end
+      </select>
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerName'))</nobr></td>
+    <td class="value"><input type="text" size="64" name="serverName" value="$Encoder.attributeEscape($SERVERNAME)"/></td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerPort'))</nobr></td>
+    <td class="value"><input type="text" size="5" name="serverPort" value="$SERVERPORT"/></td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SitePath'))</nobr></td>
+    <td class="value"><input type="text" size="64" name="serverLocation" value="$Encoder.attributeEscape($SERVERLOCATION)"/></td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.UserName'))</nobr></td>
+    <td class="value"><input type="text" size="32" name="userName" value="$Encoder.attributeEscape($USERNAME)"/></td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Password'))</nobr></td>
+    <td class="value"><input type="password" size="32" name="password" value="$Encoder.attributeEscape($PASSWORD)"/></td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SSLCertificateList'))</nobr></td>
+    <td class="value">
+      <input type="hidden" name="configop" value="Continue"/>
+      <input type="hidden" name="shpkeystorealias" value=""/>
+      <table class="displaytable">
+  #if($CERTIFICATELIST.size() == 0)
+        <tr><td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoCertificatesPresent'))</td></tr>
+  #else
+    #foreach($certificate in $CERTIFICATELIST)
+        <tr>
+          <td class="description">
+            <input type="button" onclick='Javascript:ShpDeleteCertificate("$Encoder.attributeJavascriptEscape($certificate.get('ALIAS'))")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeleteCert'))$Encoder.attributeEscape($certificate.get('ALIAS'))" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Delete'))"/>
+          </td>
+          <td class="value">
+            $Encoder.bodyEscape($certificate.get('DESCRIPTION'))
+          </td>
+        </tr>
+    #end
+  #end
+      </table>
+      <input type="button" onclick='Javascript:ShpAddCertificate()' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddCert'))" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Add'))"/>&nbsp;
+      $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Certificate'))&nbsp;
+      <input name="shpcertificate" size="50" type="file"/>
+    </td>
+  </tr>
+</table>
+
+#else
+
+<input type="hidden" name="serverProtocol" value="$SERVERPROTOCOL"/>
+<input type="hidden" name="serverName" value="$Encoder.attributeEscape($SERVERNAME)"/>
+<input type="hidden" name="serverPort" value="$SERVERPORT"/>
+<input type="hidden" name="serverLocation" value="$Encoder.attributeEscape($SERVERLOCATION)"/>
+<input type="hidden" name="userName" value="$Encoder.attributeEscape($USERNAME)"/>
+<input type="hidden" name="password" value="$Encoder.attributeEscape($PASSWORD)"/>
+
+#end

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification.js
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification.js?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification.js (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification.js Tue Oct  1 23:34:58 2013
@@ -0,0 +1,198 @@
+<!--
+ 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.
+-->
+
+<script type="text/javascript">
+<!--
+
+function checkSpecification()
+{
+  // Does nothing right now.
+  return true;
+}
+
+function SpecRuleAddPath(anchorvalue)
+{
+  if (editjob.spectype.value=="")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectATypeFirst'))");
+    editjob.spectype.focus();
+  }
+  else if (editjob.specflavor.value=="")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectAnActionFirst'))");
+    editjob.specflavor.focus();
+  }
+  else
+    SpecOp("specop","Add",anchorvalue);
+}
+  
+function SpecPathReset(anchorvalue)
+{
+  SpecOp("specpathop","Reset",anchorvalue);
+}
+  
+function SpecPathAppendSite(anchorvalue)
+{
+  if (editjob.specsite.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectASiteFirst'))");
+    editjob.specsite.focus();
+  }
+  else
+    SpecOp("specpathop","AppendSite",anchorvalue);
+}
+
+function SpecPathAppendLibrary(anchorvalue)
+{
+  if (editjob.speclibrary.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectALibraryFirst'))");
+    editjob.speclibrary.focus();
+  }
+  else
+    SpecOp("specpathop","AppendLibrary",anchorvalue);
+}
+
+function SpecPathAppendList(anchorvalue)
+{
+  if (editjob.speclist.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectAListFirst'))");
+    editjob.speclist.focus();
+  }
+  else
+    SpecOp("specpathop","AppendList",anchorvalue);
+}
+
+function SpecPathAppendText(anchorvalue)
+{
+  if (editjob.specmatch.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseProvideMatchTextFirst'))");
+    editjob.specmatch.focus();
+  }
+  else
+    SpecOp("specpathop","AppendText",anchorvalue);
+}
+
+function SpecPathRemove(anchorvalue)
+{
+  SpecOp("specpathop","Remove",anchorvalue);
+}
+
+function MetaRuleAddPath(anchorvalue)
+{
+  if (editjob.metaflavor.value=="")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectAnActionFirst'))");
+    editjob.metaflavor.focus();
+  }
+  else
+    SpecOp("metaop","Add",anchorvalue);
+}
+
+function MetaPathReset(anchorvalue)
+{
+  SpecOp("metapathop","Reset",anchorvalue);
+}
+  
+function MetaPathAppendSite(anchorvalue)
+{
+  if (editjob.metasite.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectASiteFirst'))");
+    editjob.metasite.focus();
+  }
+  else
+    SpecOp("metapathop","AppendSite",anchorvalue);
+}
+
+function MetaPathAppendLibrary(anchorvalue)
+{
+  if (editjob.metalibrary.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectALibraryFirst'))");
+    editjob.metalibrary.focus();
+  }
+  else
+    SpecOp("metapathop","AppendLibrary",anchorvalue);
+}
+
+function MetaPathAppendList(anchorvalue)
+{
+  if (editjob.metalist.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseSelectAListFirst'))");
+    editjob.metalist.focus();
+  }
+  else
+    SpecOp("metapathop","AppendList",anchorvalue);
+}
+
+function MetaPathAppendText(anchorvalue)
+{
+  if (editjob.metamatch.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.PleaseProvideMatchTextFirst'))");
+    editjob.metamatch.focus();
+  }
+  else
+    SpecOp("metapathop","AppendText",anchorvalue);
+}
+
+function MetaPathRemove(anchorvalue)
+{
+  SpecOp("metapathop","Remove",anchorvalue);
+}
+
+function SpecAddAccessToken(anchorvalue)
+{
+  if (editjob.spectoken.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.AccessTokenCannotBeNull'))");
+    editjob.spectoken.focus();
+  }
+  else
+    SpecOp("accessop","Add",anchorvalue);
+}
+
+function SpecAddMapping(anchorvalue)
+{
+  if (editjob.specmatch.value == "")
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.MatchStringCannotBeEmpty'))");
+    editjob.specmatch.focus();
+    return;
+  }
+  if (!isRegularExpression(editjob.specmatch.value))
+  {
+    alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SharePointRepository.MatchStringMustBeValidRegularExpression'))");
+    editjob.specmatch.focus();
+    return;
+  }
+  SpecOp("specmappingop","Add",anchorvalue);
+}
+
+function SpecOp(n, opValue, anchorvalue)
+{
+  eval("editjob."+n+".value = \""+opValue+"\"");
+  postFormSetAnchor(anchorvalue);
+}
+
+//-->
+</script>
+

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Metadata.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Metadata.html?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Metadata.html (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Metadata.html Tue Oct  1 23:34:58 2013
@@ -0,0 +1,312 @@
+<!--
+ 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.
+-->
+
+#if($TabName == $ResourceBundle.getString('SharePointRepository.Metadata'))
+
+<input type="hidden" name="specmappingcount" value="$MAPLIST.size()"/>
+<input type="hidden" name="specmappingop" value=""/>
+
+<table class="displaytable">
+<tr><td class="separator" colspan="4"><hr/></td></tr>
+<tr>
+  <td class="description" colspan="1"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.MetadataRules'))</nobr></td>
+    <td class="boxcell" colspan="3">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <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($rulecounter = 0)
+  #set($rownumber = 0)
+  #foreach($metadatarule in $METADATARULES)
+
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <nobr>
+              <a name="meta_$rulecounter"/>
+              <input type="hidden" name="metaop_$rulecounter" value=""/>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.InsertNewRule'))" onClick='Javascript:SpecOp("metaop_$rulecounter","Insert Here","meta_$rulecounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.InsertNewMetadataRuleBeforeRule'))$rulecounter"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="4"></td>
+        </tr>
+
+    #set($rownumber = $rownumber + 1)
+    
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <nobr>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Delete'))" onClick='Javascript:SpecOp("metaop_$rulecounter","Delete","meta_$rulecounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeleteMetadataRule'))$rulecounter"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="metapath_$rulecounter" value="$Encoder.attributeEscape($metadatarule.get('THEPATH'))"/>
+              $Encoder.bodyEscape($metadatarule.get('THEPATH'))
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="metaflav_$rulecounter" value="$metadatarule.get('THEACTION')"/>
+              $metadatarule.get('THEACTION')
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="metaall_$rulecounter" value="$metadatarule.get('ALLFLAG')"/>
+              $metadatarule.get('ALLFLAG')
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+    #foreach($field in $metadatarule.get('FIELDLIST'))
+              <input type="hidden" name="metafields_$rulecounter" value="$Encoder.attributeEscape($field)"/>
+    #end
+            $Encoder.bodyEscape($metadatarule.get('FIELDS'))
+          </td>
+        </tr>
+        
+    #set($rownumber = $rownumber + 1)
+    #set($rulecounter = $rulecounter + 1)
+  #end
+
+  #if($rulecounter == 0)
+        <tr class="formrow"><td class="formmessage" colspan="5">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMetadataIncluded'))</td></tr>
+  #end
+  
+  #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+  #else
+        <tr class="oddformrow">
+  #end
+  
+          <td class="formcolumncell">
+            <nobr>
+              <a name="meta_$rulecounter"/>
+              <input type="hidden" name="metaop" value=""/>
+              <input type="hidden" name="metapathcount" value="$rulecounter"/>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddNewRule'))" onClick='Javascript:MetaRuleAddPath("meta_$rulecounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddRule'))"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="4"></td>
+        </tr>
+        <tr class="formrow"><td colspan="5" class="formseparator"><hr/></td></tr>
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NewRule'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="metapathop" value=""/>
+              <input type="hidden" name="metapath" value="$Encoder.attributeEscape($METAPATHSOFAR)"/>
+              <input type="hidden" name="metapathstate" value="$METAPATHSTATE"/>
+  #if($METAPATHLIBRARY)
+              <input type="hidden" name="metapathlibrary" value="$Encoder.attributeEscape($METAPATHLIBRARY)"/>
+  #end
+              $Encoder.bodyEscape($METAPATHSOFAR)
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <select name="metaflavor" size="2">
+                <option value="include" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Include'))</option>
+                <option value="exclude">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Exclude'))</option>
+              </select>
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="checkbox" name="metaall" value="true"/>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.IncludeAllMetadata'))
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+  #if($metadatarule.get('FIELDLIST') && $metadatarule.get('FIELDLIST').size() > 0)
+              <select name="metafields" multiple="true" size="5">
+    #foreach($field in $metadatarule.get('FIELDLIST'))
+                <option value="$Encoder.attributeEscape($field.getValue())"/>$Encoder.bodyEscape($field.getPrettyName())</option>
+    #end
+              </select>
+  #end
+            </nobr>
+          </td>
+        </tr>
+
+        <tr class="formrow"><td colspan="5" class="formseparator"><hr/></td></tr>
+
+        <tr class="formrow">
+  #if($METAMESSAGE)
+          <td class="formmessage" colspan="5">$Encoder.bodyEscape($METAMESSAGE)</td></tr>
+  #else
+          <td class="formcolumncell">
+            <nobr>
+              <a name="metapathwidget"/>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.ResetPath'))" onClick='Javascript:MetaPathReset("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.ResetMetadataRulePath'))"/>
+    #if($METAPATHSOFAR.length() > 1 && ($METAPATHSTATE == 'site' || $METAPATHSTATE == 'library'))
+              <input type="button" value="-" onClick='Javascript:MetaPathRemove("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.RemoveFromMetadataRulePath'))"/>
+    #end
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="4">
+            <nobr>
+    #if($METAPATHSTATE == 'site' && $METACHILDSITELIST && $METACHILDSITELIST.size() > 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddSite'))" onClick='Javascript:MetaPathAppendSite("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddSiteToMetadataRulePath'))"/>
+              <select name="metasite" size="5">
+                <option value="" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectSite'))</option>
+      #foreach($child in $METACHILDSITELIST)
+                <option value="$Encoder.attributeEscape($child.getValue())">$Encoder.bodyEscape($child.getPrettyName())</option>
+      #end
+              </select>
+    #end
+        
+    #if($METAPATHSTATE == 'site' && $METACHILDLIBLIST && $METACHILDLIBLIST.size() > 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddLibrary'))" onClick='Javascript:MetaPathAppendLibrary("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddLibraryToMetadataRulePath'))"/>
+              <select name="metalibrary" size="5">
+                <option value="" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectLibrary'))</option>\
+      #foreach($child in $METACHILDLIBLIST)
+                <option value="$Encoder.attributeEscape($child.getValue())">$Encoder.bodyEscape($child.getPrettyName())</option>
+      #end
+              </select>
+    #end
+
+    #if($METAPATHSTATE == 'site' && $METACHILDLISTLIST && $METACHILDLISTLIST.size() > 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddList'))" onClick='Javascript:MetaPathAppendList("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddListToMetadataRulePath'))"/>
+              <select name="metalist" size="5">
+                <option value="" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectList'))</option>
+      #foreach($child in $METACHILDLISTLIST)
+                <option value="$Encoder.attributeEscape($child.getValue())">$Encoder.bodyEscape($child.getPrettyName())</option>
+      #end
+              </select>
+    #end
+
+    #if($METAPATHSTATE != 'list')
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddText'))" onClick='Javascript:MetaPathAppendText("metapathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddTextToMetadataRulePath'))"/>
+              <input type="text" name="metamatch" size="32" value=""/>
+    #end
+            </nobr>
+          </td>
+  #end
+        </tr>
+      </table>
+    </td>
+  </tr>
+  
+  <tr><td class="separator" colspan="4"><hr/></td></tr>
+  
+  <tr>
+    <td class="description" colspan="1"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMetadata'))</nobr></td>
+    <td class="boxcell" colspan="3">
+      <table class="displaytable">
+        <tr>
+          <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.AttributeName'))</nobr></td>
+          <td class="value" colspan="3">
+            <nobr>
+              <input type="text" name="specpathnameattribute" size="20" value="$Encoder.attributeEscape($PATHNAMEATTRIBUTE)"/>
+            </nobr>
+          </td>
+        </tr>
+        
+        <tr><td class="separator" colspan="4"><hr/></td></tr>
+  
+  #set($mapcounter = 0)
+  #foreach($mapitem in $MAPLIST)
+        <tr>
+          <td class="description">
+            <input type="hidden" name="specmappingop_$mapcounter" value=""/>
+            <a name="mapping_$mapcounter">
+              <input type="button" onClick='Javascript:SpecOp("specmappingop_$mapcounter","Delete","mapping_$mapcounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeleteMapping'))$mapcounter" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeletePathMapping'))"/>
+            </a>
+          </td>
+          <td class="value">
+            <nobr>
+              <input type="hidden" name="specmatch_$mapcounter" value="$Encoder.attributeEscape($mapitem.get('MATCH'))"/>
+              $Encoder.bodyEscape($mapitem.get('MATCH'))
+            </nobr>
+          </td>
+          <td class="value">==></td>
+          <td class="value">
+            <nobr>
+              <input type="hidden" name="specreplace_$mapcounter" value="$Encoder.attributeEscape($mapitem.get('REPLACE'))"/>
+              $Encoder.bodyEscape($mapitem.get('REPLACE'))
+            </nobr>
+          </td>
+        </tr>
+    #set($mapcounter = $mapcounter + 1)
+  #end
+  
+  #if($mapcounter == 0)
+        <tr><td colspan="4" class="message">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMappingsSpecified'))</td></tr>
+  #end
+  
+        <tr><td class="lightseparator" colspan="4"><hr/></td></tr>
+
+  #set($mapcounterplusone = $mapcounter + 1)
+  
+        <tr>
+          <td class="description">
+            <a name="mapping_$mapcounter">
+              <input type="button" onClick='Javascript:SpecAddMapping("mapping_$mapcounterplusone")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddToMappings'))" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddPathMapping'))"/>
+            </a>
+          </td>
+          <td class="value"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.MatchRegexp'))&nbsp;<input type="text" name="specmatch" size="32" value=""/></nobr></td>
+          <td class="value">==></td>
+          <td class="value"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ReplaceString'))&nbsp;<input type="text" name="specreplace" size="32" value=""/></nobr></td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+
+#else
+
+  #set($rulecounter = 0)
+  #foreach($metadatarule in $METADATARULES)
+
+<input type="hidden" name="metapath_$rulecounter" value="$Encoder.attributeEscape($metadatarule.get('THEPATH'))"/>
+<input type="hidden" name="metaflav_$rulecounter" value="$metadatarule.get('THEACTION')"/>
+<input type="hidden" name="metaall_$rulecounter" value="$metadatarule.get('ALLFLAG')"/>
+    #foreach($field in $metadatarule.get('FIELDLIST'))
+<input type="hidden" name="metafields_$rulecounter" value="$Encoder.attributeEscape($field)"/>
+    #end
+     
+    #set($rulecounter = $rulecounter + 1)
+  #end
+  
+<input type="hidden" name="metapathcount" value="$rulecounter"/>
+<input type="hidden" name="specpathnameattribute" value="$Encoder.attributeEscape($PATHNAMEATTRIBUTE)"/>
+  
+  #set($mapcounter = 0)
+  #foreach($mapping in $MAPLIST)
+<input type="hidden" name="specmatch_$mapcounter" value="$Encoder.attributeEscape($mapping.get('MATCH'))"/>
+<input type="hidden" name="specreplace_$mapcounter" value="$Encoder.attributeEscape($mapping.get('REPLACE'))"/>
+    #set($mapcounter = $mapcounter + 1)
+  #end
+
+<input type="hidden" name="specmappingcount" value="$mapcounter"/>
+
+#end

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Paths.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Paths.html?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Paths.html (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Paths.html Tue Oct  1 23:34:58 2013
@@ -0,0 +1,235 @@
+<!--
+ 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.
+-->
+
+#if($TabName == $ResourceBundle.getString('SharePointRepository.Paths'))
+
+<table class="displaytable">
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathRules'))</nobr></td>
+    <td class="boxcell">
+      <table class="formtable">
+        <tr class="formheaderrow">
+          <td class="formcolumnheader"></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMatch'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Type'))</nobr></td>
+          <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Action'))</nobr></td>
+        </tr>
+        
+  #set($rulecounter = 0)
+  #set($rownumber = 0)
+  #foreach($rule in $RULES)
+  
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <nobr>
+              <a name="path_$rulecounter"/>
+              <input type="hidden" name="specop_$rulecounter" value=""/>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.InsertNewRule'))" onClick='Javascript:SpecOp("specop_$rulecounter","Insert Here","path_$rulecounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.InsertNewRuleBeforeRule'))$rulecounter"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="3"></td>
+        </tr>
+        
+    #set($rownumber = $rownumber + 1)
+    
+    #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+    #else
+        <tr class="oddformrow">
+    #end
+          <td class="formcolumncell">
+            <nobr>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Delete'))" onClick='Javascript:SpecOp("specop_$rulecounter","Delete","path_$rulecounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeleteRule'))$rulecounter"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="specpath_$rulecounter" value="$Encoder.attributeEscape($rule.get('THEPATH'))"/>
+              $Encoder.bodyEscape($rule.get('THEPATH'))
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="spectype_$rulecounter" value="$rule.get('THETYPE')"/>
+              $rule.get('THETYPE')
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="specflav_$rulecounter" value="$rule.get('THEACTION')"/>
+              $rule.get('THEACTION')
+            </nobr>
+          </td>
+        </tr>
+        
+    #set($rownumber = $rownumber + 1)
+    #set($rulecounter = $rulecounter + 1)
+  #end
+  
+  #if($rulecounter == 0)
+        <tr class="formrow"><td colspan="4" class="formmessage">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoDocumentsCurrentlyIncluded'))</td></tr>
+  #end
+  
+  #if(($rownumber % 2) == 0)
+        <tr class="evenformrow">
+  #else
+        <tr class="oddformrow">
+  #end
+          <td class="formcolumncell">
+            <nobr>
+              <a name="path_$rulecounter"/>
+              <input type="hidden" name="specop" value=""/>
+              <input type="hidden" name="specpathcount" value="$rulecounter"/>
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddNewRule'))" onClick='Javascript:SpecRuleAddPath("path_"+Integer.toString(k)+"")' alt="Add rule"/>
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="3"></td>
+        </tr>
+        
+        <tr class="formrow"><td colspan="4" class="formseparator"><hr/></td></tr>
+        
+        <tr class="formrow">
+          <td class="formcolumncell">
+            <nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NewRule'))</nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <input type="hidden" name="specpathop" value=""/>
+              <input type="hidden" name="specpath" value="$Encoder.attributeEscape($PATHSOFAR)"/>
+              <input type="hidden" name="specpathstate" value="$PATHSTATE"/>
+  #if($PATHLIBRARY)
+              <input type="hidden" name="specpathlibrary" value="$Encoder.attributeEscape($PATHLIBRARY)"/>
+  #end
+              $Encoder.bodyEscape($PATHSOFAR)
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+
+  #if($PATHSTATE == 'unknown')
+  
+    #if(!$PATHLIBRARY)
+              <select name="spectype" size="4">
+                <option value="file" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.File'))</option>
+                <option value="library">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Library'))</option>
+                <option value="list">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.List'))</option>
+                <option value="site">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Site'))</option>
+              </select>
+    #else
+              <input type="hidden" name="spectype" value="file"/>
+              file
+    #end
+
+  #else
+              <input type="hidden" name="spectype" value="$Encoder.attributeEscape($PATHSTATE)"/>
+              $PATHSTATE
+  #end
+
+            </nobr>
+          </td>
+          <td class="formcolumncell">
+            <nobr>
+              <select name="specflavor" size="2">
+                <option value="include" selected="true">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Include'))</option>
+                <option value="exclude">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Exclude'))</option>
+              </select>
+            </nobr>
+          </td>
+        </tr>
+        <tr class="formrow"><td colspan="4" class="formseparator"><hr/></td></tr>
+        <tr class="formrow">
+        
+  #if($MESSAGE)
+          <td class="formmessage" colspan="4">$Encoder.bodyEscape($MESSAGE)</td>
+  #else
+  
+          <td class="formcolumncell">
+            <nobr>
+              <a name="pathwidget"/>
+              <input type="button" value="Reset Path" onClick='Javascript:SpecPathReset("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.ResetRulePath'))"/>
+    #if($PATHSOFAR.length() > 1 && ($PATHSTATE == 'site' || $PATHSTATE == 'library' || $PATHSTATE == 'list'))
+              <input type="button" value="-" onClick='Javascript:SpecPathRemove("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.RemoveFromRulePath'))"/>
+    #end
+            </nobr>
+          </td>
+          <td class="formcolumncell" colspan="3">
+            <nobr>
+    #if($PATHSTATE == 'site' && $CHILDSITELIST && $CHILDSITELIST.size() != 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddSite'))" onClick='Javascript:SpecPathAppendSite("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddSiteToRulePath'))"/>
+              <select name="specsite" size="5">
+                <option value="" selected="true">-- $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectSite')) --</option>
+      #foreach($sitechild in $CHILDSITELIST)
+                <option value="$Encoder.attributeEscape($sitechild.getValue())">$Encoder.bodyEscape($sitechild.getPrettyName())</option>
+      #end
+              </select>
+    #end
+    
+    #if($PATHSTATE == 'site' && $CHILDLIBLIST && $CHILDLIBLIST.size() != 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddLibrary'))" onClick='Javascript:SpecPathAppendLibrary("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddLibraryToRulePath'))"/>
+              <select name="speclibrary" size="5">
+                <option value="" selected="true">-- $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectLibrary')) --</option>
+      #foreach($libchild in $CHILDLIBLIST)
+                <option value="$Encoder.attributeEscape($libchild.getValue())">$Encoder.bodyEscape($libchild.getPrettyName())</option>
+      #end
+              </select>
+    #end
+
+    #if($PATHSTATE == 'site' && $CHILDLISTLIST && $CHILDLISTLIST.size() != 0)
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddList'))" onClick='Javascript:SpecPathAppendList("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddListToRulePath'))"/>
+              <select name="speclist" size="5">
+                <option value="" selected="true">-- $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SelectList')) --</option>
+      #foreach($listchild in $CHILDLISTLIST)
+                <option value="$Encoder.attributeEscape($listchild.getValue())">$Encoder.bodyEscape($listchild.getPrettyName())</option>
+      #end
+              </select>
+    #end
+        
+    #if($PATHSTATE != 'list')
+              <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddText'))" onClick='Javascript:SpecPathAppendText("pathwidget")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddTextToRulePath'))"/>
+              <input type="text" name="specmatch" size="32" value=""/>
+    #end
+        
+            </nobr>
+          </td>
+  #end
+  
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+
+#else
+
+  #set($rulecounter = 0)
+  #foreach($rule in $RULES)
+
+<input type="hidden" name="specpath_$rulecounter" value="$Encoder.attributeEscape($rule.get('THEPATH'))"/>
+<input type="hidden" name="spectype_$rulecounter" value="$rule.get('THETYPE')"/>
+<input type="hidden" name="specflav_$rulecounter" value="$rule.get('THEACTION')"/>
+      
+    #set($rulecounter = $rulecounter + 1)
+  #end
+
+<input type="hidden" name="specpathcount" value="$rulecounter"/>
+
+#end

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Security.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Security.html?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Security.html (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/editSpecification_Security.html Tue Oct  1 23:34:58 2013
@@ -0,0 +1,99 @@
+<!--
+ 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.
+-->
+
+#if($TabName == $ResourceBundle.getString('SharePointRepository.Security'))
+
+<table class="displaytable">
+  <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" colspan="1">
+      <nobr>
+  #if($SECURITY == 'on')
+        <input type="radio" name="specsecurity" value="on" checked="true"/>
+  #else
+        <input type="radio" name="specsecurity" value="on"/>
+  #end
+          $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Enabled'))&nbsp;
+  #if($SECURITY == 'off')
+        <input type="radio" name="specsecurity" value="off" checked="true"/>
+  #else
+        <input type="radio" name="specsecurity" value="off"/>
+  #end
+          $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Disabled'))
+      </nobr>
+    </td>
+  </tr>
+
+  <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+  #set($atcounter = 0)
+  #foreach($accesstoken in $ACCESSTOKENS)
+
+  <tr>
+    <td class="description">
+      <input type="hidden" name="accessop_$atcounter" value=""/>
+      <input type="hidden" name="spectoken_$atcounter" value="$Encoder.attributeEscape($accesstoken)"/>
+      <a name="token_$atcounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Delete'))" onClick='Javascript:SpecOp("accessop_$atcounter","Delete","token_$atcounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.DeleteToken'))$atcounter"/>
+      </a>
+    </td>
+    <td class="value">
+      <nobr>$Encoder.bodyEscape($accesstoken)</nobr>
+    </td>
+  </tr>
+  
+    #set($atcounter = $atcounter + 1)
+  #end
+  #if($atcounter == 0)
+  
+  <tr>
+    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoAccessTokensPresent'))</td>
+  </tr>
+  
+  #end
+  
+  <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+  <tr>
+    <td class="description">
+      <input type="hidden" name="tokencount" value="$atcounter"/>
+      <input type="hidden" name="accessop" value=""/>
+      <a name="token_$atcounter">
+        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.Add'))" onClick='Javascript:SpecAddAccessToken("token_$atcounter")' alt="$Encoder.attributeEscape($ResourceBundle.getString('SharePointRepository.AddAccessToken'))"/>
+      </a>
+    </td>
+    <td class="value">
+      <input type="text" size="30" name="spectoken" value=""/>
+    </td>
+  </tr>
+</table>
+
+#else
+
+<input type="hidden" name="specsecurity" value="$SECURITY"/>
+
+  #set($atcounter = 0)
+  #foreach($accesstoken in $ACCESSTOKENS)
+  
+<input type="hidden" name="spectoken_$atcounter" value="$Encoder.attributeEscape($accesstoken)"/>
+
+    #set($atcounter = $atcounter + 1)
+  #end
+
+<input type="hidden" name="tokencount" value="$atcounter"/>
+
+#end

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

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

Added: manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewConfiguration.html
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewConfiguration.html?rev=1528269&view=auto
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewConfiguration.html (added)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/sharepoint/viewConfiguration.html Tue Oct  1 23:34:58 2013
@@ -0,0 +1,87 @@
+<!--
+ 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>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerSharePointVersion'))</nobr></td>
+    <td class="value">
+  #if($SERVERVERSION == '2.0')
+        SharePoint Services 2.0 (2003)
+  #elseif($SERVERVERSION == '3.0')
+        SharePoint Services 3.0 (2007)
+  #elseif($SERVERVERSION == '4.0')
+        SharePoint Services 4.0 (2010)
+  #else
+        Unknown
+  #end
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerProtocol'))</nobr></td>
+    <td class="value">
+      $SERVERPROTOCOL
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerName'))</nobr></td>
+    <td class="value">
+      $Encoder.bodyEscape($SERVERNAME)
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ServerPort'))</nobr></td>
+    <td class="value">
+      $SERVERPORT
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SitePath'))</nobr></td>
+    <td class="value">
+      $Encoder.bodyEscape($SERVERLOCATION)
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.UserName'))</nobr></td>
+    <td class="value">
+      $Encoder.bodyEscape($USERNAME)
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Password'))</nobr></td>
+    <td class="value">
+      ********
+    </td>
+  </tr>
+  <tr>
+    <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.SSLCertificateList'))</nobr></td>
+    <td class="value">
+      <table class="displaytable">
+  #if($CERTIFICATELIST.size() == 0)
+        <tr><td class="message" colspan="1">$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoCertificatesPresent'))</td></tr>
+  #else
+    #foreach($certificate in $CERTIFICATELIST)
+        <tr>
+          <td class="value">
+            $Encoder.bodyEscape($certificate.get('DESCRIPTION'))
+          </td>
+        </tr>
+    #end
+  #end
+      </table>
+    </td>
+  </tr>
+</table>

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

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



Mime
View raw message