Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.html Sat Nov 21 08:11:53 2020 @@ -0,0 +1,61 @@ +<!-- + 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('SolrIngester.SolrIngesterTabName')) + +<table class="displaytable"> + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SolrAddress'))</nobr></td> + <td class="value"><input name="solrAddress" type="text" + value="$Encoder.attributeEscape($SOLRADDRESS)" size="40" /> + </td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SolrUsername'))</nobr></td> + <td class="value"><input name="solrUsername" type="text" + value="$Encoder.attributeEscape($SOLRUSERNAME)" size="40" /> + </td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SolrPassword'))</nobr></td> + <td class="value"><input name="solrPassword" type="password" + value="$Encoder.attributeEscape($SOLRPASSWORD)" size="40" /> + </td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.ConnectionTimeout'))</nobr></td> + <td class="value"><input name="connectionTimeout" type="text" + value="$Encoder.attributeEscape($CONNECTIONTIMEOUT)" size="20" /> + </td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SocketTimeout'))</nobr></td> + <td class="value"><input name="socketTimeout" type="text" + value="$Encoder.attributeEscape($SOCKETTIMEOUT)" size="20" /> + </td> + </tr> + +</table> +#else +<input type="hidden" name="solrAddress" value="$SOLRADDRESS"/> +<input type="hidden" name="solrUsername" value="$SOLRUSERNAME"/> +<input type="hidden" name="solrPassword" value="$SOLRPASSWORD"/> +<input type="hidden" name="connectionTimeout" value="$CONNECTIONTIMEOUT"/> +<input type="hidden" name="socketTimeout" value="$SOCKETTIMEOUT"/> + +#end \ No newline at end of file
Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.js URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.js?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.js (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editConfiguration_connector.js Sat Nov 21 08:11:53 2020 @@ -0,0 +1,48 @@ +<!-- + 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 checkConfigForSave() +{ + if (editconnection.solrAddress.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueSolrAddress'))"); + SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.SolrIngesterTabName'))"); + eval("editconnection.solrAddress.focus()"); + return false; + } + if (editconnection.connectionTimeout.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueConnectionTimeOut'))"); + SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.SolrIngesterTabName'))"); + eval("editconnection.connectionTimeout.focus()"); + return false; + } + if (editconnection.socketTimeout.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueSocketTimeOut'))"); + SelectTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.SolrIngesterTabName'))"); + eval("editconnection.socketTimeout.focus()"); + return false; + } + return true; +} + +//--> +</script> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.html Sat Nov 21 08:11:53 2020 @@ -0,0 +1,149 @@ +<!-- + 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('SolrIngester.ParametersTabName') && ${SEQNUM} == ${SELECTEDNUM}) + + +<table class="displaytable"> + +<tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.CollectionName'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_collection" type="text" + value="$Encoder.attributeEscape($COLLECTION)" size="16" /> + </td> + </tr> + +<tr> + + + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FieldMappings'))</nobr></td> + <td class="boxcell"> + <table class="formtable"> + <tr class="formheaderrow"> + <td class="formcolumnheader"></td> + <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.MetadataFieldName'))</nobr></td> + <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FinalFieldName'))</nobr></td> + </tr> + + #set($fieldcounter = 0) + #foreach($fieldmapping in $FIELDMAPPINGS) + #set($fieldcounterdisplay = $fieldcounter + 1) + #if(($fieldcounter % 2) == 0) + <tr class="evenformrow"> + #else + <tr class="oddformrow"> + #end + <td class="formcolumncell"> + <a name="s${SEQNUM}_fieldmapping_$fieldcounter"> + <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SolrIngester.Delete'))" alt="$Encoder.attributeEscape($ResourceBundle.getString('SolrIngester.DeleteFieldMapping'))$fieldcounterdisplay" onclick='javascript:s${SEQNUM}_deleteFieldMapping("$fieldcounter");'/> + <input type="hidden" name="s${SEQNUM}_fieldmapping_op_$fieldcounter" value="Continue"/> + <input type="hidden" name="s${SEQNUM}_fieldmapping_source_$fieldcounter" value="$Encoder.attributeEscape($fieldmapping.get('SOURCE'))"/> + <input type="hidden" name="s${SEQNUM}_fieldmapping_target_$fieldcounter" value="$Encoder.attributeEscape($fieldmapping.get('TARGET'))"/> + </a> + </td> + <td class="formcolumncell"> + <nobr>$Encoder.bodyEscape($fieldmapping.get('SOURCE'))</nobr> + </td> + <td class="formcolumncell"> + <nobr>$Encoder.bodyEscape($fieldmapping.get('TARGETDISPLAY'))</nobr> + </td> + </tr> + #set($fieldcounter = $fieldcounter + 1) + #end + + #if($fieldcounter == 0) + <tr class="formrow"><td class="formmessage" colspan="3">$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.NoFieldMappingSpecified'))</td></tr> + #end + + <tr class="formrow"><td class="formseparator" colspan="3"><hr/></td></tr> + <tr class="formrow"> + <td class="formcolumncell"> + <a name="fieldmapping"> + <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('SolrIngester.Add'))" alt="$Encoder.attributeEscape($ResourceBundle.getString('SolrIngester.AddFieldMapping'))" onclick="javascript:s${SEQNUM}_addFieldMapping();"/> + </a> + <input type="hidden" name="s${SEQNUM}_fieldmapping_count" value="$fieldcounter"/> + <input type="hidden" name="s${SEQNUM}_fieldmapping_op" value="Continue"/> + </td> + <td class="formcolumncell"> + <nobr><input type="text" size="15" name="s${SEQNUM}_fieldmapping_source" value=""/></nobr> + </td> + <td class="formcolumncell"> + <nobr><input type="text" size="15" name="s${SEQNUM}_fieldmapping_target" value=""/></nobr> + </td> + </tr> + </table> + </td> + </tr> + +<tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FieldId'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_fieldid" type="text" + value="$Encoder.attributeEscape($FIELDID)" size="16" /> + </td> + </tr> + +<tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FieldDate'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_fielddate" type="text" + value="$Encoder.attributeEscape($FIELDDATE)" size="16" /> + </td> + </tr> + + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FieldContent'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_fieldcontent" type="text" + value="$Encoder.attributeEscape($FIELDCONTENT)" size="16" /> + </td> + </tr> + + + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FilterCondition'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_filter" type="text" + value="$Encoder.attributeEscape($FILTERCONDITION)" size="16" /> + </td> + </tr> + + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.RowsNumber'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_rowsnumber" type="text" + value="$Encoder.attributeEscape($ROWSNUMBER)" size="16" /> + </td> + </tr> + + +</table> +#else + + #set($fieldcounter = 0) + #foreach($fieldmapping in $FIELDMAPPINGS) +<input type="hidden" name="s${SEQNUM}_fieldmapping_source_$fieldcounter" value="$Encoder.attributeEscape($fieldmapping.get('SOURCE'))"/> +<input type="hidden" name="s${SEQNUM}_fieldmapping_target_$fieldcounter" value="$Encoder.attributeEscape($fieldmapping.get('TARGET'))"/> + #set($fieldcounter = $fieldcounter + 1) + #end +<input type="hidden" name="s${SEQNUM}_fieldmapping_count" value="$fieldcounter"/> +<input type="hidden" name="s${SEQNUM}_collection" value="$Encoder.bodyEscape($COLLECTION)" /> +<input type="hidden" name="s${SEQNUM}_fieldid" value="$Encoder.bodyEscape($FIELDID)" /> +<input type="hidden" name="s${SEQNUM}_fielddate" value="$Encoder.bodyEscape($FIELDDATE)" /> +<input type="hidden" name="s${SEQNUM}_fieldcontent" value="$Encoder.bodyEscape($FIELDCONTENT)" /> +<input type="hidden" name="s${SEQNUM}_filter" value="$Encoder.bodyEscape($FILTERCONDITION)" /> +<input type="hidden" name="s${SEQNUM}_rowsnumber" value="$Encoder.bodyEscape($ROWSNUMBER)" /> + + +#end \ No newline at end of file Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.js URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.js?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.js (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_parameters.js Sat Nov 21 08:11:53 2020 @@ -0,0 +1,48 @@ +<!-- + 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 s${SEQNUM}_addFieldMapping() +{ + if (editjob.s${SEQNUM}_fieldmapping_source.value == "") + { + alert("$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.NoFieldNameSpecified'))"); + editjob.s${SEQNUM}_fieldmapping_source.focus(); + return; + } + editjob.s${SEQNUM}_fieldmapping_op.value="Add"; + postFormSetAnchor("s${SEQNUM}_fieldmapping"); +} + +function s${SEQNUM}_deleteFieldMapping(i) +{ + // Set the operation + eval("editjob.s${SEQNUM}_fieldmapping_op_"+i+".value=\"Delete\""); + // Submit + if (editjob.s${SEQNUM}_fieldmapping_count.value==i) + postFormSetAnchor("s${SEQNUM}_fieldmapping"); + else + postFormSetAnchor("s${SEQNUM}_fieldmapping_"+i) + // Undo, so we won't get two deletes next time + eval("editjob.s${SEQNUM}_fieldmapping_op_"+i+".value=\"Continue\""); +} + + + +//--> +</script> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.html Sat Nov 21 08:11:53 2020 @@ -0,0 +1,57 @@ +<!-- + 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('SolrIngester.SecurityTabName') && ${SEQNUM} == ${SELECTEDNUM}) + +<table class="displaytable"> + <tr><td class="separator" colspan="2"><hr/></td></tr> + + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityActivation'))</nobr></td> + <td class="value"> + #if($SECURITYACTIVATION == 'true') + <input type="checkbox" checked="true" name="s${SEQNUM}_securityactivated" value="true"/> + #else + <input type="checkbox" name="s${SEQNUM}_securityactivated" value="true"/> + #end + </td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityField'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_securityfield" type="text" + value="$Encoder.attributeEscape($SECURITYFIELD)" size="20" /> + </td> + </tr> + + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityField2'))</nobr></td> + <td class="value"><input name="s${SEQNUM}_securityfield2" type="text" + value="$Encoder.attributeEscape($SECURITYFIELD2)" size="20" /> + </td> + </tr> +</table> + +#else + + + +<input type="hidden" name="s${SEQNUM}_securityactivated" value="$Encoder.bodyEscape($SECURITYACTIVATION)"/> +<input type="hidden" name="s${SEQNUM}_securityfield" value="$Encoder.bodyEscape($SECURITYFIELD)"/> +<input type="hidden" name="s${SEQNUM}_securityfield2" value="$Encoder.bodyEscape($SECURITYFIELD2)"/> + + +#end \ No newline at end of file Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.js URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.js?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.js (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/editSpecification_job_security.js Sat Nov 21 08:11:53 2020 @@ -0,0 +1,53 @@ +<!-- + 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 s${SEQNUM}_checkSpecification() +{ + if (editjob.s${SEQNUM}_securityactivated.checked && editjob.s${SEQNUM}_securityfield.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueSecurityField'))"); + editjob.s${SEQNUM}_securityfield.focus(); + return false; + } + + if (editjob.s${SEQNUM}_collection.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueCollection'))"); + editjob.s${SEQNUM}_collection.focus(); + return false; + } + + if (editjob.s${SEQNUM}_fieldid.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueIdField'))"); + editjob.s${SEQNUM}_fieldid.focus(); + return false; + } + + if (editjob.s${SEQNUM}_fielddate.value == "") + { + alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('SolrIngester.NoValueDateField'))"); + editjob.s${SEQNUM}_fielddate.focus(); + return false; + } + + + return true; +} +//--> +</script> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewConfiguration_connector.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewConfiguration_connector.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewConfiguration_connector.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewConfiguration_connector.html Sat Nov 21 08:11:53 2020 @@ -0,0 +1,39 @@ +<!-- + 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('SolrIngester.SolrAddress'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SOLRADDRESS)</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SolrUsername'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SOLRUSERNAME)</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SolrPassword'))</nobr></td> + <td class="value"><nobr>**********</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.ConnectionTimeout'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($CONNECTIONTIMEOUT)</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SocketTimeout'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SOCKETTIMEOUT)</nobr></td> + </tr> +</table> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_parameters.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_parameters.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_parameters.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_parameters.html Sat Nov 21 08:11:53 2020 @@ -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="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.CollectionName'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($COLLECTION)</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FieldMappings'))</nobr></td> + <td class="boxcell"> + <table class="formtable"> + <tr class="formheaderrow"> + <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.MetadataFieldName'))</nobr></td> + <td class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FinalFieldName'))</nobr></td> + </tr> +#set($fieldcounter = 0) +#foreach($fieldmapping in $FIELDMAPPINGS) + #if(($fieldcounter % 2) == 0) + <tr class="evenformrow"> + #else + <tr class="oddformrow"> + #end + <td class="formcolumncell"> + <nobr>$Encoder.bodyEscape($fieldmapping.get('SOURCE'))</nobr> + </td> + <td class="formcolumncell"> + <nobr>$Encoder.bodyEscape($fieldmapping.get('TARGETDISPLAY'))</nobr> + </td> + </tr> + #set($fieldcounter = $fieldcounter + 1) +#end +#if($fieldcounter == 0) + <tr class="formrow"><td class="formmessage" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.NoFieldMappingSpecified'))</td></tr> +#end + </table> + </td> + </tr> + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.IdField'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($FIELDID)</nobr></td> + </tr> + + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.DateField'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($FIELDDATE)</nobr></td> + </tr> + + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.ContentField'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($FIELDCONTENT)</nobr></td> + </tr> + + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.FilterCondition'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($FILTERCONDITION)</nobr></td> + </tr> + + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.RowsNumber'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($ROWSNUMBER)</nobr></td> + </tr> + + + +</table> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_security.html URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_security.html?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_security.html (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solringester/viewSpecification_job_security.html Sat Nov 21 08:11:53 2020 @@ -0,0 +1,38 @@ +<!-- + 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="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityActivation'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SECURITYACTIVATION)</nobr></td> + </tr> + <tr><td class="separator" colspan="2"><hr/></td></tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityField'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SECURITYFIELD)</nobr></td> + </tr> + <tr> + <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('SolrIngester.SecurityField2'))</nobr></td> + <td class="value"><nobr>$Encoder.bodyEscape($SECURITYFIELD2)</nobr></td> + </tr> + + + +</table> Added: manifoldcf/branches/CONNECTORS-1653/connectors/solringester/pom.xml URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1653/connectors/solringester/pom.xml?rev=1883685&view=auto ============================================================================== --- manifoldcf/branches/CONNECTORS-1653/connectors/solringester/pom.xml (added) +++ manifoldcf/branches/CONNECTORS-1653/connectors/solringester/pom.xml Sat Nov 21 08:11:53 2020 @@ -0,0 +1,393 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <parent> + <groupId>org.apache.manifoldcf</groupId> + <artifactId>mcf-connectors</artifactId> + <version>2.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + </properties> + + <artifactId>mcf-solringester-connector</artifactId> + <name>ManifoldCF - Connectors - SolrIngester</name> + + <build> + <defaultGoal>integration-test</defaultGoal> + <sourceDirectory>${basedir}/connector/src/main/java</sourceDirectory> + <testSourceDirectory>${basedir}/connector/src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>${basedir}/connector/src/main/native2ascii</directory> + <includes> + <include>**/*.properties</include> + </includes> + </resource> + <resource> + <directory>${basedir}/connector/src/main/resources</directory> + <includes> + <include>**/*.html</include> + <include>**/*.js</include> + </includes> + </resource> + </resources> + <testResources> + <testResource> + <directory>${basedir}/connector/src/test/resources</directory> + </testResource> + </testResources> + + <plugins> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>native2ascii-maven-plugin</artifactId> + <version>1.0-beta-1</version> + <configuration> + <dest>target/classes</dest> + <src>connector/src/main/native2ascii</src> + </configuration> + <executions> + <execution> + <id>native2ascii-utf8</id> + <goals> + <goal>native2ascii</goal> + </goals> + <configuration> + <encoding>UTF8</encoding> + <includes> + <include>**/*.properties</include> + </includes> + </configuration> + </execution> + </executions> + </plugin> + + <!-- Test plugin configuration --> + <plugin> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-war</id> + <phase>generate-resources</phase> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <outputDirectory>target/dependency</outputDirectory> + <artifactItems> + <artifactItem> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-api-service</artifactId> + <version>${project.version}</version> + <type>war</type> + <overWrite>false</overWrite> + <destFileName>mcf-api-service.war</destFileName> + </artifactItem> + <artifactItem> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-authority-service</artifactId> + <version>${project.version}</version> + <type>war</type> + <overWrite>false</overWrite> + <destFileName>mcf-authority-service.war</destFileName> + </artifactItem> + <artifactItem> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-crawler-ui</artifactId> + <version>${project.version}</version> + <type>war</type> + <overWrite>false</overWrite> + <destFileName>mcf-crawler-ui.war</destFileName> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/*Postgresql*.java</exclude> + <exclude>**/*MySQL*.java</exclude> + </excludes> + <forkCount>1</forkCount> + <reuseForks>false</reuseForks> + <workingDirectory>target/test-output</workingDirectory> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.18.1</version> + <configuration> + <skipTests>${skipITs}</skipTests> + <systemPropertyVariables> + <crawlerWarPath>../dependency/mcf-crawler-ui.war</crawlerWarPath> + <authorityserviceWarPath>../dependency/mcf-authority-service.war</authorityserviceWarPath> + <apiWarPath>../dependency/mcf-api-service.war</apiWarPath> + </systemPropertyVariables> + <excludes> + <exclude>**/*Postgresql*.java</exclude> + <exclude>**/*MySQL*.java</exclude> + </excludes> + <forkCount>1</forkCount> + <reuseForks>false</reuseForks> + <workingDirectory>target/test-output</workingDirectory> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>integration-test</goal> + </goals> + </execution> + <execution> + <id>verify</id> + <goals> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> + + + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-core</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-connector-common</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-agents</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-pull-agent</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-ui-core</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>${commons-logging.version}</version> + </dependency> + + <!-- Testing dependencies --> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>${junit.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-core</artifactId> + <version>${project.version}</version> + <type>test-jar</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-agents</artifactId> + <version>${project.version}</version> + <type>test-jar</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-pull-agent</artifactId> + <version>${project.version}</version> + <type>test-jar</type> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>${postgresql.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>${hsqldb.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>${mysql.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-api-service</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-authority-service</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mcf-crawler-ui</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-server</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-util</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-webapp</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-servlet</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-http</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-io</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-security</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-continuation</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-xml</artifactId> + <version>${jetty.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jsp-api-2.1-glassfish</artifactId> + <version>${glassfish.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jsp-2.1-glassfish</artifactId> + <version>${glassfish.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>${slf4j.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-simple</artifactId> + <version>${slf4j.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>${xerces.version}</version> + </dependency> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-impl</artifactId> + <version>${jaxb.version}</version> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <version>${httpcomponent.httpclient.version}</version> + </dependency> + <dependency> + <groupId>org.apache.solr</groupId> + <artifactId>solr-solrj</artifactId> + <version>7.5.0</version> + </dependency> + <dependency> + <groupId>org.apache.solr</groupId> + <artifactId>solr-core</artifactId> + <version>7.5.0</version> + </dependency> + </dependencies> +</project> +
