incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1179441 - in /incubator/lcf/trunk: ./ connectors/cmis/ connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/ connectors/cmis/connector/src/main/resource/ connectors/cmis/connector/src/main/resource/org/ con...
Date Wed, 05 Oct 2011 21:08:02 GMT
Author: piergiorgio
Date: Wed Oct  5 21:08:01 2011
New Revision: 1179441

URL: http://svn.apache.org/viewvc?rev=1179441&view=rev
Log:
- CONNECTORS-264: Changing the repositoryId to an empty value is not possible
- CONNECTORS-265: removed from the CMIS Connector all the HTML snippets from the Java code

Added:
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
  (with props)
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
  (with props)
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
  (with props)
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
  (with props)
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
  (with props)
    incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
  (with props)
Modified:
    incubator/lcf/trunk/CHANGES.txt
    incubator/lcf/trunk/connectors/cmis/build.xml
    incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java

Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1179441&r1=1179440&r2=1179441&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Wed Oct  5 21:08:01 2011
@@ -3,6 +3,12 @@ $Id$
 
 ======================= 0.4-dev =====================
 
+CONNECTORS-264: Changing the repositoryId to an empty value is not possible
+(Piergiorgio Lucidi)
+
+CONNECTORS-265: removed from the CMIS Connector all the HTML snippets from the Java code
+(Piergiorgio Lucidi)
+
 CONNECTORS-268: Move sources for, and prebuild, the MCPermissions
 web service plugin for the SharePoint connector.
 (Karl Wright)

Modified: incubator/lcf/trunk/connectors/cmis/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/build.xml?rev=1179441&r1=1179440&r2=1179441&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/build.xml (original)
+++ incubator/lcf/trunk/connectors/cmis/build.xml Wed Oct  5 21:08:01 2011
@@ -43,7 +43,10 @@
 
     <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/mcf-cmis-connector.jar" basedir="build/connector/classes"/>
+        <jar destfile="build/jar/mcf-cmis-connector.jar">
+        	<fileset dir="build/connector/classes"/>
+          <fileset dir="connector/src/main/resource" />
+        </jar>
     </target>
 
     <target name="lib" depends="jar-connector">

Modified: incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java?rev=1179441&r1=1179440&r2=1179441&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
(original)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Wed Oct  5 21:08:01 2011
@@ -16,9 +16,12 @@
  */
 package org.apache.manifoldcf.crawler.connectors.cmis;
 
+import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.InputStreamReader;
 import java.io.InterruptedIOException;
+import java.io.UnsupportedEncodingException;
 import java.math.BigDecimal;
 import java.math.BigInteger;
 import java.rmi.NotBoundException;
@@ -46,6 +49,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.PropertyType;
 import org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException;
 import org.apache.chemistry.opencmis.commons.impl.Constants;
+import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.manifoldcf.agents.interfaces.RepositoryDocument;
 import org.apache.manifoldcf.agents.interfaces.ServiceInterruption;
@@ -88,6 +92,14 @@ public class CmisRepositoryConnector ext
   private static final String CMIS_DOCUMENT_BASE_TYPE = "cmis:document";
   private static final SimpleDateFormat ISO8601_DATE_FORMATTER = new SimpleDateFormat(
       "yyyy-MM-dd'T'HH:mm:ssZ");
