You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2012/10/14 10:46:31 UTC

svn commit: r1398036 - /chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs

Author: fmui
Date: Sun Oct 14 08:46:31 2012
New Revision: 1398036

URL: http://svn.apache.org/viewvc?rev=1398036&view=rev
Log:
CMIS-577: allow creation of unfiled objects

Modified:
    chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs

Modified: chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs
URL: http://svn.apache.org/viewvc/chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs?rev=1398036&r1=1398035&r2=1398036&view=diff
==============================================================================
--- chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs (original)
+++ chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs Sun Oct 14 08:46:31 2012
@@ -673,10 +673,6 @@ namespace DotCMIS.Client.Impl
         public IObjectId CreateDocument(IDictionary<string, object> properties, IObjectId folderId, IContentStream contentStream,
             VersioningState? versioningState, IList<IPolicy> policies, IList<IAce> addAces, IList<IAce> removeAces)
         {
-            if (folderId != null && folderId.Id == null)
-            {
-                throw new ArgumentException("Folder Id must be set!");
-            }
             if (properties == null || properties.Count == 0)
             {
                 throw new ArgumentException("Properties must not be empty!");
@@ -764,10 +760,6 @@ namespace DotCMIS.Client.Impl
         public IObjectId CreatePolicy(IDictionary<string, object> properties, IObjectId folderId, IList<IPolicy> policies,
             IList<IAce> addAces, IList<IAce> removeAces)
         {
-            if (folderId == null || folderId.Id == null)
-            {
-                throw new ArgumentException("Folder Id must be set!");
-            }
             if (properties == null || properties.Count == 0)
             {
                 throw new ArgumentException("Properties must not be empty!");