chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1064109 - in /incubator/chemistry/opencmis/trunk: chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/ap...
Date Thu, 27 Jan 2011 12:38:54 GMT
Author: fmui
Date: Thu Jan 27 12:38:53 2011
New Revision: 1064109

URL: http://svn.apache.org/viewvc?rev=1064109&view=rev
Log:
fixed documentation

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java?rev=1064109&r1=1064108&r2=1064109&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java
Thu Jan 27 12:38:53 2011
@@ -26,34 +26,30 @@ import java.util.Map;
  * class implementation needs to be retrieved by any runtime lookup call. This
  * can for instance be a J2EE JNDI lookup or an OSGi service lookup.
  * <p>
- * The entries of parameter map are defined by <code>SessionParameter</code>
+ * The entries of the parameter map are defined by <code>SessionParameter</code>
  * class which is part of the commons package. Parameters specify connection
  * settings (user name, authentication, connection url, binding type (soap or
  * atom pub) ...).
  * <p>
  * The <code>Session</code> class which is constructed is either the
  * <code>session</code> base class which is the default implementation or it
can
- * be derived from that implementing special behavior for the session. Which
- * session finally is returned can be controlled by the
- * <code>SessionParameter.SESSION_TYPE</code> parameter.
+ * be derived from that implementing special behavior for the session.
  * <p>
- * Example Coding:
+ * Sample code:
  * <p>
  * <code>
  * SessionFactory factory = ... // use a runtime lookup service
- * <br>Map<String, String> parameters = ...
  * <br>
- * <br>parameters.put(SessionParameter.USER, "username");
- * <br>parameters.put(SessionParameter.URL, "http://...");
- * <br>parameters.put(SessionParameter.SESSION_TYPE, SessionType.TRANSIENT.value());
- * <br> ...
+ * <br>Map<String, String> parameter = ...
+ * <br>parameter.put(SessionParameter.USER, "Otto");
+ * <br>parameter.put(SessionParameter.PASSWORD, "****");
  * <br>
- * <br>TransientSession s = factory.createSession(parameters);
+ * <br>parameter.put(SessionParameter.ATOMPUB_URL, "http://localhost/cmis/atom");
+ * <br>parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
+ * <br>parameter.put(SessionParameter.REPOSITORY_ID, "myRepository");
+ * <br>...
+ * <br>Session session = factory.createSession(parameter);
  * </code>
- *<p>
- * If the <code>SessionType</code> parameter is not specified then the default
- * persistent session is returned.
- * 
  */
 public interface SessionFactory {
 
@@ -65,7 +61,7 @@ public interface SessionFactory {
      * @param parameters
      *            a {@code Map} of name/value pairs with parameters for the
      *            session. See class {@code SessionParameter}.
-     * @return a {@code session} to the CMIS repository specified by the {@code
+     * @return a {@code Session} to the CMIS repository specified by the {@code
      *         parameters}.
      */
     <T extends Session> T createSession(Map<String, String> parameters);

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java?rev=1064109&r1=1064108&r2=1064109&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
Thu Jan 27 12:38:53 2011
@@ -132,7 +132,7 @@ public class OperationContextImpl implem
                     break;
                 }
                 if (toid.indexOf(',') > -1) {
-                    throw new IllegalArgumentException("Property id must not contain a comma!");
+                    throw new IllegalArgumentException("Query id must not contain a comma!");
                 }
 
                 tempSet.add(toid);

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README?rev=1064109&r1=1064108&r2=1064109&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README
Thu Jan 27 12:38:53 2011
@@ -18,6 +18,7 @@ cmis.workbench.user           - preset u
 cmis.workbench.password       - preset password
 cmis.workbench.binding        - preset binding (atompub/webservices)
 cmis.workbench.authentication - preset authentication method (none/standard/ntlm)
+cmis.workbench.compression    - preset compression (on/off)
 
 
 Folder operation context:



Mime
View raw message