chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1743219 - in /chemistry/portcmis/trunk: PortCMIS/client/ClientIntf.cs PortCMIS/const/PermissionMappingKeys.cs PortCMISWin/binding/WindowsHttp.cs
Date Tue, 10 May 2016 16:04:52 GMT
Author: fmui
Date: Tue May 10 16:04:52 2016
New Revision: 1743219

URL: http://svn.apache.org/viewvc?rev=1743219&view=rev
Log:
PortCMIS: more stuff

Modified:
    chemistry/portcmis/trunk/PortCMIS/client/ClientIntf.cs
    chemistry/portcmis/trunk/PortCMIS/const/PermissionMappingKeys.cs
    chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs

Modified: chemistry/portcmis/trunk/PortCMIS/client/ClientIntf.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/client/ClientIntf.cs?rev=1743219&r1=1743218&r2=1743219&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/client/ClientIntf.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/client/ClientIntf.cs Tue May 10 16:04:52 2016
@@ -765,15 +765,12 @@ namespace PortCMIS.Client
     /// <summary>
     /// Query Statement.
     /// </summary>
-    /// <remarks>
-    /// Sample code:
-    /// 
-    /// <c>
+    /// <example>
     /// DateTime cal = ...
-    /// Folder folder = ...
+    /// IFolder folder = ...
     /// 
     /// IQueryStatement qs = 
-    ///   session.createQueryStatement("SELECT ?, ? FROM ? WHERE ? > TIMESTAMP ? AND IN_FOLDER(?)
OR ? IN (?)");
+    ///   Session.CreateQueryStatement("SELECT ?, ? FROM ? WHERE ? > TIMESTAMP ? AND IN_FOLDER(?)
OR ? IN (?)");
     /// 
     /// qs.SetProperty(1, "cmis:document", "cmis:name");
     /// qs.SetProperty(2, "cmis:document", "cmis:objectId");
@@ -788,8 +785,7 @@ namespace PortCMIS.Client
     /// qs.SetString(8, "bob", "tom", "lisa"); 
     /// 
     /// string statement = qs.ToQueryString();
-    /// </c>
-    /// </remarks>
+    /// </example>
     public interface IQueryStatement
     {
         /// <summary>
@@ -811,6 +807,7 @@ namespace PortCMIS.Client
         /// Sets the designated parameter to the query name of the given property.
         /// </summary>
         /// <param name='parameterIndex'>the parameter index (one-based)</param>
+        /// <param name='typeId'>the type ID</param>
         /// <param name='propertyId'>the property ID</param>
         void SetProperty(int parameterIndex, string typeId, string propertyId);
 
@@ -851,9 +848,8 @@ namespace PortCMIS.Client
         void SetStringLike(int parameterIndex, string str);
 
         /// <summary>
-        /// Sets the designated parameter to the given string in a CMIS contains
-        /// statement.
-        /// </summary>S
+        /// Sets the designated parameter to the given string in a CMIS contains statement.
+        /// </summary>
         /// <remarks>
         /// Note that the CMIS specification requires two levels of escaping. The
         /// first level escapes ', ", \ characters to \', \" and \\. The characters
@@ -866,10 +862,60 @@ namespace PortCMIS.Client
         /// On the second level grammar ", ', - and \ are escaped with a \. See the
         /// spec for further details.
         /// <p>
-        /// Summary (input --> first level escaping --> second level escaping and
-        /// output):/// -->/// -->/// ? --> ? --> ? - --> - --> - \ -->
\\ --> \\\\ (for
-        /// any other character following other than/// ? -) \* --> \* --> \\* \? -->
-        /// \? --> \\? \- --> \- --> \\- ' --> \' --> \\\' " --> \" -->
\\\"
+        /// Summary:
+        /// <table summary="Escaping Summary">
+        /// <tr>
+        /// <th>input</th>
+        /// <th>first level escaping</th>
+        /// <th>second level escaping</th>
+        /// </tr>
+        /// <tr>
+        /// <td>*</td>
+        /// <td>*</td>
+        /// <td>*</td>
+        /// </tr>
+        /// <tr>
+        /// <td>?</td>
+        /// <td>?</td>
+        /// <td>?</td>
+        /// </tr>
+        /// <tr>
+        /// <td>-</td>
+        /// <td>-</td>
+        /// <td>-</td>
+        /// </tr>
+        /// <tr>
+        /// <td>\</td>
+        /// <td>\\</td>
+        /// <td>\\\\<br>
+        /// <em>(for any other character following other than///?-)</em></td>
+        /// </tr>
+        /// <tr>
+        /// <td>\*</td>
+        /// <td>\*</td>
+        /// <td>\\*</td>
+        /// </tr>
+        /// <tr>
+        /// <td>\?</td>
+        /// <td>\?</td>
+        /// <td>\\?</td>
+        /// </tr>
+        /// <tr>
+        /// <td>\-</td>
+        /// <td>\-</td>
+        /// <td>\\-+</td>
+        /// </tr>
+        /// <tr>
+        /// <td>'</td>
+        /// <td>\'</td>
+        /// <td>\\\'</td>
+        /// </tr>
+        /// <tr>
+        /// <td>"</td>
+        /// <td>\"</td>
+        /// <td>\\\"</td>
+        /// </tr>
+        /// </table>
         /// </remarks>
         /// <param name='parameterIndex'>the parameter index (one-based)</param>
         /// <param name='str'>the CONTAINS string</param>
@@ -1113,7 +1159,7 @@ namespace PortCMIS.Client
         IDocument GetRenditionDocument();
 
         /// <summary>
-        /// * Returns the rendition document using the provided operation context if the
rendition is a stand-alone document.
+        /// Returns the rendition document using the provided operation context if the rendition
is a stand-alone document.
         /// </summary>
         /// <param name="context">the operation context</param>
         /// <returns>the rendition document or <c>null</c> if there is
no rendition document</returns>

Modified: chemistry/portcmis/trunk/PortCMIS/const/PermissionMappingKeys.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/const/PermissionMappingKeys.cs?rev=1743219&r1=1743218&r2=1743219&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/const/PermissionMappingKeys.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/const/PermissionMappingKeys.cs Tue May 10 16:04:52 2016
@@ -24,39 +24,73 @@ namespace PortCMIS
     /// </summary>
     public static class PermissionMappingKeys
     {
+        /// <summary>Key <c>canGetDescendents.Folder</c></summary>
         public const string CanGetDescendentsFolder = "canGetDescendents.Folder";
+        /// <summary>Key <c>canGetChildren.Folder</c></summary>
         public const string CanGetChildrenFolder = "canGetChildren.Folder";
+        /// <summary>Key <c>canGetParents.Folder</c></summary>
         public const string CanGetParentsFolder = "canGetParents.Folder";
+        /// <summary>Key <c>canGetFolderParent.Object</c></summary>
         public const string CanGetFolderParentObject = "canGetFolderParent.Object";
+        /// <summary>Key <c>canCreateDocument.Folder</c></summary>
         public const string CanCreateDocumentFolder = "canCreateDocument.Folder";
+        /// <summary>Key <c>canCreateFolder.Folder</c></summary>
         public const string CanCreateFolderFolder = "canCreateFolder.Folder";
+        /// <summary>Key <c>canCreateRelationship.Source</c></summary>
         public const string CanCreateRelationshipSource = "canCreateRelationship.Source";
+        /// <summary>Key <c>canCreateRelationship.Target</c></summary>
         public const string CanCreateRelationshipTarget = "canCreateRelationship.Target";
+        /// <summary>Key <c>canGetProperties.Object</c></summary>
         public const string CanGetPropertiesObject = "canGetProperties.Object";
+        /// <summary>Key <c>canViewContent.Object</c></summary>
         public const string CanViewContentObject = "canViewContent.Object";
+        /// <summary>Key <c>canUpdateProperties.Object</c></summary>
         public const string CanUpdatePropertiesObject = "canUpdateProperties.Object";
+        /// <summary>Key <c>canMove.Object</c></summary>
         public const string CanMoveObject = "canMove.Object";
+        /// <summary>Key <c>canMove.Target</c></summary>
         public const string CanMoveTarget = "canMove.Target";
+        /// <summary>Key <c>canMove.Source</c></summary>
         public const string CanMoveSource = "canMove.Source";
+        /// <summary>Key <c>canDelete.Objectr</c></summary>
         public const string CanDeleteObject = "canDelete.Object";
+        /// <summary>Key <c>canDeleteTree.Folder</c></summary>
         public const string CanDeleteTreeFolder = "canDeleteTree.Folder";
+        /// <summary>Key <c>canSetContent.Document</c></summary>
         public const string CanSetContentDocument = "canSetContent.Document";
+        /// <summary>Key <c>canDeleteContent.Document</c></summary>
         public const string CanDeleteContentDocument = "canDeleteContent.Document";
+        /// <summary>Key <c>canAddToFolder.Object</c></summary>
         public const string CanAddToFolderObject = "canAddToFolder.Object";
+        /// <summary>Key <c>canAddToFolder.Folder</c></summary>
         public const string CanAddToFolderFolder = "canAddToFolder.Folder";
+        /// <summary>Key <c>canRemoveFromFolder.Object</c></summary>
         public const string CanRemoveFromFolderObject = "canRemoveFromFolder.Object";
+        /// <summary>Key <c>canRemoveFromFolder.Folder</c></summary>
         public const string CanRemoveFromFolderFolder = "canRemoveFromFolder.Folder";
+        /// <summary>Key <c>canCheckout.Document</c></summary>
         public const string CanCheckoutDocument = "canCheckout.Document";
+        /// <summary>Key <c>canCancelCheckout.Document</c></summary>
         public const string CanCancelCheckoutDocument = "canCancelCheckout.Document";
+        /// <summary>Key <c>canCheckin.Document</c></summary>
         public const string CanCheckinDocument = "canCheckin.Document";
+        /// <summary>Key <c>canGetAllVersions.VersionSeries</c></summary>
         public const string CanGetAllVersionsVersionSeries = "canGetAllVersions.VersionSeries";
+        /// <summary>Key <c>canGetObjectRelationships.Object</c></summary>
         public const string CanGetObjectRelationshipSObject = "canGetObjectRelationships.Object";
+        /// <summary>Key <c>canAddPolicy.Object</c></summary>
         public const string CanAddPolicyObject = "canAddPolicy.Object";
+        /// <summary>Key <c>canAddPolicy.Policy</c></summary>
         public const string CanAddPolicyPolicy = "canAddPolicy.Policy";
+        /// <summary>Key <c>canRemovePolicy.Object</c></summary>
         public const string CanRemovePolicyObject = "canRemovePolicy.Object";
+        /// <summary>Key <c>canRemovePolicy.Policy</c></summary>
         public const string CanRemovePolicyPolicy = "canRemovePolicy.Policy";
+        /// <summary>Key <c>canGetAppliedPolicies.Object</c></summary>
         public const string CanGetAppliesPoliciesObject = "canGetAppliedPolicies.Object";
+        /// <summary>Key <c>canGetAcl.Object</c></summary>
         public const string CanGetAclObject = "canGetAcl.Object";
+        /// <summary>Key <c>canApplyAcl.Object</c></summary>
         public const string CanApplyAclObject = "canApplyAcl.Object";
     }
 }

Modified: chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs?rev=1743219&r1=1743218&r2=1743219&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs (original)
+++ chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs Tue May 10 16:04:52 2016
@@ -127,7 +127,7 @@ namespace PortCMIS.Binding.Http
             {
                 foreach (KeyValuePair<string, string> header in headers)
                 {
-                    request.Headers.Add(header.Key, header.Value);
+                    request.Headers.TryAppendWithoutValidation(header.Key, header.Value);
                 }
             }
 



Mime
View raw message