+  
+  private static final String VIEW_CONFIG_FORWARD = "viewConfiguration.html";
+  private static final String EDIT_CONFIG_FORWARD = "editConfiguration.html";
+  private static final String EDIT_CONFIG_HEADER_FORWARD = "editConfiguration.js";
+  
+  private static final String VIEW_SPEC_FORWARD = "viewSpecification.html";
+  private static final String EDIT_SPEC_FORWARD = "editSpecification.html";
+  private static final String EDIT_SPEC_HEADER_FORWARD = "editSpecification.js";
 
   /**
    * CMIS Session handle
@@ -565,6 +577,60 @@ public class CmisRepositoryConnector ext
   }
 
   /**
+   * Read the content of a resource, replace the variable ${PARAMNAME} with the
+   * value and copy it to the out.
+   * 
+   * @param resName
+   * @param out
+   * @throws ManifoldCFException
+   */
+  private void outputResource(String resName, IHTTPOutput out,
+      ConfigParams params) throws ManifoldCFException {
+    InputStream is = getClass().getResourceAsStream(resName);
+    BufferedReader br = null;
+    try {
+      br = new BufferedReader(new InputStreamReader(is, "UTF-8"));
+      String line;
+      while ((line = br.readLine()) != null) {
+        if (params != null){
+          Iterator i = params.listParameters();
+          boolean parsedLine = false;
+          while(i.hasNext()){
+            String key = (String) i.next();
+            String value = params.getParameter(key);
+            String replacer = "${"+key.toUpperCase()+"}";
+            if(StringUtils.contains(line, replacer)){  
+              if(StringUtils.isEmpty(value)){
+                out.println(StringUtils.replace(line, replacer, StringUtils.EMPTY));
+                parsedLine=true;
+              } else {
+                out.println(StringUtils.replace(line, replacer, value));
+                parsedLine=true;
+              }
+            } else if(StringUtils.contains(line, "${")){
+                parsedLine=true;
+            } else if(!parsedLine){
+                out.println(line);
+                parsedLine=true;
+            }
+          }
+        } else {
+            break;
+        }
+      }
+    } catch (UnsupportedEncodingException e) {
+      throw new ManifoldCFException(e);
+    } catch (IOException e) {
+      throw new ManifoldCFException(e);
+    } finally {
+      if (br != null)
+        IOUtils.closeQuietly(br);
+      if (is != null)
+        IOUtils.closeQuietly(is);
+    }
+  }
+  
+  /**
    * View configuration. This method is called in the body section of the
    * connector's view configuration page. Its purpose is to present the
    * connection information to the user. The coder can presume that the HTML that
@@ -582,28 +648,11 @@ public class CmisRepositoryConnector ext
   @Override
   public void viewConfiguration(IThreadContext threadContext, IHTTPOutput out,
       ConfigParams parameters) throws ManifoldCFException, IOException {
-    out.print("<table class=\"displaytable\">\n"
-        + "  <tr>\n"
-        + "    <td class=\"description\" colspan=\"1\"><nobr>Parameters:</nobr></td>\n"
-        + "    <td class=\"value\" colspan=\"3\">\n");
-    Iterator iter = parameters.listParameters();
-    while (iter.hasNext()) {
-      String param = (String) iter.next();
-      String value = parameters.getParameter(param);
-      if (param.length() >= "password".length()
-          && param.substring(param.length() - "password".length())
-              .equalsIgnoreCase("password")) {
-        out.print("      <nobr>"
-            + org.apache.manifoldcf.ui.util.Encoder.bodyEscape(param)
-            + "=********</nobr><br/>\n");
-      } else {
-        out.print("      <nobr>"
-            + org.apache.manifoldcf.ui.util.Encoder.bodyEscape(param) + "="
-            + org.apache.manifoldcf.ui.util.Encoder.bodyEscape(value)
-            + "</nobr><br/>\n");
-      }
-    }
-    out.print("</td>\n" + "  </tr>\n" + "</table>\n");
+    String repositoryId = parameters.getParameter(CONFIG_PARAM_REPOSITORY_ID);
+    if(StringUtils.isEmpty(repositoryId))
+      repositoryId = StringUtils.EMPTY;
+    parameters.setParameter(CONFIG_PARAM_REPOSITORY_ID, repositoryId);
+    outputResource(VIEW_CONFIG_FORWARD, out, parameters);
   }
 
   /**
@@ -627,91 +676,18 @@ public class CmisRepositoryConnector ext
   public void outputConfigurationHeader(IThreadContext threadContext,
       IHTTPOutput out, ConfigParams parameters, List<String> tabsArray)
       throws ManifoldCFException, IOException {
-    out.print("<script type=\"text/javascript\">\n" + "<!--\n"
-        + "function checkConfig()\n" + "{\n"
-        + "  if (editconnection.username.value == \"\")\n" + "  {\n"
-        + "    alert(\"The username must be not null\");\n"
-        + "    editconnection.username.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.password.value == \"\")\n" + "  {\n"
-        + "    alert(\"The password must be not null\");\n"
-        + "    editconnection.password.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.endpoint.value == \"\")\n" + "  {\n"
-        + "    alert(\"The endpoint must be not null\");\n"
-        + "    editconnection.endpoint.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.binding.value == \"\")\n" + "  {\n"
-        + "    alert(\"The binding must be not null\");\n"
-        + "    editconnection.binding.focus();\n" + "    return false;\n"
-        + "  }\n" + "\n" + "  return true;\n" + "}\n" + " \n"
-        + "function checkConfigForSave()\n" + "{\n"
-        + "  if (editconnection.username.value == \"\")\n" + "  {\n"
-        + "    alert(\"The username must be not null\");\n"
-        + "    editconnection.username.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.password.value == \"\")\n" + "  {\n"
-        + "    alert(\"The password must be not null\");\n"
-        + "    editconnection.password.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.binding.value == \"\")\n" + "  {\n"
-        + "    alert(\"The binding must be not null\");\n"
-        + "    editconnection.binding.focus();\n" + "    return false;\n"
-        + "  }\n" + "  if (editconnection.endpoint.value == \"\")\n" + "  {\n"
-        + "    alert(\"The endpoint must be not null\");\n"
-        + "    editconnection.endpoint.focus();\n" + "    return false;\n"
-        + "  }\n" + "  return true;\n" + "}\n" + "\n" + "//-->\n"
-        + "</script>\n");
+    outputResource(EDIT_CONFIG_HEADER_FORWARD, out, parameters);
   }
 
   @Override
   public void outputConfigurationBody(IThreadContext threadContext,
       IHTTPOutput out, ConfigParams parameters, String tabName)
       throws ManifoldCFException, IOException {
-    
-    String username = parameters.getParameter(CONFIG_PARAM_USERNAME);
-    String password = parameters.getParameter(CONFIG_PARAM_PASSWORD);
-    String endpoint = parameters.getParameter(CONFIG_PARAM_ENDPOINT);
     String repositoryId = parameters.getParameter(CONFIG_PARAM_REPOSITORY_ID);
-    String binding = parameters.getParameter(CONFIG_PARAM_BINDING);
-    
-    if(StringUtils.isEmpty(username))
-      username = StringUtils.EMPTY;
-    if(StringUtils.isEmpty(password))
-      password = StringUtils.EMPTY;
-    if(StringUtils.isEmpty(endpoint))
-      endpoint = StringUtils.EMPTY;
     if(StringUtils.isEmpty(repositoryId))
       repositoryId = StringUtils.EMPTY;
-    if(StringUtils.isEmpty(binding))
-      binding = BINDING_ATOM_VALUE;
-    
-    out.print("<table class=\"displaytable\">\n"
-        + "  <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n");
-    out.print(
-         "<tr><td class=\"description\"><nobr>Binding:</nobr></td>\n"
-        +"<td class=\"value\"><select name=\"binding\">");
-    
-    if(BINDING_ATOM_VALUE.equals(binding)){    
-      out.print("<option value=\""+BINDING_ATOM_VALUE+"\" selected=\"selected\">AtomPub</option>"
-          +"<option value=\""+BINDING_WS_VALUE+"\">Web Services</option>"
-          +"</select></td></tr>");
-      
-    } else if(BINDING_WS_VALUE.equals(binding)) {
-      out.print("<option value=\""+BINDING_ATOM_VALUE+"\">AtomPub</option>"
-          +"<option value=\""+BINDING_WS_VALUE+"\" selected=\"selected\">Web Services</option>"
-          +"</select></td></tr>");
-    }
-    
-    out.print("<tr><td class=\"description\"><nobr>Username:</nobr></td>\n"
-        +"<td class=\"value\"><input type=\"text\" name=\""
-        + CONFIG_PARAM_USERNAME + "\" value=\""+username+"\"/></td></tr>\n");
-    out.print("<tr><td class=\"description\"><nobr>Password:</nobr></td>"
+
-    		"<td class=\"value\"><input type=\"password\" name=\""
-        + CONFIG_PARAM_PASSWORD + "\" value=\""+password+"\"/></td></tr>\n");
-    out.print("<tr><td class=\"description\"><nobr>Endpoint:</nobr></td>"
+
-    		"<td class=\"value\"><input type=\"text\" name=\""
-        + CONFIG_PARAM_ENDPOINT + "\" value=\""+endpoint+"\" size=\"50\"/></td></tr>\n");
-    out.print("<tr><td class=\"description\"><nobr>Repository ID:</nobr></td>"
+
-    		"<td class=\"value\"><input type=\"text\" name=\""
-        + CONFIG_PARAM_REPOSITORY_ID + "\" value=\""+repositoryId+"\"/><nobr>(optional)</nobr></td></tr>\n");
-    out.print("</table>\n");
-    
+    parameters.setParameter(CONFIG_PARAM_REPOSITORY_ID, repositoryId);
+    outputResource(EDIT_CONFIG_FORWARD, out, parameters);
   }
 
   /**
@@ -754,10 +730,8 @@ public class CmisRepositoryConnector ext
     if (StringUtils.isNotEmpty(endpoint) && endpoint.length() > 0)
       parameters.setParameter(CONFIG_PARAM_ENDPOINT, endpoint);
 
-    String repositoryId = variableContext
-        .getParameter(CONFIG_PARAM_REPOSITORY_ID);
-    if (StringUtils.isNotEmpty(repositoryId))
-      parameters.setParameter(CONFIG_PARAM_REPOSITORY_ID, repositoryId);
+    String repositoryId = variableContext.getParameter(CONFIG_PARAM_REPOSITORY_ID);
+    parameters.setParameter(CONFIG_PARAM_REPOSITORY_ID, repositoryId);
 
     return null;
   }
@@ -776,31 +750,20 @@ public class CmisRepositoryConnector ext
   @Override
   public void viewSpecification(IHTTPOutput out, DocumentSpecification ds)
       throws ManifoldCFException, IOException {
-
-    out.print("<table class=\"displaytable\">\n");
     int i = 0;
     boolean seenAny = false;
+    ConfigParams specificationParams = new ConfigParams();
     while (i < ds.getChildCount()) {
       SpecificationNode sn = ds.getChild(i);
       if (sn.getType().equals(JOB_STARTPOINT_NODE_TYPE)) {
         if (seenAny == false) {
           seenAny = true;
         }
-        out.print("  <tr>\n"
-            + "    <td class=\"description\">CMIS Query:</td>\n"
-            + "    <td class=\"value\">\n"
-            + org.apache.manifoldcf.ui.util.Encoder.bodyEscape(sn
-                .getAttributeValue(CONFIG_PARAM_CMIS_QUERY)));
-        out.print("    </td>\n" + "  </tr>\n");
+        specificationParams.setParameter(CONFIG_PARAM_CMIS_QUERY.toUpperCase(), sn.getAttributeValue(CONFIG_PARAM_CMIS_QUERY));
       }
       i++;
     }
-
-    if (seenAny == false) {
-      out.print("  <tr><td class=\"message\">No documents specified</td></tr>\n");
-    }
-    out.print("</table>\n");
-
+    outputResource(VIEW_SPEC_FORWARD, out, specificationParams);
   }
 
   /**
@@ -881,19 +844,10 @@ public class CmisRepositoryConnector ext
         }
         i++;
       }
-
-      out.print("<table class=\"displaytable\">\n"
-          + "  <tr><td class=\"separator\" colspan=\"3\"><hr/></td></tr>\n"
-          + "        <tr>\n"
-          + "       <td class=\"description\"><nobr>CMIS Query:</nobr></td>"
-          + "          <td class=\"value\">\n"
-          + "            <nobr>\n"
-          + "              <input type=\"text\" size=\"120\" name=\"cmisQuery\" value=\""+cmisQuery+"\"/>\n"
-          + "            </nobr>\n"
-          + "          </td>\n"
-          + "  			</tr>\n"
-          + "  </tr>"
-          + "</table>\n");
+      
+      ConfigParams params = new ConfigParams();
+      params.setParameter(CONFIG_PARAM_CMIS_QUERY, cmisQuery);
+      outputResource(EDIT_SPEC_FORWARD, out, params);
     }
   }
 
@@ -916,14 +870,7 @@ public class CmisRepositoryConnector ext
       DocumentSpecification ds, List<String> tabsArray)
       throws ManifoldCFException, IOException {
     tabsArray.add(TAB_LABEL_CMIS_QUERY);
-
-    out.print("<script type=\"text/javascript\">\n"
-        + "function checkSpecification()\n" + "{\n"
-        + "  // Does nothing right now.\n" + "  return true;\n" + "}\n" + "\n"
-        + "function SpecOp(n, opValue, anchorvalue)\n" + "{\n"
-        + "  eval(\"editjob.\"+n+\".value = \\\"\"+opValue+\"\\\"\");\n"
-        + "  postFormSetAnchor(anchorvalue);\n" + "}\n" + "</script>\n");
-
+    outputResource(EDIT_SPEC_HEADER_FORWARD, out, params);
   }
 
   @Override

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,100 @@
+<!--
+ 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>
+				Binding:
+			</nobr>
+		</td>
+		<td class="value">
+			<select id="binding" name="binding">
+				<option value="atom" selected="selected">
+					AtomPub
+				</option>
+				<option value="ws">
+					Web Services
+				</option>
+			</select>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Username:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="text" name="username" value="${USERNAME}" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Password:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="password" name="password" value="${PASSWORD}" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Endpoint:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="text" name="endpoint" value="${ENDPOINT}" size="50" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Repository ID:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="text" id="repositoryId" name="repositoryId" value="" />
+			<nobr>
+				(optional)
+			</nobr>
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+var binding = "${BINDING}";
+if(binding=="ws"){
+  var bindingSelect = document.getElementById("binding");
+  bindingSelect.options[1].selected = true;
+}
+
+var repositoryId = "${REPOSITORYID}";
+var repositoryIdField = document.getElementById("repositoryId");
+if(repositoryId!=null && repositoryId!="" && repositoryId!=undefined){
+  repositoryIdField.value = repositoryId;
+} else {
+  repositoryIdField.value = "";
+}
+</script>
\ No newline at end of file

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,79 @@
+<!--
+ 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 checkConfig()
+{
+  if (editconnection.username.value == "")
+  {
+    alert("The username must be not null");
+    editconnection.username.focus();
+    return false;
+  }
+  if (editconnection.password.value == "")
+  {
+    alert("The password must be not null");
+    editconnection.password.focus();
+    return false;
+  }
+  if (editconnection.endpoint.value == "")
+  {
+    alert("The endpoint must be not null");
+    editconnection.endpoint.focus();
+    return false;
+  }
+  if (editconnection.binding.value == "")
+  {
+    alert("The binding must be not null");
+    editconnection.binding.focus();
+    return false;
+  }
+ 
+  return true;
+}
+ 
+function checkConfigForSave()
+{
+  if (editconnection.username.value == "")
+  {
+    alert("The username must be not null");
+    editconnection.username.focus();
+    return false;
+  }
+  if (editconnection.password.value == "")
+  {
+    alert("The password must be not null");
+    editconnection.password.focus();
+    return false;
+  }
+  if (editconnection.binding.value == "")
+  {
+    alert("The binding must be not null");
+    editconnection.binding.focus();
+    return false;
+  }
+  if (editconnection.endpoint.value == "")
+  {
+    alert("The endpoint must be not null");
+    editconnection.endpoint.focus();
+    return false;
+  }
+  return true;
+}
+-->
+</script>
\ No newline at end of file

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editConfiguration.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,36 @@
+<!--
+ 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="3">
+			<hr />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				CMIS Query:
+			</nobr>
+		</td>
+		<td class="value">
+			<nobr>
+				<input type="text" size="120" name="cmisQuery" value="${CMISQUERY}" />
+			</nobr>
+		</td>
+	</tr>
+</table>

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,32 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<script type="text/javascript">
+<!--
+function checkSpecification()
+{
+  // Does nothing right now.
+  return true;
+}
+ 
+function SpecOp(n, opValue, anchorvalue)
+{
+  eval("editjob."+n+".value = \""+opValue+"\"");
+  postFormSetAnchor(anchorvalue);
+}
+-->
+</script>
\ No newline at end of file

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/editSpecification.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,58 @@
+<!--
+ 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" colspan="1">
+			<nobr>
+				Parameters:
+			</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>
+				username=${USERNAME}
+			</nobr>
+			<br />
+      <nobr>
+        password=********
+      </nobr>
+			<br />
+			<nobr>
+				binding=${BINDING}
+			</nobr>
+			<br />
+			<nobr>
+				endpoint=${ENDPOINT}
+			</nobr>
+			<br />
+			<nobr>
+        <div id="repositoryIdDiv"></div>
+      </nobr>
+      <br />
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+var repositoryId = "${REPOSITORYID}";
+var repositoryIdField = document.getElementById("repositoryIdDiv");
+if(repositoryId!=null && repositoryId!="" && repositoryId!=undefined){
+  repositoryIdField.innerHTML = "repositoryId=" + repositoryId;
+} else {
+  repositoryIdField.innerHTML = "";
+}
+</script>
\ No newline at end of file

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewConfiguration.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html?rev=1179441&view=auto
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
(added)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
Wed Oct  5 21:08:01 2011
@@ -0,0 +1,35 @@
+<!--
+ 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">
+			CMIS Query:
+		</td>
+		<td class="value">
+			<div id="cmisQueryDiv">${CMISQUERY}</div>
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+var cmisQuery = "${CMISQUERY}";
+if(cmisQuery.trim()==""){
+  var cmisQueryDiv = document.getElementById("cmisQueryDiv");
+  cmisQueryDiv.innerHTML = "";
+}
+</script>

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/trunk/connectors/cmis/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/cmis/viewSpecification.html
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message