Return-Path: Delivered-To: apmail-incubator-chemistry-commits-archive@minotaur.apache.org Received: (qmail 68256 invoked from network); 23 Sep 2010 18:26:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 18:26:48 -0000 Received: (qmail 56582 invoked by uid 500); 23 Sep 2010 18:26:48 -0000 Delivered-To: apmail-incubator-chemistry-commits-archive@incubator.apache.org Received: (qmail 56554 invoked by uid 500); 23 Sep 2010 18:26:47 -0000 Mailing-List: contact chemistry-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-commits@incubator.apache.org Received: (qmail 56546 invoked by uid 99); 23 Sep 2010 18:26:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 18:26:47 +0000 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; Thu, 23 Sep 2010 18:26:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A937E2388999; Thu, 23 Sep 2010 18:26:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1000567 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java Date: Thu, 23 Sep 2010 18:26:26 -0000 To: chemistry-commits@incubator.apache.org From: fguillaume@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100923182626.A937E2388999@eris.apache.org> Author: fguillaume Date: Thu Sep 23 18:26:26 2010 New Revision: 1000567 URL: http://svn.apache.org/viewvc?rev=1000567&view=rev Log: cleanup Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java?rev=1000567&r1=1000566&r2=1000567&view=diff ============================================================================== --- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java (original) +++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java Thu Sep 23 18:26:26 2010 @@ -118,22 +118,12 @@ public class PersistentDocumentImpl exte throw new CmisRuntimeException("not implemented"); } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#deleteAllVersions() - */ public void deleteAllVersions() { delete(true); } // versioning - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#checkOut() - */ public ObjectId checkOut() { String objectId = getObjectId(); Holder objectIdHolder = new Holder(objectId); @@ -147,24 +137,12 @@ public class PersistentDocumentImpl exte return getSession().createObjectId(objectIdHolder.getValue()); } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#cancelCheckOut() - */ public void cancelCheckOut() { String objectId = getObjectId(); getBinding().getVersioningService().cancelCheckOut(getRepositoryId(), objectId, null); } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#checkIn(boolean, - * java.util.Map, org.apache.opencmis.client.api.ContentStream, - * java.lang.String, java.util.List, java.util.List, java.util.List) - */ public ObjectId checkIn(boolean major, Map properties, ContentStream contentStream, String checkinComment, List policies, List addAces, List removeAces) { String objectId; @@ -199,21 +177,10 @@ public class PersistentDocumentImpl exte } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#getAllVersions() - */ public List getAllVersions() { return getAllVersions(getSession().getDefaultContext()); } - /* - * (non-Javadoc) - * - * @seeorg.apache.opencmis.client.api.Document#getAllVersions(org.apache. - * opencmis.client.api. OperationContext) - */ public List getAllVersions(OperationContext context) { String objectId; String versionSeriesId; @@ -248,23 +215,10 @@ public class PersistentDocumentImpl exte } - /* - * (non-Javadoc) - * - * @see - * org.apache.opencmis.client.api.Document#getObjectOfLatestVersion(boolean) - */ public Document getObjectOfLatestVersion(boolean major) { return getObjectOfLatestVersion(major, getSession().getDefaultContext()); } - /* - * (non-Javadoc) - * - * @see - * org.apache.opencmis.client.api.Document#getObjectOfLatestVersion(boolean, - * org.apache.opencmis.client.api.OperationContext) - */ public Document getObjectOfLatestVersion(boolean major, OperationContext context) { String objectId; String versionSeriesId; @@ -298,22 +252,10 @@ public class PersistentDocumentImpl exte // content operations - /* - * (non-Javadoc) - * - * @see org.apache.chemistry.opencmis.client.api.Document#getContentStream() - */ public ContentStream getContentStream() { return getContentStream(null); } - /* - * (non-Javadoc) - * - * @see - * org.apache.chemistry.opencmis.client.api.Document#getContentStream(java - * .lang.String) - */ public ContentStream getContentStream(String streamId) { String objectId = getObjectId(); @@ -336,12 +278,6 @@ public class PersistentDocumentImpl exte contentStream.getStream()); } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#setContentStream(boolean, - * org.apache.opencmis.client.api.ContentStream) - */ public ObjectId setContentStream(ContentStream contentStream, boolean overwrite) { String objectId; String changeToken; @@ -367,11 +303,6 @@ public class PersistentDocumentImpl exte return getSession().createObjectId(objectIdHolder.getValue()); } - /* - * (non-Javadoc) - * - * @see org.apache.opencmis.client.api.Document#deleteContentStream() - */ public ObjectId deleteContentStream() { String objectId; String changeToken;