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 551D910E61 for ; Fri, 30 Aug 2013 13:27:52 +0000 (UTC) Received: (qmail 66566 invoked by uid 500); 30 Aug 2013 13:15:48 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 66503 invoked by uid 500); 30 Aug 2013 13:15:43 -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 66246 invoked by uid 99); 30 Aug 2013 13:15:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 13:15:13 +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; Fri, 30 Aug 2013 13:15:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id ADD642388831; Fri, 30 Aug 2013 13:14:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1518960 [1/2] - in /chemistry/opencmis/trunk: chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ chemistry-opencmis-client/chemistry-opencmis-client-binding... Date: Fri, 30 Aug 2013 13:14:42 -0000 To: commits@chemistry.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130830131444.ADD642388831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fmui Date: Fri Aug 30 13:14:41 2013 New Revision: 1518960 URL: http://svn.apache.org/r1518960 Log: code and JavaDoc clean up Added: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/package-info.java (with props) chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/package-info.java (with props) Removed: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/package.html Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/FormDataWriter.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/Response.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractCmisTestCase.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/BasicPermissions.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/SecondaryTypeIds.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConnectionException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConstraintException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisContentAlreadyExistsException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisFilterNotValidException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisInvalidArgumentException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNameConstraintViolationException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNotSupportedException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisObjectNotFoundException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisPermissionDeniedException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisProxyAuthenticationException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisRuntimeException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStorageException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStreamNotSupportedException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisUnauthorizedException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisUpdateConflictException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisVersioningException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/IOUtils.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeHelper.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/Base64Test.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/IOUtilsTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/XMLDocumentBase.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/ObjectService.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/POSTHttpServletRequestWrapper.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/CmisWebServicesServlet.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/test/java/org/apache/chemistry/opencmis/server/impl/AtomEntryParserTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/ObjectGenerator.java chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java Fri Aug 30 13:14:41 2013 @@ -57,6 +57,7 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException; import org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException; import org.apache.chemistry.opencmis.commons.impl.Constants; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.impl.MimeHelper; import org.apache.chemistry.opencmis.commons.impl.ReturnVersion; import org.apache.chemistry.opencmis.commons.impl.UrlBuilder; @@ -801,12 +802,7 @@ public class ObjectServiceImpl extends A // send content Response resp = put(url, contentStream.getMimeType(), headers, new Output() { public void write(OutputStream out) throws IOException { - int b; - byte[] buffer = new byte[4096]; - - while ((b = stream.read(buffer)) > -1) { - out.write(buffer, 0, b); - } + IOUtils.copy(stream, out); } }); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java Fri Aug 30 13:14:41 2013 @@ -19,8 +19,6 @@ package org.apache.chemistry.opencmis.client.bindings.spi.atompub; import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -33,6 +31,7 @@ import org.apache.chemistry.opencmis.cli import org.apache.chemistry.opencmis.client.bindings.spi.BindingSession; import org.apache.chemistry.opencmis.commons.SessionParameter; import org.apache.chemistry.opencmis.commons.impl.Constants; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.impl.UrlBuilder; /** @@ -150,8 +149,7 @@ public class LinkCache implements Serial String[] params = link.substring(i + 1).split("&"); for (String param : params) { String[] parts = param.split("=", 2); - if (parts[0].equals(Constants.PARAM_STREAM_ID) - && parts.length == 2) { + if (parts[0].equals(Constants.PARAM_STREAM_ID) && parts.length == 2) { return parts[1]; } } @@ -282,11 +280,7 @@ public class LinkCache implements Serial String paramValue = UrlBuilder.normalizeParameter(parameters.get(param.toString())); if (paramValue != null) { - try { - result.append(URLEncoder.encode(paramValue, "UTF-8")); - } catch (UnsupportedEncodingException e) { - result.append(paramValue); - } + result.append(IOUtils.encodeURL(paramValue)); } param = new StringBuilder(); @@ -332,7 +326,7 @@ public class LinkCache implements Serial /* * (non-Javadoc) - * + * * @see java.lang.Object#toString() */ @Override Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java Fri Aug 30 13:14:41 2013 @@ -59,6 +59,7 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException; import org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException; import org.apache.chemistry.opencmis.commons.impl.Constants; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.impl.MimeHelper; import org.apache.chemistry.opencmis.commons.impl.ReturnVersion; import org.apache.chemistry.opencmis.commons.impl.UrlBuilder; @@ -808,13 +809,8 @@ public class ObjectServiceImpl extends A // send content Response resp = put(url, contentStream.getMimeType(), headers, new Output() { - public void write(OutputStream out) throws Exception { - int b; - byte[] buffer = new byte[4096]; - - while ((b = stream.read(buffer)) > -1) { - out.write(buffer, 0, b); - } + public void write(OutputStream out) throws IOException { + IOUtils.copy(stream, out); } }); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/FormDataWriter.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/FormDataWriter.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/FormDataWriter.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/FormDataWriter.java Fri Aug 30 13:14:41 2013 @@ -18,10 +18,7 @@ */ package org.apache.chemistry.opencmis.client.bindings.spi.browser; -import java.io.BufferedInputStream; -import java.io.ByteArrayInputStream; import java.io.IOException; -import java.io.InputStream; import java.io.OutputStream; import java.net.URLEncoder; import java.util.GregorianCalendar; @@ -263,19 +260,7 @@ public class FormDataWriter { writeLine(out, "Content-Transfer-Encoding: binary"); writeLine(out); - InputStream stream = contentStream.getStream(); - if (!(stream instanceof BufferedInputStream) && !(stream instanceof ByteArrayInputStream)) { - // avoid double buffering - stream = new BufferedInputStream(stream, BUFFER_SIZE); - } - - byte[] buffer = new byte[BUFFER_SIZE]; - int b; - while ((b = stream.read(buffer)) > -1) { - if (b > 0) { - out.write(buffer, 0, b); - } - } + IOUtils.copy(contentStream.getStream(), out, BUFFER_SIZE); writeLine(out); writeLine(out, "--" + boundary + "--"); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java Fri Aug 30 13:14:41 2013 @@ -40,6 +40,7 @@ import org.apache.chemistry.opencmis.cli import org.apache.chemistry.opencmis.client.bindings.spi.BindingSession; import org.apache.chemistry.opencmis.commons.SessionParameter; import org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.impl.UrlBuilder; import org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider; import org.apache.http.Header; @@ -309,7 +310,7 @@ public abstract class AbstractApacheClie HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setUserAgent(params, ClientVersion.OPENCMIS_CLIENT); - HttpProtocolParams.setContentCharset(params, "UTF-8"); + HttpProtocolParams.setContentCharset(params, IOUtils.UTF8); HttpProtocolParams.setUseExpectContinue(params, true); HttpConnectionParams.setStaleCheckingEnabled(params, false); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/Response.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/Response.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/Response.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/Response.java Fri Aug 30 13:14:41 2013 @@ -90,10 +90,7 @@ public class Response { String encoding = getContentEncoding(); if (encoding != null) { if (encoding.toLowerCase().trim().equals("gzip")) { - try { - errorStream = new GZIPInputStream(errorStream, 4096); - } catch (IOException e) { - } + errorStream = new GZIPInputStream(errorStream, 4096); } else if (encoding.toLowerCase().trim().equals("deflate")) { errorStream = new InflaterInputStream(errorStream, new Inflater(true), 4096); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractCmisTestCase.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractCmisTestCase.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractCmisTestCase.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractCmisTestCase.java Fri Aug 30 13:14:41 2013 @@ -60,6 +60,7 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.enums.UnfileObject; import org.apache.chemistry.opencmis.commons.enums.VersioningState; import org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory; import org.apache.chemistry.opencmis.commons.spi.CmisBinding; import org.slf4j.Logger; @@ -456,8 +457,8 @@ public abstract class AbstractCmisTestCa assertNotNull(folderObject.getProperties().getProperties()); assertTrue(folderObject.getProperties().getProperties().get(PropertyIds.PATH) instanceof PropertyString); - PropertyString pathProperty = (PropertyString) folderObject.getProperties().getProperties().get( - PropertyIds.PATH); + PropertyString pathProperty = (PropertyString) folderObject.getProperties().getProperties() + .get(PropertyIds.PATH); assertNotNull(pathProperty.getValues()); assertEquals(1, pathProperty.getValues().size()); @@ -815,11 +816,7 @@ public abstract class AbstractCmisTestCa InputStream stream = contentStream.getStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); - byte[] buffer = new byte[4096]; - int b; - while ((b = stream.read(buffer)) > -1) { - baos.write(buffer, 0, b); - } + IOUtils.copy(stream, baos); return baos.toByteArray(); } @@ -920,16 +917,16 @@ public abstract class AbstractCmisTestCa assertEquals("PropertyDefinition " + id + " id:", expected.getId(), actual.getId()); assertEquals("PropertyDefinition " + id + " local name:", expected.getLocalName(), actual.getLocalName()); - assertEquals("PropertyDefinition " + id + " local namespace:", expected.getLocalNamespace(), actual - .getLocalNamespace()); + assertEquals("PropertyDefinition " + id + " local namespace:", expected.getLocalNamespace(), + actual.getLocalNamespace()); assertEquals("PropertyDefinition " + id + " query name:", expected.getQueryName(), actual.getQueryName()); assertEquals("PropertyDefinition " + id + " display name:", expected.getDisplayName(), actual.getDisplayName()); assertEquals("PropertyDefinition " + id + " description:", expected.getDescription(), actual.getDescription()); - assertEquals("PropertyDefinition " + id + " property type:", expected.getPropertyType(), actual - .getPropertyType()); + assertEquals("PropertyDefinition " + id + " property type:", expected.getPropertyType(), + actual.getPropertyType()); assertEquals("PropertyDefinition " + id + " cardinality:", expected.getCardinality(), actual.getCardinality()); - assertEquals("PropertyDefinition " + id + " updatability:", expected.getUpdatability(), actual - .getUpdatability()); + assertEquals("PropertyDefinition " + id + " updatability:", expected.getUpdatability(), + actual.getUpdatability()); } protected void assertEquals(Properties expected, Properties actual) { @@ -1083,8 +1080,8 @@ public abstract class AbstractCmisTestCa assertNotNull(allowableActions.getAllowableActions()); assertNotNull(action); - assertEquals("Allowable action \"" + action + "\":", expected, allowableActions.getAllowableActions().contains( - action)); + assertEquals("Allowable action \"" + action + "\":", expected, + allowableActions.getAllowableActions().contains(action)); } protected void assertEquals(Acl expected, Acl actual) { Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java Fri Aug 30 13:14:41 2013 @@ -335,7 +335,7 @@ public abstract class AbstractCmisObject // check if checked out Boolean isCheckedOut = getPropertyValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT); - if ((isCheckedOut != null) && isCheckedOut.booleanValue()) { + if (Boolean.TRUE.equals(isCheckedOut)) { updatebility.add(Updatability.WHENCHECKEDOUT); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java Fri Aug 30 13:14:41 2013 @@ -18,7 +18,6 @@ */ package org.apache.chemistry.opencmis.client.util; -import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; @@ -26,7 +25,6 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import java.io.OutputStream; import java.io.PrintStream; import java.math.BigInteger; import java.util.HashMap; @@ -255,10 +253,12 @@ public final class FileUtils { * @throws CmisBaseException */ public static void download(Document doc, String destinationPath) throws IOException { - FileOutputStream fileStream = new FileOutputStream(destinationPath); - BufferedOutputStream out = new BufferedOutputStream(fileStream); - copyStream(doc.getContentStream().getStream(), out); - out.close(); + FileOutputStream out = new FileOutputStream(destinationPath); + try { + IOUtils.copy(doc.getContentStream().getStream(), out, 64 * 1024); + } finally { + IOUtils.closeQuietly(out); + } } /** @@ -283,14 +283,6 @@ public final class FileUtils { } } - static void copyStream(InputStream inStream, OutputStream outStream) throws IOException { - byte[] buffer = new byte[48 * 1024]; - int bytesRead = 0; - while ((bytesRead = inStream.read(buffer, 0, buffer.length)) > 0) { - outStream.write(buffer, 0, bytesRead); - } - } - /** * Deletes an object by path or id (string identifier). * Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java Fri Aug 30 13:14:41 2013 @@ -54,6 +54,7 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.enums.CmisVersion; import org.apache.chemistry.opencmis.commons.enums.PropertyType; import org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException; +import org.apache.chemistry.opencmis.commons.impl.IOUtils; import org.apache.chemistry.opencmis.commons.impl.JSONConverter; import org.apache.chemistry.opencmis.commons.impl.XMLConstants; import org.apache.chemistry.opencmis.commons.impl.XMLConverter; @@ -101,7 +102,7 @@ public final class TypeUtils { throw new IllegalArgumentException("Output stream must be set!"); } - Writer writer = new BufferedWriter(new OutputStreamWriter(stream, "UTF-8")); + Writer writer = new BufferedWriter(new OutputStreamWriter(stream, IOUtils.UTF8)); JSONConverter.convert(type).writeJSONString(writer); writer.flush(); } @@ -140,7 +141,7 @@ public final class TypeUtils { } JSONParser parser = new JSONParser(); - Object json = parser.parse(new InputStreamReader(stream, "UTF-8")); + Object json = parser.parse(new InputStreamReader(stream, IOUtils.UTF8)); if (!(json instanceof Map)) { throw new CmisRuntimeException("Invalid stream! Not a type definition!"); Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/BasicPermissions.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/BasicPermissions.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/BasicPermissions.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/BasicPermissions.java Fri Aug 30 13:14:41 2013 @@ -26,7 +26,10 @@ public final class BasicPermissions { private BasicPermissions() { } + /** CMIS read permission {@code cmis:read}. */ public static final String READ = "cmis:read"; + /** CMIS write permission {@code cmis:write}. */ public static final String WRITE = "cmis:write"; + /** CMIS all permission {@code cmis:all}. */ public static final String ALL = "cmis:all"; } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java Fri Aug 30 13:14:41 2013 @@ -19,7 +19,7 @@ package org.apache.chemistry.opencmis.commons; /** - * Collection of CMIS property ids. + * CMIS property id constants. */ public final class PropertyIds { @@ -27,87 +27,252 @@ public final class PropertyIds { } // ---- base ---- - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:name}: name of the object. + * + * @cmis 1.0 + */ public static final String NAME = "cmis:name"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:objectId}: id of the object. + * + * @cmis 1.0 + */ public static final String OBJECT_ID = "cmis:objectId"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:objectTypeId}: id of primary type of the + * object. + * + * @cmis 1.0 + */ public static final String OBJECT_TYPE_ID = "cmis:objectTypeId"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:baseTypeId}: id of the base type of the object. + * + * @cmis 1.0 + */ public static final String BASE_TYPE_ID = "cmis:baseTypeId"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:createdBy}: creator of the object. + * + * @cmis 1.0 + */ public static final String CREATED_BY = "cmis:createdBy"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:creationDate}: creation date. + * + * @cmis 1.0 + */ public static final String CREATION_DATE = "cmis:creationDate"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:lastModifiedBy}: last modifier of the object. + * + * @cmis 1.0 + */ public static final String LAST_MODIFIED_BY = "cmis:lastModifiedBy"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:lastModificationDate}: last modification date. + * + * @cmis 1.0 + */ public static final String LAST_MODIFICATION_DATE = "cmis:lastModificationDate"; - /** @cmis 1.0 */ + /** + * CMIS property {@code cmis:changeToken}: change token of the object. + * + * @cmis 1.0 + */ public static final String CHANGE_TOKEN = "cmis:changeToken"; - /** @cmis 1.1 */ + /** + * CMIS property {@code cmis:description}: description of the object. + * + * @cmis 1.1 + */ public static final String DESCRIPTION = "cmis:description"; - /** @cmis 1.1 */ + /** + * CMIS property {@code cmis:secondaryObjectTypeIds} (multivalue): list of + * ids of the secondary types of the object. + * + * @cmis 1.1 + */ public static final String SECONDARY_OBJECT_TYPE_IDS = "cmis:secondaryObjectTypeIds"; // ---- document ---- - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:isImmutable}: flag the indicates if + * the document is immutable. + * + * @cmis 1.0 + */ public static final String IS_IMMUTABLE = "cmis:isImmutable"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:isLatestVersion}: flag the indicates + * if the document is the latest version. + * + * @cmis 1.0 + */ public static final String IS_LATEST_VERSION = "cmis:isLatestVersion"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:isMajorVersion}: flag the indicates if + * the document is a major version. + * + * @cmis 1.0 + */ public static final String IS_MAJOR_VERSION = "cmis:isMajorVersion"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:isLatestMajorVersion}: flag the + * indicates if the document is the latest major version. + * + * @cmis 1.0 + */ public static final String IS_LATEST_MAJOR_VERSION = "cmis:isLatestMajorVersion"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:versionLabel}: version label of the + * document. + * + * @cmis 1.0 + */ public static final String VERSION_LABEL = "cmis:versionLabel"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:versionSeriesId}: id of the version + * series. + * + * @cmis 1.0 + */ public static final String VERSION_SERIES_ID = "cmis:versionSeriesId"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:isVersionSeriesCheckedOut}: flag the + * indicates if the document is checked out. + * + * @cmis 1.0 + */ public static final String IS_VERSION_SERIES_CHECKED_OUT = "cmis:isVersionSeriesCheckedOut"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:versionSeriesCheckedOutBy}: user who + * checked out the document, if the document is checked out. + * + * @cmis 1.0 + */ public static final String VERSION_SERIES_CHECKED_OUT_BY = "cmis:versionSeriesCheckedOutBy"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:versionSeriesCheckedOutId}: id of the + * PWC, if the document is checked out. + * + * @cmis 1.0 + */ public static final String VERSION_SERIES_CHECKED_OUT_ID = "cmis:versionSeriesCheckedOutId"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:checkinComment}: check-in comment for + * the document version. + * + * @cmis 1.0 + */ public static final String CHECKIN_COMMENT = "cmis:checkinComment"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:contentStreamLength}: length of the + * content stream, if the document has content. + * + * @cmis 1.0 + */ public static final String CONTENT_STREAM_LENGTH = "cmis:contentStreamLength"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:contentStreamMimeType}: MIME type of + * the content stream, if the document has content. + * + * @cmis 1.0 + */ public static final String CONTENT_STREAM_MIME_TYPE = "cmis:contentStreamMimeType"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:contentStreamFileName}: file name, if + * the document has content. + * + * @cmis 1.0 + */ public static final String CONTENT_STREAM_FILE_NAME = "cmis:contentStreamFileName"; - /** @cmis 1.0 */ + /** + * CMIS document property {@code cmis:contentStreamId}: content stream id. + * + * @cmis 1.0 + */ public static final String CONTENT_STREAM_ID = "cmis:contentStreamId"; - /** @cmis 1.1 */ + /** + * CMIS document property {@code cmis:isPrivateWorkingCopy}: flag the + * indicates if the document is a PWC. + * + * @cmis 1.1 + */ public static final String IS_PRIVATE_WORKING_COPY = "cmis:isPrivateWorkingCopy"; // ---- folder ---- - /** @cmis 1.0 */ + /** + * CMIS folder property {@code cmis:parentId}: id of the parent folder. + * + * @cmis 1.0 + */ public static final String PARENT_ID = "cmis:parentId"; - /** @cmis 1.0 */ + /** + * CMIS folder property {@code cmis:allowedChildObjectTypeIds} (multivalue): + * ids of the types that can be filed in the folder. + * + * @cmis 1.0 + */ public static final String ALLOWED_CHILD_OBJECT_TYPE_IDS = "cmis:allowedChildObjectTypeIds"; - /** @cmis 1.0 */ + /** + * CMIS folder property {@code cmis:path}: folder path. + * + * @cmis 1.0 + */ public static final String PATH = "cmis:path"; // ---- relationship ---- - /** @cmis 1.0 */ + /** + * CMIS relationship property {@code cmis:sourceId}: id of the source + * object. + * + * @cmis 1.0 + */ public static final String SOURCE_ID = "cmis:sourceId"; - /** @cmis 1.0 */ + /** + * CMIS relationship property {@code cmis:targetId}: id of the target + * object. + * + * @cmis 1.0 + */ public static final String TARGET_ID = "cmis:targetId"; // ---- policy ---- - /** @cmis 1.0 */ + /** + * CMIS policy property {@code cmis:policyText}: policy text. + * + * @cmis 1.0 + */ public static final String POLICY_TEXT = "cmis:policyText"; // ---- retention --- - /** @cmis 1.1 */ + /** + * CMIS retention property {@code cmis:rm_expirationDate}: expiration date. + * + * @cmis 1.1 + */ public static final String EXPIRATION_DATE = "cmis:rm_expirationDate"; - /** @cmis 1.1 */ + /** + * CMIS retention property {@code cmis:rm_startOfRetention}: start date. + * + * @cmis 1.1 + */ public static final String START_OF_RETENTION = "cmis:rm_startOfRetention"; - /** @cmis 1.1 */ + /** + * CMIS retention property {@code cmis:rm_destructionDate}: destruction + * date. + * + * @cmis 1.1 + */ public static final String DESTRUCTION_DATE = "cmis:rm_destructionDate"; - /** @cmis 1.1 */ + /** + * CMIS retention property {@code cmis:rm_holdIds} (multivalue): ids of the + * holds that are applied. + * + * @cmis 1.1 + */ public static final String HOLD_IDS = "cmis:rm_holdIds"; } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/SecondaryTypeIds.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/SecondaryTypeIds.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/SecondaryTypeIds.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/SecondaryTypeIds.java Fri Aug 30 13:14:41 2013 @@ -19,15 +19,21 @@ package org.apache.chemistry.opencmis.commons; /** - * Collection of secondary type ids that are defined in the CMIS specification. + * Secondary type ids that are defined in the CMIS specification. + * + * @cmis 1.1 */ public final class SecondaryTypeIds { private SecondaryTypeIds() { } + /** Repository managed retention type. */ public static final String REPOSITORY_MANAGED_RETENTION = "cmis:rm_repMgtRetention"; + /** Client managed retention type. */ public static final String CLIENT_MANAGED_RETENTION = "cmis:rm_clientMgtRetention"; + /** Client managed retention type with destruction date. */ public static final String DESTRUCTION_CLIENT_MANAGED_RETENTION = "cmis:rm_destructionRetention"; + /** Legal hold type. */ public static final String HOLD = "cmis:rm_hold"; } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java Fri Aug 30 13:14:41 2013 @@ -21,7 +21,7 @@ package org.apache.chemistry.opencmis.co import java.math.BigInteger; /** - * Base exception class for all CMIS client exceptions. + * Base exception class for all CMIS exceptions. */ public abstract class CmisBaseException extends RuntimeException { @@ -138,8 +138,8 @@ public abstract class CmisBaseException * Returns the error code sent by the CMIS repository (Web Services binding * only). * - * @return error code or null if the CMIS repository didn't - * send an error code or the binding doesn't support error codes. + * @return error code or {@code null} if the CMIS repository didn't send an + * error code or the binding doesn't support error codes. */ public BigInteger getCode() { return code; @@ -148,7 +148,7 @@ public abstract class CmisBaseException /** * Returns the content of the error page sent by the web server. * - * @return the content of the error page or null if the server + * @return the content of the error page or {@code null} if the server * didn't send text content. */ public String getErrorContent() { Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConnectionException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConnectionException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConnectionException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConnectionException.java Fri Aug 30 13:14:41 2013 @@ -28,34 +28,97 @@ public class CmisConnectionException ext private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "connection"; + /** + * Default constructor. + */ public CmisConnectionException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisConnectionException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisConnectionException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisConnectionException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisConnectionException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisConnectionException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisConnectionException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisConnectionException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConstraintException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConstraintException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConstraintException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisConstraintException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisConstraintException ext private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "constraint"; + /** + * Default constructor. + */ public CmisConstraintException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisConstraintException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisConstraintException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisConstraintException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisConstraintException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisConstraintException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisConstraintException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisConstraintException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisContentAlreadyExistsException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisContentAlreadyExistsException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisContentAlreadyExistsException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisContentAlreadyExistsException.java Fri Aug 30 13:14:41 2013 @@ -32,34 +32,97 @@ public class CmisContentAlreadyExistsExc private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "contentAlreadyExists"; + /** + * Default constructor. + */ public CmisContentAlreadyExistsException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisContentAlreadyExistsException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisContentAlreadyExistsException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisContentAlreadyExistsException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisContentAlreadyExistsException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisContentAlreadyExistsException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisContentAlreadyExistsException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisContentAlreadyExistsException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisFilterNotValidException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisFilterNotValidException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisFilterNotValidException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisFilterNotValidException.java Fri Aug 30 13:14:41 2013 @@ -33,34 +33,97 @@ public class CmisFilterNotValidException private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "filterNotValid"; + /** + * Default constructor. + */ public CmisFilterNotValidException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisFilterNotValidException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisFilterNotValidException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisFilterNotValidException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisFilterNotValidException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisFilterNotValidException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisFilterNotValidException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisFilterNotValidException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisInvalidArgumentException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisInvalidArgumentException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisInvalidArgumentException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisInvalidArgumentException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisInvalidArgumentExceptio private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "invalidArgument"; + /** + * Default constructor. + */ public CmisInvalidArgumentException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisInvalidArgumentException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisInvalidArgumentException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisInvalidArgumentException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisInvalidArgumentException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisInvalidArgumentException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisInvalidArgumentException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisInvalidArgumentException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNameConstraintViolationException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNameConstraintViolationException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNameConstraintViolationException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNameConstraintViolationException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisNameConstraintViolation private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "nameConstraintViolation"; + /** + * Default constructor. + */ public CmisNameConstraintViolationException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisNameConstraintViolationException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisNameConstraintViolationException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisNameConstraintViolationException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisNameConstraintViolationException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisNameConstraintViolationException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisNameConstraintViolationException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisNameConstraintViolationException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNotSupportedException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNotSupportedException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNotSupportedException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisNotSupportedException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisNotSupportedException e private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "notSupported"; + /** + * Default constructor. + */ public CmisNotSupportedException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisNotSupportedException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisNotSupportedException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisNotSupportedException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisNotSupportedException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisNotSupportedException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisNotSupportedException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisNotSupportedException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisObjectNotFoundException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisObjectNotFoundException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisObjectNotFoundException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisObjectNotFoundException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisObjectNotFoundException private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "objectNotFound"; + /** + * Default constructor. + */ public CmisObjectNotFoundException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisObjectNotFoundException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisObjectNotFoundException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisObjectNotFoundException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisObjectNotFoundException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisObjectNotFoundException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisObjectNotFoundException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisObjectNotFoundException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisPermissionDeniedException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisPermissionDeniedException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisPermissionDeniedException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisPermissionDeniedException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisPermissionDeniedExcepti private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "permissionDenied"; + /** + * Default constructor. + */ public CmisPermissionDeniedException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisPermissionDeniedException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisPermissionDeniedException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisPermissionDeniedException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisPermissionDeniedException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisPermissionDeniedException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisPermissionDeniedException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisPermissionDeniedException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisProxyAuthenticationException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisProxyAuthenticationException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisProxyAuthenticationException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisProxyAuthenticationException.java Fri Aug 30 13:14:41 2013 @@ -30,34 +30,97 @@ public class CmisProxyAuthenticationExce private static final long serialVersionUID = 1L; + /** + * Default constructor. + */ public CmisProxyAuthenticationException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisProxyAuthenticationException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisProxyAuthenticationException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisProxyAuthenticationException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisProxyAuthenticationException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisProxyAuthenticationException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisProxyAuthenticationException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisProxyAuthenticationException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisRuntimeException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisRuntimeException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisRuntimeException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisRuntimeException.java Fri Aug 30 13:14:41 2013 @@ -30,34 +30,97 @@ public class CmisRuntimeException extend private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "runtime"; + /** + * Default constructor. + */ public CmisRuntimeException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisRuntimeException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisRuntimeException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisRuntimeException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisRuntimeException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisRuntimeException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisRuntimeException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisRuntimeException(String message) { super(message, BigInteger.ZERO); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStorageException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStorageException.java?rev=1518960&r1=1518959&r2=1518960&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStorageException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisStorageException.java Fri Aug 30 13:14:41 2013 @@ -31,34 +31,97 @@ public class CmisStorageException extend private static final long serialVersionUID = 1L; public static final String EXCEPTION_NAME = "storage"; + /** + * Default constructor. + */ public CmisStorageException() { super(); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param cause + * the cause + */ public CmisStorageException(String message, BigInteger code, Throwable cause) { super(message, code, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + */ public CmisStorageException(String message, String errorContent) { super(message, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + */ public CmisStorageException(String message, BigInteger code) { super(message, code); } + /** + * Constructor. + * + * @param message + * error message + * @param code + * error code + * @param errorContent + * error page content + */ public CmisStorageException(String message, BigInteger code, String errorContent) { super(message, code, errorContent); } + /** + * Constructor. + * + * @param message + * error message + * @param errorContent + * error page content + * @param cause + * the cause + */ public CmisStorageException(String message, String errorContent, Throwable cause) { super(message, errorContent, cause); } + /** + * Constructor. + * + * @param message + * error message + * @param cause + * the cause + */ public CmisStorageException(String message, Throwable cause) { super(message, BigInteger.ZERO, cause); } + /** + * Constructor. + * + * @param message + * error message + */ public CmisStorageException(String message) { super(message, BigInteger.ZERO); }