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 2015/03/11 21:57:45 UTC
svn commit: r1666012 [3/3] - in
/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main:
java/org/apache/manifoldcf/authorities/authorities/livelink/
java/org/apache/manifoldcf/crawler/connectors/livelink/
resources/org/apache/manif...
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Access.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Access.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Access.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Access.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,127 @@
+<!DOCTYPE html>
+<!--
+Copyright 2014 The Apache Software Foundation.
+
+Licensed 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.
+-->
+<input name="ingestconfigop" type="hidden" value="Continue"/>
+#if($INGESTKEYSTORE)
+<input type="hidden" name="ingestkeystoredata" value="$Encoder.attributeEscape($INGESTKEYSTORE)"/>
+#end
+#if($TabName == $ResourceBundle.getString('LivelinkConnector.DocumentAccess'))
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ #if($MESSAGE)
+ <tr><td class="message">
+ $Encoder.bodyEscape($MESSAGE)
+ </td></tr>
+ #end
+ <tr>
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchProtocol'))</td>
+ <td class="value">
+ <select name="ingestprotocol" size="3">
+ <option value="" #if($INGESTPROTOCOL == '') selected="selected" #{else} "" #end >$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.UseLAPI'))</option>
+ <option value="http" #if($INGESTPROTOCOL == 'http') selected="selected" #{else} "" #end >http</option>
+ <option value="https" #if($INGESTPROTOCOL == 'https') selected="selected" #{else} "" #end >https</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchPort'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="5" name="ingestport" value="$!INGESTPORT"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchCGIPath'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="ingestcgipath" value="$Encoder.attributeEscape($INGESTCGIPATH)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchNTLMDomain'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SetIfNTLMAuthDesired'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="ingestntlmdomain" value="$Encoder.attributeEscape($INGESTNTLMDOMAIN)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchNTLMUserName'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SetIfDifferentFromServerUserName'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="ingestntlmusername" value="$Encoder.attributeEscape($INGESTNTLMUSERNAME)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchNTLMPassword'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SetIfDifferentFromServerPassword'))</nobr>
+ </td>
+ <td class="value">
+ <input type="password" size="32" name="ingestntlmpassword" value="$Encoder.attributeEscape($INGESTNTLMPASSWORD)"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentFetchSSLCertificateList'))</nobr>
+ </td>
+ <td class="value">
+ <input type="hidden" name="ingestkeystorealias" value=""/>
+ <table class="displaytable">
+ #if($INGESTCERTIFICATESMAP)
+ #foreach($cert in $INGESTCERTIFICATESMAP.entrySet())
+ <tr>
+ <td class="value">
+ <input type="button" onclick='Javascript:IngestDeleteCertificate($Encoder.attributeJavascriptEscape($cert.Key))'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.DeleteCert')) + $Encoder.attributeEscape($cert.Key)"
+ value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Delete'))"/>
+ <td>$Encoder.bodyEscape($cert.Value)</td>
+ </td>
+ </tr>
+ #end
+ #else
+ <tr>
+ <td class="message" colspan="2">
+ <nobr>$ResourceBundle.getString('LivelinkConnector.NoCertificatesPresent')</nobr>
+ </td>
+ </tr>
+ #end
+ </table>
+ <input type="button" onclick='Javascript:IngestAddCertificate()' alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddCert'))"
+ value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Add'))"/>
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Certificate'))
+ <input name="ingestcertificate" size="50" type="file"/>
+ </td>
+ </tr>
+</table>
+#else
+<input type="hidden" name="ingestprotocol" value="$!INGESTPROTOCOL"/>
+<input type="hidden" name="ingestport" value="$!INGESTPORT"/>
+<input type="hidden" name="ingestcgipath" value="$Encoder.attributeEscape($INGESTCGIPATH)"/>
+<input type="hidden" name="ingestntlmusername" value="$Encoder.attributeEscape($INGESTNTLMUSERNAME)"/>
+<input type="hidden" name="ingestntlmpassword" value="$Encoder.attributeEscape($INGESTNTLMPASSWORD)"/>
+<input type="hidden" name="ingestntlmdomain" value="$Encoder.attributeEscape($INGESTNTLMDOMAIN)"/>
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Server.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Server.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Server.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_Server.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,145 @@
+<!DOCTYPE html>
+<!--
+Copyright 2014 The Apache Software Foundation.
+
+Licensed 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.
+-->
+<input name="serverconfigop" type="hidden" value="Continue"/>
+#if($SERVERHTTPSKEYSTORE)
+<input type="hidden" name="serverhttpskeystoredata" value="$Encoder.attributeEscape($SERVERHTTPSKEYSTORE)"/>
+#end
+#if($TabName == $ResourceBundle.getString('LivelinkConnector.Server'))
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerProtocol'))</td>
+ <td class="value">
+ <select name="serverprotocol" size="2">
+ <option value="internal" #if($SERVERPROTOCOL == 'internal') selected="selected" #{else} "" #end >$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.internal'))</option>
+ <option value="http" #if($SERVERPROTOCOL == 'http') selected="selected" #{else} "" #end >http</option>
+ <option value="https" #if($SERVERPROTOCOL == 'https') selected="selected" #{else} "" #end >https</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.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('LivelinkConnector.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('LivelinkConnector.ServerUserName'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="serverusername" value="$Encoder.attributeEscape($SERVERUSERNAME)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerPassword'))</nobr>
+ </td>
+ <td class="value">
+ <input type="password" size="32" name="serverpassword" value="$Encoder.attributeEscape($SERVERPASSWORD)"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerHTTPCGIPath'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="serverhttpcgipath" value="$Encoder.attributeEscape($SERVERHTTPCGIPATH)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerHTTPNTLMDomain'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SetIfNTLMAuthDesired'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="serverhttpntlmdomain" value="$Encoder.attributeEscape($SERVERHTTPNTLMDOMAIN)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerHTTPNTLMUserName'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="serverhttpntlmusername" value="$Encoder.attributeEscape($SERVERHTTPNTLMUSERNAME)"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerHTTPNTLMPassword'))</nobr>
+ </td>
+ <td class="value">
+ <input type="password" size="32" name="serverhttpntlmpassword" value="$Encoder.attributeEscape($SERVERHTTPNTLMPASSWORD)"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.ServerSSLCertificateList'))</nobr>
+ </td>
+ <td class="value">
+ <input type="hidden" name="serverkeystorealias" value=""/>
+ <table class="displaytable">
+ #if($SERVERCERTIFICATESMAP)
+ #foreach($cert in $SERVERCERTIFICATESMAP.entrySet())
+ <tr>
+ <td class="value">
+ <input type="button" onclick='Javascript:ServerDeleteCertificate($Encoder.attributeJavascriptEscape($cert.Key))'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.DeleteCert')) + $Encoder.attributeEscape($cert.Key)"
+ value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Delete'))"/>
+ <td>$Encoder.bodyEscape($cert.Value)</td>
+ </td>
+ </tr>
+ #end
+ #else
+ <tr>
+ <td class="message" colspan="2">
+ <nobr>$ResourceBundle.getString('LivelinkConnector.NoCertificatesPresent')</nobr>
+ </td>
+ </tr>
+ #end
+ </table>
+ <input type="button" onclick='Javascript:ServerAddCertificate()' alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddCert'))"
+ value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Add'))"/>
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Certificate'))
+ <input name="servercertificate" 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="serverusername" value="$Encoder.attributeEscape($SERVERUSERNAME)"/>
+<input type="hidden" name="serverpassword" value="$Encoder.attributeEscape($SERVERPASSWORD)"/>
+<input type="hidden" name="serverhttpcgipath" value="$Encoder.attributeEscape($SERVERHTTPCGIPATH)"/>
+<input type="hidden" name="serverhttpntlmdomain" value="$Encoder.attributeEscape($SERVERHTTPNTLMDOMAIN)"/>
+<input type="hidden" name="serverhttpntlmusername" value="$Encoder.attributeEscape($SERVERHTTPNTLMUSERNAME)"/>
+<input type="hidden" name="serverhttpntlmpassword" value="$Encoder.attributeEscape($SERVERHTTPNTLMPASSWORD)"/>
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_View.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_View.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_View.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editConfiguration_View.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<!--
+Copyright 2014 The Apache Software Foundation.
+
+Licensed 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('LivelinkConnector.DocumentView'))
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentViewProtocol'))</td>
+ <td class="value">
+ <select name="viewprotocol" size="3">
+ <option value="" #if($VIEWPROTOCOL == '') selected="selected" #{else} "" #end >$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SameAsFetchProtocol'))</option>
+ <option value="http" #if($VIEWPROTOCOL == 'http') selected="selected" #{else} "" #end >http</option>
+ <option value="https" #if($VIEWPROTOCOL == 'https') selected="selected" #{else} "" #end >https</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentViewServerName'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.BlankSameAsFetchServer'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="64" name="viewservername" value="$Encoder.attributeEscape($VIEWSERVERNAME)"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentViewPort'))</nobr>
+ <br/>
+ <nobr>(blank = same as fetch port)</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="5" name="viewport" value="$!VIEWPORT"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DocumentViewCGIPath'))</nobr>
+ <br/>
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.BlankSameAsFetchServer'))</nobr>
+ </td>
+ <td class="value">
+ <input type="text" size="32" name="viewcgipath" value="$Encoder.attributeEscape($VIEWCGIPATH)"/>
+ </td>
+ </tr>
+</table>
+#else
+<input type="hidden" name="viewprotocol" value="$!VIEWPROTOCOL"/>
+<input type="hidden" name="viewservername" value="$!VIEWSERVERNAME"/>
+<input type="hidden" name="viewport" value="$!VIEWPORT"/>
+<input type="hidden" name="viewcgipath" value="$Encoder.attributeEscape($VIEWCGIPATH)"/>
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification.js
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification.js?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification.js (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification.js Wed Mar 11 20:57:44 2015
@@ -0,0 +1,106 @@
+<script type="text/javascript">
+ <!--
+
+ function ${SEQPREFIX}SpecOp(n, opValue, anchorvalue)
+ {
+ eval("editjob."+n+".value = \""+opValue+"\"");
+ postFormSetAnchor(anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddToPath(anchorvalue)
+ {
+ console.log(anchorvalue);
+ if (editjob.${SEQPREFIX}pathaddon.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.SelectAFolderFirst'))");
+ editjob.${SEQPREFIX}pathaddon.focus();
+ return;
+ }
+
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}pathop","AddToPath",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddFilespec(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}specfile.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.TypeInAFileSpecification'))");
+ editjob.${SEQPREFIX}specfile.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}fileop","Add",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddToken(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}spectoken.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.TypeInAnAccessToken'))");
+ editjob.${SEQPREFIX}spectoken.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}accessop","Add",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddToMetadata(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}metadataaddon.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.SelectAFolderFirst'))");
+ editjob.${SEQPREFIX}metadataaddon.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}metadataop","AddToPath",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecSetWorkspace(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}metadataaddon.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.SelectAWorkspaceFirst'))");
+ editjob.${SEQPREFIX}metadataaddon.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}metadataop","SetWorkspace",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddCategory(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}categoryaddon.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.SelectACategoryFirst'))");
+ editjob.${SEQPREFIX}categoryaddon.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}metadataop","AddCategory",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddMetadata(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}attributeselect.value == "" && editjob.${SEQPREFIX}attributeall.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.SelectAtLeastOneAttributeFirst'))");
+ editjob.${SEQPREFIX}attributeselect.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}metadataop","Add",anchorvalue);
+ }
+
+ function ${SEQPREFIX}SpecAddMapping(anchorvalue)
+ {
+ if (editjob.${SEQPREFIX}specmatch.value == "")
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.MatchStringCannotBeEmpty'))");
+ editjob.${SEQPREFIX}specmatch.focus();
+ return;
+ }
+ if (!isRegularExpression(editjob.${SEQPREFIX}specmatch.value))
+ {
+ alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('LivelinkConnector.MatchStringMustBeValidRegularExpression'))");
+ editjob.${SEQPREFIX}specmatch.focus();
+ return;
+ }
+ ${SEQPREFIX}SpecOp("${SEQPREFIX}specmappingop","Add",anchorvalue);
+ }
+ //-->
+</script>
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Filters.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Filters.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Filters.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Filters.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,85 @@
+<!--
+ 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('LivelinkConnector.Filters') && ${SeqNum} == ${SelectedNum})
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+ #set($filtercounter = 0)
+ #foreach($fileSpec in $FILESPECS)
+ <tr>
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_specfiletype_${filtercounter}" value="$Encoder.attributeEscape($fileSpec.Left)"/>
+ <input type="hidden" name="s${SeqNum}_fileop_${filtercounter}" value=""/>
+ <a name="s${SeqNum}_filespec_${filtercounter}">
+ <input type="button" value="Delete"
+ onClick="Javascript:s${SeqNum}_SpecOp('s${SeqNum}_fileop_${filtercounter}','Delete','s${SeqNum}_filespec_${filtercounter}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DeleteFilespec'))${filtercounter}"/>
+ </a>
+ </td>
+ <td class="value">
+ <input type="hidden" name="s${SeqNum}_specfile_${filtercounter}" value="$Encoder.attributeEscape($fileSpec.Right)"/>
+ #if($fileSpec.Left == "include")
+ Include:
+ #elseif($fileSpec.Left == "exclude")
+ Exclude:
+ #end
+ $Encoder.bodyEscape($fileSpec.Right)
+ </td>
+ </tr>
+ #set($filtercounter = $filtercounter + 1)
+ #end
+
+ #if($filtercounter == 0)
+ <tr>
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoIncludeExcludeFilesDefined'))
+ </td>
+ </tr>
+ #end
+
+ <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+
+ <tr>
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_filecount" value="${filtercounter}"/>
+ <input type="hidden" name="s${SeqNum}_fileop" value=""/>
+ <a name="s${SeqNum}_path_${filtercounter}">
+ #set($anchorSuffix = $filtercounter+1)
+ <input type="button" value="Add"
+ onClick="Javascript:s${SeqNum}_SpecAddFilespec('s${SeqNum}_filespec_${anchorSuffix}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AddFileSpecification'))"/>
+ </a>
+ </td>
+ <td class="value">
+ <select name="s${SeqNum}_specfiletype">
+ <option value="include" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Include'))</option>
+ <option value="exclude">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Exclude'))</option>
+ </select>
+ <input type="text" size="30" name="s${SeqNum}_specfile" value=""/>
+ </td>
+ </tr>
+</table>
+#else
+ #set($filtercounter = 0)
+ #foreach($fileSpec in $FILESPECS)
+ <input type="hidden" name="s${SeqNum}_specfiletype_${filtercounter}" value="$Encoder.attributeEscape($fileSpec.Left)"/>
+ <input type="hidden" name="s${SeqNum}_specfile_${filtercounter}" value="$Encoder.attributeEscape($fileSpec.Right)"/>
+ #set($filtercounter = $filtercounter + 1)
+ #end
+ <input type="hidden" name="s${SeqNum}_filecount" value="$filtercounter"/>
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Metadata.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Metadata.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Metadata.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Metadata.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,238 @@
+<!--
+ 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('LivelinkConnector.Metadata') && ${SeqNum} == ${SelectedNum})
+<input type="hidden" name="s${SeqNum}_specmappingcount" value="$MATCHMAP.size()"/>
+<input type="hidden" name="s${SeqNum}_specmappingop" value=""/>
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description" colspan="1">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.IngestALLMetadata'))</nobr>
+ </td>
+ <td class="value" colspan="3">
+ <nobr>
+ <input type="radio" name="s${SeqNum}_specallmetadata" value="true" #if($INGESTALLMETADATA) checked="true" #{else} "" #end />
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Yes'))
+ </nobr>
+ <nobr>
+ <input type="radio" name="s${SeqNum}_specallmetadata" value="false" #if(!$INGESTALLMETADATA) checked="true" #{else} "" #end/>
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.No'))
+ </nobr>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+ #set($counter = 0)
+ #foreach($meta in $METADATA)
+ <tr>
+ <td class="description" colspan="1">
+ <input type="hidden" name="s${SeqNum}_metadataop_${counter}" value=""/>
+ <input type="hidden" name="s${SeqNum}_speccategory_${counter}" value="$Encoder.attributeEscape($meta.Left)"/>
+ <input type="hidden" name="s${SeqNum}_specattributeall_${counter}" value="$meta.Right.Left"/>
+ <input type="hidden" name="s${SeqNum}_specattribute_${counter}" value="$Encoder.attributeEscape($meta.Right.Right)"/>
+ <a name="s${SeqNum}_metadata_${counter}">
+ <input type="button" value="Delete"
+ onClick="Javascript:s${SeqNum}_SpecOp('s${SeqNum}_metadataop_${counter}','Delete','s${SeqNum}_metadata_${counter}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DeleteMetadata'))${counter}"/>
+ </a>
+ </td>
+ <td class="value" colspan="3">
+ $Encoder.bodyEscape($meta.Left):
+ #if($meta.Right.Left == "true")
+ (All metadata attributes)
+ #else
+ $Encoder.bodyEscape($meta.Right.Right)
+ #end
+ </td>
+ </tr>
+ #set($counter = $counter + 1)
+ #end
+
+ #if($counter == 0)
+ <tr>
+ <td class="message" colspan="4">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoMetadataSpecified'))
+ </td>
+ </tr>
+ #end
+
+ <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+
+ <tr>
+ #if($MESSAGE)
+ <td class="message" colspan="4">$Encoder.bodyEscape($MESSAGE)</td>
+ #else
+ <td class="description" colspan="1">
+ <input type="hidden" name="s${SeqNum}_metadatacount" value="${counter}"/>
+ <input type="hidden" name="s${SeqNum}_speccategory" value="$Encoder.attributeEscape($CATEGORYSOFAR)"/>
+ <input type="hidden" name="s${SeqNum}_metadataop" value=""/>
+ #set($anchorSuffix = $counter+1)
+ #if($ATTRIBUTELIST && $ATTRIBUTELIST.size() > 0)
+ <a name="s${SeqNum}_metadata_${counter}">
+ <input type="button" value="Add"
+ onClick="Javascript:s${SeqNum}_SpecAddMetadata('s${SeqNum}_metadata_${anchorSuffix}')"
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddMetadataItem'))"/>
+ </a>
+ </td>
+ <td class="value" colspan="3">
+ $Encoder.bodyEscape($CATEGORYSOFAR):
+ <table class="displaytable">
+ <tr>
+ <td class="value">
+ <input type="checkbox" name="s${SeqNum}_attributeall" value="true"/>
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AllAttributesInThisCategory'))
+ <br/>
+ <select name="s${SeqNum}_attributeselect">
+ <option value="" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PickAttributes'))</option>
+ #foreach($attrName in $ATTRIBUTELIST)
+ <option value="$Encoder.attributeEscape($attrName)">$Encoder.bodyEscape($attrName)</option>
+ #end
+ </select>
+ </td>
+ </tr>
+ </table>
+ #elseif($WORKSPACELIST && $WORKSPACELIST.size() > 0)
+ </td>
+ <td class="value" colspan="3">
+ <a name="s${SeqNum}_metadata_${counter}">
+ <input type="button" value="+"
+ onClick="Javascript:s${SeqNum}_SpecSetWorkspace('s${SeqNum}_metadata_${anchorSuffix}')"
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddToMetadataPath'))"/>
+ </a>
+ <select name="s${SeqNum}_metadataaddon">
+ <option value="" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PickWorkspace'))</option>
+ #foreach($workSpace in $WORKSPACELIST)
+ <option value="$Encoder.attributeEscape($workSpace)">$Encoder.bodyEscape($workSpace)</option>
+ #end
+ </select>
+ #else
+ </td>
+ <td class="value" colspan="3">
+ #if($CATEGORYSOFAR.length() == 0)
+ (root)
+ #else
+ <input type="button" value="-"
+ onClick='Javascript:s${SeqNum}_SpecOp("s${SeqNum}_metadataop","Up","s${SeqNum}_metadata_${counter}")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.BackUpMetadataPath'))"/>
+ $Encoder.bodyEscape($CATEGORYSOFAR)
+ #end
+ #if($CHILDLIST && $CHILDLIST.size() > 0)
+ <input type="button" value="+"
+ onClick='Javascript:s${SeqNum}_SpecAddToMetadata("s${SeqNum}_metadata_${counter}")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddToMetadataPath'))"/>
+ <select name="s${SeqNum}_metadataaddon">
+ <option value="" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PickAFolder'))</option>
+ #foreach($child in $CHILDLIST)
+ <option value="$Encoder.attributeEscape($child)">$Encoder.bodyEscape($child)</option>
+ #end
+ </select>
+ #end
+ #if($CATEGORYLIST && $CATEGORYLIST.size() > 0)
+ <input type="button" value="+"
+ onClick='Javascript:s${SeqNum}_SpecAddCategory("s${SeqNum}_metadata_${counter}")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddCategory'))"/>
+ <select name="s${SeqNum}_categoryaddon">
+ <option value="" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PickACategory'))</option>
+ #foreach($category in $CATEGORYLIST)
+ <option value="$Encoder.attributeEscape($category)">$Encoder.bodyEscape($category)</option>
+ #end
+ </select>
+ #end
+ #end
+ #end
+ </tr>
+ <tr><td class="separator" colspan="4"><hr/></td></tr>
+ <tr>
+ <td class="description" colspan="1">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PathAttributeName'))</nobr>
+ </td>
+ <td class="value" colspan="1">
+ <input type="text" name=s${SeqNum}_specpathnameattribute" size="20"
+ value="$Encoder.attributeEscape($PATHNAMEATTRIBUTE)"/>
+ </td>
+ <td class="description" colspan="1">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PathSeparatorString'))</nobr>
+ </td>
+ <td class="value" colspan="1">
+ <input type="text" name=s${SeqNum}_specpathnameseparator" size="20"
+ value="$Encoder.attributeEscape($PATHNAMESEPARATOR)"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="4"><hr/></td></tr>
+ #set($matchMapCount = $MATCHMAP.size())
+ #foreach($entry in $MATCHMAP.entrySet())
+ <tr>
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_specmappingop_${foreach.index}" value=""/>
+ <a name="s${SeqNum}_mapping_${foreach.index}">
+ <input type="button" onClick='Javascript:s${SeqNum}_SpecOp("s${SeqNum}_specmappingop_${foreach.index}","Delete","s${SeqNum}_mapping_${foreach.index}")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.DeleteMapping'))${foreach.index}" value="Delete"/>
+ </a>
+ </td>
+ <td class="value">
+ <input type="hidden" name="s${SeqNum}_specmatch_${foreach.index}" value="$Encoder.attributeEscape($entry.Key)"/>
+ $Encoder.bodyEscape($entry.Key)
+ </td>
+ <td class="value">==></td>
+ <td class="value">
+ <input type="hidden" name="s${SeqNum}_specreplace_${foreach.index}" value="$Encoder.attributeEscape($entry.Value)"/>
+ $Encoder.bodyEscape($entry.Value)
+ </td>
+ </tr>
+ #end
+ #if($matchMapCount == 0)
+ <tr>
+ <td colspan="4" class="message">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoMappingsSpecified'))
+ </td>
+ </tr>
+ #end
+ <tr><td class="separator" colspan="4"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ #set($anchorSuffix = $matchMapCount +1)
+ <a name="s${SeqNum}_mapping_${matchMapCount}">
+ <input type="button" onClick='Javascript:s${SeqNum}_SpecAddMapping("s${SeqNum}_mapping_${anchorSuffix}")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddToMappings'))" value="Add"/>
+ </a>
+ </td>
+ <td class="value">Match regexp: <input type="text" name="s${SeqNum}_specmatch" size="32" value=""/></td>
+ <td class="value">==></td>
+ <td class="value">Replace string: <input type="text" name="s${SeqNum}_specreplace" size="32" value=""/></td>
+ </tr>
+</table>
+#else
+ <input type="hidden" name="s${SeqNum}_specallmetadata" value="$INGESTALLMETADATA"/>
+ #set($counter = 0)
+ #foreach($meta in $METADATA)
+ <input type="hidden" name="s${SeqNum}_speccategory_${counter}" value="$Encoder.attributeEscape($meta.Left)"/>
+ <input type="hidden" name="s${SeqNum}_specattributeall_${counter}" value="$meta.Right.Left"/>
+ <input type="hidden" name="s${SeqNum}_specattribute_${counter}" value="$Encoder.attributeEscape($meta.Right.Right)"/>
+ #set($counter = $counter + 1)
+ #end
+ <input type="hidden" name="s${SeqNum}_metadatacount" value="${counter}"/>
+ <input type="hidden" name="s${SeqNum}_specpathnameattribute" value="$Encoder.attributeEscape($PATHNAMEATTRIBUTE)"/>
+ <input type="hidden" name="s${SeqNum}_specpathnameseparator" value="$Encoder.attributeEscape($PATHNAMESEPARATOR)"/>
+
+ <input type="hidden" name="s${SeqNum}_specmappingcount" value="$MATCHMAP.size()"/>
+
+ #foreach($entry in $MATCHMAP.entrySet())
+ <input type="hidden" name="s${SeqNum}_specmatch_${foreach.index}" value="$Encoder.attributeEscape($entry.Key)"/>
+ <input type="hidden" name="s${SeqNum}_specreplace_${foreach.index}" value="$Encoder.attributeEscape($entry.Value)"/>
+ #end
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Paths.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Paths.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Paths.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Paths.html Wed Mar 11 20:57:44 2015
@@ -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($TabName == $ResourceBundle.getString('LivelinkConnector.Paths') && ${SeqNum} == ${SelectedNum})
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.CrawlUserWorkspaces'))</nobr>
+ </td>
+ <td class="value">
+ #if($USERWORKSPACES)
+ <input type="checkbox" name="s${SeqNum}_userworkspace" value="true" checked="true"/>
+ #else
+ <input type="checkbox" name="s${SeqNum}_userworkspace" value="true"/>
+ #end
+ <input type="hidden" name="s${SeqNum}_userworkspace_present" value="true"/>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+
+ #set($pathcounter = 0)
+ #foreach($path in $PATHS)
+ <tr>
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_specpath_${pathcounter}" value="$Encoder.attributeEscape($path)"/>
+ <input type="hidden" name="s${SeqNum}_pathop_${pathcounter}" value=""/>
+ <a name="s${SeqNum}_path_${pathcounter}">
+ <input type="button" value="Delete"
+ onClick="Javascript:s${SeqNum}_SpecOp('s${SeqNum}_pathop_${pathcounter}','Delete','s${SeqNum}_path_${pathcounter}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.DeletePath'))${pathcounter}"/>
+ </a>
+ </td>
+ <td class="value">
+ #if($path && $path.length() > 0)
+ $Encoder.bodyEscape($path)
+ #else
+ (root)
+ #end
+ </td>
+ </tr>
+ #set($pathcounter = $pathcounter + 1)
+ #end
+
+ #if($pathcounter == 0)
+ <tr>
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoStartingPointsDefined'))
+ </td>
+ </tr>
+ #end
+
+ <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+
+ <tr>
+ #if($MESSAGE)
+ <td class="message" colspan="2">$Encoder.bodyEscape($MESSAGE)</td>
+ #else
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_pathcount" value="${pathcounter}"/>
+ <input type="hidden" name="s${SeqNum}_specpath" value="$Encoder.attributeEscape($PATHSOFAR)"/>
+ <input type="hidden" name="s${SeqNum}_pathop" value=""/>
+ <a name="s${SeqNum}_path_${pathcounter}">
+ #set($anchorSuffix = $pathcounter+1)
+ <input type="button" value="Add"
+ onClick="Javascript:s${SeqNum}_SpecOp('s${SeqNum}_pathop','Add','s${SeqNum}_path_${anchorSuffix}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AddPath'))"/>
+ </a>
+ </td>
+ <td class="value">
+ #if($PATHSOFAR && $PATHSOFAR.length() > 0)
+ $Encoder.bodyEscape($PATHSOFAR)
+ <input type="button" value="-"
+ onClick="Javascript:s${SeqNum}_SpecOp('s${SeqNum}_pathop','Up','s${SeqNum}_path_${pathcounter}')"
+ alt="Back up path"/>
+ #else
+ (root)
+ #end
+ #if($CHILDLIST && $CHILDLIST.size() > 0)
+ <input type="button" value="+"
+ onClick="Javascript:s${SeqNum}_SpecAddToPath('s${SeqNum}_path_${pathcounter}')"
+ alt="$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AddPath'))"/>
+ <select name="s${SeqNum}_pathaddon">
+ <option value="" selected="selected">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PickAFolder'))</option>
+ #foreach($child in $CHILDLIST)
+ <option value="$Encoder.attributeEscape($child)">$Encoder.bodyEscape($child)</option>
+ #end
+ </select>
+ #end
+ </td>
+ #end
+ </tr>
+</table>
+#else
+ #set($pathcounter = 0)
+ #foreach($path in $PATHS)
+ <input type="hidden" name="s${SeqNum}_specpath_${pathcounter}" value="$Encoder.attributeEscape($path)"/>
+ #set($pathcounter = $pathcounter + 1)
+ #end
+ <input type="hidden" name="s${SeqNum}_pathcount" value="$pathcounter"/>
+ #if($USERWORKSPACES)
+ <input type="hidden" name="s${SeqNum}_userworkspace" value="true"/>
+ #else
+ <input type="hidden" name="s${SeqNum}_userworkspace" value="false"/>
+ #end
+ <input type="hidden" name="s${SeqNum}_userworkspace_present" value="true"/>
+#end
\ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Security.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Security.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Security.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/editSpecification_Security.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,103 @@
+<!--
+ 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('LivelinkConnector.Security') && ${SeqNum} == ${SelectedNum})
+
+<table class="displaytable">
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SecurityColon'))</nobr></td>
+ <td class="value" colspan="1">
+ <nobr>
+ #if($SECURITY == 'on')
+ <input type="radio" name="s${SeqNum}_specsecurity" value="on" checked="true"/>
+ #else
+ <input type="radio" name="s${SeqNum}_specsecurity" value="on"/>
+ #end
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Enabled'))
+ #if($SECURITY == 'off')
+ <input type="radio" name="s${SeqNum}_specsecurity" value="off" checked="true"/>
+ #else
+ <input type="radio" name="s${SeqNum}_specsecurity" value="off"/>
+ #end
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.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="s${SeqNum}_accessop_$atcounter" value=""/>
+ <input type="hidden" name="s${SeqNum}_spectoken_$atcounter" value="$Encoder.attributeEscape($accesstoken)"/>
+ <a name="s${SeqNum}_token_$atcounter">
+ <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Delete'))"
+ onClick='Javascript:s${SeqNum}_SpecOp("s${SeqNum}_accessop_$atcounter","Delete","s${SeqNum}_token_$atcounter")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.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('LivelinkConnector.NoAccessTokensPresent'))</td>
+ </tr>
+
+ #end
+
+ <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td class="description">
+ <input type="hidden" name="s${SeqNum}_tokencount" value="$atcounter"/>
+ <input type="hidden" name="s${SeqNum}_accessop" value=""/>
+ <a name="s${SeqNum}_token_$atcounter">
+ <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.Add'))"
+ onClick='Javascript:s${SeqNum}_SpecAddToken("s${SeqNum}_token_$atcounter")'
+ alt="$Encoder.attributeEscape($ResourceBundle.getString('LivelinkConnector.AddAccessToken'))"/>
+ </a>
+ </td>
+ <td class="value">
+ <input type="text" size="30" name="s${SeqNum}_spectoken" value=""/>
+ </td>
+ </tr>
+</table>
+
+#else
+
+<input type="hidden" name="s${SeqNum}_specsecurity" value="$SECURITY"/>
+
+#set($atcounter = 0)
+#foreach($accesstoken in $ACCESSTOKENS)
+
+<input type="hidden" name="s${SeqNum}_spectoken_$atcounter" value="$Encoder.attributeEscape($accesstoken)"/>
+
+#set($atcounter = $atcounter + 1)
+#end
+
+<input type="hidden" name="s${SeqNum}_tokencount" value="$atcounter"/>
+
+#end
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewConfiguration.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewConfiguration.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewConfiguration.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewConfiguration.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<!--
+Copyright 2014 The Apache Software Foundation.
+
+Licensed 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" colspan="1">
+ <nobr>
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Parameters'))
+ </nobr>
+ </td>
+ <td class="value" colspan="3">
+ #foreach($entry in $CONFIGMAP.entrySet())
+ <nobr>
+ ${entry.Key}=${entry.Value}
+ </nobr>
+ <br/>
+ #end
+ </td>
+ </tr>
+</table>
Added: manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewSpecification.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewSpecification.html?rev=1666012&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewSpecification.html (added)
+++ manifoldcf/branches/CONNECTORS-1160/connectors/livelink/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/livelink/viewSpecification.html Wed Mar 11 20:57:44 2015
@@ -0,0 +1,194 @@
+<!DOCTYPE html>
+<!--
+Copyright 2014 The Apache Software Foundation.
+
+Licensed 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('LivelinkConnector.CrawlUserWorkspaces'))</nobr>
+ </td>
+ <td class="value"/>
+ #if($USERWORKSPACES)$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Yes'))#{else}$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.No'))#end
+ </td>
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ #if($PATHS && $PATHS.size() > 0)
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Roots'))</td>
+ <td class="value">
+ #foreach($path in $PATHS)
+ $path
+ <br/>
+ #end
+ </td>
+ #else
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoStartPointsSpecified'))
+ </td>
+ #end
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ #if($FILESPECS && $FILESPECS.size() > 0)
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.FileSpecs'))</td>
+ <td class="value">
+ #foreach($fileSpec in $FILESPECS)
+ $fileSpec.Left: $fileSpec.Right
+ <br/>
+ #end
+ </td>
+ #else
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoFileSpecsSpecified'))
+ </td>
+ #end
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SecurityColon'))</td>
+ <td class="value">
+ #if($SECURITY == "on")
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Enabled2'))
+ #else
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.Disabled'))
+ #end
+ </td>
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ #if($ACCESSTOKENS && $ACCESSTOKENS.size() > 0)
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AccessTokens'))</td>
+ <td class="value">
+ #foreach($accessToken in $ACCESSTOKENS)
+ $accessToken
+ <br/>
+ #end
+ </td>
+ #else
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoAccessTokensSpecified'))
+ </td>
+ #end
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td class="description">
+ <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.MetadataSpecification'))</nobr>
+ </td>
+ <td class="value">
+ <nobr>
+ #if($INGESTALLMETADATA)
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.AllDocumentMetadataWillBeIngested'))
+ #else
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.OnlySpecifiedMetadataWillBeIngested'))
+ #end
+ </nobr>
+ </td>
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ #if($METADATA && $METADATA.size() > 0)
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.SpecificMetadata'))</td>
+ <td class="value">
+ #foreach($meta in $METADATA)
+ $Encoder.bodyEscape($meta.Left):
+ #if($meta.Right.Left == "true")
+ (All metadata attributes)
+ #else
+ $Encoder.bodyEscape($meta.Right.Right)
+ #end
+ <br/>
+ #end
+ </td>
+ #else
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoMetadataSpecified'))
+ </td>
+ #end
+ </tr>
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ #if($PATHNAMEATTRIBUTE && $PATHNAMEATTRIBUTE.length() > 0)
+ <tr>
+ <td class="description">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PathNameMetadataAttribute'))
+ </td>
+ <td class="value">$Encoder.bodyEscape($PATHNAMEATTRIBUTE)</td>
+ </tr>
+ <tr>
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PathSeparatorString'))</td>
+ <td class="value">$Encoder.bodyEscape($PATHNAMESEPARATOR)</td>
+ </tr>
+ #else
+ <tr>
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoPathNameMetadataAttributeSpecified'))
+ </td>
+ </tr>
+ #end
+ <tr>
+ <td class="separator" colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ #if($MATCHMAP && $MATCHMAP.size() > 0)
+ <td class="description">$Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.PathValueMapping'))</td>
+ <td class="value">
+ <table class="displaytable">
+ #foreach($entry in $MATCHMAP.entrySet())
+ <tr>
+ <td colspan="2">$Encoder.bodyEscape($entry.Key)</td>
+ <td colspan="1">--</td>
+ <td colspan="2">$Encoder.bodyEscape($entry.Value)</td>
+ </tr>
+ #end
+ </table>
+ </td>
+ #else
+ <td class="message" colspan="2">
+ $Encoder.bodyEscape($ResourceBundle.getString('LivelinkConnector.NoMappingsSpecified'))
+ </td>
+ #end
+ </tr>
+</table>