Return-Path: Delivered-To: apmail-incubator-chemistry-commits-archive@minotaur.apache.org Received: (qmail 79154 invoked from network); 7 Oct 2010 12:43:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 12:43:13 -0000 Received: (qmail 32662 invoked by uid 500); 7 Oct 2010 12:43:13 -0000 Delivered-To: apmail-incubator-chemistry-commits-archive@incubator.apache.org Received: (qmail 32635 invoked by uid 500); 7 Oct 2010 12:43:11 -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 32627 invoked by uid 99); 7 Oct 2010 12:43:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 12:43:10 +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, 07 Oct 2010 12:43:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 651F0238890B; Thu, 7 Oct 2010 12:42:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1005432 - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/cl... Date: Thu, 07 Oct 2010 12:42:49 -0000 To: chemistry-commits@incubator.apache.org From: fguillaume@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101007124249.651F0238890B@eris.apache.org> Author: fguillaume Date: Thu Oct 7 12:42:48 2010 New Revision: 1005432 URL: http://svn.apache.org/viewvc?rev=1005432&view=rev Log: CMIS-242: remove OperationContext parameter from convenience short APIs Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java?rev=1005432&r1=1005431&r2=1005432&view=diff ============================================================================== --- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java (original) +++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java Thu Oct 7 12:42:48 2010 @@ -28,7 +28,7 @@ import org.apache.chemistry.opencmis.com /** * CMIS Folder. - * + * * Domain Model 2.5 */ public interface Folder extends FileableCmisObject { @@ -37,7 +37,7 @@ public interface Folder extends Fileable /** * Creates a new document in this folder. - * + * * @return the new document object or null if the parameter * context was set to null */ @@ -46,16 +46,14 @@ public interface Folder extends Fileable /** * Creates a new document in this folder. - * - * @return the new document object or null if the parameter - * context was set to null + * + * @return the new document object */ - Document createDocument(Map properties, ContentStream contentStream, VersioningState versioningState, - OperationContext context); + Document createDocument(Map properties, ContentStream contentStream, VersioningState versioningState); /** * Creates a new document from a source document in this folder. - * + * * @return the new document object or null if the parameter * context was set to null */ @@ -64,16 +62,14 @@ public interface Folder extends Fileable /** * Creates a new document from a source document in this folder. - * - * @return the new document object or null if the parameter - * context was set to null + * + * @return the new document object */ - Document createDocumentFromSource(ObjectId source, Map properties, VersioningState versioningState, - OperationContext context); + Document createDocumentFromSource(ObjectId source, Map properties, VersioningState versioningState); /** * Creates a new subfolder in this folder. - * + * * @return the new folder object or null if the parameter * context was set to null */ @@ -82,15 +78,14 @@ public interface Folder extends Fileable /** * Creates a new subfolder in this folder. - * - * @return the new folder object or null if the parameter - * context was set to null + * + * @return the new folder object */ - Folder createFolder(Map properties, OperationContext context); + Folder createFolder(Map properties); /** * Creates a new policy in this folder. - * + * * @return the new policy object or null if the parameter * context was set to null */ @@ -99,15 +94,14 @@ public interface Folder extends Fileable /** * Creates a new policy in this folder. - * - * @return the new policy object or null if the parameter - * context was set to null + * + * @return the new policy object */ - Policy createPolicy(Map properties, OperationContext context); + Policy createPolicy(Map properties); /** * Deletes this folder and all subfolders. - * + * * @return a list of object ids which failed to be deleted */ List deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure); @@ -154,7 +148,7 @@ public interface Folder extends Fileable /** * Gets the parent folder object - * + * * @return the parent folder object or null if the folder is * the root folder. */ Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.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/PersistentFolderImpl.java?rev=1005432&r1=1005431&r2=1005432&view=diff ============================================================================== --- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java (original) +++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java Thu Oct 7 12:42:48 2010 @@ -444,20 +444,20 @@ public class PersistentFolderImpl extend } public Document createDocument(Map properties, ContentStream contentStream, - VersioningState versioningState, OperationContext context) { - return this.createDocument(properties, contentStream, versioningState, null, null, null, context); + VersioningState versioningState) { + return this.createDocument(properties, contentStream, versioningState, null, null, null, getSession().getDefaultContext()); } public Document createDocumentFromSource(ObjectId source, Map properties, - VersioningState versioningState, OperationContext context) { - return this.createDocumentFromSource(source, properties, versioningState, null, null, null, context); + VersioningState versioningState) { + return this.createDocumentFromSource(source, properties, versioningState, null, null, null, getSession().getDefaultContext()); } - public Folder createFolder(Map properties, OperationContext context) { - return this.createFolder(properties, null, null, null, context); + public Folder createFolder(Map properties) { + return this.createFolder(properties, null, null, null, getSession().getDefaultContext()); } - public Policy createPolicy(Map properties, OperationContext context) { - return this.createPolicy(properties, null, null, null, context); + public Policy createPolicy(Map properties) { + return this.createPolicy(properties, null, null, null, getSession().getDefaultContext()); } }