chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1083834 - in /chemistry/site/trunk/content/java: ./ developing/ examples/ how-to/
Date Mon, 21 Mar 2011 15:33:13 GMT
Author: fmui
Date: Mon Mar 21 15:33:12 2011
New Revision: 1083834

URL: http://svn.apache.org/viewvc?rev=1083834&view=rev
Log:
more clean up

Modified:
    chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext
    chemistry/site/trunk/content/java/download.mdtext
    chemistry/site/trunk/content/java/examples/example-create-update.mdtext
    chemistry/site/trunk/content/java/examples/example-get-extension.mdtext
    chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext
    chemistry/site/trunk/content/java/examples/index.mdtext
    chemistry/site/trunk/content/java/how-to/how-to-build.mdtext
    chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext
    chemistry/site/trunk/content/java/opencmis.mdtext

Modified: chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext (original)
+++ chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext Mon Mar 21 15:33:12
2011
@@ -2,16 +2,15 @@ Title: Using Maven
 
 # Using Maven
 
-### Use OpenCMIS with Maven
+## Use OpenCMIS with Maven
 
 You can use OpenCMIS with [Maven](http://maven.apache.org/).
 Check the latest version available by [searching the Apache repository](https://repository.apache.org/index.html#nexus-search;quick~opencmis).
-You should add the repository declaration:
 
-Specifically in order to use the client you will need to add the following
-dependencies:
 
-*Client:*
+## Client
+
+Use this fragment to add the OpenCMIS client jars and all dependencies. 
 
     :::xml
      <dependency>
@@ -21,7 +20,9 @@ dependencies:
      </dependency>
 
 
-*Server:*
+## Server
+
+Use this fragment to add the OpenCMIS server framework and all dependencies.
 
     :::xml
      <dependency>
@@ -29,6 +30,3 @@ dependencies:
         <artifactId>chemistry-opencmis-server-support</artifactId>
         <version>0.2.0-incubating</version>
      </dependency>
-
-
-Please check the full Maven details for OpenCMIS on the [Maven generated site](http://incubator.apache.org/chemistry/maven-site/0.2.0-incubating/index.html).

Modified: chemistry/site/trunk/content/java/download.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/download.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/download.mdtext (original)
+++ chemistry/site/trunk/content/java/download.mdtext Mon Mar 21 15:33:12 2011
@@ -2,21 +2,24 @@ Title: OpenCMIS Downloads
 
 # OpenCMIS Downloads
 <a name="OpenCMIS-0.2.0FullDownloadpage">
-## Incubation Release 0.2.0 (2011-01-21) [Full Download page](http://www.apache.org/dyn/closer.cgi/incubator/chemistry/opencmis/0.2.0-incubating/)
and [Release Notes](https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310936&fixfor=12315134&sorter/field=priority&sorter/order=DESC)
+## Incubation Release 0.2.0 (2011-01-21)
+[Full Download page](http://www.apache.org/dyn/closer.cgi/incubator/chemistry/opencmis/0.2.0-incubating/)
and [Release Notes](https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310936&fixfor=12315134&sorter/field=priority&sorter/order=DESC)
 
 Package | zip | tar.gz |
 ------- | --- | ------ | -----
 OpenCMIS Client with dependencies | [Download] [19] | [Download] [20] | All you need to build
a CMIS client.
 OpenCMIS Server Framework         | [Download] [17] | [Download] [18] | All you need to build
a CMIS server.
 OpenCMIS Server Webapp            | [Download] [15] | [Download] [16] | Repositories (Fileshare,
In-Memory) and CMIS Browser.
-OpenCMIS Workbench                | [Download] [13] | [Download] [14] | CMIS Workbench desktop
client
+OpenCMIS Workbench                | [Download] [13] | [Download] [14] | CMIS Workbench desktop
client.
 OpenCMIS Docs                     | [Download] [11] | [Download] [12] | Documentation and
JavaDoc.
 OpenCMIS Sources                  | [Download] [9]  | [Download] [10] | OpenCMIS source code.
 
 OpenCMIS is also available [via Maven](developing/dev-use-with-maven.html).
 
 <a name="OpenCMIS-0.1.0FullDownloadpage">
-## Incubation Release 0.1.0 (2010-09-17) [Full Download page](http://www.apache.org/dyn/closer.cgi/incubator/chemistry/opencmis/0.1.0-incubating/)
+## Incubation Release 0.1.0 (2010-09-17)
+[Full Download page](http://www.apache.org/dyn/closer.cgi/incubator/chemistry/opencmis/0.1.0-incubating/)
+
 Package | zip | tar.gz
 ------- | --- | ------
 OpenCMIS Client with dependencies | [Download] [7] | [Download] [8] 

Modified: chemistry/site/trunk/content/java/examples/example-create-update.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/examples/example-create-update.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/examples/example-create-update.mdtext (original)
+++ chemistry/site/trunk/content/java/examples/example-create-update.mdtext Mon Mar 21 15:33:12
2011
@@ -9,7 +9,8 @@ This example creates a folder under the 
 
     Folder root = session.getRootFolder();
 
-    // properties (minimal set: name and object type id)
+    // properties
+    // (minimal set: name and object type id)
     Map<String, Object> properties = new HashMap<String, Object>();
     properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
     properties.put(PropertyIds.NAME, "a new folder");
@@ -26,7 +27,8 @@ This example creates a document in the f
 
     String name = "myNewDocument.txt";
 
-    // properties (minimal set: name and object type id)
+    // properties 
+    // (minimal set: name and object type id)
     Map<String, Object> properties = new HashMap<String, Object>();
     properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");
     properties.put("PropertyIds.NAME, name);
@@ -40,7 +42,7 @@ This example creates a document in the f
     Document newDoc = parent.createDocument(properties, contentStream, VersioningState.MAJOR);
 
 
-## Update properties
+## Updating properties
 
 This example updates two properties of a CMIS object
 

Modified: chemistry/site/trunk/content/java/examples/example-get-extension.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/examples/example-get-extension.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/examples/example-get-extension.mdtext (original)
+++ chemistry/site/trunk/content/java/examples/example-get-extension.mdtext Mon Mar 21 15:33:12
2011
@@ -3,13 +3,10 @@ Title: Getting CMIS extensions
 # Getting CMIS extensions
 
 _(since OpenCMIS 0.2.0)_ <br/>
-The CMIS specification allows to add extensions at several points in CMIS
-data structures (object, properties, allowable actions, ACLs, policies,
+The CMIS specification allows to add extensions at several points in CMIS data structures
(object, properties, allowable actions, ACLs, policies,
 etc.).
-These extensions are XML fragments for the AtomPub and the Web Services
-binding. (It will be something simpler for the upcoming JSON binding.)
-Think of it as a tree structure with named node and leafs. Only the leafs
-can have a value.
+These extensions are XML fragments for the AtomPub and the Web Services binding. (It will
be something simpler for the upcoming JSON binding.)
+Think of it as a tree structure with named node and leafs. Only the leafs can have a value.
 
     :::java
     // get an object from somewhere

Modified: chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext (original)
+++ chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext Mon Mar 21
15:33:12 2011
@@ -7,8 +7,8 @@ Title: Reading metadata and content
 ### Reading Properties - Single Property
 
     :::java
-    ObjectId id = this.session.createObjectId("4711");
-    Document document = (Document) this.session.getObject(id);
+    ObjectId id = session.createObjectId("4711");
+    Document document = (Document) session.getObject(id);
     Property<String> p = document.getProperty(PropertyIds.OBJECT_ID);
     
     String s = p.getValue();
@@ -17,8 +17,8 @@ Title: Reading metadata and content
 ### Reading Properties - All Properties
 
     :::java
-    ObjectId id = this.session.createObjectId("4711");
-    Document document = (Document) this.session.getObject(id);
+    ObjectId id = session.createObjectId("4711");
+    Document document = (Document) session.getObject(id);
     List<Property<?>> l = document.getProperties();
     Iterator<Property<?>> i = l.iterator();
     while (i.hasNext()) {
@@ -39,7 +39,7 @@ Title: Reading metadata and content
 ## Retrieving content
     
     :::java
-    CmisObject object = getSession().getObject(session.createObjectId(fileId));
-    Document document = (Document)object;
+    CmisObject object = session.getObject(session.createObjectId(docId));
+    Document document = (Document) object;
     String filename = document.getName();
     InputStream stream = document.getContentStream().getStream();
\ No newline at end of file

Modified: chemistry/site/trunk/content/java/examples/index.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/examples/index.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/examples/index.mdtext (original)
+++ chemistry/site/trunk/content/java/examples/index.mdtext Mon Mar 21 15:33:12 2011
@@ -16,6 +16,6 @@ Example code and code fragments for the 
 
 ## Advanced 
 
-* [Connecting from .Net](example-connect-dotnet.html)
+* [Connecting from .NET](example-connect-dotnet.html)
 * [Getting extensions](example-get-extension.html)
 * [Using OSGI bundles](example-osgi.html)

Modified: chemistry/site/trunk/content/java/how-to/how-to-build.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/how-to/how-to-build.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/how-to/how-to-build.mdtext (original)
+++ chemistry/site/trunk/content/java/how-to/how-to-build.mdtext Mon Mar 21 15:33:12 2011
@@ -1,11 +1,8 @@
 Title: OpenCMIS how-to-build
 
-[TOC]
-
 # How to build OpenCMIS
-<a name="OpenCMIShow-to-build-HowtobuildOpenCMIS"></a>
 
-OpenCMIS releases are available [here](../../download.html).
+OpenCMIS releases are available [here](../download.html).
 If you want to build the latest and greatest instead, follow these simple steps:
 
 * Make sure you have JDK 1.5 or higher, Maven 2.2.1 and a Subversion client installed. <br/>(The
CMIS Workbench requires JDK 1.6!)
@@ -23,24 +20,16 @@ If you want to build the latest and grea
     mvn clean install -Papache-release
 
 
-
-<a name="OpenCMIShow-to-build-TheClientLibraries"></a>
 ## The Client Libraries
 
 After the build, the OpenCMIS client libraries (with all dependencies) reside in the
 `/chemistry-opencmis-client/chemistry-opencmis-client-impl/target`
-directory. The zip file contains all libraries necessary to build a CMIS
-client.
+directory. The zip file contains all libraries necessary to build a CMIS client.
 
-
-<a name="OpenCMIShow-to-build-TheServerFramework"></a>
 ## The Server Framework
 
-Please refer to the [Server Framework](../../developing/dev-server.html)
- page for more information where to find it and how to use it.
-
+Please refer to the [Server Framework](../developing/dev-server.html) page for more information
where to find it and how to use it.
 
-<a name="OpenCMIShow-to-build-BuildJavaDoc"></a>
 
 ## JavaDocs
 

Modified: chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext (original)
+++ chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext Mon Mar 21 15:33:12
2011
@@ -1,8 +1,8 @@
 Title: Tuning the performance
 
-# Tuning the performance (Client)
+# Tuning the client performance
 
-The client performance relies on two aspects: Caching and the requested data.
+The client performance relies on two aspects: **Caching** and the **requested data**.
 
 The OpenCMIS Session object does a lot of caching for you and tries to avoid calls to the
repository wherever
 possible. In order to be effective, you have to reuse the Session object whenever possible.
Creating a new Session
@@ -17,10 +17,8 @@ and especially the property filter, can 
 
 ## Understanding the client side cache
 
-Client side caching is turned on by default. That is, `getObject()` will
-first look into the session cache if the object already exists there. If
-this is the case, it returns the object without talking to the repository.
-So it might return stale objects.  
+Client side caching is turned on by default. That is, `getObject()` will first look into
the session cache if the object already exists there. 
+If this is the case, it returns the object without talking to the repository. So it might
return stale objects.  
 
 There are multiple ways to deal with that:
 

Modified: chemistry/site/trunk/content/java/opencmis.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/opencmis.mdtext?rev=1083834&r1=1083833&r2=1083834&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/opencmis.mdtext (original)
+++ chemistry/site/trunk/content/java/opencmis.mdtext Mon Mar 21 15:33:12 2011
@@ -14,8 +14,8 @@ repository developers and client applica
 
 The OpenCMIS documentation is structured in the following sections:
 
-* [Developing with OpenCMIS](developing/index.html)
 * [Downloads](download.html)
+* [Developing with OpenCMIS](developing/index.html)
 * [Example Code](examples/index.html)
 * [OpenCMIS HowTos](how-to/index.html)
 



Mime
View raw message