You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by je...@apache.org on 2011/03/18 12:57:44 UTC
svn commit: r1082878 [1/3] - in /chemistry/site/trunk: content/internal/
content/java/ content/java/developing/ content/java/developing/client/
content/java/developing/repositories/ content/java/developing/tools/
content/java/examples/ content/java/how...
Author: jens
Date: Fri Mar 18 11:57:41 2011
New Revision: 1082878
URL: http://svn.apache.org/viewvc?rev=1082878&view=rev
Log:
Restructure OpenCMIS Documentation
Added:
chemistry/site/trunk/content/internal/
chemistry/site/trunk/content/internal/documentation-lifecycle.mdtext
chemistry/site/trunk/content/internal/opencmis-maven-release-documentation.mdtext
chemistry/site/trunk/content/internal/opencmis-release-documentation.mdtext
chemistry/site/trunk/content/java/developing/
chemistry/site/trunk/content/java/developing/client/
chemistry/site/trunk/content/java/developing/client/dev-client-api.mdtext
chemistry/site/trunk/content/java/developing/client/dev-client-bindings.mdtext
chemistry/site/trunk/content/java/developing/client/opencmis-client-api-class-diagram.png (with props)
chemistry/site/trunk/content/java/developing/dev-binding-differences.mdtext
chemistry/site/trunk/content/java/developing/dev-client-cache.mdtext
chemistry/site/trunk/content/java/developing/dev-compare-client-api-binding.mdtext
chemistry/site/trunk/content/java/developing/dev-debug.mdtext
chemistry/site/trunk/content/java/developing/dev-eclipse.mdtext
chemistry/site/trunk/content/java/developing/dev-index.mdtext
chemistry/site/trunk/content/java/developing/dev-known-repo-issues.mdtext
chemistry/site/trunk/content/java/developing/dev-logging.mdtext
chemistry/site/trunk/content/java/developing/dev-modules.mtext
chemistry/site/trunk/content/java/developing/dev-operation-context.mdtext
chemistry/site/trunk/content/java/developing/dev-server.mdtext
chemistry/site/trunk/content/java/developing/dev-session-parameters.mdtext
chemistry/site/trunk/content/java/developing/dev-tools.mdtext
chemistry/site/trunk/content/java/developing/dev-url.mdtext
chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext
chemistry/site/trunk/content/java/developing/dev-use-without-maven.mdtext
chemistry/site/trunk/content/java/developing/opencmis-client-api-class-diagram.png (with props)
chemistry/site/trunk/content/java/developing/repositories/
chemistry/site/trunk/content/java/developing/repositories/dev-repositories-fileshare.mdtext
chemistry/site/trunk/content/java/developing/repositories/dev-repositories-inmemory.mdtext
chemistry/site/trunk/content/java/developing/repositories/dev-repositories-jcr.mdtext
chemistry/site/trunk/content/java/developing/tools/
chemistry/site/trunk/content/java/developing/tools/dev-tools-browser.mdtext
chemistry/site/trunk/content/java/developing/tools/dev-tools-workbench.mdtext
chemistry/site/trunk/content/java/download.mdtext
chemistry/site/trunk/content/java/examples/
chemistry/site/trunk/content/java/examples/example-connect-dotnet.mdtext
chemistry/site/trunk/content/java/examples/example-create-session.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-get-id-from-path.mdtext
chemistry/site/trunk/content/java/examples/example-index.mdtext
chemistry/site/trunk/content/java/examples/example-list-folder.mdtext
chemistry/site/trunk/content/java/examples/example-osgi.mdtext
chemistry/site/trunk/content/java/examples/example-process-query-results.mdtext
chemistry/site/trunk/content/java/examples/example-read-file.mdtext
chemistry/site/trunk/content/java/examples/example-read-meta-content.mdtext
chemistry/site/trunk/content/java/examples/example-read-props.mdtext
chemistry/site/trunk/content/java/examples/example-read-root.mdtext
chemistry/site/trunk/content/java/how-to/
chemistry/site/trunk/content/java/how-to/how-to-add-extension.mdtext
chemistry/site/trunk/content/java/how-to/how-to-build.mdtext
chemistry/site/trunk/content/java/how-to/how-to-connect.mdtext
chemistry/site/trunk/content/java/how-to/how-to-create-server.mdtext
chemistry/site/trunk/content/java/how-to/how-to-index.mdtext
chemistry/site/trunk/content/java/how-to/how-to-integrate-spring.mdtext
chemistry/site/trunk/content/java/how-to/how-to-process-query.mdtext
chemistry/site/trunk/content/java/how-to/how-to-tune-perfomance.mdtext
chemistry/site/trunk/content/java/overview.mdtext
Removed:
chemistry/site/trunk/content/java/cmis-workbench.mdtext
chemistry/site/trunk/content/java/documentation-lifecycle.mdtext
chemistry/site/trunk/content/java/how-to-build-a-server.mdtext
chemistry/site/trunk/content/java/opencmis-api-examples.mdtext
chemistry/site/trunk/content/java/opencmis-browser.mdtext
chemistry/site/trunk/content/java/opencmis-client-api-class-diagram.png
chemistry/site/trunk/content/java/opencmis-client-api.mdtext
chemistry/site/trunk/content/java/opencmis-client-bindings.mdtext
chemistry/site/trunk/content/java/opencmis-cookbook.mdtext
chemistry/site/trunk/content/java/opencmis-fileshare-repository.mdtext
chemistry/site/trunk/content/java/opencmis-how-to-build.mdtext
chemistry/site/trunk/content/java/opencmis-inmemory-repository.mdtext
chemistry/site/trunk/content/java/opencmis-jcr-repository.mdtext
chemistry/site/trunk/content/java/opencmis-layers.png
chemistry/site/trunk/content/java/opencmis-maven-release-documentation.mdtext
chemistry/site/trunk/content/java/opencmis-modules.mdtext
chemistry/site/trunk/content/java/opencmis-release-documentation.mdtext
chemistry/site/trunk/content/java/opencmis-server-framework.mdtext
chemistry/site/trunk/content/java/opencmis-session-parameters.mdtext
chemistry/site/trunk/content/java/opencmis.mdtext
chemistry/site/trunk/content/java/projects-using-opencmis.mdtext
chemistry/site/trunk/content/java/queryintegration.mdtext
Modified:
chemistry/site/trunk/templates/navigation_bar.html
Added: chemistry/site/trunk/content/internal/documentation-lifecycle.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/internal/documentation-lifecycle.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/internal/documentation-lifecycle.mdtext (added)
+++ chemistry/site/trunk/content/internal/documentation-lifecycle.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,76 @@
+Title: Documentation lifecycle design
+Notice: Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+***This page is a proposal / design page for OpenCMIS documentation***
+
+## Documentation Deliverables (current) ##
+
+At the moment (0.2.0-incubating --> 0.3.0) we deliver the following documentation:
+
+ - [Apache CMS driven public website][1]
+ - chemistry-docs-<version>.zip containing Javadocs + latest snapshot of public docs
+ - [Maven generated reports][2] (tests reports + project info) per <version>
+
+##Documentation Use Case##
+
+Thinking about the general OpenCMIS use discovery process, I imagine something like:
+
+ 1. user googles for a Java CMIS API
+ 2. user gets to the [OpenCMIS home page][3]
+ 3. user downloads (or use Maven) to get a specific RELEASE or SNAPSHOT packages
+ 4. user keeps on browsing on the live site (for HOWTOs and Javadocs / project info)
+
+
+##Documentation lifecycle (proposed) ##
+
+Fundamental requirement to change the documentation lifecycle as is is that we have
+**no online versioning of our documentation** and the chemistry-docs.zip package is too
+weak.
+
+Since with Apache CMS versioning documentation is as easy as a SVN tag, I suggest we
+simplify the documentation process as follows:
+
+ - **http://chemistry.apache.org/java/** remains the entry point and
+ - links to all release packages and **per version documentation sites**
+ - always keeps docs for the current SNAPSHOT version (even design + proposals)
+ - contains Roadmap and centralized information
+ - **http://chemistry.apche.org/java/{version}** (linked by the main page)
+ - will keep the documentation archive for a specific release {version}
+ - these snapshots can be tagged upon release by maven
+ - the maven generated site (with Javadocs and test reports) gets generated under a subfolder called *"maven"*
+
+**Deliverables**
+
+Our release process could produce:
+
+ - *Live*: Having aligned Maven and CMS aligned, e.g. for version 0.3.0,something like:
+ - chemistry.apache.org/java/
+ - chemistry.apache.org/java/0.3.0/
+ - chemistry.apache.org/java/0.3.0/maven/
+ - *chemistry-docs.zip*: can be then create as as export + template of the **per version specific tag**.
+
+##Doubts##
+
+ 1. Is the chemistry-docs.zip at all needed?
+ 2. Can we use [MarkDown][4] as input for standard Maven Doxia (e.g. to produce a per release PDF)?
+
+
+ [1]: http://chemistry.apache.org/java
+ [2]: http://incubator.apache.org/chemistry/maven-site/
+ [3]: http://chemistry.apache.org/java
+ [4]: http://sourceforge.net/projects/markdownj/
\ No newline at end of file
Added: chemistry/site/trunk/content/internal/opencmis-maven-release-documentation.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/internal/opencmis-maven-release-documentation.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/internal/opencmis-maven-release-documentation.mdtext (added)
+++ chemistry/site/trunk/content/internal/opencmis-maven-release-documentation.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,225 @@
+Title: OpenCMIS Maven Release Documentation
+Breadcrumb: opencmis:OpenCMIS
+
+* [OpenCMIS Release Documentation](#OpenCMISMavenReleaseDocumentation-OpenCMISReleaseDocumentation)
+ * [Introduction](#OpenCMISMavenReleaseDocumentation-Introduction)
+ * [Build Environments](#OpenCMISMavenReleaseDocumentation-BuildEnvironments)
+ * [Release Artifacts](#OpenCMISMavenReleaseDocumentation-ReleaseArtifacts)
+ * [Documentation and JavaDoc](#OpenCMISMavenReleaseDocumentation-DocumentationandJavaDoc)
+ * [Preparation](#OpenCMISMavenReleaseDocumentation-Preparation)
+ * [Release Manager](#OpenCMISMavenReleaseDocumentation-ReleaseManager)
+ * [Version](#OpenCMISMavenReleaseDocumentation-Version)
+ * [Open Issues](#OpenCMISMavenReleaseDocumentation-OpenIssues)
+ * [Unit Tests and Integration Tests](#OpenCMISMavenReleaseDocumentation-UnitTestsandIntegrationTests)
+ * [Apache License and Code Style](#OpenCMISMavenReleaseDocumentation-ApacheLicenseandCodeStyle)
+ * [Release Notes](#OpenCMISMavenReleaseDocumentation-ReleaseNotes)
+ * [Release Tag](#OpenCMISMavenReleaseDocumentation-ReleaseTag)
+ * [Release Branch](#OpenCMISMavenReleaseDocumentation-ReleaseBranch)
+ * [Release Candidate](#OpenCMISMavenReleaseDocumentation-ReleaseCandidate)
+ * [Publishing The Release](#OpenCMISMavenReleaseDocumentation-PublishingTheRelease)
+ * [Post Release Cleanup](#OpenCMISMavenReleaseDocumentation-PostReleaseCleanup)
+
+<a name="OpenCMISMavenReleaseDocumentation-OpenCMISReleaseDocumentation"></a>
+# OpenCMIS Release Documentation
+
+<a name="OpenCMISMavenReleaseDocumentation-Introduction"></a>
+## Introduction
+
+This document describes the release process for Apache Chemistry OpenCMIS.
+It heavily refers to [standard Apache procedures to release](http://maven.apache.org/developers/release/apache-release.html)
+ Maven based projects at Apache. Also [general incubator best practices|http://incubator.apache.org/guides/releasemanagement.html]
+ have been implemented.
+
+<a name="OpenCMISMavenReleaseDocumentation-BuildEnvironments"></a>
+## Build Environments
+
+OpenCMIS is built and released with [Maven2](http://maven.apache.org)
+ and uses the [Apache POM version 7|http://svn.apache.org/repos/asf/maven/pom/tags/apache-7/pom.xml]
+ .
+
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseArtifacts"></a>
+## Release Artifacts
+
+An OpenCMIS release ([see an exampled of all released packages here](https://repository.apache.org/index.html#nexus-search;gav~org.apache.chemistry.opencmis~~0.1.0-incubating-SNAPSHOT)
+) consists of:
+
+* All POMs/JARs/WARs built as part of the standard Maven build process. For
+an overview on the released modules see artifacts with groupId
+_org.apache.chemistry.opencmis_ in the [Apache Maven Repository](https://repository.apache.org/index.html#nexus-search;gav~org.apache.chemistry.opencmis~~~~)
+. In detail, per every module, where applicable, the following artifacts
+are produced:
+** *Main artifact*: *<artifactId>-<version>.<ext>*
+** *Source artifact*: *<artifactId>-<version>-sources.<ext>*
+** *Javadoc artifact*: *<artifactId>-<version>-javadoc.<ext>*
+** *POM*: *<artifactId>-<version>.pom*
+
+* Also the following additional *distribution commodity packages* are
+provided as part of the release:
+** A source-release bundle containing all files the sources necessary to
+build all other artifacts.
+*** *Package formats*: zip.
+*** *Name*: *chemistry-opencmis-<version>-source-release.<ext>*
+** A package containing offline HTML documentation and the full javadocs:
+*** *Package formats*: tar.gz and zip.
+*** *Name*: *chemistry-opencmis-<version>-docs.<ext>*
+** A client distribution bundle with all the client related JARs:
+*** *Package formats*: tar.gz and zip.
+*** *Name*: *chemistry-opencmis-dist-<version>-client.<ext>*
+** A client bundle (as above) with OpenCMIS Client JARs and all
+dependencies.
+*** *Package formats*: tar.gz and zip.
+*** *Name*:
+*chemistry-opencmis-client-impl-<version>-with-dependencies.<ext>*
+** A bundle containing the OpenCMIS server WARs and support
+*** *Package formats*: tar.gz and zip.
+*** *Name*: *chemistry-opencmis-dist-<version>-server.<ext>*
+** A bundle containing all OpenCMIS server related WARs (_inmemory,
+fileshare, browser)_
+*** *Package formats*: tar.gz and zip.
+*** *Name*: *chemistry-opencmis-dist-<version>-server-webapps.<ext>*
+
+
+<a name="OpenCMISMavenReleaseDocumentation-DocumentationandJavaDoc"></a>
+#### Documentation and JavaDoc
+
+The documentation that will be part of the release must match the code. All
+examples in the documentation must work. The Java package documentation
+must be up-to-date. The JavaDoc must be generated with Maven without
+warnings.
+
+The Maven site documentation will be generated as part of the release and deployed as part of the vote at http:/people.apache.org/~gabriele/opencmis/<version> ([see an example](http://people.apache.org/~gabriele/chemistry/opencmis/0.1.0-incubating-SNAPSHOT/)
+) .
+Later, upon release approval, this will be synced in a sub folder of [http://incubator.apache.org/chemistry/](http://incubator.apache.org/chemistry/)
+ and linked from the wiki home page. This will allow to publish up to date
+Java Doc and test reports.
+
+<a name="OpenCMISMavenReleaseDocumentation-Preparation"></a>
+## Preparation
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseManager"></a>
+### Release Manager
+
+A release manager must be appointed for a release. He or she is in charge
+of the release process, following the guidelines and eventually generating
+the release artifacts. The release manager might tailor the process for a
+specific release.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-Version"></a>
+### Version
+
+The OpenCMIS community decides if the release will be a major or a minor
+release and agrees on a version number. The string "-incubating" will be
+attached to incubator release version numbers.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-OpenIssues"></a>
+### Open Issues
+
+There must not be any open JIRA issues for this release. There might be
+open issues for future releases.
+
+<a name="OpenCMISMavenReleaseDocumentation-UnitTestsandIntegrationTests"></a>
+### Unit Tests and Integration Tests
+
+All unit tests and integration tests must succeed on a clean machine
+(starting with an empty local Maven repository).
+
+
+<a name="OpenCMISMavenReleaseDocumentation-ApacheLicenseandCodeStyle"></a>
+### Apache License and Code Style
+
+Each source code file must have a current ASF license header. The source
+code should follow the OpenCMIS code style.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseNotes"></a>
+### Release Notes
+
+Each release must provide a RELEASE-NOTES.txt file in the base directory of
+the source bundle. It must contain all known issues and should contain a
+description of all the changes since the previous release. The release
+notes should also contain the minimum target Java version and a list of all
+dependencies with their minimum version.
+NOTICE.txt and LICENSE.txt must be present in all bundles and must be
+up-to-date.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseTag"></a>
+### Release Tag
+
+A tag has to be created for every release candidate. The naming rule for
+the tags is *tags/chemistry-opencmis-<version>-RC<number>*.
+This is created as part of the Maven release process. The tag will be
+renamed to the final version number upon vote approval.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseBranch"></a>
+### Release Branch
+
+A branch has to be created for every release. The naming rule for this
+branch is *branches/chemistry-opencmis-<version>-release*.
+This has to be created manually upon release approval.
+
+<a name="OpenCMISMavenReleaseDocumentation-ReleaseCandidate"></a>
+## Release Candidate
+
+Once all preparations are done, a release candidate will be built.
+
+All release candidates must be cryptographically signed. The string
+"-RC<number>" will be attached to the version number of the release
+candidate artifacts, where <number> is the number of the release candidate
+starting with 1. If more than one release candidate is required a new tag
+has to be created and release candidate number will be increased by one.
+
+The release candidate artifacts:
+
+* *Maven artifacts* will be [staged](http://incubator.apache.org/guides/releasemanagement.html)
+ on *repository.apache.org*
+* *Distribution commodity packages* are staged
+at {color:#003366}http:/people.apache.org/~_<username>_/opencmis/<version>/dist/{color}
+* The *generated site reports/javadocs* will be staged
+at {color:#003366}http:/people.apache.org/~_<username>_/opencmis/<version>/site/{color}
+
+Once candidate artifacts are available, release manager kicks off the [VOTE process](http://incubator.apache.org/guides/releasemanagement.html#best-practice-incubator-release-vote)
+.
+
+
+If the vote fails, the raised issues will be fixed, a new release candidate
+will be built and the VOTE process will be restarted.
+
+If the release candidate gets approved, we can proceed to release
+publishing.
+
+
+<a name="OpenCMISMavenReleaseDocumentation-PublishingTheRelease"></a>
+### Publishing The Release
+
+If the release candidate gets approved, we can proceed to release
+publishing:
+
+* *release candidate maven artifacts* are _promoted_ as in the Apache
+Maven Repository and made available at [https://repository.apache.org/content/groups/public/org/apache/chemistry/](https://repository.apache.org/content/groups/public/org/apache/chemistry/)
+ - Maven artifacts are automatically synced to Maven Central [http://repo1.maven.org/maven2]
+
+* *release candidate commodity packages* are synced (together with their
+checksum and signatures) to [http://www.apache.org/dist/incubator/chemistry](http://www.apache.org/dist/incubator/chemistry)
+* *maven site* is synced to [http://incubator.apache.org/chemistry/maven-site/<version>](http://incubator.apache.org/chemistry/maven-site/<version>)
+ and back-linked from [http://incubator.apache.org/chemistry/index.html]
+* *project version* at [http://incubator.apache.org/chemistry/index.html](http://incubator.apache.org/chemistry/index.html)
+ is updated
+* *release tag is renamed* to final version
+* release branch is created
+* *Release is closed* in [](https://issues.apache.org/jira/secure/project/ManageVersions.jspa?pid=12310936)
+* *Release is announced* to
+
+* {noformat}
+general@incubator.apache.org chemistry-dev@incubator.apache.org
+
+
+
+
+ h2. Post Release Cleanup
+
+ * Remove release candidate artifacts and sites
Added: chemistry/site/trunk/content/internal/opencmis-release-documentation.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/internal/opencmis-release-documentation.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/internal/opencmis-release-documentation.mdtext (added)
+++ chemistry/site/trunk/content/internal/opencmis-release-documentation.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,185 @@
+Title: OpenCMIS Release Documentation
+Breadcrumb: opencmis:OpenCMIS
+
+# OpenCMIS Release Documentation
+<a name="OpenCMISReleaseDocumentation-OpenCMISReleaseDocumentation"></a>
+
+<a name="OpenCMISReleaseDocumentation-Introduction"></a>
+## Introduction
+
+This document describes the release guidelines for Apache Chemistry
+OpenCMIS.
+
+
+<a name="OpenCMISReleaseDocumentation-BuildEnvironments"></a>
+## Build Environments
+
+OpenCMIS has to be built with Maven 2.
+
+
+<a name="OpenCMISReleaseDocumentation-ReleaseArtifacts"></a>
+## Release Artifacts
+An OpenCMIS release consists of:
+* A source bundle containing all files that are necessary to build all
+other artifacts. It also contains the JavaDoc of the client API, the client
+bindings API and the server SPI as well as additional documentation and
+examples.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-source.<ext>*
+
+* A client bundle containing all OpenCMIS JARs that are necessary to build
+a CMIS client application.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-client.<ext>*
+
+* A client bundle (as above) with all dependencies.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-client-dep.<ext>*
+
+* A server bundle containing all OpenCMIS JARs and WARs and dependencies
+that are necessary to build a CMIS server.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-server.<ext>*
+
+* An InMemory repository bundle containing a ready-to-deploy WAR.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-server-inmemory.<ext>*
+
+* A FileShare repository bundle containing a ready-to-deploy WAR.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-server-fileshare.<ext>*
+
+* A browser bundle containing a ready-to-deploy WAR.
+Package formats: tar.gz and zip.
+Name: *chemistry-opencmis-<version>-browser.<ext>*
+
+<a name="OpenCMISReleaseDocumentation-Preparation"></a>
+## Preparation
+
+<a name="OpenCMISReleaseDocumentation-ReleaseManager"></a>
+### Release Manager
+
+A release manager must be appointed for a release. He or she is in charge
+of the release process, following the guidelines and eventually generating
+the release artifacts. The release manager might tailor the process for a
+specific release.
+
+
+<a name="OpenCMISReleaseDocumentation-Version"></a>
+### Version
+
+The OpenCMIS community decides if the release will be a major or a minor
+release and agrees on a version number. The string "-incubating" will be
+attached to incubator release version numbers.
+
+
+<a name="OpenCMISReleaseDocumentation-OpenIssues"></a>
+### Open Issues
+
+There must not be any open JIRA issues for this release. There might be
+open issues for future releases.
+
+
+<a name="OpenCMISReleaseDocumentation-UnitTestsandIntegrationTests"></a>
+### Unit Tests and Integration Tests
+
+All unit tests and integration tests must succeed on a clean machine
+(starting with an empty local Maven repository).
+
+
+<a name="OpenCMISReleaseDocumentation-DocumentationandJavaDoc"></a>
+### Documentation and JavaDoc
+
+The documentation that will be part of the release must match the code. All
+examples in the documentation must work. The Java package documentation
+must be up-to-date.
+The JavaDoc must be generated with Maven without warnings.
+
+
+<a name="OpenCMISReleaseDocumentation-ApacheLicenseandCodeStyle"></a>
+### Apache License and Code Style
+
+Each source code file must have a current ASF license header. The source
+code should follow the OpenCMIS code style.
+
+
+<a name="OpenCMISReleaseDocumentation-ReleaseNotes"></a>
+### Release Notes
+
+Each release must provide a RELEASE-NOTES.txt file in the base directory of
+the source bundle. It must contain all known issues and should contain a
+description of all the changes since the previous release. The release
+notes should also contain the minimum target Java version and a list of all
+dependencies with their minimum version.
+NOTICE.txt and LICENSE.txt must be present in all bundles and must be
+up-to-date.
+
+
+<a name="OpenCMISReleaseDocumentation-ReleaseBranch"></a>
+### Release Branch
+
+A branch has to be created for every release. The naming rule for this
+branch is *branches/chemistry-opencmis-<version>-release*.
+A tag has to be created for every release candidate. The naming rule for
+the tags is *tags/chemistry-opencmis-<version>-RC<number>*.
+
+
+<a name="OpenCMISReleaseDocumentation-ReleaseCandidate"></a>
+## Release Candidate
+
+Once all preparations are done, a release candidate will be built. All
+release candidates must be cryptographically signed. The string
+"-RC<number>" will be attached to the version number of the release
+candidate artifacts, where <number> is the number of the release candidate
+starting with 1. If more than one release candidate is required a new tag
+has to be created and release candidate number will be increased by one.
+The release candidate artifacts will be made available on
+*people.apache.org* and the release manager kicks off the VOTE process.
+
+If the vote fails, the raised issues will be fixed, a new release candidate
+will be built and the VOTE process will be restarted.
+
+If the release candidate gets approved, the release candidate artifacts
+will be renamed and become the release artifacts.
+
+
+<a name="OpenCMISReleaseDocumentation-ReleaseTool"></a>
+### Release Tool
+
+There is release tool that simplifies the creation of a release candidate.
+
+1. Prerequisites: Java >= 1.5, ant >= 1.8, Maven 2, SVN command line tools,
+wget, GPG
+1. Create a new folder and copy *build.xml* from *trunk/release-tool* to
+this folder.
+1. Open *build.xml* with your favorite editor and adjust the following
+property values: snapshot version, release version, release candidate,
+tools.
+1. Run *ant prepare*. This will create new sub-folders, check out the
+current trunk, adjust the *pom.xml* files and download the documentation.
+1. Check everything. Check again.
+1. Delete your local Maven repository.
+1. Run *ant build*. This will compile the whole project, run the JUnit
+tests and the integration test and create the JavaDoc. This will take some
+time.
+1. Make sure the build was successful. Make sure that there no warnings.
+1. Run *ant pack*. This will generate the release artifacts. You might be
+asked for the passphrase of your private GPG key.
+1. The *release* folder should now contain all release artifacts. Check
+them all carefully. Check again.
+1. If you are convinced that all artifacts are ok, upload *all artifacts* to
+*people.apache.org* and let the Chemistry community know.
+1. If this is the first release candidate for this release, create a release
+branch.
+1. Create a new release candidate tag.
+
+
+<a name="OpenCMISReleaseDocumentation-PublishingTheRelease"></a>
+## Publishing The Release
+
+
+
+<a name="OpenCMISReleaseDocumentation-PostReleaseCleanup"></a>
+## Post Release Cleanup
+
+
Added: chemistry/site/trunk/content/java/developing/client/dev-client-api.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/client/dev-client-api.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/client/dev-client-api.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/client/dev-client-api.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,60 @@
+Title: OpenCMIS Client API
+
+# OpenCMIS Client API
+<a name="OpenCMISClientAPI-OpenCMISClientAPI"></a>
+
+## Overview
+The OpenCMIS client layer provides an object oriented interface for easy
+consumption of the underlying CMIS related layers. In addition to the CMIS
+specification the OpenCMIS client layer introduces a session concept which
+easily enables applications to get control on the client side cache
+behavior.
+
+The client layer consists of a client interface, common interfaces and a
+runtime implementation. The runtime maps the client interface to the
+bindings layer and implements the session cache. All parts are exposed by
+following packages:
+
+Package | Artifact | Description
+---------------------------------------------|--------------------------------|----------------------------------------------------------------------------------------------
+org.apache.chemistry.opencmis.client.api | chemistry-opencmis-client-api | Main interfaces of the client API
+org.apache.chemistry.opencmis.commons.api | chemistry-opencmis-commons-api | Interfaces and classes shared by client and client bindings API
+org.apache.chemistry.opencmis.client.runtime | chemistry-opencmis-client-impl | Implementation classes of client API including a default implementation of the SessionFactory
+
+
+The following UML diagram illustrates the main classes of the client API:
+
+<img src="opencmis-client-api-class-diagram.png">
+<br/>
+
+* **SessionFactory** This interface provides the entry point into the client
+API and is responsible to create a session object. Additionally it gives
+access to all repository info exposed by a CMIS client binding. The runtime
+provides a default implementation for the SessionFactory interface.
+* **Session** This is the main interface an application has to work with. A
+session object is related to a CMIS service client binding and is attached
+to exact one repository. All data that is received through the session
+interface can be cached in the session object in dependency of the concrete
+implementation which is behind.
+* **Repository** Wrapper interface for the CMIS RepositoryInfo service.
+* **CmisObject** The CmisObject interface represents the CMIS domain object.
+* **ObjectType** This interface is base for all CMIS domain types like
+FolderType, DocumentType, PolicyType and RelationshipType. The derived
+interfaces are not shown in the diagram.
+* **Folder** This interface represents the CMIS folder object.
+* **Document** This interface represents the CMIS document object.
+* **ContentStream** this interface wraps the content stream of a CMIS
+document.
+* **Policy** This interface represents the CMIS policy object.
+* **Relationship** This interface represents the CMIS relationship object.
+
+<a name="OpenCMISClientAPI-Sessions"></a>
+## Sessions
+
+OpenCMIS' central entry point to a CMIS repository is a session. A session
+controls settings and caches that used across multiple calls and provides
+access to all CMIS operations and objects.
+In order to create a session, the SessionFactory needs a set parameters
+(see [OpenCMIS Session Parameters](opencmis-session-parameters.html)
+).
+
Added: chemistry/site/trunk/content/java/developing/client/dev-client-bindings.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/client/dev-client-bindings.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/client/dev-client-bindings.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/client/dev-client-bindings.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,152 @@
+Title: OpenCMIS Client Bindings
+
+# OpenCMIS Client Bindings
+<a name="OpenCMISClientBindings-OpenCMISClientBindings"></a>
+
+The OpenCMIS client bindings layer hides the CMIS AtomPub and Web Services
+bindings and provides an interface that is very similar to the [CMIS domain model](http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905381)
+. The services, operations, parameters, and structures are named after the
+CMIS domain model and behave as described in the CMIS specification.
+
+The primary objective of the client bindings layer is to be complete,
+covering all CMIS operations and extension points. The result is a somewhat
+clunky interface. The [OpenCMIS Client API](dev-client-api.html)
+ sits on top of the provider layer and exposes a nicer and simpler to use
+interface. It is the better choice for most applications.
+
+A connection to a CMIS repository is represented by a [`CmisBinding`](http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/commons/spi/CmisBinding.html)
+ object. Such an object can be created by the [`CmisBindingFactory`](http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.html).
+The factory provides three main methods, one for each binding and third
+one for a local connection (same JVM), that require binding specific
+connection information. The created `CmisBinding` object exposes a
+binding agnostic interface.
+
+`CmisBinding` is the entry point to the CMIS services and a few utility
+operations. It contains a transparent cache for repository infos and type
+definitions. The object is serializable, although dehydrating can be
+expensive. `CmisBinding` is thread-safe.
+
+The get\*Service() methods provide access to the CMIS services. Some
+service operations take provider layer specific objects. These objects
+should be created with the [`BindingsObjectFactory`](http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.html).
+This factory can be obtained through the `getObjectFactory()` method of the `CmisBinding` object.
+
+Please refer to the OpenCMIS Commons [JavaDoc](http://incubator.apache.org/chemistry/javadoc/)
+ and OpenCMIS Client Binding [JavaDoc](http://incubator.apache.org/chemistry/javadoc/)
+ for more details on the interfaces.
+
+<a name="OpenCMISClientBindings-SampleCode"></a>
+## Sample Code
+
+<a name="OpenCMISClientBindings-CreatinganAtomPubbindinginstance"></a>
+### Creating an AtomPub binding instance
+
+The AtomPub binding requires the URL of the CMIS service document. HTTP
+basic authentication is enabled by default and a username and a password
+have to be provided.
+
+ :::java
+ Map<String, String> parameters = new HashMap<String, String>();
+
+ parameters.put(SessionParameter.USER, user);
+ parameters.put(SessionParameter.PASSWORD, password);
+
+ parameters.put(SessionParameter.ATOMPUB_URL, url); // service document URL
+
+ CmisBindingFactory factory = CmisBindingFactory.newInstance();
+ CmisBinding binding = factory.createCmisAtomPubBinding(parameters);
+
+
+
+### Creating a Web Services binding instance
+
+The Web Services binding requires a WSDL URL for each CMIS service. This
+might the same the URL for all services. WS-Security (UsernameToken) is
+enabled by default and a username and a password have to be provided.
+
+ :::java
+ Map<String, String> parameters = new HashMap<String, String>();
+
+ parameters.put(SessionParameter.USER, username);
+ parameters.put(SessionParameter.PASSWORD, password);
+
+ parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, repositoryServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, navigationServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, objectServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, versioningServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, discoveryServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, relationshipServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, multiFilingServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, policyServiceWsdlUrl);
+ parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, aclServiceWsdlUrl);
+
+ CmisBindingFactory factory = CmisBindingFactory.newInstance();
+ CmisBinding binding = factory.createCmisWebServicesBinding(parameters);
+
+
+
+<a name="OpenCMISClientBindings-CreatingaLocalbindinginstance"></a>
+### Creating a Local binding instance
+
+The Local binding connects to an OpenCMIS server in the same JVM. The
+server factory class name has to be supplied.
+
+ :::java
+ Map<String, String> parameters = new HashMap<String, String>();
+
+ parameters.put(SessionParameter.USER, user);
+ parameters.put(SessionParameter.PASSWORD, password);
+
+ parameters.put(SessionParameter.LOCAL_FACTORY, factoryClassName);
+
+ CmisBindingFactory factory = CmisBindingFactory.newInstance();
+ CmisBinding binding = factory.createCmisLocalBinding(parameters);
+
+
+
+### Getting an Object
+
+The following snippet gets the name of the object "myObject" in repository
+"myRepository". The parameters of `getObject()` can be found in the CMIS
+specification.
+
+ :::java
+ CmisBinding binding = ...
+
+ ObjectData myObject = binding.getObjectService().getObject("myRepository", "myObject",
+ "*", true, IncludeRelationships.BOTH, "cmis:none", true, true, null);
+
+ PropertiesData properties = myObject.getProperties();
+ PropertyData<String> nameProperty = properties.getProperties().get(PropertyIds.NAME);
+ String name = nameProperty.getFirstValue();
+
+
+<a name="OpenCMISClientBindings-CustomAuthenticationProvider"></a>
+## Custom Authentication Provider
+
+OpenCMIS supports HTTP basic authentication for the AtomPub binding and
+WS-Security (UsernameToken) for the Web Services binding out of the box.
+Other authentication methods can be added by implementing a custom
+authentication provider.
+
+Such a provider must extend
+`org.apache.chemistry.opencmis.client.provider.spi.AbstractAuthenticationProvider`
+and overwrite the methods `getHTTPHeaders` and `getSOAPHeaders`. See
+JavaDoc for details.
+
+The session parameter `SessionParameter.AUTHENTICATION_PROVIDER_CLASS`
+must be set to the fully qualified class name in order to active the
+authentication provider before the session is created.
+
+ :::java
+ Map<String, String> parameters = new HashMap<String, String>();
+
+ parameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS, "org.example.opencmis.MyAuthenticationProvider");
+ parameters.put("org.example.opencmis.user", "cmisuser"); // MyAuthenticationProvider can get and evaluate this
+ parameters.put("org.example.opencmis.secret", "b3BlbmNtaXMgdXNlcg==");
+
+ parameters.put(SessionParameter.ATOMPUB_URL, url); // service document URL
+
+ CmisBindingFactory factory = CmisBindingFactory.newInstance();
+ CmisBinding provider = factory.createCmisAtomPubBinding(parameters);
+
Added: chemistry/site/trunk/content/java/developing/client/opencmis-client-api-class-diagram.png
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/client/opencmis-client-api-class-diagram.png?rev=1082878&view=auto
==============================================================================
Binary file - no diff available.
Propchange: chemistry/site/trunk/content/java/developing/client/opencmis-client-api-class-diagram.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: chemistry/site/trunk/content/java/developing/dev-binding-differences.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-binding-differences.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-binding-differences.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-binding-differences.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,75 @@
+Title: OpenCMIS Binding differences
+
+# Differences between the CMIS bindings
+
+OpenCMIS supports both the AtomPub and the web services binding interface.
+It hides all the details how to handle the protocol but there are some
+subtle differences that need to be reflected in the Java interfaces. This
+chapter explains where the differences are and why they are needed.
+
+<a name="HowToBuildAServer-TheObjectInfointerface"></a>
+## The ObjectInfo interface
+
+The methods in the interfaces `CmisService` are following the data model
+in the CMIS specification. The specification defines the following
+services:
+
+* AclService
+* DiscoveryService
+* ObjectService
+* MultifFlingService
+* NavigationService
+* PolicyService
+* RelationshipService
+* RepositoryService
+* Versioning Service
+
+For each of these services exists a corresponding interface in opencmis.
+CmisService is an interface that unifies all interfaces in one interface.
+The methods in this interface correspond to the methods in the
+specification. For the web service binding this is a one-to-one mapping.
+For the AtomPub binding this information is not sufficient in all cases.
+Take the creation of a document as an example. The web service returns in
+this case a single string value containing the id of the created document.
+A response in the AtomPub binding however consists of an AtomPub entry
+element which is an XML fragment (for an example look at
+`DocumentEntry.xml` in the examples directory of the CMIS specification).
+You will notice that generating this XML requires much more information
+than the create...() methods in the specification provide as return value.
+Your implementation needs to provide all the information so that opencmis
+can generate the complete response. For this purpose the `ObjectInfo` was
+introduced. `getObjectInfo` is the method of the `CmisService` interface
+that provides this information. The `AbstractCmisService` contains a
+member `objectInfoMap` that you can fill with this information. If you
+ignore this the class `AbstractCmisService` contains a default
+implementation which works but is very ineffecient. You should use this
+only as a starting point. Beware that a service can be called from multiple
+threads, so have to take care to handle threading issues properly.
+
+If the method you are implementing returns a list of objects and not only a
+single value (for example methods like `getChildren()`, `getDescendants()`
+in the navigation service) you need to provide an `ObjectInfo` for each
+element in the collection. `getObjectInfo` therefore returns a map with
+the object id for each object as key and the corresponding `ObjectInfo`
+as value. You can use the method `addObjectInfo` to add an element to the
+map.
+
+
+
+<a name="HowToBuildAServer-Thecreate()methods"></a>
+## The create() methods
+
+The web service binding has separate calls for each object type to be
+created: policies, relationships, documents and folders:
+
+* createDocument
+* createFolder
+* createRelationship
+* createPolicy
+
+In the AtomPub binding there is one general `create()` method that is
+used for all object types. The CmisObjectService interface therefore
+contains 5 `create()` methods, the four specific ones are used for the
+web service bindings and the general one for the AtomPub binding.
+
+
Added: chemistry/site/trunk/content/java/developing/dev-client-cache.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-client-cache.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-client-cache.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-client-cache.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,48 @@
+Title: Understanding the client side cache
+
+# 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.
+
+There are multiple ways to deal with that:
+
+* Refresh the object data that is returned from `getObject()`.
+
+
+
+ :::java
+ CmisObject object = session.getObject(id);
+ object.refresh(); // contacts the repository and refreshes the object
+ object.refreshIfOld(60 * 1000); // ... or refreshes the object only if the data is older than a minute
+
+
+* Turn off the session cache completely.
+
+
+
+ :::java
+ session.getDefaultContext().setCacheEnabled(false);
+
+
+* Turn off caching for this `getObject()` call.
+
+
+
+ :::java
+ OperationContext oc = session.createOperationContext();
+ oc.setCacheEnabled(false);
+
+ CmisObject object = session.getObject(id, oc);
+
+
+* Clear the session cache (not recommended).
+
+
+
+ :::java
+ session.clear();
+
+
Added: chemistry/site/trunk/content/java/developing/dev-compare-client-api-binding.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-compare-client-api-binding.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-compare-client-api-binding.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-compare-client-api-binding.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,173 @@
+Title: Compare client binding with client API
+
+# Compare client binding with client API
+<a name="OpenCMISAPIExamples-OpenCMISAPIExamples"></a>
+
+Here are two code snippets performing the same operations. The first
+snippet uses the client API; the second snippet uses the provider API. As
+you can see the provider API is clunkier and more difficult to use but it
+gives you access to all CMIS extension points and provides more
+fine-grained control.
+
+<a name="OpenCMISAPIExamples-ClientAPI"></a>
+## Client API
+
+[Client API JavaDoc](http://hudson.zones.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20site/javadoc/org/apache/opencmis/client/api/package-summary.html).
+See also [OpenCMIS Client API](client/dev-client-api.html).
+
+ Map<String, String> parameters = new HashMap<String, String>();
+ parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
+ parameters.put(SessionParameter.ATOMPUB_URL,
+ "http://localhost:8080/opencmis/atom");
+ parameters.put(SessionParameter.REPOSITORY_ID, "A1");
+ parameters.put(SessionParameter.USER, "test");
+ parameters.put(SessionParameter.PASSWORD, "test");
+
+ // create the session
+ Session session =
+ SessionFactoryImpl.newInstance().createSession(parameters);
+
+ // get repository info
+ RepositoryInfo repInfo = session.getRepositoryInfo();
+ System.out.println("Repository name: " + repInfo.getName());
+
+ // get root folder and its path
+ Folder rootFolder = session.getRootFolder();
+ String path = rootFolder.getPath();
+ System.out.println("Root folder path: " + path);
+
+ // list root folder children
+ ItemIterable<CmisObject> children = rootFolder.getChildren();
+ for (CmisObject object : children) {
+ System.out.println("---------------------------------");
+ System.out.println(" Id: " + object.getId());
+ System.out.println(" Name: " + object.getName());
+ System.out.println(" Base Type: " + object.getBaseTypeId());
+ System.out.println(" Property 'bla': " +
+ object.getPropertyValue("bla"));
+
+ ObjectType type = object.getType();
+ System.out.println(" Type Id: " + type.getId());
+ System.out.println(" Type Name: " + type.getDisplayName());
+ System.out.println(" Type Query Name: " + type.getQueryName());
+
+ AllowableActions actions = object.getAllowableActions();
+ System.out.println(" canGetProperties: " +
+ actions.getAllowableActions().contains(Action.CAN_GET_PROPERTIES));
+ System.out.println(" canDeleteObject: " +
+ actions.getAllowableActions().contains(Action.CAN_DELETE_OBJECT));
+ }
+
+ // get an object
+ ObjectId objectId = session.createObjectId("100");
+ CmisObject object = session.getObject(objectId);
+
+ if (object instanceof Folder) {
+ Folder folder = (Folder) object;
+ System.out.println("Is root folder: " + folder.isRootFolder());
+ }
+
+ if (object instanceof Document) {
+ Document document = (Document) object;
+ ContentStream content = document.getContentStream();
+ System.out.println("Document MIME type: " + content.getMimeType());
+ }
+
+<a name="OpenCMISAPIExamples-ClientBindingAPI"></a>
+## Client Binding API
+
+[Client Binding API JavaDoc](http://hudson.zones.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20site/javadoc/org/apache/opencmis/commons/provider/package-summary.html)
+. See also [OpenCMIS Client Binding API](client/dev-client-bindings.html)
+.
+
+ Map<String, String> parameters = new HashMap<String, String>();
+ parameters.put(SessionParameter.ATOMPUB_URL,
+ "http://localhost:8080/opencmis/atom");
+ parameters.put(SessionParameter.USER, "test");
+ parameters.put(SessionParameter.PASSWORD, "test");
+
+ // create provider
+ CmisBinding binding =
+ CmisBindingFactory.newInstance().createCmisAtomPubBinding(parameters);
+
+ String repositoryId = "A1";
+
+ // get repository info
+ RepositoryInfo repInfo =
+ binding.getRepositoryService().getRepositoryInfo(repositoryId, null);
+ System.out.println("Repository name: " + repInfo.getName());
+
+ // get root folder and its path
+ ObjectData rootFolder = binding.getObjectService().getObject(repositoryId,
+ repInfo.getRootFolderId(), "*",
+ true, IncludeRelationships.NONE, null, false, false, null);
+
+ PropertyString pathProperty = (PropertyString)
+ rootFolder.getProperties().getProperties().get(PropertyIds.PATH);
+ String path = pathProperty.getFirstValue();
+ System.out.println("Root folder path: " + path);
+
+ // list root folder children
+ ObjectInFolderList childrenList =
+ binding.getNavigationService().getChildren(repositoryId,
+ repInfo.getRootFolderId(), "*", null, true,
+ IncludeRelationships.NONE, null, false,
+ BigInteger.valueOf(10000), BigInteger.ZERO, null);
+
+ for (ObjectInFolderData object : childrenList.getObjects()) {
+ System.out.println("---------------------------------");
+
+ PropertyString nameProperty = (PropertyString)
+ object.getObject().getProperties().getProperties().get(
+ PropertyIds.NAME);
+ PropertyString blaProperty = (PropertyString)
+ object.getObject().getProperties().getProperties().get("bla");
+ PropertyId typeProperty = (PropertyId)
+ object.getObject().getProperties().getProperties().get(
+ PropertyIds.OBJECT_TYPE_ID);
+
+ System.out.println(" Id: " +
+ object.getObject().getId());
+ System.out.println(" Name: " +
+ nameProperty.getFirstValue());
+ System.out.println(" Base Type: " +
+ object.getObject().getBaseTypeId());
+ System.out.println(" Property 'bla': " + (blaProperty == null ?
+ null : blaProperty.getFirstValue()));
+
+ TypeDefinition type =
+ binding.getRepositoryService().getTypeDefinition(repositoryId,
+ typeProperty.getFirstValue(), null);
+ System.out.println(" Type Id: " + type.getId());
+ System.out.println(" Type Name: " + type.getDisplayName());
+ System.out.println(" Type Query Name: " + type.getQueryName());
+
+ AllowableActions actions =
+ object.getObject().getAllowableActions();
+ System.out.println(" canGetProperties: "
+ +
+ actions.getAllowableActions().contains(Action.CAN_GET_PROPERTIES));
+ System.out.println(" canDeleteObject: "
+ +
+ actions.getAllowableActions().contains(Action.CAN_DELETE_OBJECT));
+ }
+
+ // get an object
+ String objectId = "100";
+
+ ObjectData object = binding.getObjectService().getObject(repositoryId,
+ objectId, "*", false,
+ IncludeRelationships.NONE, null, false, false, null);
+
+ if (object.getBaseTypeId() == BaseTypeId.CMIS_FOLDER) {
+ System.out.println("Is root folder: " +
+ (repInfo.getRootFolderId().equals(object.getId())));
+ }
+
+ if (object.getBaseTypeId() == BaseTypeId.CMIS_DOCUMENT) {
+ ContentStream content =
+ binding.getObjectService().getContentStream(repositoryId, objectId, null,
+ null,
+ null, null);
+ System.out.println("Document MIME type: " + content.getMimeType());
+ }
Added: chemistry/site/trunk/content/java/developing/dev-debug.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-debug.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-debug.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-debug.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,75 @@
+Title: Debugging OpenCMIS
+
+# Debugging
+
+This section gives variuos hints for debugging OpenCMIS. Debugging on the
+client side entirely depends on your application. So there is not much to
+be described here. Debuggin in the server however is often a bit more tricky.
+OpenCMIS will usually be run as a server and require a web application
+container like Tomcat. There are several possible techniques you can use
+to debug server code. Some of them may depend on your choice of a
+development environment.
+
+## Tips for Server Debugging
+
+### Use the client bindings instead of the API for test code
+
+The client bindings layer allow to give you finer control about the requests
+sent to the server. The bindings layer is less convenient to use than the
+client API, but it does less caching and no efforts to reduce round-trips.
+This is often helpful when debugging server code.
+
+### Use the AtomPub Binding for debugging
+
+The AtomPub binding allows it for simple requests to use a browser as client.
+For advanced scenarios (e.g. requiring http PUT, DELETE requestss) a browser
+won't be sufficient but command line tools can help (sse next section). The
+WS binding in contrast ussually requires writing code to submit requests.
+
+### Use command line tools to trigger single requests
+
+Sometimes it is helpful to easily send a single request to the server repeatedly
+when trying to figure out why something does not work as expected. Often it is
+not necessary to write specific client code fur such situations. There exist
+command line tools allowing to send http requests like wget or curl. Creating
+a script using such tools is often faster and easier then writing code. You need
+to understand the opencmis URL syntax to do this and it won't work for the
+WS (SOAP) binding.
+
+Here is an example:
+
+> curl --user joe:secret --dump-header header.txt --output item.xml http://localhost:8080/inmemory/atom/A1/entry?filter=cmis:name&id=133
+
+This will get an item with id=133 using a property filter and store the output
+in a file `item.xml`. In addtion all http header will be stored in `header.txt`
+
+> curl --raw --header "Content-Type: image/jpeg" -d @photo.jpg --output response.xml --url http://localhost:8080/opencmis/atom/A1/content?id=133
+
+This will upload file `photo.jpg` as content stream to an item with document id 133.
+
+Usually you will create batch files or shell scripts to avoid a lot of typing.
+
+Windows users please note that you have to escape the & character in a URL with
+a ^(circumflex) in Windows batch files!
+
+### Consider the local binding
+
+OpenCMIS allows running client and server code in a single JVM process and bypassing
+the AtomPub or SOAP binding layer. Therefore a local binding can be used. This can help
+to track down errors where it is not certain if the problem is caused from the bindings
+or in the server logic. It is also useful for unit tests. The local binding is created
+like this:
+
+ :::java
+ import org.apache.chemistry.opencmis.commons.SessionParameter;
+ import org.apache.chemistry.opencmis.commons.impl.dataobjects.BindingsObjectFactoryImpl;
+ ...
+ Map<String, String> parameters = new HashMap<String, String>();
+ parameters.put("...", SessionParameter...);
+ CmisBindingFactory factory = CmisBindingFactory.newInstance();
+ CmisBinding binding = factory.createCmisLocalBinding(parameters);
+ fRepSvc = binding.getRepositoryService();
+ ...
+
+For an example you can refer to the unit test code of the in-memory server.
+
Added: chemistry/site/trunk/content/java/developing/dev-eclipse.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-eclipse.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-eclipse.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-eclipse.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,10 @@
+Title: Using Eclipse as Development Environment
+
+# Using Eclipse
+
+Please note that you can use maven to generate projects for Eclipse (and other
+development tools) by using mvn `eclipse:eclipse`. For details see the maven
+documentation.
+
+TODO
+
Added: chemistry/site/trunk/content/java/developing/dev-index.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-index.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-index.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-index.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,30 @@
+Title: Debugging OpenCMIS
+
+# Developing with OpenCMIS
+
+General guidelines you should know when developing with OpenCMIS
+
+* [Developing using the client APIs](/client)
+ * [](dev-client-api.html)
+ * [](dev-client-bindings.html)
+* [Repositories delivered with OpenCMIS](/repositories)
+ * [](dev-repositories-fileshare.html)
+ * [](dev-repositories-inmemory.html)
+ * [](dev-repositories-jcr.html)
+* [Tools in OpenCMIS](/tools)
+ * [](dev-tools-browser.html)
+ * [](dev-tools-workbench.html)
+* [Comparing the client APIs](dev-compare-client-api-binding.html)
+* [Debugging Tips](dev-debug.html)
+* [Developing with maven](dev-use-with-maven.html)
+* [Developing without maven](dev-use-without-maven.html)
+* [Differences between the CMIS bindings](dev-binding-differences.html)
+* [Implementing a server](dev-server.html)
+* [Known issues with existing repositories](dev-known-repo-issues.html)
+* [Logging in OpenCMIS](dev-logging.html)
+* [Modules in OpenCMIS](dev-modules.html)
+* [Session Parameters](dev-session-parameters.html)
+* [The client cache](dev-client-cache.html)
+* [Understanding the OperationContext](dev-operation-context.html)
+* [Using Eclipse with OpenCMIS](dev-eclipse.html)
+* [URL Syntax in AtomPub](dev-url.html)
Added: chemistry/site/trunk/content/java/developing/dev-known-repo-issues.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-known-repo-issues.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-known-repo-issues.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-known-repo-issues.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,9 @@
+
+Title: Known repository issues
+
+# Known repository issues
+
+This is a loose collection of current known issues, bugs, limitations and unusual behaviors
+of existing CMIS repositories.
+
+TODO
Added: chemistry/site/trunk/content/java/developing/dev-logging.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-logging.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-logging.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-logging.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,41 @@
+Title: OpenCMIS Logging
+
+# OpenCMIS Logging
+
+OpenCMIS uses the log4j to perform logging. logfj is configured using the usual
+configuration procedure (see log4j documentation). Usually you will have to
+place a `log4j.properties` file in the class path.
+
+## Example log4j.properties file
+
+:::properties
+log4j.rootCategory=WARN, R, O
+
+# Stdout
+log4j.appender.O=org.apache.log4j.ConsoleAppender
+
+# File
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=log4j.log
+
+# Control the maximum log file size
+log4j.appender.R.MaxFileSize=100KB
+
+# Archive log files (one backup file here)
+log4j.appender.R.MaxBackupIndex=1
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.O.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %-5p \[%t\] %c: %m%n
+log4j.appender.O.layout.ConversionPattern=%d{ISO8601} %-5p \[%t\] %c: %m%n
+
+# log4j.logger.org.apache.chemistry.opencmis.client.provider.spi=INFO, O
+
+# enable this to set a certain package to debug level
+# log4j.category.org.apache.chemistry.opencmis=DEBUG
+
+## Logging the URLs for AtomPub in the client
+Sometimes it is useful to trace the URLs that are generated by the client
+implementation in the logs. Here is an example configuration to accomplish this:
+
+> log4j.category.org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils=DEBUG
+
Added: chemistry/site/trunk/content/java/developing/dev-modules.mtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-modules.mtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-modules.mtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-modules.mtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,96 @@
+Title: OpenCMIS Modules
+Breadcrumb: opencmis:modules
+
+# OpenCMIS Modules
+<a name="OpenCMISModules-OpenCMISModules"></a>
+
+OpenCMIS is divided into four groups of modules:
+
+* **chemistry-opencmis-commons**: Modules used by all other modules.
+* **chemistry-opencmis-client**: CMIS client related modules.
+* **chemistry-opencmis-server**: CMIS server framework related modules.
+* **chemistry-opencmis-test**: Test modules that are not required at runtime.
+
+<img src="opencmis-layers.png"/>
+
+
+<a name="OpenCMISModules-ModuleDescription"></a>
+## Module Description
+
+<a name="OpenCMISModules-Commons"></a>
+### Commons
+
+<a name="OpenCMISModules-chemistry-opencmis-commons-api"></a>
+#### chemistry-opencmis-commons-api
+Interfaces, enums and exceptions used across all other modules.
+
+<a name="OpenCMISModules-chemistry-opencmis-commons-impl"></a>
+#### chemistry-opencmis-commons-impl
+Implementations of the interface defined in chemistry-opencmis-commons-api.
+It also generates and contains the JAXB classes.
+
+<a name="OpenCMISModules-Client"></a>
+### Client
+
+<a name="OpenCMISModules-chemistry-opencmis-client-api"></a>
+#### chemistry-opencmis-client-api
+Client API used by applications. See [OpenCMIS Client API](client/dev-client-api.html)
+ for details.
+
+<a name="OpenCMISModules-chemistry-opencmis-client-impl"></a>
+#### chemistry-opencmis-client-impl
+Implementations of the client API.
+
+<a name="OpenCMISModules-chemistry-opencmis-client-bindings"></a>
+#### chemistry-opencmis-client-bindings
+CMIS client AtomPub and Web Services binding implementation. See [OpenCMIS Client Bindings](client/dev-client-bindings.html)
+ for details.
+
+<a name="OpenCMISModules-Server"></a>
+### Server
+
+<a name="OpenCMISModules-chemistry-opencmis-server-bindings"></a>
+#### chemistry-opencmis-server-bindings
+CMIS server AtomPub and Web Services binding implementation. See [OpenCMIS Server Framework](dev-server.html)
+ for details.
+
+<a name="OpenCMISModules-chemistry-opencmis-server-support"></a>
+#### chemistry-opencmis-server-support
+Convenience classes for repository connectors. This module contains the
+CMIS query parser.
+
+<a name="OpenCMISModules-chemistry-opencmis-server-inmemory"></a>
+#### chemistry-opencmis-server-inmemory
+CMIS in-memory repository for test purposes. See [OpenCMIS InMemory Repository](repositories/dev-repositories-inmemory.html)
+ for details.
+
+<a name="OpenCMISModules-chemistry-opencmis-server-fileshare"></a>
+#### chemistry-opencmis-server-fileshare
+CMIS file system repository for test purposes. See [OpenCMIS FileShare Repository](repositories/dev-repositories-fileshare.html)
+ for details.
+
+<a name="OpenCMISModules-chemistry-opencmis-server-jcr"></a>
+#### chemistry-opencmis-server-jcr
+CMIS to JCR bridge. See [OpenCMIS JCR Repository](repositories/dev-repositories-jcr.html)
+ for details.
+
+<a name="OpenCMISModules-Test"></a>
+### Test
+
+<a name="OpenCMISModules-chemistry-opencmis-test-fit"></a>
+#### chemistry-opencmis-test-fit
+Integration tests covering the whole stack.
+
+<a name="OpenCMISModules-chemistry-opencmis-test-browser"></a>
+#### chemistry-opencmis-test-browser
+Simple web based CMIS client. See [OpenCMIS Browser](tools/dev-tools-browser.html)
+ for details.
+
+<a name="OpenCMISModules-chemistry-opencmis-test-util"></a>
+#### chemistry-opencmis-test-util
+Utility classes for tests.
+
+<a name="OpenCMISModules-chemistry-opencmis-test-tools"></a>
+#### chemistry-opencmis-test-tools
+Development tools.
+
\ No newline at end of file
Added: chemistry/site/trunk/content/java/developing/dev-operation-context.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-operation-context.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-operation-context.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-operation-context.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,6 @@
+
+Title: Understanding the Operation Context
+
+# Understanding the Operation Context
+
+TODO
Added: chemistry/site/trunk/content/java/developing/dev-server.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-server.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-server.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-server.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,168 @@
+Title: OpenCMIS Server Framework
+
+# OpenCMIS Server Framework
+
+The OpenCMIS Server Framework provides a server implementation of both CMIS
+bindings, AtomPub and Web Services, and maps them to Java interfaces.
+Requests and data from CMIS clients are converted and pushed to a
+repository connector. The connector translates the CMIS calls into native
+repository calls.
+
+
+<a name="OpenCMISServerFramework-RepositoryConnectorDevelopment"></a>
+## Repository Connector Development
+
+This is a brief description of the interfaces and classes a repository
+connector has to extend and implement. For interface details see the
+OpenCMIS Server Framework SPI JavaDoc.
+
+
+<a name="OpenCMISServerFramework-FrameworkEntryPoint"></a>
+### Framework Entry Point
+
+A repository connector has to extend the `AbstractServiceFactory` class.
+This class manages the objects that implement the CMIS service interface.
+There is only one active instance of this factory class per servlet
+context. The class name has to be set in the configuration file
+`/WEB-INF/classes/repository.properties`.
+
+
+ # set fully qualified class name
+ class=org.repository.ServicesFactory
+
+
+The configuration file may contain more key-value pairs. They are passed to
+the `init` method of the `AbstractServiceFactory` object when the
+servlet context starts up.
+
+For each request the `getService` method will be called and a
+`CallContext` object will be passed. This `CallContext` object contains
+data about the request, such as the used binding, the repository id,
+username and password. The `getService` method must return an object that
+implements the `CmisService` interface. This object will only be used in
+this thread. When the object is not needed anymore, the `close` method on
+the object will be called.
+
+It is up to the repository connector how these service objects are created
+and maintained. It is possible to create such an object for each request or
+keep an instance per thread in a `ThreadLocal` or manage service objects in a
+pool. If you reuse a service object make sure that it doesn't hold any
+state from previous requests.
+
+
+<a name="OpenCMISServerFramework-ServiceInterface"></a>
+### Service Interface
+
+The `CmisService` interface contains all operations of the CMIS
+specification and a few more. Most methods are named after the operations
+described in the CMIS specification. There are a few exceptions to that
+rule because the AtomPub binding doesn't always allow a one-to-one mapping.
+Those divergences are explained in the JavaDoc.
+
+The methods take the same parameters as described in the CMIS
+specification. There are also a few exceptions that are explained in the
+JavaDoc.
+
+It is recommended to extend the `AbstractCmisService` class instead of
+implementing the `CmisService` interface directly.
+`AbstractCmisService` contains several convenience methods and covers all
+AtomPub specifics in a generic way.
+
+
+<a name="OpenCMISServerFramework-AtomPubSpecifics"></a>
+### AtomPub Specifics
+
+The AtomPub binding needs more object data than many of the operations
+return. Therefore a repository connector has to provide `ObjectInfo`
+objects through the `getObjectInfo` method. `AbstractCmisService`
+provides a generic implementation of `getObjectInfo`. If you don't notice
+any performance issue with the AtomPub binding, you don't have to bother
+with `ObjectInfo` objects.
+
+If the generic assembly of `ObjectInfo` objects raises a problem, a
+repository connector can build them itself. `AbstractCmisService`
+provides a `addObjectInfo` method that takes and manages `ObjectInfo`
+objects. Which objects are required for which operation is documented in
+the JavaDoc.
+
+
+<a name="OpenCMISServerFramework-AuthenticationFramework"></a>
+### Authentication Framework
+
+Authentication information is transported to the service implementation via
+the `CallContext` object. The `CallContext` is basically a Map and can
+contain any kind of data. The OpenCMIS server fills it by default with a
+username and a password from either HTTP basic authentication for the
+AtomPub binding or WS-Security (UsernameToken) for the Web Services
+binding.
+
+Other authentication methods can be plugged in if needed. Here is how this
+works for the two CMIS bindings.
+
+<a name="OpenCMISServerFramework-AtomPubauthentication"></a>
+#### AtomPub authentication
+
+For the AtomPub binding a new class implementing the interface
+`org.apache.chemistry.opencmis.server.impl.atompub.CallContextHandler`
+has to be created. It gets the `HttpServletRequest` object of the current
+request and returns key-value pairs that are added to the `CallContext`.
+See the JavaDoc for details.
+
+The new `CallContext` handler can be activated by changing the servlet init parameter `callContextHandler`
+in `/WEB-INF/web.xml`.
+
+ :::xml
+ <init-param>
+ <param-name>callContextHandler</param-name>
+ <param-value>org.example.opencmis.MyCallContextHandler</param-value>
+ </init-param>
+
+
+
+<a name="OpenCMISServerFramework-WebServicesauthentication"></a>
+#### Web Services authentication
+
+For the Web Services binding a new `SOAPHandler` class has to be created
+and registered in `/WEB-INF/sun-jaxws.xml`.
+
+The `handleMessage` method should look like this:
+
+ :::java
+ public boolean handleMessage(SOAPMessageContext context) {
+ Boolean outboundProperty = (Boolean)
+ context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if (outboundProperty.booleanValue()) {
+ // we are only looking at inbound messages
+ return true;
+ }
+
+ // do whatever you have to do here
+ String user = ...
+ String secret = ...
+
+ // set up key-value pairs for the CallContext
+ Map<String, String> callContextMap = new HashMap<String, String>();
+ callContextMap.put("org.example.opencmis.user", user);
+ callContextMap.put("org.example.opencmis.secret", secret);
+
+ // add key-value pairs the SOAP message context
+ context.put(AbstractService.CALL_CONTEXT_MAP, callContextMap);
+ context.setScope(AbstractService.CALL_CONTEXT_MAP, Scope.APPLICATION);
+
+ return true;
+ }
+
+<a name="OpenCMISServerFramework-RepositoryConnectorDeployment"></a>
+## Repository Connector Deployment
+
+The OpenCMIS build process creates a WAR file in
+`/chemistry-opencmis-server/chemistry-opencmis-server/target`. This WAR
+file should be used as a template. It can be deployed as it is but doesn't
+do anything.
+
+In order to use your connector, copy your compiled connector code into this
+WAR file and overwrite `/WEB-INF/classes/repository.properties`.
+
+Have a look at the [OpenCMIS FileShare Repository](repositories/dev-repositories-fileshare.html)
+ test repository code and `pom.xml`. It's a simple example of a
+repository connector.
Added: chemistry/site/trunk/content/java/developing/dev-session-parameters.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-session-parameters.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-session-parameters.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-session-parameters.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,41 @@
+Title: OpenCMIS Session Parameters
+Breadcrumb: opencmis:OpenCMIS
+
+# OpenCMIS Session Parameters
+<a name="OpenCMISSessionParameters-OpenCMISSessionParameters"></a>
+
+Key|Constant|Description|Values|Required|Default
+---|------|---------|-----|------|------
+org.apache.chemistry.opencmis.binding.spi.type|BINDING_TYPE|Binding to use for the session |"atompub", "webservices", "local", "custom"|yes
+org.apache.chemistry.opencmis.binding.spi.classname|BINDING_SPI_CLASS|Binding implementation class|class name|Custom binding: yes\\ other binding: no|Depends on BINDING_TYPE
+org.apache.chemistry.opencmis.session.repository.id|REPOSITORY_ID|Repository id|repository id|createSession(): yes\\getRepositories(): no
+org.apache.chemistry.opencmis.user|USER|User name\\(used by standard authentication provider)|string
+org.apache.chemistry.opencmis.password|PASSWORD|Password\\(used by standard authentication provider)|string
+org.apache.chemistry.opencmis.locale.iso639|LOCALE_ISO639_LANGUAGE|Language code sent to server|ISO 639 code|no
+org.apache.chemistry.opencmis.locale.iso3166|LOCALE_ISO3166_COUNTRY|Country code sent to server if language code is set|ISO 3166 code|no
+org.apache.chemistry.opencmis.binding.atompub.url|ATOMPUB_URL|AtomPub service document URL|URL|AtomPub binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.RepositoryService|WEBSERVICES_REPOSITORY_SERVICE|Repository Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.NavigationService|WEBSERVICES_NAVIGATION_SERVICE|Navigation Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.ObjectService|WEBSERVICES_OBJECT_SERVICE|Object Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.VersioningService|WEBSERVICES_VERSIONING_SERVICE|Versioning Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.DiscoveryService|WEBSERVICES_DISCOVERY_SERVICE|Discovery Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.RelationshipService|WEBSERVICES_RELATIONSHIP_SERVICE|Relationship Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.MultiFilingService|WEBSERVICES_MULTIFILING_SERVICE|Multifiling Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.PolicyService|WEBSERVICES_POLICY_SERVICE|Policy Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.ACLService|WEBSERVICES_ACL_SERVICE|ACL Service WSDL URL|WSDL URL|Web Services binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.webservices.memoryThreshold|WEBSERVICES_MEMORY_THRESHOLD|Documents smaller than the threshold are kept in main memory, larger documents are written to a temporary file|size in bytes|no|4194304 (4MB)
+org.apache.chemistry.opencmis.binding.local.classname|LOCAL_FACTORY|Class name of the local service factory (if client and server reside in the same JVM)|class name|Local binding: yes\\other bindings: no
+org.apache.chemistry.opencmis.binding.auth.classname|AUTHENTICATION_PROVIDER_CLASS|Authentication Provider|class name|no|org.apache.chemistry.opencmis.client.bindings.spi.StandardAuthenticationProvider
+org.apache.chemistry.opencmis.binding.auth.http.basic|AUTH_HTTP_BASIC|Switch to turn HTTP basic authentication on or off|"true", "false"|no|Depends on BINDING_TYPE
+org.apache.chemistry.opencmis.binding.auth.soap.usernametoken|AUTH_SOAP_USERNAMETOKEN|Switch to turn UsernameTokens on or off|"true", "false"|no|Depends on BINDING_TYPE
+org.apache.chemistry.opencmis.binding.compression|COMPRESSION|Switch to turn HTTP compression on or off|"true", "false"|no|false
+org.apache.chemistry.opencmis.cache.classname|CACHE_CLASS|Cache implementation|class name|no|org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl
+org.apache.chemistry.opencmis.cache.objects.size|CACHE_SIZE_OBJECTS|Object cache size|number of objects|no|1000
+org.apache.chemistry.opencmis.cache.objects.ttl|CACHE_TTL_OBJECTS|Object cache time-to-live|time in milliseconds|no|7200000 (2 hours)
+org.apache.chemistry.opencmis.cache.pathtoid.size|CACHE_SIZE_PATHTOID|Path-to-id cache size|number of path to object links|no|1000
+org.apache.chemistry.opencmis.cache.pathtoid.ttl|CACHE_TTL_PATHTOID|Path-to-id cache time-to-live|time in milliseconds|no|1800000 (30 minutes)
+org.apache.chemistry.opencmis.cache.path.omit|CACHE_PATH_OMIT|Turn off path-to-id cache|"true", "false"|no|false
+org.apache.chemistry.opencmis.binding.cache.repositories.size|CACHE_SIZE_REPOSITORIES|Repository info cache size|number of objects|no|10
+org.apache.chemistry.opencmis.binding.cache.types.size|CACHE_SIZE_TYPES|Type definition cache size|number of objects|no|100
+org.apache.chemistry.opencmis.binding.cache.links.size|CACHE_SIZE_LINKS|AtomPub link cache size|number of objects|no|400
+org.apache.chemistry.opencmis.objectfactory.classname|OBJECT_FACTORY_CLASS|Object factory implementation |class name|no|org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl
\ No newline at end of file
Added: chemistry/site/trunk/content/java/developing/dev-tools.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-tools.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-tools.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-tools.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,13 @@
+Title: Test and Tools
+
+# Test and Tools
+
+In order to make the implementation of CMIS clients and server even simpler,
+OpenCMIS comes with a set of tests and tools.
+
+Currently, available are:
+
+* [CMIS Browser](tools/dev-tools-browser.html): A simple web based browser for CMIS repositories that support the AtomPub binding.
+* [CMIS Workbench](tools/dev-tools-workbench.html): A CMIS desktop client for developers.
+
+
Added: chemistry/site/trunk/content/java/developing/dev-url.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/developing/dev-url.mdtext?rev=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-url.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-url.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,158 @@
+Title: URLs for AtomPub
+
+# URLs for AtomPub
+Often it is useful to understand the URL patterns that OpenCMIS uses in
+the AtomPub binding. This can be helpful when analyzing log files or if
+you want to debug sepcific requests.
+
+## Syntax
+:::
+URL ::= http://<HOST>:<PORT>/<SERVLET-PATH>/atom/<REPOSITORY-ID>/<RESOURCE>?<PARAM=VALUE>&<PARAM=VALUE>&....
+
+RESOURCE ::= RESOURCE_CHILDREN |
+ RESOURCE_CHILDREN |
+ RESOURCE_DESCENDANTS |
+ RESOURCE_FOLDERTREE |
+ RESOURCE_TYPE |
+ RESOURCE_TYPES |
+ RESOURCE_TYPESDESC |
+ RESOURCE_ENTRY |
+ RESOURCE_PARENTS |
+ RESOURCE_VERSIONS |
+ RESOURCE_ALLOWABLEACIONS |
+ RESOURCE_ACL |
+ RESOURCE_POLICIES |
+ RESOURCE_RELATIONSHIPS |
+ RESOURCE_OBJECTBYID |
+ RESOURCE_OBJECTBYPATH |
+ RESOURCE_QUERY |
+ RESOURCE_CHECKEDOUT |
+ RESOURCE_UNFILED |
+ RESOURCE_CHANGES |
+ RESOURCE_CONTENT
+
+PARAM ::= PARAM_ACL |
+ PARAM_ALLOWABLE_ACTIONS |
+ PARAM_ALL_VERSIONS |
+ PARAM_CHANGE_LOG_TOKEN |
+ PARAM_CHANGE_TOKEN |
+ PARAM_CHECKIN_COMMENT |
+ PARAM_CHECK_IN |
+ PARAM_CHILD_TYPES |
+ PARAM_CONTINUE_ON_FAILURE |
+ PARAM_DEPTH |
+ PARAM_FILTER |
+ PARAM_FOLDER_ID |
+ PARAM_ID |
+ PARAM_MAJOR |
+ PARAM_MAX_ITEMS |
+ PARAM_ONLY_BASIC_PERMISSIONS |
+ PARAM_ORDER_BY |
+ PARAM_OVERWRITE_FLAG |
+ PARAM_PATH |
+ PARAM_PATH_SEGMENT |
+ PARAM_POLICY_ID |
+ PARAM_POLICY_IDS |
+ PARAM_PROPERTIES |
+ PARAM_PROPERTY_DEFINITIONS |
+ PARAM_RELATIONSHIPS |
+ PARAM_RELATIONSHIP_DIRECTION |
+ PARAM_RELATIVE_PATH_SEGMENT |
+ PARAM_REMOVE_FROM |
+ PARAM_RENDITION_FILTER |
+ PARAM_REPOSITORY_ID |
+ PARAM_RETURN_VERSION |
+ PARAM_ROPERTY_DEFINITIONS |
+ PARAM_SKIP_COUNT |
+ PARAM_SOURCE_FOLDER_ID |
+ PARAM_STREAM_ID |
+ PARAM_SUB_RELATIONSHIP_TYPES |
+ PARAM_TYPE_ID |
+ PARAM_UNFILE_OBJECTS |
+ PARAM_VERSIONIG_STATE |
+ PARAM_Q |
+ PARAM_SEARCH_ALL_VERSIONS |
+ PARAM_ACL_PROPAGATION |
+
+
+
+RESOURCE_CHILDREN ::= "children";
+RESOURCE_DESCENDANTS ::= "descendants";
+RESOURCE_FOLDERTREE ::= "foldertree";
+RESOURCE_TYPE ::= "type";
+RESOURCE_TYPES ::= "types";
+RESOURCE_TYPESDESC ::= "typedesc";
+RESOURCE_ENTRY ::= "entry";
+RESOURCE_PARENTS ::= "parents";
+RESOURCE_VERSIONS ::= "versions";
+RESOURCE_ALLOWABLEACIONS ::= "allowableactions";
+RESOURCE_ACL ::= "acl";
+RESOURCE_POLICIES ::= "policies";
+RESOURCE_RELATIONSHIPS ::= "relationships";
+RESOURCE_OBJECTBYID ::= "id";
+RESOURCE_OBJECTBYPATH ::= "path";
+RESOURCE_QUERY ::= "query";
+RESOURCE_CHECKEDOUT ::= "checkedout";
+RESOURCE_UNFILED ::= "unfiled";
+RESOURCE_CHANGES ::= "changes";
+RESOURCE_CONTENT ::= "content";
+
+
+ // parameter
+PARAM_ACL ::= "includeACL";
+PARAM_ALLOWABLE_ACTIONS ::= "includeAllowableActions";
+PARAM_ALL_VERSIONS ::= "allVersions";
+PARAM_CHANGE_LOG_TOKEN ::= "changeLogToken";
+PARAM_CHANGE_TOKEN ::= "changeToken";
+PARAM_CHECKIN_COMMENT ::= "checkinComment";
+PARAM_CHECK_IN ::= "checkin";
+PARAM_CHILD_TYPES ::= "childTypes";
+PARAM_CONTINUE_ON_FAILURE ::= "continueOnFailure";
+PARAM_DEPTH ::= "depth";
+PARAM_FILTER ::= "filter";
+PARAM_FOLDER_ID ::= "folderId";
+PARAM_ID ::= "id";
+PARAM_MAJOR ::= "major";
+PARAM_MAX_ITEMS ::= "maxItems";
+PARAM_ONLY_BASIC_PERMISSIONS ::= "onlyBasicPermissions";
+PARAM_ORDER_BY ::= "orderBy";
+PARAM_OVERWRITE_FLAG ::= "overwriteFlag";
+PARAM_PATH ::= "path";
+PARAM_PATH_SEGMENT ::= "includePathSegment";
+PARAM_POLICY_ID ::= "policyId";
+PARAM_POLICY_IDS ::= "includePolicyIds";
+PARAM_PROPERTIES ::= "includeProperties";
+PARAM_PROPERTY_DEFINITIONS ::= "includePropertyDefinitions";
+PARAM_RELATIONSHIPS ::= "includeRelationships";
+PARAM_RELATIONSHIP_DIRECTION ::= "relationshipDirection";
+PARAM_RELATIVE_PATH_SEGMENT ::= "includeRelativePathSegment";
+PARAM_REMOVE_FROM ::= "removeFrom";
+PARAM_RENDITION_FILTER ::= "renditionFilter";
+PARAM_REPOSITORY_ID ::= "repositoryId";
+PARAM_RETURN_VERSION ::= "returnVersion";
+PARAM_ROPERTY_DEFINITIONS ::= "includePropertyDefinitions";
+PARAM_SKIP_COUNT ::= "skipCount";
+PARAM_SOURCE_FOLDER_ID ::= "sourceFolderId";
+PARAM_STREAM_ID ::= "streamId";
+PARAM_SUB_RELATIONSHIP_TYPES ::= "includeSubRelationshipTypes";
+PARAM_TYPE_ID ::= "typeId";
+PARAM_UNFILE_OBJECTS ::= "unfileObjects";
+PARAM_VERSIONIG_STATE ::= "versioningState";
+PARAM_Q ::= "q";
+PARAM_SEARCH_ALL_VERSIONS ::= "searchAllVersions";
+PARAM_ACL_PROPAGATION ::= "ACLPropagation";
+
+HOST ::= <String>
+PORT ::= <Integer>
+SERVLET-PATH ::= <String>
+REPOSITORY-ID ::= <String>
+VALUE ::= <String>
+
+## Examples:
+
+getChildren feed of folder with id=2FF200 in repository A1
+http://localhost:8080/opencmis/atom/A1/children?id=2FF2000
+
+
+
+
Added: 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=1082878&view=auto
==============================================================================
--- chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext (added)
+++ chemistry/site/trunk/content/java/developing/dev-use-with-maven.mdtext Fri Mar 18 11:57:41 2011
@@ -0,0 +1,50 @@
+Title: Using Maven
+
+# Using 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:*
+
+ :::xml
+ <dependency>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis-client-impl</artifactId>
+ <version>0.2.0-incubating</version>
+ </dependency>
+
+
+*Server:*
+
+ :::xml
+ <dependency>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <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).
+
+
+<a name="OpenCMIS-CMISComponents"></a>
+## CMIS Components
+
+OpenCMIS is subdivided into these major areas:
+
+<a name="OpenCMIS-CMISClient"></a>
+### CMIS Client
+
+OpenCMIS provides two CMIS client APIs that are called [Client API](opencmis-client-api.html) and [Client Bindings API](opencmis-client-bindings.html).
+The [Client API](opencmis-client-api.html) is a high-level, object orientated API and suitable for most use cases.
+It sits on top of the Client Bindings API.
+The [Client Bindings API](opencmis-client-bindings.html) reflects the CMIS domain model.
+It allows fine-grained control which makes the interfaces a bit clunky.
+