chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1398036 - /chemistry/dotcmis/trunk/DotCMIS/client/client-impl.cs
Date Sun, 14 Oct 2012 08:46:31 GMT
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!");



Mime
View raw message