From commits-return-6941-apmail-jackrabbit-commits-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Jan 23 16:50:18 2009 Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 73251 invoked from network); 23 Jan 2009 16:50:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2009 16:50:18 -0000 Received: (qmail 35230 invoked by uid 500); 23 Jan 2009 16:50:18 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 35204 invoked by uid 500); 23 Jan 2009 16:50:18 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 35195 invoked by uid 99); 23 Jan 2009 16:50:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 08:50:18 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 16:50:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 85C4D2388979; Fri, 23 Jan 2009 08:49:45 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@jackrabbit.apache.org From: dpfister@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090123164945.85C4D2388979@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ + + + + + + 4.0.0 + + + org.apache.jackrabbit + jcr-cmis-parent + 1.6-SNAPSHOT + + jcr-cmis-client + war + 1.6-SNAPSHOT + Jackrabbit CMIS Client Web application + + + + javax.jcr + jcr + provided + + + javax.servlet + servlet-api + provided + + + + org.apache.jackrabbit + jcr-cmis-cmis2jcr + 1.6-SNAPSHOT + + + org.apache.jackrabbit + jackrabbit-jcr-rmi + 1.6-SNAPSHOT + + + + + + + org.mortbay.jetty + maven-jetty-plugin + 6.1.9 + + 10 + + + 8080 + 60000 + + + + + + + + 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 @@ + + + JCR CMIS Client + + + URL pointing to a JCR repository, e.g. rmi://localhost:1099/jackrabbit + + url + + + + + Workspace to use on login, e.g. default + + workspace + + + + xml + /xml.jsp + + + xml + *.xml + + + index.html + + \ 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(''); + 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 @@ + + +CMIS v0.5+ implementation: getCheckedOutDocuments + + + + + + +
+

Navigation Services: getCheckedOutDocuments

+
+ + + + +
getCheckedOutDocuments (optional)
  +
+
+

+ +

+ +
+ + \ 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 @@ + + +CMIS v0.5+ implementation: getChildren + + + + + + + +
+

Navigation Services: getChildren

+ + + + + +
Path
  +
+
+
+
+

+ +

+ +
+ + \ 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"; + +%> + + <%= authorName %> + <%= entry.getObjectId() %> + + + Children for <%= entry.getName() %> + <%= entry.getLastModificationDate().getTime() %><% + + for (Entry child : entry.getChildren()) { + + %> + <% + String childId = child.getId(); + String childUrl = contextPath + "/" + childId; + %> + <%= authorName %> + <%= childId %> + urn:uuid:<%= childId %> + + + + + + + + + + <%= child.getLastModificationDate().getTime() %> + Summary for <%= child.getName() %> + Title for <%= child.getName() %> + <%= child.getLastModifiedBy() %> + + + <%= child.getObjectId() %> + <%= child.getObjectTypeId() %> + <%= child.getCreatedBy() %> + <%= child.getCreationDate().getTime() %> + <%= child.getLastModifiedBy() %> + <%= child.getLastModificationDate().getTime() %> + <%= child.getName() %> + <%= child.getParentId() %> + + + + <%= child.getLastModifiedBy() %> + + + <% } %> + 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 @@ + + +CMIS v0.5+ implementation: getDescendants + + + + + + + +
+

Navigation Services: getDescendants

+ + + + + +
Path
  +
+
+
+
+

+ +

+ +
+ + \ 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"; + +%> + + <%= authorName %> + <%= entry.getObjectId() %> + + + Descendants for <%= entry.getName() %> + <%= entry.getLastModificationDate().getTime() %><% + + for (Entry descendant : entry.getDescendants()) { + + %> + <% + String childId = descendant.getId(); + String childUrl = contextPath + "/" + childId; + %> + <%= authorName %> + <%= childId %> + urn:uuid:<%= childId %> + + + + + + + + + + <%= descendant.getLastModificationDate().getTime() %> + Summary for <%= descendant.getName() %> + Title for <%= descendant.getName() %> + <%= descendant.getLastModifiedBy() %> + + + <%= descendant.getObjectId() %> + <%= descendant.getObjectTypeId() %> + <%= descendant.getCreatedBy() %> + <%= descendant.getCreationDate().getTime() %> + <%= descendant.getLastModifiedBy() %> + <%= descendant.getLastModificationDate().getTime() %> + <%= descendant.getName() %> + <%= descendant.getParentId() %> + + + + <%= descendant.getLastModifiedBy() %> + + + <% } %> + 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 @@ + + +CMIS v0.5+ implementation: getFolderParent + + + + + + +
+

Navigation Services: getFolderParent

+
+ + + + +
getFolderParent (optional)
  +
+
+

+ +

+ +
+ + \ 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 @@ + + +CMIS v0.5+ implementation: getObjectParents + + + + + + +
+

Navigation Services: getObjectParents

+
+ + + + +
getObjectParents (optional)
  +
+
+

+ +

+ +
+ + \ 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 @@ + + +CMIS v0.5+ implementation: getRepositoryInfo + + + + + + +
+

Repository Services: getRepositoryInfo

+
+ + + + +
RepositoryId (optional)
  +
+
+

+ +

+ +
+ + \ 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(); + +%> + + + <%= repository.getName() %> + + + <%= repository.getId() %> + <%= repository.getName() %> + self + <%= repository.getDescription() %> + <%= repository.getVendorName() %> + <%= repository.getProductName() %> + <%= repository.getProductVersion() %> + <%= repository.getRootFolderId() %> + + <%= caps.hasMultifiling() %> + <%= caps.hasUnfiling() %> + <%= caps.hasVersionSpecificFiling() %> + <%= caps.isPWCUpdatable() %> + <%= caps.isPWCSearchable() %> + <%= caps.areAllVersionsSearchable() %> + <%= caps.getQuerySupport() %> + <%= caps.getJoinSupport() %> + <%= caps.getFullTextSupport() %> + + <%= repository.getVersionsSupported() %> + + + + + root collection + + + root collection + + + checkedout collection + + + unfiled collection + + + type collection + + + type collection + + + query collection + + + + 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 @@ + + +CMIS v0.5+ implementation: getTypeDefinition + + + + + + +
+

Repository Services: getTypeDefinition

+
+ + + + +
Include Property Definitions (optional)
  +
+
+

+ +

+ +
+ + \ 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 @@ + + +CMIS v0.5+ implementation: getTypes + + + + + + +
+

Repository Services: getTypes

+
+ + + + + + + + + + + + + + + + +
Type (optional)
Include Property Definitions (optional)
Max Items (optional)
Skip Count (optional)
  +
+
+

+ +

+ +
+ + \ 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('
CMIS v0.5+ implementation
Content Management Interoperability Services (CMIS) draft implementation
'); 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 @@ + + +CMIS v0.5+ implementation + + + + + + + + + + \ 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