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 CB0164F57 for ; Thu, 2 Jun 2011 23:00:59 +0000 (UTC) Received: (qmail 66343 invoked by uid 500); 2 Jun 2011 23:00:59 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 66313 invoked by uid 500); 2 Jun 2011 23:00:59 -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 66305 invoked by uid 99); 2 Jun 2011 23:00:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 23:00:59 +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; Thu, 02 Jun 2011 23:00:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 29D0E2388A3B; Thu, 2 Jun 2011 23:00:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1130868 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Date: Thu, 02 Jun 2011 23:00:36 -0000 To: commits@chemistry.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110602230036.29D0E2388A3B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fmui Date: Thu Jun 2 23:00:35 2011 New Revision: 1130868 URL: http://svn.apache.org/viewvc?rev=1130868&view=rev Log: CMIS-381: allow the creation of unfiled documents and policies Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.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/SessionImpl.java?rev=1130868&r1=1130867&r2=1130868&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Thu Jun 2 23:00:35 2011 @@ -644,9 +644,6 @@ public class SessionImpl implements Sess public ObjectId createDocument(Map properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState, List policies, List addAces, List removeAces) { - if ((folderId != null) && (folderId.getId() == null)) { - throw new IllegalArgumentException("Folder Id must be set!"); - } if ((properties == null) || (properties.isEmpty())) { throw new IllegalArgumentException("Properties must not be empty!"); } @@ -718,9 +715,6 @@ public class SessionImpl implements Sess public ObjectId createPolicy(Map properties, ObjectId folderId, List policies, List addAces, List removeAces) { - if ((folderId != null) && (folderId.getId() == null)) { - throw new IllegalArgumentException("Folder Id must be set!"); - } if ((properties == null) || (properties.isEmpty())) { throw new IllegalArgumentException("Properties must not be empty!"); }