jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r737089 - in /jackrabbit/sandbox/jcr-cmis/client: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/jackrabbit/ src/main/java/org/apache/jackrabbit/cmis/ src/main/java/org/apache/jackrabb...
Date Fri, 23 Jan 2009 16:49:44 GMT
Author: dpfister
Date: Fri Jan 23 08:49:43 2009
New Revision: 737089

URL: http://svn.apache.org/viewvc?rev=737089&view=rev
Log:
JCRCMIS - web application used to interactively test CMIS services

Added:
    jackrabbit/sandbox/jcr-cmis/client/
    jackrabbit/sandbox/jcr-cmis/client/pom.xml   (with props)
    jackrabbit/sandbox/jcr-cmis/client/readme.txt   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/
    jackrabbit/sandbox/jcr-cmis/client/src/main/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/
    jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-body.png   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-twocols.png   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/logo.png   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css   (with props)
    jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp   (with props)

Added: jackrabbit/sandbox/jcr-cmis/client/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/pom.xml?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/pom.xml (added)
+++ jackrabbit/sandbox/jcr-cmis/client/pom.xml Fri Jan 23 08:49:43 2009
@@ -0,0 +1,79 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.jackrabbit</groupId>
+    <artifactId>jcr-cmis-parent</artifactId>
+    <version>1.6-SNAPSHOT</version>
+  </parent>
+  <artifactId>jcr-cmis-client</artifactId>
+  <packaging>war</packaging>
+  <version>1.6-SNAPSHOT</version>
+  <name>Jackrabbit CMIS Client Web application</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>javax.jcr</groupId>
+      <artifactId>jcr</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jcr-cmis-cmis2jcr</artifactId>
+      <version>1.6-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jackrabbit-jcr-rmi</artifactId>
+      <version>1.6-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+         <groupId>org.mortbay.jetty</groupId>
+         <artifactId>maven-jetty-plugin</artifactId>
+         <version>6.1.9</version>
+         <configuration>
+           <scanIntervalSeconds>10</scanIntervalSeconds>
+           <connectors>
+             <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+               <port>8080</port>
+               <maxIdleTime>60000</maxIdleTime>
+             </connector>
+           </connectors>
+         </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: jackrabbit/sandbox/jcr-cmis/client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/readme.txt
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/readme.txt?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/readme.txt (added)
+++ jackrabbit/sandbox/jcr-cmis/client/readme.txt Fri Jan 23 08:49:43 2009
@@ -0,0 +1 @@
+This directory contains a client web application, exposing the CMIS AtomPub services.

