Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C68929BBC for ; Tue, 3 Apr 2012 05:21:36 +0000 (UTC) Received: (qmail 53587 invoked by uid 500); 3 Apr 2012 05:21:36 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 53562 invoked by uid 500); 3 Apr 2012 05:21:36 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 53554 invoked by uid 99); 3 Apr 2012 05:21:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 05:21:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Tue, 03 Apr 2012 05:21:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6F42C2388C93 for ; Tue, 3 Apr 2012 05:21:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r811237 [17/17] - in /websites/staging/chemistry/trunk/content: ./ java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/ java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/css/ java/0.7.0/maven/chem... Date: Tue, 03 Apr 2012 05:20:58 -0000 To: commits@chemistry.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120403052102.6F42C2388C93@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/Util.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/Util.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/Util.html Tue Apr 3 05:20:54 2012 @@ -0,0 +1,108 @@ + + + + +Util xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.jcr.util;
+20  
+21  import java.util.Calendar;
+22  import java.util.GregorianCalendar;
+23  
+24  /**
+25   * Miscellaneous utility functions
+26   */
+27  public final class Util {
+28      private Util() {}
+29  
+30      /**
+31       * Convert from <code>Calendar</code> to a <code>GregorianCalendar</code>.
+32       * 
+33       * @param date
+34       * @return  <code>date</code> if it is an instance of <code>GregorianCalendar</code>.
+35       *   Otherwise a new <code>GregorianCalendar</code> instance for <code>date</code>.
+36       */
+37      public static GregorianCalendar toCalendar(Calendar date) {
+38          if (date instanceof GregorianCalendar) {
+39              return (GregorianCalendar) date;
+40          }
+41          else {
+42              GregorianCalendar calendar = new GregorianCalendar();
+43              calendar.setTimeZone(date.getTimeZone());
+44              calendar.setTimeInMillis(date.getTimeInMillis());
+45              return calendar;
+46          }
+47      }
+48  
+49      /**
+50       * Replace every occurrence of <code>target</code> in <code>string</code> with
+51       * <code>replacement</code>.
+52       *
+53       * @param string  string to do replacement on
+54       * @param target  string to search for
+55       * @param replacement  string to replace with
+56       * @return  string with replacing done
+57       */
+58      public static String replace(String string, String target, String replacement) {
+59          if ("".equals(target)) {
+60              throw new IllegalArgumentException("target string must not be empty");
+61          }
+62          if ("".equals(replacement) || target.equals(replacement)) {
+63              return string;
+64          }
+65  
+66          StringBuilder result = new StringBuilder();
+67          int d = target.length();
+68          int k = 0;
+69          int j;
+70          do {
+71              j = string.indexOf(target, k);
+72              if (j < 0) {
+73                  result.append(string.substring(k));
+74              }
+75              else {
+76                  result.append(string.substring(k, j)).append(replacement);
+77              }
+78  
+79              k = j + d;
+80          } while (j >= 0);
+81  
+82          return result.toString();
+83      }
+84  
+85      /**
+86       * Escapes a JCR path such that it can be used in a XPath query
+87       * @param path
+88       * @return  escaped path
+89       */
+90      public static String escape(String path) {
+91          return replace(path, " ", "_x0020_"); // fixme do more thorough escaping of path
+92      }
+93  
+94  }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-frame.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-frame.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-frame.html Tue Apr 3 05:20:54 2012 @@ -0,0 +1,36 @@ + + + + + + OpenCMIS JCR Server Implementation 0.7.0 Reference Package org.apache.chemistry.opencmis.jcr.util + + + + +

+ org.apache.chemistry.opencmis.jcr.util +

+ +

Classes

+ + + + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-summary.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-summary.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/org/apache/chemistry/opencmis/jcr/util/package-summary.html Tue Apr 3 05:20:54 2012 @@ -0,0 +1,87 @@ + + + + + + OpenCMIS JCR Server Implementation 0.7.0 Reference Package org.apache.chemistry.opencmis.jcr.util + + + +
+ +
+
+ +
+ +

Package org.apache.chemistry.opencmis.jcr.util

+ + + + + + + + + + + + + + + + + + + + + + + + +
Class Summary
+ FilterIterator +
+ ISO8601 +
+ Iterables +
+ Predicate +
+ Util +
+ +
+ +
+
+ +
+
+ Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-frame.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-frame.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-frame.html Tue Apr 3 05:20:54 2012 @@ -0,0 +1,37 @@ + + + + + + OpenCMIS JCR Server Implementation 0.7.0 Reference + + + + +

+ All Classes +

+ +

Packages

+ + + + + + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-summary.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-summary.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/overview-summary.html Tue Apr 3 05:20:54 2012 @@ -0,0 +1,84 @@ + + + + + + OpenCMIS JCR Server Implementation 0.7.0 Reference + + + +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +

OpenCMIS JCR Server Implementation 0.7.0 Reference

+ + + + + + + + + + + + + + + + + + + + + + + + +
Packages
+ org.apache.chemistry.opencmis.jcr +
+ org.apache.chemistry.opencmis.jcr.impl +
+ org.apache.chemistry.opencmis.jcr.query +
+ org.apache.chemistry.opencmis.jcr.type +
+ org.apache.chemistry.opencmis.jcr.util +
+ +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +
+ Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/stylesheet.css ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/stylesheet.css (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-server/chemistry-opencmis-server-jcr/xref/stylesheet.css Tue Apr 3 05:20:54 2012 @@ -0,0 +1,116 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} +div#footer { + text-align:center; +} +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +}