You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by jp...@apache.org on 2016/06/13 16:18:06 UTC

svn commit: r1748279 - in /chemistry/docs/cmis-samples/trunk/docs/samples: content.md delete-objects.md update-objects.md versions.md

Author: jpotts
Date: Mon Jun 13 16:18:06 2016
New Revision: 1748279

URL: http://svn.apache.org/viewvc?rev=1748279&view=rev
Log:
Make minor grammar enhancements to content, delete-objects, update-objects, and versions.

Modified:
    chemistry/docs/cmis-samples/trunk/docs/samples/content.md
    chemistry/docs/cmis-samples/trunk/docs/samples/delete-objects.md
    chemistry/docs/cmis-samples/trunk/docs/samples/update-objects.md
    chemistry/docs/cmis-samples/trunk/docs/samples/versions.md

Modified: chemistry/docs/cmis-samples/trunk/docs/samples/content.md
URL: http://svn.apache.org/viewvc/chemistry/docs/cmis-samples/trunk/docs/samples/content.md?rev=1748279&r1=1748278&r2=1748279&view=diff
==============================================================================
--- chemistry/docs/cmis-samples/trunk/docs/samples/content.md (original)
+++ chemistry/docs/cmis-samples/trunk/docs/samples/content.md Mon Jun 13 16:18:06 2016
@@ -4,7 +4,7 @@
 
 Content Stream objects are used to send and fetch content. They contain a file name, a [MIME type](#mime-types), the stream length, and the stream.
 
-In some cases, the stream length is unknown (`null`). OpenCMIS and PortCMIS don’t rely on it and your application shouldn't either. 
+In some cases, the stream length is unknown (`null`). OpenCMIS and PortCMIS don’t rely on it and your application shouldn't either.
 
 You can create content stream objects manually or implement the interface yourself, but OpenCMIS and PortCMIS provide some convenience methods for this.
 
@@ -101,7 +101,7 @@ BigInteger offset = BigInteger.valueOf(1
 
 // only read 200 bytes
 // use null to read to the end of the stream
-BigInteger length = BigInteger.valueOf(200); 
+BigInteger length = BigInteger.valueOf(200);
 
 ContentStream contentStream = document.getContentStream(offset, length);
 InputStream stream = contentStream.getStream();
@@ -184,7 +184,7 @@ document.DeleteContentStream();
 
 !!! warning
     Not all repositories support appending content. It is not possible to discover wheter a repository supports it or not.
-    If you append content be prepared to catch a [notSupported](exceptions/index.html) exception. 
+    If you append content be prepared to catch a [notSupported](exceptions/index.html) exception.
 
 
 OpenCMIS (Java)
@@ -193,7 +193,7 @@ OpenCMIS (Java)
 Document document = ...
 
 ContentStream contentStream = ...
-boolean isLastChunk = true; // indicates that this is the last part of the content 
+boolean isLastChunk = true; // indicates that this is the last part of the content
 
 document.appendContentStream(contentStream, isLastChunk);
 ```
@@ -204,7 +204,7 @@ PortCMIS (C#)
 IDocument document = ...
 
 IContentStream contentStream = ...
-bool isLastChunk = true; // indicates that this is the last part of the content 
+bool isLastChunk = true; // indicates that this is the last part of the content
 
 document.AppendContentStream(contentStream, isLastChunk);
 ```
@@ -217,7 +217,7 @@ document.AppendContentStream(contentStre
 
 ### Getting the List of Renditions
 
-!!! note 
+!!! note
     The list of renditions is only available if it has been requested with an [Operation Context](operation-context/index.html).
 
 OpenCMIS (Java)
@@ -242,7 +242,7 @@ foreach (IRendition rendition in folder.
 
 ### Getting Rendition Content
 
-The rendition content can be retrieved either for an Rendition object (see above) or directly from the document with a stream ID.
+The rendition content can be retrieved either for a Rendition object (see above) or directly from the document with a stream ID.
 
 OpenCMIS (Java)
 {: .opencmis }
@@ -264,4 +264,4 @@ IRendition rendition = ...
 IContentStream cs1 = document.GetContentStream(rendition.StreamId);
 
 IContentStream cs2 = rendition.GetContentStream();
-```
\ No newline at end of file
+```

Modified: chemistry/docs/cmis-samples/trunk/docs/samples/delete-objects.md
URL: http://svn.apache.org/viewvc/chemistry/docs/cmis-samples/trunk/docs/samples/delete-objects.md?rev=1748279&r1=1748278&r2=1748279&view=diff
==============================================================================
--- chemistry/docs/cmis-samples/trunk/docs/samples/delete-objects.md (original)
+++ chemistry/docs/cmis-samples/trunk/docs/samples/delete-objects.md Mon Jun 13 16:18:06 2016
@@ -1,7 +1,7 @@
 # Deleting Objects
 
 !!! note "Allowable Actions"
-    Before you delete an object, check the [Allowable Actions](allowable-actions/index.html) if the
+    Before you delete an object, check the [Allowable Actions](allowable-actions/index.html) to determine if the
     current user is allowed to delete the object.
 
 
@@ -27,7 +27,7 @@ cmisObject.Delete();
 
 ## Deleting Documents and Versions
 
-If a document is versioned, the whole version series can be deleted or just a single version. This controlled with the `allVersions` parameter.
+If a document is versioned, the whole version series can be deleted or just a single version. This is controlled with the `allVersions` parameter.
 
 For documents that are not versioned it doesn't matter if the `allVersions` parameter is set to `true` or `false`.
 
@@ -82,4 +82,4 @@ PortCMIS (C#)
 ```csharp
 IFolder folder = ...
 folder.DeleteTree(true, UnfileObject.Delete, true);
-```
\ No newline at end of file
+```

Modified: chemistry/docs/cmis-samples/trunk/docs/samples/update-objects.md
URL: http://svn.apache.org/viewvc/chemistry/docs/cmis-samples/trunk/docs/samples/update-objects.md?rev=1748279&r1=1748278&r2=1748279&view=diff
==============================================================================
--- chemistry/docs/cmis-samples/trunk/docs/samples/update-objects.md (original)
+++ chemistry/docs/cmis-samples/trunk/docs/samples/update-objects.md Mon Jun 13 16:18:06 2016
@@ -2,7 +2,7 @@
 
 ## Updating Properties
 
-The page about [properties](properties/index.html) explains how Java and C# data types are map to CMIS data types.
+The page about [properties](properties/index.html) explains how Java and C# data types are mapped to CMIS data types.
 
 OpenCMIS (Java)
 {: .opencmis }

Modified: chemistry/docs/cmis-samples/trunk/docs/samples/versions.md
URL: http://svn.apache.org/viewvc/chemistry/docs/cmis-samples/trunk/docs/samples/versions.md?rev=1748279&r1=1748278&r2=1748279&view=diff
==============================================================================
--- chemistry/docs/cmis-samples/trunk/docs/samples/versions.md (original)
+++ chemistry/docs/cmis-samples/trunk/docs/samples/versions.md Mon Jun 13 16:18:06 2016
@@ -25,7 +25,7 @@ bool isVersionable = documentType.Versio
 
 The code snippets below show how to retrieve the version history of a document.
 The returned list is ordered by creation date (**cmis:creationDate**). The newest version is on the top of the list, the first version on the bottom.
-If the version series is checked-out, a PWC exists and the user is allowed to see the PWC, then this PWC is the first entry in the list. 
+If the version series is checked-out, a PWC exists and the user is allowed to see the PWC, then this PWC is the first entry in the list.
 
 OpenCMIS (Java)
 {: .opencmis }
@@ -55,9 +55,9 @@ The version that has the most recent las
 
 If you already have a version document object from a version series, you can test if it is the latest version and if not, get the latest version.
 
-!!! note 
+!!! note
     The test if the document is the latest verion depends on the property **cmis:isLatestVersion**.
-    The property has to loaded with document object to make this check work. See the page about the [Operation Context](operation-context/index.html) how to accomplish that.
+    The property has to loaded with document object to make this check work. See the page about the [Operation Context](operation-context/index.html) to learn how to accomplish that.
 
 
 OpenCMIS (Java)
@@ -105,7 +105,7 @@ IDocument latest = Session.GetLatestDocu
 To create a new version, the version series has to be checked out, updated and checked in.
 Many repositories allow a check out only on the latest version.
 
-The check-out creates a PWC (Private Working Copy). The PWC can (usually) only be seen and updated by the user who checked out the version series. There can be only one PWC per version series, which means that version series is locked while it checked out.
+The check-out creates a PWC (Private Working Copy). The PWC can (usually) only be seen and updated by the user who checked out the version series. There can be only one PWC per version series, which means that version series is locked while it is checked out.
 
 To check if a version series is already checked out, use this snippet.
 
@@ -184,4 +184,4 @@ IDocument pwc = ...
 IObjectId newVersionId = pwc.CheckIn(true, null, null, "new version");
 ```
 
-*[PWC]: Private Working Copy
\ No newline at end of file
+*[PWC]: Private Working Copy