Propchange: jackrabbit/sandbox/jcr-cmis/client/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java Fri Jan 23 08:49:43 2009
@@ -0,0 +1,66 @@
+/*
+ * 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.
+ */
+package org.apache.jackrabbit.cmis.client;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.UnavailableException;
+
+import org.apache.jackrabbit.cmis.Repository;
+import org.apache.jackrabbit.cmis.jcr.JCRRepository;
+import org.apache.jackrabbit.rmi.client.ClientRepositoryFactory;
+
+public abstract class JCRRepositoryLocator {
+
+    public static Repository getRepository(ServletContext context)
+            throws ServletException {
+
+        String url = context.getInitParameter("url");
+        String workspace = context.getInitParameter("workspace");
+
+        if (url == null || workspace == null) {
+            String msg = "Init parameter 'url' or 'workspace' are not specified.";
+            throw new UnavailableException(msg);
+        }
+
+        try {
+            return getRepository(url, workspace);
+        } catch (Exception e) {
+            String msg = "Unable to obtain repository.";
+            UnavailableException ue = new UnavailableException(msg);
+            ue.initCause(e);
+            throw ue;
+        }
+    }
+
+    public static Repository getRepository(String url, String workspace)
+            throws Exception {
+
+        if (url.startsWith("rmi:")) {
+            return getRMIRepository(url, workspace);
+        }
+        String msg = "Unknown protocol: " + url;
+        throw new IllegalArgumentException(msg);
+    }
+
+    private static Repository getRMIRepository(String url, String workspace)
+            throws Exception {
+
+        ClientRepositoryFactory factory = new ClientRepositoryFactory();
+        return new JCRRepository(factory.getRepository(url), workspace);
+    }
+}

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/java/org/apache/jackrabbit/cmis/client/JCRRepositoryLocator.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml Fri Jan 23 08:49:43 2009
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+            http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+        version="2.4">
+    <display-name>JCR CMIS Client</display-name>
+    <context-param>
+        <description>
+             URL pointing to a JCR repository, e.g. rmi://localhost:1099/jackrabbit
+        </description>
+        <param-name>url</param-name>
+        <param-value></param-value>
+    </context-param>
+    <context-param>
+        <description>
+             Workspace to use on login, e.g. default
+        </description>
+        <param-name>workspace</param-name>
+        <param-value></param-value>
+    </context-param>
+    <servlet>
+        <servlet-name>xml</servlet-name>
+        <jsp-file>/xml.jsp</jsp-file>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>xml</servlet-name>
+        <url-pattern>*.xml</url-pattern>
+    </servlet-mapping>
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+</web-app>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-body.png
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-body.png?rev=737089&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-body.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-twocols.png
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-twocols.png?rev=737089&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/bg-twocols.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js Fri Jan 23 08:49:43 2009
@@ -0,0 +1,2 @@
+document.write('<div class="footer"><a href="http://www.apache.org/licenses/">License</a> | Powered by <a href="http://jackrabbit.apache.org/">Apache Jackrabbit</a></div>');
+

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/footer.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getCheckedOutDocuments</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Navigation Services: getCheckedOutDocuments</h1>
+        <form method="GET" action="getCheckedOutDocuments" target="result">
+            <table class="formtable">
+            <tr>
+                <td>getCheckedOutDocuments (optional)</td>
+                <td><input class="text" type="text" name=""></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getCheckedOutDocuments.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,36 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getChildren</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <script>
+        function changeAction() {
+            var form = document.getElementById("inputform"); 
+            var path = document.getElementById("path").value;
+            form.action = "." + path + ".getChildren.xml";
+            return true;
+        }
+    </script>
+    <div class="content">
+	<h1>Navigation Services: getChildren</h1>
+        <table class="formtable">
+            <tr>
+                <td>Path</td>
+                <td><input class="text" type="text" name="path" id="path" value="/"></td>
+            </tr>
+            <tr><td>&nbsp;</td><td>
+        </table>
+	<form method="GET" action=".getChildren.xml" target="result" id="inputform" onSubmit="changeAction()">
+	    <input type="submit"><br>
+	</form>
+	<p>
+	    <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+	</p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp Fri Jan 23 08:49:43 2009
@@ -0,0 +1,75 @@
+<%@ page session="false" %><%
+%><%@ page import="org.apache.jackrabbit.cmis.*,
+                   org.apache.jackrabbit.cmis.client.JCRRepositoryLocator,
+                 java.util.Iterator" %><%
+
+    response.setContentType("application/atom+xml;type=feed");
+    response.setCharacterEncoding("UTF-8");
+
+    String contextPath = request.getContextPath();
+    String path = (String) request.getAttribute("path");
+    
+    String id = "";
+    if (path != null && path.startsWith("/")) {
+        id = path.substring(1);
+    }
+    
+    Repository repository = JCRRepositoryLocator.getRepository(application);
+    Entry entry = repository.getEntry(id);
+    if (entry == null) {
+        %>Unable to return entry for id: <%= id %><%
+        return;
+    }
+    
+    String authorName = "admin";
+    
+%><?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmis="http://www.cmis.org/2008/05">
+    <author><name><%= authorName %></name></author>
+    <id><%= entry.getObjectId() %></id>
+    <link rel="self" href="<%= request.getRequestURI() %>"/>
+    <link rel="cmis-source" href="<%= request.getRequestURI() %>"/>
+    <title>Children for <%= entry.getName() %></title>
+    <updated><%= entry.getLastModificationDate().getTime() %></updated><%
+    
+    for (Entry child : entry.getChildren()) {
+        
+    %>
+    <entry><%
+        String childId = child.getId();
+        String childUrl = contextPath + "/" + childId;
+    %>
+        <author><name><%= authorName %></name></author>
+        <content><%= childId %></content>
+        <id>urn:uuid:<%= childId %></id>
+        <link rel="self" href="<%= childUrl %>"/>
+        <link rel="cmis-allowableactions" href="<%= contextPath %>/<%= childId %>.getAllowableActions.xml"/>
+        <link rel="cmis-relationships" href="<%= contextPath %>/<%= childId %>.getRelationShips.xml"/>
+        <link rel="cmis-parent" href="<%= contextPath %>/<%= childId %>.getParent.xml"/>
+        <link rel="cmis-folderparent" href="<%= contextPath %>/<%= childId %>.getFolderParent.xml"/>
+        <link rel="cmis-children" href="<%= contextPath %>/<%= childId %>.getChildren.xml"/>
+        <link rel="cmis-descendants" href="<%= contextPath %>/<%= childId %>.getDescendants.xml"/>
+        <link rel="cmis-type" href="<%= contextPath %>/<%= childId %>.getType.xml"/>
+        <link rel="cmis-repository" href="<%= contextPath %>/<%= childId %>.getRepository.xml"/>
+        <published><%= child.getLastModificationDate().getTime() %></published>
+        <summary>Summary for <%= child.getName() %></summary>
+        <title>Title for <%= child.getName() %></title>
+        <updated><%= child.getLastModifiedBy() %></updated>
+        <cmis:object>
+            <cmis:properties>
+                <cmis:propertyId cmis:name="ObjectId"><cmis:value><%= child.getObjectId() %></cmis:value></cmis:propertyId>
+                <cmis:propertyString cmis:name="ObjectTypeId"><cmis:value><%= child.getObjectTypeId() %></cmis:value></cmis:propertyString>
+                <cmis:propertyString cmis:name="CreatedBy"><cmis:value><%= child.getCreatedBy() %></cmis:value></cmis:propertyString>
+                <cmis:propertyDateTime cmis:name="CreationDate"><cmis:value><%= child.getCreationDate().getTime() %></cmis:value></cmis:propertyDateTime>
+                <cmis:propertyString cmis:name="LastModifiedBy"><cmis:value><%= child.getLastModifiedBy() %></cmis:value></cmis:propertyString>
+                <cmis:propertyDateTime cmis:name="LastModificationDate"><cmis:value><%= child.getLastModificationDate().getTime() %></cmis:value></cmis:propertyDateTime>
+                <cmis:propertyString cmis:name="Name"><cmis:value><%= child.getName() %></cmis:value></cmis:propertyString>
+                <cmis:propertyId cmis:name="ParentId"><cmis:value><%= child.getParentId() %></cmis:value></cmis:propertyId>
+            </cmis:properties>
+        </cmis:object>
+        <cmis:terminator/>
+        <app:edited><%= child.getLastModifiedBy() %></app:edited>
+    </entry>
+    
+    <% } %>
+</feed>

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getChildren.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,36 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getDescendants</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <script>
+        function changeAction() {
+            var form = document.getElementById("inputform"); 
+            var path = document.getElementById("path").value;
+            form.action = "." + path + ".getDescendants.xml";
+            return true;
+        }
+    </script>
+    <div class="content">
+	<h1>Navigation Services: getDescendants</h1>
+        <table class="formtable">
+            <tr>
+                <td>Path</td>
+                <td><input class="text" type="text" name="path" id="path" value="/"></td>
+            </tr>
+            <tr><td>&nbsp;</td><td>
+        </table>
+	<form method="GET" action=".getDescendants.xml" target="result" id="inputform" onSubmit="changeAction()">
+	    <input type="submit"><br>
+	</form>
+	<p>
+	    <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+	</p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp Fri Jan 23 08:49:43 2009
@@ -0,0 +1,75 @@
+<%@ page session="false" %><%
+%><%@ page import="org.apache.jackrabbit.cmis.*,
+                   org.apache.jackrabbit.cmis.client.JCRRepositoryLocator,
+                   java.util.Iterator" %><%
+
+    response.setContentType("application/atom+xml;type=feed");
+    response.setCharacterEncoding("UTF-8");
+
+    String contextPath = request.getContextPath();
+    String path = (String) request.getAttribute("path");
+    
+    String id = "";
+    if (path != null && path.startsWith("/")) {
+        id = path.substring(1);
+    }
+    
+    Repository repository = JCRRepositoryLocator.getRepository(application);
+    Entry entry = repository.getEntry(id);
+    if (entry == null) {
+        %>Unable to return entry for id: <%= id %><%
+        return;
+    }
+    
+    String authorName = "admin";
+    
+%><?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmis="http://www.cmis.org/2008/05">
+    <author><name><%= authorName %></name></author>
+    <id><%= entry.getObjectId() %></id>
+    <link rel="self" href="<%= request.getRequestURI() %>"/>
+    <link rel="cmis-source" href="<%= request.getRequestURI() %>"/>
+    <title>Descendants for <%= entry.getName() %></title>
+    <updated><%= entry.getLastModificationDate().getTime() %></updated><%
+    
+    for (Entry descendant : entry.getDescendants()) {
+        
+    %>
+    <entry><%
+        String childId = descendant.getId();
+        String childUrl = contextPath + "/" + childId;
+    %>
+        <author><name><%= authorName %></name></author>
+        <content><%= childId %></content>
+        <id>urn:uuid:<%= childId %></id>
+        <link rel="self" href="<%= childUrl %>"/>
+        <link rel="cmis-allowableactions" href="<%= childUrl %>?allowableactions"/>
+        <link rel="cmis-relationships" href="<%= childUrl %>?relationships"/>
+        <link rel="cmis-parent" href="<%= childUrl %>?parent"/>
+        <link rel="cmis-folderparent" href="<%= childUrl %>?folderparent"/>
+        <link rel="cmis-children" href="<%= childUrl %>?children"/>
+        <link rel="cmis-descendants" href="<%= childUrl %>?descendants"/>
+        <link rel="cmis-type" href="<%= childUrl %>?type"/>
+        <link rel="cmis-repository" href="<%= childUrl %>?repository"/>
+        <published><%= descendant.getLastModificationDate().getTime() %></published>
+        <summary>Summary for <%= descendant.getName() %></summary>
+        <title>Title for <%= descendant.getName() %></title>
+        <updated><%= descendant.getLastModifiedBy() %></updated>
+        <cmis:object>
+            <cmis:properties>
+                <cmis:propertyId cmis:name="ObjectId"><cmis:value><%= descendant.getObjectId() %></cmis:value></cmis:propertyId>
+                <cmis:propertyString cmis:name="ObjectTypeId"><cmis:value><%= descendant.getObjectTypeId() %></cmis:value></cmis:propertyString>
+                <cmis:propertyString cmis:name="CreatedBy"><cmis:value><%= descendant.getCreatedBy() %></cmis:value></cmis:propertyString>
+                <cmis:propertyDateTime cmis:name="CreationDate"><cmis:value><%= descendant.getCreationDate().getTime() %></cmis:value></cmis:propertyDateTime>
+                <cmis:propertyString cmis:name="LastModifiedBy"><cmis:value><%= descendant.getLastModifiedBy() %></cmis:value></cmis:propertyString>
+                <cmis:propertyDateTime cmis:name="LastModificationDate"><cmis:value><%= descendant.getLastModificationDate().getTime() %></cmis:value></cmis:propertyDateTime>
+                <cmis:propertyString cmis:name="Name"><cmis:value><%= descendant.getName() %></cmis:value></cmis:propertyString>
+                <cmis:propertyId cmis:name="ParentId"><cmis:value><%= descendant.getParentId() %></cmis:value></cmis:propertyId>
+            </cmis:properties>
+        </cmis:object>
+        <cmis:terminator/>
+        <app:edited><%= descendant.getLastModifiedBy() %></app:edited>
+    </entry>
+    
+    <% } %>
+</feed>

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getDescendants.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getFolderParent</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Navigation Services: getFolderParent</h1>
+        <form method="GET" action="getFolderParent.xml" target="result">
+            <table class="formtable">
+            <tr>
+                <td>getFolderParent (optional)</td>
+                <td><input class="text" type="text" name=""></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getFolderParent.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getObjectParents</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Navigation Services: getObjectParents</h1>
+        <form method="GET" action="getObjectParents" target="result">
+            <table class="formtable">
+            <tr>
+                <td>getObjectParents (optional)</td>
+                <td><input class="text" type="text" name=""></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getObjectParents.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getRepositoryInfo</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Repository Services: getRepositoryInfo</h1>
+        <form method="GET" action="getRepositoryInfo.xml" target="result">
+            <table class="formtable">
+            <tr>
+                <td>RepositoryId (optional)</td>
+                <td><input class="text" type="text" name=""></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp Fri Jan 23 08:49:43 2009
@@ -0,0 +1,64 @@
+<%@ page import="org.apache.jackrabbit.cmis.*,
+                 org.apache.jackrabbit.cmis.client.JCRRepositoryLocator" %><%
+
+    response.setContentType("text/xml");
+    response.setCharacterEncoding("UTF-8");
+
+    String contextPath = request.getContextPath();
+    
+    Repository repository = JCRRepositoryLocator.getRepository(application);
+    Capabilities caps = repository.getCapabilities();
+    
+%><?xml version="1.0" encoding="utf-8"?>
+<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/2008/05">
+  <workspace cmis:repositoryRelationship="self">
+    <atom:title><%= repository.getName() %></atom:title>
+
+    <cmis:repositoryInfo>
+      <cmis:repositoryId><%= repository.getId() %></cmis:repositoryId>
+      <cmis:repositoryName><%= repository.getName() %></cmis:repositoryName>
+      <cmis:repositoryRelationship>self</cmis:repositoryRelationship>
+      <cmis:repositoryDescription><%= repository.getDescription() %></cmis:repositoryDescription>
+      <cmis:vendorName><%= repository.getVendorName() %></cmis:vendorName>
+      <cmis:productName><%= repository.getProductName() %></cmis:productName>
+      <cmis:productVersion><%= repository.getProductVersion() %></cmis:productVersion>
+      <cmis:rootFolderId><%= repository.getRootFolderId() %></cmis:rootFolderId>
+      <cmis:capabilities>
+        <cmis:capabilityMultifiling><%= caps.hasMultifiling() %></cmis:capabilityMultifiling>
+        <cmis:capabilityUnfiling><%= caps.hasUnfiling() %></cmis:capabilityUnfiling>
+        <cmis:capabilityVersionSpecificFiling><%= caps.hasVersionSpecificFiling() %></cmis:capabilityVersionSpecificFiling>
+        <cmis:capabilityPWCUpdateable><%= caps.isPWCUpdatable() %></cmis:capabilityPWCUpdateable>
+        <cmis:capabilityPWCSearchable><%= caps.isPWCSearchable() %></cmis:capabilityPWCSearchable>
+        <cmis:capabilityAllVersionsSearchable><%= caps.areAllVersionsSearchable() %></cmis:capabilityAllVersionsSearchable>
+        <cmis:capabilityQuery><%= caps.getQuerySupport() %></cmis:capabilityQuery>
+        <cmis:capabilityJoin><%= caps.getJoinSupport() %></cmis:capabilityJoin>
+        <cmis:capabilityFullText><%= caps.getFullTextSupport() %></cmis:capabilityFullText>
+      </cmis:capabilities>
+      <cmis:cmisVersionsSupported><%= repository.getVersionsSupported() %></cmis:cmisVersionsSupported>
+      <cmis:repositorySpecificInformation></cmis:repositorySpecificInformation>
+    </cmis:repositoryInfo>
+
+    <collection href="<%= contextPath %>/.getChildren.xml" cmis:collectionType="root-children">
+      <atom:title>root collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getDescendants.xml" cmis:collectionType="root-descendants">
+      <atom:title>root collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getCheckedOut.xml" cmis:collectionType="checkedout">
+      <atom:title>checkedout collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getUnfiled.xml" cmis:collectionType="unfiled">
+      <atom:title>unfiled collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getTypesChildren.xml" cmis:collectionType="types-children">
+      <atom:title>type collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getTypesDescendants.xml" cmis:collectionType="types-descendants">
+      <atom:title>type collection</atom:title>
+    </collection>
+    <collection href="<%= contextPath %>/.getQuery.xml" cmis:collectionType="query">
+      <atom:title>query collection</atom:title>
+    </collection>
+
+  </workspace>
+</service>

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getRepositoryInfo.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getTypeDefinition</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Repository Services: getTypeDefinition</h1>
+        <form method="GET" action="getTypeDefinition.xml" target="result">
+            <table class="formtable">
+            <tr>
+                <td>Include Property Definitions (optional)</td>
+                <td><input class="text" type="text" name="includePropertyDefinitions"></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypeDefinition.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,38 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation: getTypes</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+    <script src="header.js"></script>
+    <div class="content">
+        <h1>Repository Services: getTypes</h1>
+        <form method="GET" action="getTypes.xml" target="result">
+            <table class="formtable">
+            <tr>
+                <td>Type (optional)</td>
+                <td><input class="text" type="text" name="type"></td>
+            </tr>
+            <tr>
+                <td>Include Property Definitions (optional)</td>
+                <td><input class="text" type="text" name="includePropertyDefinitions"></td>
+            </tr>
+            <tr>
+                <td>Max Items (optional)</td>
+                <td><input class="text" type="text" name="maxItems"></td>
+            </tr>
+            <tr>
+                <td>Skip Count (optional)</td>
+                <td><input class="text" type="text" name="skipCount"></td>
+            </tr><tr><td>&nbsp;</td><td>
+            <input type="submit"><br></td></tr></table>
+        </form>
+        <p>
+            <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+        </p>
+        <script src="footer.js"></script>
+    </div>
+</body>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/getTypes.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js Fri Jan 23 08:49:43 2009
@@ -0,0 +1 @@
+document.write('<div class="header"><div class="logo"><a href="http://jackrabbit.apache.org/" align="right"><img src="logo.png" align="right"></a></div><a href="index.html">CMIS v0.5+ implementation</a><br>Content Management Interoperability Services (CMIS) draft implementation</div>');

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/header.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html Fri Jan 23 08:49:43 2009
@@ -0,0 +1,71 @@
+<html>
+<head>
+<title>CMIS v0.5+ implementation</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+	<script src="header.js"></script>
+
+	<div class="content twocols">
+		<table><tr><td valign="top">
+	<div class="leftcol">
+<p>
+	
+	<h4>Repository Services</h4>
+	<a href="getRepositoryInfo.html">getRepositoryInfo</a><br>
+	<a href="getTypes.html">getTypes</a><br>
+	<a href="getTypeDefinition.html">getTypeDefinition</a><br>
+
+	<h4>Navigation Services</h4> 
+	<a href="getDescendants.html">getDescendants</a><br>
+	<a href="getChildren.html">getChildren</a><br>
+	<a href="getFolderParent.html">getFolderParent</a><br>
+	<a href="getObjectParents.html">getObjectParents</a><br>
+	<a href="getCheckedOutDocuments.html">getCheckedOutDocuments</a><br>
+
+	<h4>Object Services</h4> 
+	<a href="createDocument.html">createDocument</a><br>
+	<a href="createFolder.html">createFolder</a><br>
+	<a href="createRelationship.html">createRelationship</a><br>
+	<a href="getAllowableActions.html">getAllowableActions</a><br>
+	<a href="getProperties.html">getProperties</a><br>
+	<a href="getContentStream.html">getContentStream</a><br>
+	<a href="updateProperties.html">updateProperties</a><br>
+	<a href="moveObject.html">moveObject</a><br>
+	<a href="deleteObject.html">deleteObject</a><br>
+	<a href="deleteTree.html">deleteTree</a><br>
+	<a href="setContentStream.html">setContentStream</a><br>
+	<a href="deleteContentStream.html">deleteContentStream</a><br>
+
+	</p>
+	</div>
+	</td>
+	<td valign="top">
+	<div class="rightcol">
+		<p>
+			<h4>Multi-Filing Services</h4>
+			<a href="addDocumentToFolder.html">addDocumentToFolder</a><br>
+			<a href="removeDocumentFromFolder.html">removeDocumentFromFolder</a><br>
+
+			<h4>Discovery Services</h4>
+			<a href="query.html">query</a><br>
+
+			<h4>Versioning Services</h4> 
+			<a href="checkout.html">checkout</a><br>
+			<a href="cancelCheckOut.html">cancelCheckOut</a><br>
+			<a href="checkIn.html">checkIn</a><br>
+			<a href="getPropertiesOfLatestVersion.html">getPropertiesOfLatestVersion</a><br>
+			<a href="getAllVersions.html">getAllVersions</a><br>
+			<a href="deleteAllVersions.html">deleteAllVersions</a><br>
+
+			<h4>Relationship Services</h4>
+			<a href="getRelationships.html">getRelationships</a><br>
+
+</p>
+</div>
+</td></tr></table>
+</div>
+<script src="footer.js"></script>
+</div>
+</html>
\ No newline at end of file

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/logo.png
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/logo.png?rev=737089&view=auto
==============================================================================
Binary file - no diff available.

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css Fri Jan 23 08:49:43 2009
@@ -0,0 +1,151 @@
+body {
+	background: #eee url(bg-body.png) top center repeat-y;
+	color: #333;
+	font-family: Georgia, Times New Roman;
+	margin: 0 auto 0;
+	padding: 0;
+}
+
+.logo {
+	float: right;
+}
+
+.twocols {
+	background: #eee url(bg-twocols.png) top center repeat-y;
+}
+
+a, a:visited {
+	color: #58a;
+	text-decoration: none;
+}
+
+a:hover {
+	background-color: #ffc;
+	text-decoration: underline;
+}
+
+img {
+	border-style: none;
+}
+
+.header {
+	background: #fff;
+	margin: 0 auto 0;
+	text-align: left;
+	padding: 9px 0 29px 0;
+	width: 960px;
+	border-top: 10px solid #ccc;
+}
+
+.header a {
+	font-family: Helvetica, Verdana;
+	letter-spacing: -1px;
+	font-size: 31px;
+	font-weight: bold;
+	color: #58a;
+	text-decoration: none;
+	padding: 0 10px 0 0;
+	margin: 0;
+}
+
+.header a:hover {
+	color: #69d;
+	text-decoration: underline;
+}
+
+.leftcol {
+	width: 440px;
+	margin: 0 20px 0 0;
+	padding: 5px 0 5px 0;
+}
+
+.rightcol {
+	width: 440px;
+	margin: 0 20px 0 0;
+	padding: 5px 0 5px 0;
+}
+
+.formtable {
+	margin-top: 20px;
+	width: 600px;
+	padding: 0;
+	clear: both;
+}
+
+.formtable td {
+	padding: 5px;
+	width: 300px;
+	border-top: dotted #ddd 1px;
+}
+
+.formtable input.text {
+	width: 300px;
+}
+
+
+.content {
+	width: 960px;
+	margin: 0 auto 0;
+	padding: 0;
+	clear: both;
+}
+
+.content p {
+	padding: 0 0 15px 0;
+	margin: 0;
+	line-height: 20px;
+	font-size: 14px;
+}
+
+.content p img {
+	float: left;
+	border: none;
+	margin-right: 15px;
+	margin-bottom: 10px;
+}
+
+.content h1 {
+	border-top: 2px solid olive;
+	color: #58a;
+	font-family: Helvetica,Verdana;
+	font-size: 18px;
+	font-weight: bold;
+	line-height: 20px;
+	margin: 0;
+	padding: 5px 0;
+}
+
+.content h1 a {
+	color: #58a;
+	margin-left: -5px;
+	padding: 0 10px 0 5px;
+	text-decoration: none;
+}
+
+.content h1 a:hover {
+	background-color: #ffc;
+	color: #68b;
+}
+
+.content h2 {
+	color: olive;
+	font-size: 12px;
+	font-family: Helvetica, Verdana;
+	font-weight: bold;
+	margin: 20px 0 5px 0;
+	padding: 3px 0 3px 0;
+	border-top: 2px solid olive;
+	border-bottom: 1px dotted #ccc;
+}
+
+.footer {
+	font-size: 12px;
+	background: #fff;
+	width: 960px;
+	margin: 0 auto 0;
+	padding: 10px 0 10px 0;
+	text-align: left;
+	border-top: 1px solid #ccc;
+	clear: both;
+}
+

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/main.css
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp?rev=737089&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp (added)
+++ jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp Fri Jan 23 08:49:43 2009
@@ -0,0 +1,25 @@
+<%@page session="false"%><%
+
+    String servletPath = request.getServletPath();
+    int ext = servletPath.lastIndexOf('.');
+    if (ext == -1) {
+        log("No extension found.");
+        response.sendError(HttpServletResponse.SC_NOT_FOUND);
+        return;
+    }
+    String base = servletPath.substring(0, ext);
+    
+    int selector = base.lastIndexOf('.');
+    if (selector == -1) {
+        selector = 0;
+    }
+    String path = base.substring(0, selector);
+    String jspFile = base.substring(selector + 1) + ".jsp";
+    String uri = "/" + jspFile;
+    String queryString = request.getQueryString();
+    if (queryString != null) {
+        uri += "?" + queryString;
+    }
+    request.setAttribute("path", path);
+    request.getRequestDispatcher(uri).forward(request, response);
+%>

Propchange: jackrabbit/sandbox/jcr-cmis/client/src/main/webapp/xml.jsp
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message