chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r934877 - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client: ./ api/
Date Fri, 16 Apr 2010 13:58:44 GMT
Author: dcaruana
Date: Fri Apr 16 13:58:43 2010
New Revision: 934877

URL: http://svn.apache.org/viewvc?rev=934877&view=rev
Log:
Apply Chemistry code style.

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionFactory.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ChangeEvent.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Document.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/DocumentType.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ExtensionHandler.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FileableCmisObject.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectId.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectType.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/OperationContext.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterable.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterator.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingList.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Policy.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Property.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryResult.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Relationship.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/RelationshipType.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Rendition.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Repository.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Tree.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/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/SessionFactory.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionFactory.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/SessionFactory.java Fri Apr 16 13:58:43 2010
@@ -25,17 +25,19 @@ import org.apache.chemistry.opencmis.cli
 import org.apache.chemistry.opencmis.client.api.Session;
 
 /**
- * Entry point into the OpenCMIS Client API. The <code>SessionFactory</code> 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.
+ * Entry point into the OpenCMIS Client API. The <code>SessionFactory</code>
+ * 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> class which is part of
- * the commons package. Parameters specify connection settings (user name, authentication,
- * connection url, binding type (soap or atom pub) ...).
+ * The entries of 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
+ * 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.
  * <p>
  * Example Coding:
@@ -52,27 +54,29 @@ import org.apache.chemistry.opencmis.cli
  * <br>TransientSession s = factory.createSession(parameters);
  * </code>
  *<p>
- * If the <code>SessionType</code> parameter is not specified then the default persistent session is
- * returned.
+ * If the <code>SessionType</code> parameter is not specified then the default
+ * persistent session is returned.
  * 
  */
 public interface SessionFactory {
 
-  /**
-   * Obtain a new session using parameter configuration.
-   * 
-   * @param T
-   *          A from the {@code Session} interface derived sub type
-   * @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 parameters}.
-   */
-  <T extends Session> T createSession(Map<String, String> parameters);
+	/**
+	 * Obtain a new session using parameter configuration.
+	 * 
+	 * @param T
+	 *            A from the {@code Session} interface derived sub type
+	 * @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
+	 *         parameters}.
+	 */
+	<T extends Session> T createSession(Map<String, String> parameters);
 
-  /**
-   * Returns all repositories that are available at the endpoint. See {@link #createSession(Map)}
-   * for parameter details. The parameter {@code SessionParameter.REPOSITORY_ID} should not be set.
-   */
-  List<Repository> getRepositories(Map<String, String> parameters);
+	/**
+	 * Returns all repositories that are available at the endpoint. See
+	 * {@link #createSession(Map)} for parameter details. The parameter {@code
+	 * SessionParameter.REPOSITORY_ID} should not be set.
+	 */
+	List<Repository> getRepositories(Map<String, String> parameters);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ChangeEvent.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/ChangeEvent.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ChangeEvent.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ChangeEvent.java Fri Apr 16 13:58:43 2010
@@ -24,25 +24,26 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Change Event from the change log.
- *
+ * 
  * @see Session#getContentChanges(String, StringBuffer)
- *
+ * 
  *      See CMIS Domain Model - section 2.1.11.
  */
 public interface ChangeEvent extends ChangeEventInfo {
 
-  /**
-   * Gets the id of the object.
-   *
-   * @return the object ID
-   */
-  String getObjectId();
+	/**
+	 * Gets the id of the object.
+	 * 
+	 * @return the object ID
+	 */
+	String getObjectId();
 
-  /**
-   * For change events with change type "updated": The list of properties now applied to the object.
-   *
-   * @return the list with the new properties, might be {@code null}
-   */
-  List<Property<?>> getNewProperties();
+	/**
+	 * For change events with change type "updated": The list of properties now
+	 * applied to the object.
+	 * 
+	 * @return the list with the new properties, might be {@code null}
+	 */
+	List<Property<?>> getNewProperties();
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.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/CmisObject.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java Fri Apr 16 13:58:43 2010
@@ -31,153 +31,154 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Base CMIS object.
- *
+ * 
  * See CMIS Domain Model - section 2.1.2.
  */
 public interface CmisObject extends ObjectId {
 
-  // common properties
+	// common properties
 
-  /**
-   * Get the name of this object. {@code Property<String> 'cmis:name'}
-   */
-  String getName();
+	/**
+	 * Get the name of this object. {@code Property<String> 'cmis:name'}
+	 */
+	String getName();
 
-  /**
-   * Set the name of this object. {@code Property<String> 'cmis:name'}
-   */
-  void setName(String name);
+	/**
+	 * Set the name of this object. {@code Property<String> 'cmis:name'}
+	 */
+	void setName(String name);
 
-  /**
-   * Get the id of the user who created the object (maintained by the repository). {@code
-   * Property<String> 'cmis:createdBy'}
-   */
-  String getCreatedBy();
+	/**
+	 * Get the id of the user who created the object (maintained by the
+	 * repository). {@code Property<String> 'cmis:createdBy'}
+	 */
+	String getCreatedBy();
 
-  /**
-   * Get the timestamp when the object was created (maintained by the repository). {@code
-   * Property<GregorianCalendar> 'cmis:creationDate'}
-   */
-  GregorianCalendar getCreationDate();
+	/**
+	 * Get the timestamp when the object was created (maintained by the
+	 * repository). {@code Property<GregorianCalendar> 'cmis:creationDate'}
+	 */
+	GregorianCalendar getCreationDate();
 
-  /**
-   * Get the id of the user who changed the object (maintained by the repository). {@code
-   * Property<String> 'cmis:lastModifiedBy'}
-   */
-  String getLastModifiedBy();
+	/**
+	 * Get the id of the user who changed the object (maintained by the
+	 * repository). {@code Property<String> 'cmis:lastModifiedBy'}
+	 */
+	String getLastModifiedBy();
 
-  /**
-   * Get the timestamp when the object was changed (maintained by the repository). {@code
-   * Property<GregorianCalendar> 'cmis:lastModificationDate'}
-   */
-  GregorianCalendar getLastModificationDate();
+	/**
+	 * Get the timestamp when the object was changed (maintained by the
+	 * repository). {@code Property<GregorianCalendar>
+	 * 'cmis:lastModificationDate'}
+	 */
+	GregorianCalendar getLastModificationDate();
 
-  /**
-   * Get the object's base type (maintained by the repository). {@code Property<String>
-   * 'cmis:baseTypeId'}
-   */
-  ObjectType getBaseType();
+	/**
+	 * Get the object's base type (maintained by the repository). {@code
+	 * Property<String> 'cmis:baseTypeId'}
+	 */
+	ObjectType getBaseType();
 
-  /**
-   * Get the object's type. {@code Property<String> 'cmis:objectTypeId'}
-   */
-  ObjectType getType();
+	/**
+	 * Get the object's type. {@code Property<String> 'cmis:objectTypeId'}
+	 */
+	ObjectType getType();
 
-  /**
-   * Get the type's base type id.
-   *
-   * @return
-   */
-  BaseTypeId getBaseTypeId();
+	/**
+	 * Get the type's base type id.
+	 * 
+	 * @return
+	 */
+	BaseTypeId getBaseTypeId();
 
-  /**
-   * Get the change token for this object (maintained by the repository). {@code Property<String>
-   * 'cmis:changeToken'}
-   */
-  String getChangeToken();
+	/**
+	 * Get the change token for this object (maintained by the repository).
+	 * {@code Property<String> 'cmis:changeToken'}
+	 */
+	String getChangeToken();
 
-  // object
+	// object
 
-  List<Property<?>> getProperties();
+	List<Property<?>> getProperties();
 
-  <T> Property<T> getProperty(String id);
+	<T> Property<T> getProperty(String id);
 
-  <T> T getPropertyValue(String id);
+	<T> T getPropertyValue(String id);
 
-  <T> List<T> getPropertyMultivalue(String id);
+	<T> List<T> getPropertyMultivalue(String id);
 
-  AllowableActions getAllowableActions();
+	AllowableActions getAllowableActions();
 
-  List<Relationship> getRelationships();
+	List<Relationship> getRelationships();
 
-  Acl getAcl();
+	Acl getAcl();
 
-  // object service
+	// object service
 
-  void delete(boolean allVersions);
+	void delete(boolean allVersions);
 
-  ObjectId updateProperties();
+	ObjectId updateProperties();
 
-  ObjectId updateProperties(Map<String, ?> properties);
+	ObjectId updateProperties(Map<String, ?> properties);
 
-  // relationship service
+	// relationship service
 
-  PagingList<Relationship> getRelationships(boolean includeSubRelationshipTypes,
-      RelationshipDirection relationshipDirection, ObjectType type, OperationContext context,
-      int itemsPerPage);
+	PagingList<Relationship> getRelationships(boolean includeSubRelationshipTypes,
+			RelationshipDirection relationshipDirection, ObjectType type, OperationContext context, int itemsPerPage);
 
-  // renditions
+	// renditions
 
-  List<Rendition> getRenditions();
+	List<Rendition> getRenditions();
 
-  // policy service
+	// policy service
 
-  void applyPolicy(ObjectId policyId);
+	void applyPolicy(ObjectId policyId);
 
-  void removePolicy(ObjectId policyId);
+	void removePolicy(ObjectId policyId);
 
-  List<Policy> getPolicies();
+	List<Policy> getPolicies();
 
-  // ACL service
+	// ACL service
 
-  Acl getAcl(boolean onlyBasicPermissions);
+	Acl getAcl(boolean onlyBasicPermissions);
 
-  Acl applyAcl(List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation);
+	Acl applyAcl(List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation);
 
-  void addAcl(List<Ace> addAces, AclPropagation aclPropagation);
+	void addAcl(List<Ace> addAces, AclPropagation aclPropagation);
 
-  void removeAcl(List<Ace> removeAces, AclPropagation aclPropagation);
+	void removeAcl(List<Ace> removeAces, AclPropagation aclPropagation);
 
-  // buffered stuff
+	// buffered stuff
 
-  <T> void setProperty(String id, T value);
+	<T> void setProperty(String id, T value);
 
-  <T> void setPropertyMultivalue(String id, List<T> value);
+	<T> void setPropertyMultivalue(String id, List<T> value);
 
-  // void saveProperties(); // flush buffered ...Propert...-calls
+	// void saveProperties(); // flush buffered ...Propert...-calls
 
-  // void saveAcl(); // flush buffered ...Acl...-calls
+	// void saveAcl(); // flush buffered ...Acl...-calls
 
-  // session handling
+	// session handling
 
-  /**
-   * Returns true, if this object has pending changes which are not synced with the backend.
-   */
-  boolean isChanged();
+	/**
+	 * Returns true, if this object has pending changes which are not synced
+	 * with the backend.
+	 */
+	boolean isChanged();
 
-  /**
-   * Returns the timestamp (in milliseconds) of the last refresh.
-   */
-  long getRefreshTimestamp();
+	/**
+	 * Returns the timestamp (in milliseconds) of the last refresh.
+	 */
+	long getRefreshTimestamp();
 
-  /**
-   * Reloads the data from the repository.
-   */
-  void refresh();
+	/**
+	 * Reloads the data from the repository.
+	 */
+	void refresh();
 
-  /**
-   * Reloads the data from the repository if the last refresh did not occur within
-   * <code>durationInMillis</code>.
-   */
-  void refreshIfOld(long durationInMillis);
+	/**
+	 * Reloads the data from the repository if the last refresh did not occur
+	 * within <code>durationInMillis</code>.
+	 */
+	void refreshIfOld(long durationInMillis);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Document.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/Document.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Document.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Document.java Fri Apr 16 13:58:43 2010
@@ -30,74 +30,74 @@ import org.apache.chemistry.opencmis.com
  */
 public interface Document extends FileableCmisObject {
 
-  // object service
+	// object service
 
-  void deleteAllVersions();
+	void deleteAllVersions();
 
-  ContentStream getContentStream();
+	ContentStream getContentStream();
 
-  ObjectId setContentStream(ContentStream contentStream, boolean overwrite);
+	ObjectId setContentStream(ContentStream contentStream, boolean overwrite);
 
-  ObjectId deleteContentStream();
+	ObjectId deleteContentStream();
 
-  // versioning service
+	// versioning service
 
-  ObjectId checkOut(); // returns the PWC id
+	ObjectId checkOut(); // returns the PWC id
 
-  void cancelCheckOut();
+	void cancelCheckOut();
 
-  ObjectId checkIn(boolean major, Map<String, ?> properties, ContentStream contentStream,
-      String checkinComment, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces);
+	ObjectId checkIn(boolean major, Map<String, ?> properties, ContentStream contentStream, String checkinComment,
+			List<Policy> policies, List<Ace> addAces, List<Ace> removeAces);
 
-  Document getObjectOfLatestVersion(boolean major);
+	Document getObjectOfLatestVersion(boolean major);
 
-  Document getObjectOfLatestVersion(boolean major, OperationContext context);
+	Document getObjectOfLatestVersion(boolean major, OperationContext context);
 
-  List<Document> getAllVersions();
+	List<Document> getAllVersions();
 
-  List<Document> getAllVersions(OperationContext context);
+	List<Document> getAllVersions(OperationContext context);
 
-  // document specific properties
+	// document specific properties
 
-  Boolean isImmutable(); // cmis:isImmutable
+	Boolean isImmutable(); // cmis:isImmutable
 
-  Boolean isLatestVersion(); // cmis:isLatestVersion
+	Boolean isLatestVersion(); // cmis:isLatestVersion
 
-  Boolean isMajorVersion(); // cmis:isMajorVersion
+	Boolean isMajorVersion(); // cmis:isMajorVersion
 
-  Boolean isLatestMajorVersion(); // cmis:isLatestMajorVersion
+	Boolean isLatestMajorVersion(); // cmis:isLatestMajorVersion
 
-  String getVersionLabel(); // cmis:versionLabel
+	String getVersionLabel(); // cmis:versionLabel
 
-  String getVersionSeriesId(); // cmis:versionSeriesId
+	String getVersionSeriesId(); // cmis:versionSeriesId
 
-  Boolean isVersionSeriesCheckedOut(); // cmis:isVersionSeriesCheckedOut
+	Boolean isVersionSeriesCheckedOut(); // cmis:isVersionSeriesCheckedOut
 
-  String getVersionSeriesCheckedOutBy(); // cmis:versionSeriesCheckedOutBy
+	String getVersionSeriesCheckedOutBy(); // cmis:versionSeriesCheckedOutBy
 
-  String getVersionSeriesCheckedOutId(); // cmis:versionSeriesCheckedOutId
+	String getVersionSeriesCheckedOutId(); // cmis:versionSeriesCheckedOutId
 
-  String getCheckinComment(); // cmis:checkinComment
+	String getCheckinComment(); // cmis:checkinComment
 
-  long getContentStreamLength(); // cmis:contentStreamLength
+	long getContentStreamLength(); // cmis:contentStreamLength
 
-  String getContentStreamMimeType(); // cmis:contentStreamMimeType
+	String getContentStreamMimeType(); // cmis:contentStreamMimeType
 
-  String getContentStreamFileName(); // cmis:contentStreamFileName
+	String getContentStreamFileName(); // cmis:contentStreamFileName
 
-  String getContentStreamId(); // cmis:contentStreamId
+	String getContentStreamId(); // cmis:contentStreamId
 
-  /**
-   * Shortcut for ObjectFactory.createDocumentFromSource(this, ...).
-   *
-   * @param properties
-   * @param versioningState
-   * @param policies
-   * @param addACEs
-   * @param removeACEs
-   * @return
-   */
-  Document copy(List<Property<?>> properties, VersioningState versioningState,
-      List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs);
+	/**
+	 * Shortcut for ObjectFactory.createDocumentFromSource(this, ...).
+	 * 
+	 * @param properties
+	 * @param versioningState
+	 * @param policies
+	 * @param addACEs
+	 * @param removeACEs
+	 * @return
+	 */
+	Document copy(List<Property<?>> properties, VersioningState versioningState, List<Policy> policies,
+			List<Ace> addACEs, List<Ace> removeACEs);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/DocumentType.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/DocumentType.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/DocumentType.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/DocumentType.java Fri Apr 16 13:58:43 2010
@@ -27,20 +27,21 @@ import org.apache.chemistry.opencmis.com
  */
 public interface DocumentType extends ObjectType {
 
-  /**
-   * Get the {@code isVersionable} flag.
-   * 
-   * @return {@code true} if this document type is versionable, {@code false} if documents of this
-   *         type cannot be versioned.
-   */
-  Boolean isVersionable();
+	/**
+	 * Get the {@code isVersionable} flag.
+	 * 
+	 * @return {@code true} if this document type is versionable, {@code false}
+	 *         if documents of this type cannot be versioned.
+	 */
+	Boolean isVersionable();
 
-  /**
-   * Get the enum that describes, how content streams have to be handled with this document type.
-   * 
-   * @return the mode of content stream support ({@code notallowed}, {@code allowed}, or {@code
-   *         required}).
-   */
-  ContentStreamAllowed getContentStreamAllowed();
+	/**
+	 * Get the enum that describes, how content streams have to be handled with
+	 * this document type.
+	 * 
+	 * @return the mode of content stream support ({@code notallowed}, {@code
+	 *         allowed}, or {@code required}).
+	 */
+	ContentStreamAllowed getContentStreamAllowed();
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ExtensionHandler.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/ExtensionHandler.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ExtensionHandler.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ExtensionHandler.java Fri Apr 16 13:58:43 2010
@@ -22,6 +22,6 @@ package org.apache.chemistry.opencmis.cl
  */
 public interface ExtensionHandler {
 
-  void handleExtension(String context);
+	void handleExtension(String context);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FileableCmisObject.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/FileableCmisObject.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FileableCmisObject.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/FileableCmisObject.java Fri Apr 16 13:58:43 2010
@@ -25,34 +25,34 @@ import java.util.List;
  */
 public interface FileableCmisObject extends CmisObject {
 
-  // object service
+	// object service
 
-  /**
-   * Moves the object.
-   */
-  FileableCmisObject move(ObjectId sourceFolderId, ObjectId targetFolderId);
-
-  // navigation service
-
-  /**
-   * Returns the parents of this object.
-   */
-  List<Folder> getParents();
-
-  /**
-   * Returns the paths of this object.
-   */
-  List<String> getPaths();
-
-  // multifiling service
-
-  /**
-   * Adds this object to a folder.
-   */
-  void addToFolder(ObjectId folderId, boolean allVersions);
-
-  /**
-   * Removes this object from a folder.
-   */
-  void removeFromFolder(ObjectId folderId);
+	/**
+	 * Moves the object.
+	 */
+	FileableCmisObject move(ObjectId sourceFolderId, ObjectId targetFolderId);
+
+	// navigation service
+
+	/**
+	 * Returns the parents of this object.
+	 */
+	List<Folder> getParents();
+
+	/**
+	 * Returns the paths of this object.
+	 */
+	List<String> getPaths();
+
+	// multifiling service
+
+	/**
+	 * Adds this object to a folder.
+	 */
+	void addToFolder(ObjectId folderId, boolean allVersions);
+
+	/**
+	 * Removes this object from a folder.
+	 */
+	void removeFromFolder(ObjectId folderId);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.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/Folder.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java Fri Apr 16 13:58:43 2010
@@ -31,54 +31,52 @@ import org.apache.chemistry.opencmis.com
  */
 public interface Folder extends FileableCmisObject {
 
-  // object service
-  Document createDocument(Map<String, ?> properties, ContentStream contentStream,
-      VersioningState versioningState, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces, OperationContext context);
+	// object service
+	Document createDocument(Map<String, ?> properties, ContentStream contentStream, VersioningState versioningState,
+			List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context);
 
-  Document createDocumentFromSource(ObjectId source, Map<String, ?> properties,
-      VersioningState versioningState, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces, OperationContext context);
+	Document createDocumentFromSource(ObjectId source, Map<String, ?> properties, VersioningState versioningState,
+			List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context);
 
-  Folder createFolder(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces, OperationContext context);
+	Folder createFolder(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces,
+			OperationContext context);
 
-  Policy createPolicy(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces, OperationContext context);
+	Policy createPolicy(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces,
+			OperationContext context);
 
-  /**
-   * @return list of object ids which failed to be deleted
-   */
-  List<String> deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure);
+	/**
+	 * @return list of object ids which failed to be deleted
+	 */
+	List<String> deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure);
 
-  // navigation service
+	// navigation service
 
-  List<Tree<FileableCmisObject>> getFolderTree(int depth);
+	List<Tree<FileableCmisObject>> getFolderTree(int depth);
 
-  List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context);
+	List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context);
 
-  List<Tree<FileableCmisObject>> getDescendants(int depth);
+	List<Tree<FileableCmisObject>> getDescendants(int depth);
 
-  List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context);
+	List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context);
 
-  PagingList<CmisObject> getChildren(int itemsPerPage);
+	PagingList<CmisObject> getChildren(int itemsPerPage);
 
-  PagingList<CmisObject> getChildren(OperationContext context, int itemsPerPage);
+	PagingList<CmisObject> getChildren(OperationContext context, int itemsPerPage);
 
-  boolean isRootFolder();
+	boolean isRootFolder();
 
-  Folder getFolderParent();
+	Folder getFolderParent();
 
-  String getPath();
+	String getPath();
 
-  /**
-   * Returns all checked out documents of this folder.
-   */
-  PagingList<Document> getCheckedOutDocs(int itemsPerPage);
+	/**
+	 * Returns all checked out documents of this folder.
+	 */
+	PagingList<Document> getCheckedOutDocs(int itemsPerPage);
 
-  PagingList<Document> getCheckedOutDocs(OperationContext context, int itemsPerPage);
+	PagingList<Document> getCheckedOutDocs(OperationContext context, int itemsPerPage);
 
-  // folder specific properties
+	// folder specific properties
 
-  List<ObjectType> getAllowedChildObjectTypes(); // cmis:allowedChildObjectTypeIds
+	List<ObjectType> getAllowedChildObjectTypes(); // cmis:allowedChildObjectTypeIds
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.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/ObjectFactory.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java Fri Apr 16 13:58:43 2010
@@ -36,52 +36,50 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * A factory to create CMIS objects.
- *
+ * 
  * @see org.apache.chemistry.opencmis.client.api.Session#getObjectFactory()
  */
 public interface ObjectFactory {
 
-  // ACL and ACE
+	// ACL and ACE
 
-  Acl convertAces(List<Ace> aces);
+	Acl convertAces(List<Ace> aces);
 
-  // policies
+	// policies
 
-  List<String> convertPolicies(List<Policy> policies);
+	List<String> convertPolicies(List<Policy> policies);
 
-  // renditions
+	// renditions
 
-  Rendition convertRendition(String objectId, RenditionData rendition);
+	Rendition convertRendition(String objectId, RenditionData rendition);
 
-  // content stream
+	// content stream
 
-  ContentStream createContentStream(String filename, long length, String mimetype,
-      InputStream stream);
+	ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream);
 
-  ContentStream convertContentStream(ContentStream contentStream);
+	ContentStream convertContentStream(ContentStream contentStream);
 
-  // types
+	// types
 
-  ObjectType convertTypeDefinition(TypeDefinition typeDefinition);
+	ObjectType convertTypeDefinition(TypeDefinition typeDefinition);
 
-  ObjectType getTypeFromObjectData(ObjectData objectData);
+	ObjectType getTypeFromObjectData(ObjectData objectData);
 
-  // properties
+	// properties
 
-  <T> Property<T> createProperty(PropertyDefinition<?> type, T value);
+	<T> Property<T> createProperty(PropertyDefinition<?> type, T value);
 
-  <T> Property<T> createPropertyMultivalue(PropertyDefinition<?> type, List<T> values);
+	<T> Property<T> createPropertyMultivalue(PropertyDefinition<?> type, List<T> values);
 
-  Map<String, Property<?>> convertProperties(ObjectType objectType, Properties properties);
+	Map<String, Property<?>> convertProperties(ObjectType objectType, Properties properties);
 
-  Properties convertProperties(Map<String, ?> properties, ObjectType type,
-      Set<Updatability> updatabilityFilter);
+	Properties convertProperties(Map<String, ?> properties, ObjectType type, Set<Updatability> updatabilityFilter);
 
-  List<PropertyData<?>> convertQueryProperties(Properties properties);
+	List<PropertyData<?>> convertQueryProperties(Properties properties);
 
-  // objects
+	// objects
 
-  CmisObject convertObject(ObjectData objectData, OperationContext context);
+	CmisObject convertObject(ObjectData objectData, OperationContext context);
 
-  QueryResult convertQueryResult(ObjectData objectData);
+	QueryResult convertQueryResult(ObjectData objectData);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectId.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/ObjectId.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectId.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectId.java Fri Apr 16 13:58:43 2010
@@ -23,8 +23,8 @@ package org.apache.chemistry.opencmis.cl
  */
 public interface ObjectId {
 
-  /**
-   * Returns the id.
-   */
-  String getId();
+	/**
+	 * Returns the id.
+	 */
+	String getId();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectType.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/ObjectType.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectType.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectType.java Fri Apr 16 13:58:43 2010
@@ -26,59 +26,62 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Object Type.
- *
+ * 
  * See CMIS Domain Model - section 2.1.3.
  */
 public interface ObjectType extends TypeDefinition {
 
-  String DOCUMENT_BASETYPE_ID = BaseTypeId.CMIS_DOCUMENT.value();
-  String FOLDER_BASETYPE_ID = BaseTypeId.CMIS_FOLDER.value();
-  String RELATIONSHIP_BASETYPE_ID = BaseTypeId.CMIS_RELATIONSHIP.value();
-  String POLICY_BASETYPE_ID = BaseTypeId.CMIS_POLICY.value();
-
-  /**
-   * Indicates if this is base object type (i.e. if {@code getId()} returns ...{@code _BASETYPE_ID}.
-   *
-   * @return {@code true} if this type is a base type, {@code false} if this type is a derived type.
-   */
-  boolean isBaseType();
-
-  /**
-   * Get the type's base type, if the type is a derived (non-base) type.
-   *
-   * @return the base type this type is derived from, or {@code null} if it is a base type ({@code
-   *         isBase()==true}).
-   * @throws CmisRuntimeException
-   */
-  ObjectType getBaseType(); // null if isBase == true
-
-  /**
-   * Get the type's parent type, if the type is a derived (non-base) type.
-   *
-   * @return the parent type from which this type is derived, or {@code null} if it is a base type (
-   *         {@code isBase()==true}).
-   * @throws CmisRuntimeException
-   */
-  ObjectType getParentType();
-
-  /**
-   * Get the list of types directly derived from this type (which will return this type on {@code
-   * getParent()}).
-   *
-   * @param itemsPerPage
-   *          types per page
-   * @return a {@code List} of types which are directly derived from this type. @
-   */
-  PagingList<ObjectType> getChildren(int itemsPerPage);
-
-  /**
-   * Get the list of all types somehow derived from this type.
-   *
-   * @param depth
-   *          the depth to which the derived types should be resolved.
-   * @return a {@code Tree} of types which are derived from this type (direct and via their
-   *         parents). @
-   */
-  List<Tree<ObjectType>> getDescendants(int depth);
+	String DOCUMENT_BASETYPE_ID = BaseTypeId.CMIS_DOCUMENT.value();
+	String FOLDER_BASETYPE_ID = BaseTypeId.CMIS_FOLDER.value();
+	String RELATIONSHIP_BASETYPE_ID = BaseTypeId.CMIS_RELATIONSHIP.value();
+	String POLICY_BASETYPE_ID = BaseTypeId.CMIS_POLICY.value();
+
+	/**
+	 * Indicates if this is base object type (i.e. if {@code getId()} returns
+	 * ...{@code _BASETYPE_ID}.
+	 * 
+	 * @return {@code true} if this type is a base type, {@code false} if this
+	 *         type is a derived type.
+	 */
+	boolean isBaseType();
+
+	/**
+	 * Get the type's base type, if the type is a derived (non-base) type.
+	 * 
+	 * @return the base type this type is derived from, or {@code null} if it is
+	 *         a base type ({@code isBase()==true}).
+	 * @throws CmisRuntimeException
+	 */
+	ObjectType getBaseType(); // null if isBase == true
+
+	/**
+	 * Get the type's parent type, if the type is a derived (non-base) type.
+	 * 
+	 * @return the parent type from which this type is derived, or {@code null}
+	 *         if it is a base type ( {@code isBase()==true}).
+	 * @throws CmisRuntimeException
+	 */
+	ObjectType getParentType();
+
+	/**
+	 * Get the list of types directly derived from this type (which will return
+	 * this type on {@code getParent()}).
+	 * 
+	 * @param itemsPerPage
+	 *            types per page
+	 * @return a {@code List} of types which are directly derived from this
+	 *         type. @
+	 */
+	PagingList<ObjectType> getChildren(int itemsPerPage);
+
+	/**
+	 * Get the list of all types somehow derived from this type.
+	 * 
+	 * @param depth
+	 *            the depth to which the derived types should be resolved.
+	 * @return a {@code Tree} of types which are derived from this type (direct
+	 *         and via their parents). @
+	 */
+	List<Tree<ObjectType>> getDescendants(int depth);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/OperationContext.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/OperationContext.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/OperationContext.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/OperationContext.java Fri Apr 16 13:58:43 2010
@@ -24,52 +24,53 @@ import org.apache.chemistry.opencmis.com
 
 public interface OperationContext {
 
-  Set<String> getFilter();
+	Set<String> getFilter();
 
-  void setFilter(Set<String> propertyFilter);
+	void setFilter(Set<String> propertyFilter);
 
-  void setFilterString(String propertyFilter);
+	void setFilterString(String propertyFilter);
 
-  /**
-   * Returns the filter extended by cmis:objectId, cmis:objectTypeId and cmis:baseTypeId.
-   */
-  String getFilterString();
+	/**
+	 * Returns the filter extended by cmis:objectId, cmis:objectTypeId and
+	 * cmis:baseTypeId.
+	 */
+	String getFilterString();
 
-  boolean isIncludeAllowableActions();
+	boolean isIncludeAllowableActions();
 
-  void setIncludeAllowableActions(boolean include);
+	void setIncludeAllowableActions(boolean include);
 
-  boolean isIncludeAcls();
+	boolean isIncludeAcls();
 
-  void setIncludeAcls(boolean include);
+	void setIncludeAcls(boolean include);
 
-  IncludeRelationships getIncludeRelationships();
+	IncludeRelationships getIncludeRelationships();
 
-  void setIncludeRelationships(IncludeRelationships include);
+	void setIncludeRelationships(IncludeRelationships include);
 
-  boolean isIncludePolicies();
+	boolean isIncludePolicies();
 
-  void setIncludePolicies(boolean include);
+	void setIncludePolicies(boolean include);
 
-  Set<String> getRenditionFilter();
+	Set<String> getRenditionFilter();
 
-  void setRenditionFilter(Set<String> renditionFilter);
+	void setRenditionFilter(Set<String> renditionFilter);
 
-  void setRenditionFilterString(String renditionFilter);
+	void setRenditionFilterString(String renditionFilter);
 
-  String getRenditionFilterString();
+	String getRenditionFilterString();
 
-  boolean isIncludePathSegments();
+	boolean isIncludePathSegments();
 
-  void setIncludePathSegments(boolean include);
+	void setIncludePathSegments(boolean include);
 
-  String getOrderBy();
+	String getOrderBy();
 
-  void setOrderBy(String orderBy);
+	void setOrderBy(String orderBy);
 
-  boolean isCacheEnabled();
+	boolean isCacheEnabled();
 
-  void setCacheEnabled(boolean cacheEnabled);
+	void setCacheEnabled(boolean cacheEnabled);
 
-  String getCacheKey();
+	String getCacheKey();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterable.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/PagingIterable.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterable.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterable.java Fri Apr 16 13:58:43 2010
@@ -18,20 +18,20 @@
  */
 package org.apache.chemistry.opencmis.client.api;
 
-
 /**
- * Iterable for CMIS collections that allows ability to skip to specific position.
+ * Iterable for CMIS collections that allows ability to skip to specific
+ * position.
  * 
  * @param <T>
  */
 public interface PagingIterable<T> extends Iterable<T> {
 
-  /**
-   * Skip to position within CMIS collection
-   * 
-   * @param position
-   * @return iterable whose starting point is the specicied skip to position
-   */
-  PagingIterable<T> skipTo(long position);
+	/**
+	 * Skip to position within CMIS collection
+	 * 
+	 * @param position
+	 * @return iterable whose starting point is the specicied skip to position
+	 */
+	PagingIterable<T> skipTo(long position);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterator.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/PagingIterator.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterator.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingIterator.java Fri Apr 16 13:58:43 2010
@@ -20,30 +20,30 @@ package org.apache.chemistry.opencmis.cl
 
 import java.util.Iterator;
 
-
 /**
- * Iterator for scrolling through CMIS collections  
- *
+ * Iterator for scrolling through CMIS collections
+ * 
  * @param <T>
  */
 public interface PagingIterator<T> extends Iterator<T> {
 
-  /**
-   * Returns the current position within the iterator.
-   * 
-   * @return iterator position
-   */
-  long getPosition();
-  
-  /**
-   * Returns the total number of items. If the repository knows the total number of items in a
-   * result set, the repository SHOULD include the number here. If the repository does not know the
-   * number of items in a result set, this parameter SHOULD not be set. The value in the parameter
-   * MAY NOT be accurate the next time the client retrieves the result set or the next page in the
-   * result set.
-   * 
-   * @return total number of items or (-1)
-   */
-  long getTotalNumItems();
+	/**
+	 * Returns the current position within the iterator.
+	 * 
+	 * @return iterator position
+	 */
+	long getPosition();
+
+	/**
+	 * Returns the total number of items. If the repository knows the total
+	 * number of items in a result set, the repository SHOULD include the number
+	 * here. If the repository does not know the number of items in a result
+	 * set, this parameter SHOULD not be set. The value in the parameter MAY NOT
+	 * be accurate the next time the client retrieves the result set or the next
+	 * page in the result set.
+	 * 
+	 * @return total number of items or (-1)
+	 */
+	long getTotalNumItems();
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingList.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/PagingList.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingList.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/PagingList.java Fri Apr 16 13:58:43 2010
@@ -21,62 +21,67 @@ package org.apache.chemistry.opencmis.cl
 import java.util.List;
 
 /**
- * Basically this is a nested list of lists where the outer list represent pages and the inner list
- * is the result set with items of type T. <code>PagingList</code> implementations can support lazy
- * load of result sets. The first page has the page number 0.
+ * Basically this is a nested list of lists where the outer list represent pages
+ * and the inner list is the result set with items of type T.
+ * <code>PagingList</code> implementations can support lazy load of result sets.
+ * The first page has the page number 0.
  * 
  * @param <T>
  */
 public interface PagingList<T> extends Iterable<List<T>> {
 
-  /**
-   * Returns the total number of items. If the repository knows the total number of items in a
-   * result set, the repository SHOULD include the number here. If the repository does not know the
-   * number of items in a result set, this parameter SHOULD not be set. The value in the parameter
-   * MAY NOT be accurate the next time the client retrieves the result set or the next page in the
-   * result set.
-   * 
-   * @return total number of items or (-1)
-   */
-  int getNumItems();
-
-  /**
-   * Returns the maximum number of items in one page. The repository MUST NOT exceed this maximum.
-   */
-  int getMaxItemsPerPage();
-
-  /**
-   * Returns the maximum number of pages calculated from number of <code>numItems</code> and
-   * <code>maxItemsPerPage</code>. If the number of <code>numItems</code> is not known then -1 is
-   * returned.
-   * 
-   * @return Number of pages or (-1)
-   */
-  int size();
-
-  /**
-   * Return one page as list of items of type T.
-   * 
-   * @param pageNumber
-   *          The number of the page to return.
-   * @return a page of items
-   */
-  List<T> get(int pageNumber);
-
-  /**
-   * Returns if the list contains items. This method might fetch the first page to determine the
-   * return value!
-   * 
-   * @return <code>true</code> if the list does not contain items, <code>false</code>otherwise
-   */
-  boolean isEmpty();
-
-  /**
-   * Sets the size of the page LRU cache. A size &lt; 1 de-activates the cache. Default cache size
-   * is 0. Re-setting the cache size clears the cache.
-   * 
-   * @param cacheSize
-   *          size of the cache in pages
-   */
-  void setCacheSize(int cacheSize);
+	/**
+	 * Returns the total number of items. If the repository knows the total
+	 * number of items in a result set, the repository SHOULD include the number
+	 * here. If the repository does not know the number of items in a result
+	 * set, this parameter SHOULD not be set. The value in the parameter MAY NOT
+	 * be accurate the next time the client retrieves the result set or the next
+	 * page in the result set.
+	 * 
+	 * @return total number of items or (-1)
+	 */
+	int getNumItems();
+
+	/**
+	 * Returns the maximum number of items in one page. The repository MUST NOT
+	 * exceed this maximum.
+	 */
+	int getMaxItemsPerPage();
+
+	/**
+	 * Returns the maximum number of pages calculated from number of
+	 * <code>numItems</code> and <code>maxItemsPerPage</code>. If the number of
+	 * <code>numItems</code> is not known then -1 is returned.
+	 * 
+	 * @return Number of pages or (-1)
+	 */
+	int size();
+
+	/**
+	 * Return one page as list of items of type T.
+	 * 
+	 * @param pageNumber
+	 *            The number of the page to return.
+	 * @return a page of items
+	 */
+	List<T> get(int pageNumber);
+
+	/**
+	 * Returns if the list contains items. This method might fetch the first
+	 * page to determine the return value!
+	 * 
+	 * @return <code>true</code> if the list does not contain items,
+	 *         <code>false</code>otherwise
+	 */
+	boolean isEmpty();
+
+	/**
+	 * Sets the size of the page LRU cache. A size &lt; 1 de-activates the
+	 * cache. Default cache size is 0. Re-setting the cache size clears the
+	 * cache.
+	 * 
+	 * @param cacheSize
+	 *            size of the cache in pages
+	 */
+	void setCacheSize(int cacheSize);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Policy.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/Policy.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Policy.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Policy.java Fri Apr 16 13:58:43 2010
@@ -23,6 +23,6 @@ package org.apache.chemistry.opencmis.cl
  */
 public interface Policy extends FileableCmisObject {
 
-  public String getPolicyText(); // cmis:policyText
+	public String getPolicyText(); // cmis:policyText
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Property.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/Property.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Property.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Property.java Fri Apr 16 13:58:43 2010
@@ -24,19 +24,20 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * {@see org.apache.opencmis.client.api.CMISObject#getProperties()}, {@see
- * org.apache.opencmis.client.api.Session#createProperty(String, Object)} and {@see
- * org.apache.opencmis.client.api.Session#createPropertyMultivalue(String, List)}. Domain Model 2.2.1
- *
+ * org.apache.opencmis.client.api.Session#createProperty(String, Object)} and
+ * {@see org.apache.opencmis.client.api.Session#createPropertyMultivalue(String,
+ * List)}. Domain Model 2.2.1
+ * 
  * @param <T>
  */
 public interface Property<T> extends PropertyData<T> {
 
-  boolean isMultiValued();
+	boolean isMultiValued();
 
-  PropertyType getType();
+	PropertyType getType();
 
-  PropertyDefinition<T> getDefinition();
+	PropertyDefinition<T> getDefinition();
 
-  String getValueAsString();
+	String getValueAsString();
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryResult.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/QueryResult.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryResult.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryResult.java Fri Apr 16 13:58:43 2010
@@ -28,23 +28,23 @@ import org.apache.chemistry.opencmis.com
  */
 public interface QueryResult {
 
-  List<PropertyData<?>> getProperties();
+	List<PropertyData<?>> getProperties();
 
-  <T> PropertyData<T> getPropertyById(String id);
+	<T> PropertyData<T> getPropertyById(String id);
 
-  <T> PropertyData<T> getPropertyByQueryName(String queryName);
+	<T> PropertyData<T> getPropertyByQueryName(String queryName);
 
-  <T> T getPropertyValueById(String id);
+	<T> T getPropertyValueById(String id);
 
-  <T> T getPropertyValueByQueryName(String queryName);
+	<T> T getPropertyValueByQueryName(String queryName);
 
-  <T> List<T> getPropertyMultivalueById(String id);
+	<T> List<T> getPropertyMultivalueById(String id);
 
-  <T> List<T> getPropertyMultivalueByQueryName(String queryName);
+	<T> List<T> getPropertyMultivalueByQueryName(String queryName);
 
-  AllowableActions getAllowableActions();
+	AllowableActions getAllowableActions();
 
-  List<Relationship> getRelationships();
+	List<Relationship> getRelationships();
 
-  List<Rendition> getRenditions();
+	List<Rendition> getRenditions();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Relationship.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/Relationship.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Relationship.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Relationship.java Fri Apr 16 13:58:43 2010
@@ -23,13 +23,13 @@ package org.apache.chemistry.opencmis.cl
  */
 public interface Relationship extends CmisObject {
 
-  // relationship specific properties
+	// relationship specific properties
 
-  CmisObject getSource(); // cmis:sourceId
+	CmisObject getSource(); // cmis:sourceId
 
-  CmisObject getSource(OperationContext context);
+	CmisObject getSource(OperationContext context);
 
-  CmisObject getTarget(); // cmis:targetId
+	CmisObject getTarget(); // cmis:targetId
 
-  CmisObject getTarget(OperationContext context);
+	CmisObject getTarget(OperationContext context);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/RelationshipType.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/RelationshipType.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/RelationshipType.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/RelationshipType.java Fri Apr 16 13:58:43 2010
@@ -21,23 +21,25 @@ import java.util.List;
 
 /**
  * Relationship Object Type.
- *
+ * 
  * See CMIS Domain Model - section 2.1.6.1.
  */
 public interface RelationshipType extends ObjectType {
 
-  /**
-   * Get the list of object types, allowed as source for relationships of this type.
-   *
-   * @return the allowed source types for this relationship type.
-   */
-  List<ObjectType> getAllowedSourceTypes();
+	/**
+	 * Get the list of object types, allowed as source for relationships of this
+	 * type.
+	 * 
+	 * @return the allowed source types for this relationship type.
+	 */
+	List<ObjectType> getAllowedSourceTypes();
 
-  /**
-   * Get the list of object types, allowed as target for relationships of this type.
-   *
-   * @return the allowed target types for this relationship type.
-   */
-  List<ObjectType> getAllowedTargetTypes();
+	/**
+	 * Get the list of object types, allowed as target for relationships of this
+	 * type.
+	 * 
+	 * @return the allowed target types for this relationship type.
+	 */
+	List<ObjectType> getAllowedTargetTypes();
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Rendition.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/Rendition.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Rendition.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Rendition.java Fri Apr 16 13:58:43 2010
@@ -26,15 +26,15 @@ import org.apache.chemistry.opencmis.com
  */
 public interface Rendition extends RenditionData {
 
-  long getLength();
+	long getLength();
 
-  long getHeight();
+	long getHeight();
 
-  long getWidth();
+	long getWidth();
 
-  Document getRenditionDocument();
+	Document getRenditionDocument();
 
-  Document getRenditionDocument(OperationContext context);
+	Document getRenditionDocument(OperationContext context);
 
-  ContentStream getContentStream();
+	ContentStream getContentStream();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Repository.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/Repository.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Repository.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Repository.java Fri Apr 16 13:58:43 2010
@@ -25,8 +25,8 @@ import org.apache.chemistry.opencmis.com
  */
 public interface Repository extends RepositoryInfo {
 
-  /**
-   * Creates a session for this repository.
-   */
-  <T extends Session> T createSession();
+	/**
+	 * Creates a session for this repository.
+	 */
+	<T extends Session> T createSession();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.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/Session.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java Fri Apr 16 13:58:43 2010
@@ -31,167 +31,166 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.VersioningState;
 
 /**
- * A session is associated with a specific connection to a CMIS repository. A session belongs to one
- * authenticated user and
+ * A session is associated with a specific connection to a CMIS repository. A
+ * session belongs to one authenticated user and
  */
 public interface Session {
 
-  /**
-   * Clear all cached data. This implies that all data will be reloaded from the repository
-   * (depending on the implementation, reloading might be done immediately or be deferred).
-   */
-  void clear();
-
-  /**
-   * Save all pending actions for this session. Corresponds to a <code>commit</code> if the CMIS
-   * provider supports transactions. If transactions are not supported by the CMIS provider, changes
-   * might be applied only partially.
-   */
-  void save();
-
-  /**
-   * Cancel all pending actions for this session. Corresponds to a <code>rollback</code> if the CMIS
-   * provider supports transactions. If transactions are not supported by the CMIS provider, some
-   * changes might already be applied and therefore not rolled back.
-   */
-  void cancel();
-
-  // session context
-
-  /**
-   * Gets the underlying binding object.
-   */
-  CmisBinding getBinding();
-
-  /**
-   * Get the current default operation parameters for filtering and paging.
-   */
-  OperationContext getDefaultContext();
-
-  /**
-   * Set the current session parameters for filtering and paging.
-   *
-   * @param context
-   *          the <code>OperationContext</code> to be used for the session; if <code>null</code>, a
-   *          default context is used
-   */
-  void setDefaultContext(OperationContext context);
-
-  /**
-   * Creates an operation context object.
-   */
-  OperationContext createOperationContext(Set<String> filter, boolean includeAcls,
-      boolean includeAllowableActions, boolean includePolicies,
-      IncludeRelationships includeRelationships, Set<String> renditionFilter,
-      boolean includePathSegments, String orderBy, boolean cacheEnabled);
-
-  /**
-   * Creates an object id.
-   */
-  ObjectId createObjectId(String id);
-
-  // localization
-
-  /**
-   * Get the current locale to be used for this session.
-   */
-  Locale getLocale();
-
-  // services
-
-  /**
-   * Repository service <code>getRepositoryInfo()</code>.
-   */
-  RepositoryInfo getRepositoryInfo();
-
-  /**
-   * Access to the object services <code>create</code><i>...</i>, plus factory methods to create
-   * <code>Acl</code>s, <code>Ace</code>s, and <code>ContentStream</code>.
-   */
-  ObjectFactory getObjectFactory();
-
-  // types
-
-  /**
-   * Returns the type definition of the given type id.
-   */
-  ObjectType getTypeDefinition(String typeId);
-
-  /**
-   * Returns the type children of the given type id.
-   */
-  PagingList<ObjectType> getTypeChildren(String typeId, boolean includePropertyDefinitions,
-      int itemsPerPage);
-
-  /**
-   * Returns the type descendants of the given type id.
-   */
-  List<Tree<ObjectType>> getTypeDescendants(String typeId, int depth,
-      boolean includePropertyDefinitions);
-
-  // navigation
-
-  /**
-   * Gets the root folder for the repository.
-   */
-  Folder getRootFolder();
-
-  Folder getRootFolder(OperationContext context);
-
-  /**
-   * Returns all checked out documents.
-   *
-   * @see Folder#getCheckedOutDocs(int)
-   */
-  PagingList<Document> getCheckedOutDocs(int itemsPerPage);
-
-  PagingList<Document> getCheckedOutDocs(OperationContext context, int itemsPerPage);
-
-  /**
-   * Object service <code>getObject</code>.
-   */
-  CmisObject getObject(ObjectId objectId);
-
-  CmisObject getObject(ObjectId objectId, OperationContext context);
-
-  /**
-   * Object service <code>getObjectByPath</code>.
-   */
-  CmisObject getObjectByPath(String path);
-
-  CmisObject getObjectByPath(String path, OperationContext context);
-
-  // discovery
-
-  /**
-   * Discovery service <code>query</code>.
-   */
-  PagingList<QueryResult> query(String statement, boolean searchAllVersions, int itemsPerPage);
-
-  PagingList<QueryResult> query(String statement, boolean searchAllVersions,
-      OperationContext context, int itemsPerPage);
-
-  /**
-   * Discovery service <code>getContentChanges</code>.
-   */
-  PagingList<ChangeEvent> getContentChanges(String changeLogToken, int itemsPerPage);
-
-  // create
-
-  ObjectId createDocument(Map<String, ?> properties, ObjectId folderId,
-      ContentStream contentStream, VersioningState versioningState, List<Policy> policies,
-      List<Ace> addAces, List<Ace> removeAces);
-
-  ObjectId createDocumentFromSource(ObjectId source, Map<String, ?> properties, ObjectId folderId,
-      VersioningState versioningState, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces);
+	/**
+	 * Clear all cached data. This implies that all data will be reloaded from
+	 * the repository (depending on the implementation, reloading might be done
+	 * immediately or be deferred).
+	 */
+	void clear();
+
+	/**
+	 * Save all pending actions for this session. Corresponds to a
+	 * <code>commit</code> if the CMIS provider supports transactions. If
+	 * transactions are not supported by the CMIS provider, changes might be
+	 * applied only partially.
+	 */
+	void save();
+
+	/**
+	 * Cancel all pending actions for this session. Corresponds to a
+	 * <code>rollback</code> if the CMIS provider supports transactions. If
+	 * transactions are not supported by the CMIS provider, some changes might
+	 * already be applied and therefore not rolled back.
+	 */
+	void cancel();
+
+	// session context
+
+	/**
+	 * Gets the underlying binding object.
+	 */
+	CmisBinding getBinding();
+
+	/**
+	 * Get the current default operation parameters for filtering and paging.
+	 */
+	OperationContext getDefaultContext();
+
+	/**
+	 * Set the current session parameters for filtering and paging.
+	 * 
+	 * @param context
+	 *            the <code>OperationContext</code> to be used for the session;
+	 *            if <code>null</code>, a default context is used
+	 */
+	void setDefaultContext(OperationContext context);
+
+	/**
+	 * Creates an operation context object.
+	 */
+	OperationContext createOperationContext(Set<String> filter, boolean includeAcls, boolean includeAllowableActions,
+			boolean includePolicies, IncludeRelationships includeRelationships, Set<String> renditionFilter,
+			boolean includePathSegments, String orderBy, boolean cacheEnabled);
+
+	/**
+	 * Creates an object id.
+	 */
+	ObjectId createObjectId(String id);
+
+	// localization
+
+	/**
+	 * Get the current locale to be used for this session.
+	 */
+	Locale getLocale();
+
+	// services
+
+	/**
+	 * Repository service <code>getRepositoryInfo()</code>.
+	 */
+	RepositoryInfo getRepositoryInfo();
+
+	/**
+	 * Access to the object services <code>create</code><i>...</i>, plus factory
+	 * methods to create <code>Acl</code>s, <code>Ace</code>s, and
+	 * <code>ContentStream</code>.
+	 */
+	ObjectFactory getObjectFactory();
+
+	// types
+
+	/**
+	 * Returns the type definition of the given type id.
+	 */
+	ObjectType getTypeDefinition(String typeId);
+
+	/**
+	 * Returns the type children of the given type id.
+	 */
+	PagingList<ObjectType> getTypeChildren(String typeId, boolean includePropertyDefinitions, int itemsPerPage);
+
+	/**
+	 * Returns the type descendants of the given type id.
+	 */
+	List<Tree<ObjectType>> getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions);
+
+	// navigation
+
+	/**
+	 * Gets the root folder for the repository.
+	 */
+	Folder getRootFolder();
+
+	Folder getRootFolder(OperationContext context);
+
+	/**
+	 * Returns all checked out documents.
+	 * 
+	 * @see Folder#getCheckedOutDocs(int)
+	 */
+	PagingList<Document> getCheckedOutDocs(int itemsPerPage);
+
+	PagingList<Document> getCheckedOutDocs(OperationContext context, int itemsPerPage);
+
+	/**
+	 * Object service <code>getObject</code>.
+	 */
+	CmisObject getObject(ObjectId objectId);
+
+	CmisObject getObject(ObjectId objectId, OperationContext context);
+
+	/**
+	 * Object service <code>getObjectByPath</code>.
+	 */
+	CmisObject getObjectByPath(String path);
+
+	CmisObject getObjectByPath(String path, OperationContext context);
+
+	// discovery
+
+	/**
+	 * Discovery service <code>query</code>.
+	 */
+	PagingList<QueryResult> query(String statement, boolean searchAllVersions, int itemsPerPage);
+
+	PagingList<QueryResult> query(String statement, boolean searchAllVersions, OperationContext context,
+			int itemsPerPage);
+
+	/**
+	 * Discovery service <code>getContentChanges</code>.
+	 */
+	PagingList<ChangeEvent> getContentChanges(String changeLogToken, int itemsPerPage);
+
+	// create
+
+	ObjectId createDocument(Map<String, ?> properties, ObjectId folderId, ContentStream contentStream,
+			VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces);
+
+	ObjectId createDocumentFromSource(ObjectId source, Map<String, ?> properties, ObjectId folderId,
+			VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces);
 
-  ObjectId createFolder(Map<String, ?> properties, ObjectId folderId, List<Policy> policies,
-      List<Ace> addAces, List<Ace> removeAces);
+	ObjectId createFolder(Map<String, ?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces,
+			List<Ace> removeAces);
 
-  ObjectId createPolicy(Map<String, ?> properties, ObjectId folderId, List<Policy> policies,
-      List<Ace> addAces, List<Ace> removeAces);
+	ObjectId createPolicy(Map<String, ?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces,
+			List<Ace> removeAces);
 
-  ObjectId createRelationship(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces,
-      List<Ace> removeAces);
+	ObjectId createRelationship(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces,
+			List<Ace> removeAces);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Tree.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/Tree.java?rev=934877&r1=934876&r2=934877&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Tree.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Tree.java Fri Apr 16 13:58:43 2010
@@ -25,13 +25,13 @@ import java.util.List;
  */
 public interface Tree<T> {
 
-  /**
-   * Returns the item on this level.
-   */
-  T getItem();
+	/**
+	 * Returns the item on this level.
+	 */
+	T getItem();
 
-  /**
-   * Returns the children.
-   */
-  List<Tree<T>> getChildren();
+	/**
+	 * Returns the children.
+	 */
+	List<Tree<T>> getChildren();
 }



Mime
View raw message