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 2010/04/16 16:14:02 UTC

svn commit: r934896 [10/12] - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-server: chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/ chemistry-opencmis-server-bindings/src/main/java/org/apache/chem...

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisObjectService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisObjectService.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisObjectService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisObjectService.java Fri Apr 16 14:14:00 2010
@@ -35,211 +35,202 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.VersioningState;
 
 /**
- * CMIS Object Service interface. Please refer to the CMIS specification and the OpenCMIS
- * documentation for details.
+ * CMIS Object Service interface. Please refer to the CMIS specification and the
+ * OpenCMIS documentation for details.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface CmisObjectService {
 
-  /**
-   * Creates new document.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  String createDocument(CallContext context, String repositoryId, Properties properties,
-      String folderId, ContentStream contentStream, VersioningState versioningState,
-      List<String> policies, Acl addAces, Acl removeAces,
-      ExtensionsData extension);
-
-  /**
-   * Copies a document.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  String createDocumentFromSource(CallContext context, String repositoryId, String sourceId,
-      Properties properties, String folderId, VersioningState versioningState,
-      List<String> policies, Acl addAces, Acl removeAces,
-      ExtensionsData extension);
-
-  /**
-   * Creates a new folder.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  String createFolder(CallContext context, String repositoryId, Properties properties,
-      String folderId, List<String> policies, Acl addAces,
-      Acl removeAces, ExtensionsData extension);
-
-  /**
-   * Create a new relationship.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  String createRelationship(CallContext context, String repositoryId, Properties properties,
-      List<String> policies, Acl addAces, Acl removeAces,
-      ExtensionsData extension);
-
-  /**
-   * Creates a new policy.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  String createPolicy(CallContext context, String repositoryId, Properties properties,
-      String folderId, List<String> policies, Acl addAces,
-      Acl removeAces, ExtensionsData extension);
-
-  /**
-   * Creates a new document, folder or policy. The property "cmis:objectTypeId" defines the type and
-   * implicitly the base type.
-   * 
-   * <p>
-   * Bindings: AtomPub
-   * </p>
-   */
-  ObjectData create(CallContext context, String repositoryId, Properties properties,
-      String folderId, ContentStream contentStream, VersioningState versioningState,
-      List<String> policies, ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Gets the allowable actions.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  AllowableActions getAllowableActions(CallContext context, String repositoryId,
-      String objectId, ExtensionsData extension);
-
-  /**
-   * Gets an object by id.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  ObjectData getObject(CallContext context, String repositoryId, String objectId, String filter,
-      Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-      String renditionFilter, Boolean includePolicyIds, Boolean includeAcl,
-      ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Gets the properties of an object.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  Properties getProperties(CallContext context, String repositoryId, String objectId,
-      String filter, ExtensionsData extension);
-
-  /**
-   * Gets the renditions of an object.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  List<RenditionData> getRenditions(CallContext context, String repositoryId, String objectId,
-      String renditionFilter, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension);
-
-  /**
-   * Gets an object by path.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  ObjectData getObjectByPath(CallContext context, String repositoryId, String path, String filter,
-      Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-      String renditionFilter, Boolean includePolicyIds, Boolean includeAcl,
-      ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Gets the content of a document.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  ContentStream getContentStream(CallContext context, String repositoryId, String objectId,
-      String streamId, BigInteger offset, BigInteger length, ExtensionsData extension);
-
-  /**
-   * Updates the properties of an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  ObjectData updateProperties(CallContext context, String repositoryId, Holder<String> objectId,
-      Holder<String> changeToken, Properties properties, Acl acl,
-      ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Moves an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  ObjectData moveObject(CallContext context, String repositoryId, Holder<String> objectId,
-      String targetFolderId, String sourceFolderId, ExtensionsData extension,
-      ObjectInfoHolder objectInfos);
-
-  /**
-   * Deletes an object or cancels a check out. For the Web Services binding this is always an object
-   * deletion. For the AtomPub it depends on the referenced object. If it is a checked out document
-   * then the check out must be canceled. If the object is not a checked out document then the
-   * object must be deleted.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  void deleteObjectOrCancelCheckOut(CallContext context, String repositoryId, String objectId,
-      Boolean allVersions, ExtensionsData extension);
-
-  /**
-   * Deletes a folder tree.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
-      Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure,
-      ExtensionsData extension);
-
-  /**
-   * Sets a new content.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  void setContentStream(CallContext context, String repositoryId, Holder<String> objectId,
-      Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream,
-      ExtensionsData extension);
-
-  /**
-   * Deletes a content.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  void deleteContentStream(CallContext context, String repositoryId, Holder<String> objectId,
-      Holder<String> changeToken, ExtensionsData extension);
+	/**
+	 * Creates new document.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	String createDocument(CallContext context, String repositoryId, Properties properties, String folderId,
+			ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces,
+			Acl removeAces, ExtensionsData extension);
+
+	/**
+	 * Copies a document.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	String createDocumentFromSource(CallContext context, String repositoryId, String sourceId, Properties properties,
+			String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces,
+			ExtensionsData extension);
+
+	/**
+	 * Creates a new folder.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	String createFolder(CallContext context, String repositoryId, Properties properties, String folderId,
+			List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension);
+
+	/**
+	 * Create a new relationship.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	String createRelationship(CallContext context, String repositoryId, Properties properties, List<String> policies,
+			Acl addAces, Acl removeAces, ExtensionsData extension);
+
+	/**
+	 * Creates a new policy.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	String createPolicy(CallContext context, String repositoryId, Properties properties, String folderId,
+			List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension);
+
+	/**
+	 * Creates a new document, folder or policy. The property
+	 * "cmis:objectTypeId" defines the type and implicitly the base type.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub
+	 * </p>
+	 */
+	ObjectData create(CallContext context, String repositoryId, Properties properties, String folderId,
+			ContentStream contentStream, VersioningState versioningState, List<String> policies,
+			ExtensionsData extension, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Gets the allowable actions.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	AllowableActions getAllowableActions(CallContext context, String repositoryId, String objectId,
+			ExtensionsData extension);
+
+	/**
+	 * Gets an object by id.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	ObjectData getObject(CallContext context, String repositoryId, String objectId, String filter,
+			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+			Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Gets the properties of an object.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	Properties getProperties(CallContext context, String repositoryId, String objectId, String filter,
+			ExtensionsData extension);
+
+	/**
+	 * Gets the renditions of an object.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	List<RenditionData> getRenditions(CallContext context, String repositoryId, String objectId,
+			String renditionFilter, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension);
+
+	/**
+	 * Gets an object by path.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	ObjectData getObjectByPath(CallContext context, String repositoryId, String path, String filter,
+			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+			Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Gets the content of a document.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	ContentStream getContentStream(CallContext context, String repositoryId, String objectId, String streamId,
+			BigInteger offset, BigInteger length, ExtensionsData extension);
+
+	/**
+	 * Updates the properties of an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	ObjectData updateProperties(CallContext context, String repositoryId, Holder<String> objectId,
+			Holder<String> changeToken, Properties properties, Acl acl, ExtensionsData extension,
+			ObjectInfoHolder objectInfos);
+
+	/**
+	 * Moves an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	ObjectData moveObject(CallContext context, String repositoryId, Holder<String> objectId, String targetFolderId,
+			String sourceFolderId, ExtensionsData extension, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Deletes an object or cancels a check out. For the Web Services binding
+	 * this is always an object deletion. For the AtomPub it depends on the
+	 * referenced object. If it is a checked out document then the check out
+	 * must be canceled. If the object is not a checked out document then the
+	 * object must be deleted.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	void deleteObjectOrCancelCheckOut(CallContext context, String repositoryId, String objectId, Boolean allVersions,
+			ExtensionsData extension);
+
+	/**
+	 * Deletes a folder tree.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId, Boolean allVersions,
+			UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension);
+
+	/**
+	 * Sets a new content.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	void setContentStream(CallContext context, String repositoryId, Holder<String> objectId, Boolean overwriteFlag,
+			Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension);
+
+	/**
+	 * Deletes a content.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	void deleteContentStream(CallContext context, String repositoryId, Holder<String> objectId,
+			Holder<String> changeToken, ExtensionsData extension);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisPolicyService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisPolicyService.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisPolicyService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisPolicyService.java Fri Apr 16 14:14:00 2010
@@ -24,42 +24,42 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.api.ObjectData;
 
 /**
- * CMIS Policy Service interface. Please refer to the CMIS specification and the OpenCMIS
- * documentation for details.
+ * CMIS Policy Service interface. Please refer to the CMIS specification and the
+ * OpenCMIS documentation for details.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface CmisPolicyService {
 
-  /**
-   * Applies a policy to an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public ObjectData applyPolicy(CallContext context, String repositoryId, String policyId,
-      String objectId, ExtensionsData extension, ObjectInfoHolder objectInfos);
+	/**
+	 * Applies a policy to an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public ObjectData applyPolicy(CallContext context, String repositoryId, String policyId, String objectId,
+			ExtensionsData extension, ObjectInfoHolder objectInfos);
 
-  /**
-   * Removes a policy to an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public void removePolicy(CallContext context, String repositoryId, String policyId,
-      String objectId, ExtensionsData extension);
+	/**
+	 * Removes a policy to an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public void removePolicy(CallContext context, String repositoryId, String policyId, String objectId,
+			ExtensionsData extension);
 
-  /**
-   * Get all applied policies of an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public List<ObjectData> getAppliedPolicies(CallContext context, String repositoryId,
-      String objectId, String filter, ExtensionsData extension, ObjectInfoHolder objectInfos);
+	/**
+	 * Get all applied policies of an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public List<ObjectData> getAppliedPolicies(CallContext context, String repositoryId, String objectId,
+			String filter, ExtensionsData extension, ObjectInfoHolder objectInfos);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRelationshipService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRelationshipService.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRelationshipService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRelationshipService.java Fri Apr 16 14:14:00 2010
@@ -25,25 +25,24 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.RelationshipDirection;
 
 /**
- * CMIS Relationship Service interface. Please refer to the CMIS specification and the OpenCMIS
- * documentation for details.
+ * CMIS Relationship Service interface. Please refer to the CMIS specification
+ * and the OpenCMIS documentation for details.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface CmisRelationshipService {
 
-  /**
-   * Gets the relationships of an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public ObjectList getObjectRelationships(CallContext context, String repositoryId,
-      String objectId, Boolean includeSubRelationshipTypes,
-      RelationshipDirection relationshipDirection, String typeId, String filter,
-      Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount,
-      ExtensionsData extension, ObjectInfoHolder objectInfos);
+	/**
+	 * Gets the relationships of an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public ObjectList getObjectRelationships(CallContext context, String repositoryId, String objectId,
+			Boolean includeSubRelationshipTypes, RelationshipDirection relationshipDirection, String typeId,
+			String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount,
+			ExtensionsData extension, ObjectInfoHolder objectInfos);
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRepositoryService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRepositoryService.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRepositoryService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisRepositoryService.java Fri Apr 16 14:14:00 2010
@@ -28,61 +28,59 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.api.TypeDefinitionList;
 
 /**
- * CMIS Repository Service interface. Please refer to the CMIS specification and the OpenCMIS
- * documentation for details.
+ * CMIS Repository Service interface. Please refer to the CMIS specification and
+ * the OpenCMIS documentation for details.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface CmisRepositoryService {
 
-  /**
-   * Gets all repository infos.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  List<RepositoryInfo> getRepositoryInfos(CallContext context, ExtensionsData extension);
-
-  /**
-   * Gets the repository info of the specified repository.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  RepositoryInfo getRepositoryInfo(CallContext context, String repositoryId,
-      ExtensionsData extension);
-
-  /**
-   * Gets the children of the given type.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  TypeDefinitionList getTypeChildren(CallContext context, String repositoryId, String typeId,
-      Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount,
-      ExtensionsData extension);
-
-  /**
-   * Gets the descendants of the given type.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  List<TypeDefinitionContainer> getTypeDescendants(CallContext context, String repositoryId,
-      String typeId, BigInteger depth, Boolean includePropertyDefinitions, ExtensionsData extension);
-
-  /**
-   * Gets the type definition of the given type. It must return a valid type or throw an exception.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  TypeDefinition getTypeDefinition(CallContext context, String repositoryId, String typeId,
-      ExtensionsData extension);
+	/**
+	 * Gets all repository infos.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	List<RepositoryInfo> getRepositoryInfos(CallContext context, ExtensionsData extension);
+
+	/**
+	 * Gets the repository info of the specified repository.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	RepositoryInfo getRepositoryInfo(CallContext context, String repositoryId, ExtensionsData extension);
+
+	/**
+	 * Gets the children of the given type.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	TypeDefinitionList getTypeChildren(CallContext context, String repositoryId, String typeId,
+			Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension);
+
+	/**
+	 * Gets the descendants of the given type.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	List<TypeDefinitionContainer> getTypeDescendants(CallContext context, String repositoryId, String typeId,
+			BigInteger depth, Boolean includePropertyDefinitions, ExtensionsData extension);
+
+	/**
+	 * Gets the type definition of the given type. It must return a valid type
+	 * or throw an exception.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	TypeDefinition getTypeDefinition(CallContext context, String repositoryId, String typeId, ExtensionsData extension);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisVersioningService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisVersioningService.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisVersioningService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/CmisVersioningService.java Fri Apr 16 14:14:00 2010
@@ -29,72 +29,69 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
 
 /**
- * CMIS Versioning Service interface. Please refer to the CMIS specification and the OpenCMIS
- * documentation for details.
+ * CMIS Versioning Service interface. Please refer to the CMIS specification and
+ * the OpenCMIS documentation for details.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface CmisVersioningService {
 
-  /**
-   * Checks out a document.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public ObjectData checkOut(CallContext context, String repositoryId, Holder<String> objectId,
-      ExtensionsData extension, Holder<Boolean> contentCopied, ObjectInfoHolder objectInfos);
-
-  /**
-   * Cancels a check out.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   * 
-   * @see CmisObjectService#deleteObjectOrCancelCheckOut(CallContext, String, String, Boolean,
-   *      ExtensionsData)
-   */
-  public void cancelCheckOut(CallContext context, String repositoryId, String objectId,
-      ExtensionsData extension);
-
-  public ObjectData checkIn(CallContext context, String repositoryId, Holder<String> objectId,
-      Boolean major, Properties properties, ContentStream contentStream,
-      String checkinComment, List<String> policies, Acl addAces,
-      Acl removeAces, ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Gets the latest version an object.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public ObjectData getObjectOfLatestVersion(CallContext context, String repositoryId,
-      String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions,
-      IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
-      Boolean includeAcl, ExtensionsData extension, ObjectInfoHolder objectInfos);
-
-  /**
-   * Gets the properties of latest version an object.
-   * 
-   * <p>
-   * Bindings: Web Services
-   * </p>
-   */
-  public Properties getPropertiesOfLatestVersion(CallContext context, String repositoryId,
-      String versionSeriesId, Boolean major, String filter, ExtensionsData extension);
-
-  /**
-   * Gets the list of all versions of a document.
-   * 
-   * <p>
-   * Bindings: AtomPub, Web Services
-   * </p>
-   */
-  public List<ObjectData> getAllVersions(CallContext context, String repositoryId,
-      String versionSeriesId, String filter, Boolean includeAllowableActions,
-      ExtensionsData extension, ObjectInfoHolder objectInfos);
+	/**
+	 * Checks out a document.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public ObjectData checkOut(CallContext context, String repositoryId, Holder<String> objectId,
+			ExtensionsData extension, Holder<Boolean> contentCopied, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Cancels a check out.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 * 
+	 * @see CmisObjectService#deleteObjectOrCancelCheckOut(CallContext, String,
+	 *      String, Boolean, ExtensionsData)
+	 */
+	public void cancelCheckOut(CallContext context, String repositoryId, String objectId, ExtensionsData extension);
+
+	public ObjectData checkIn(CallContext context, String repositoryId, Holder<String> objectId, Boolean major,
+			Properties properties, ContentStream contentStream, String checkinComment, List<String> policies,
+			Acl addAces, Acl removeAces, ExtensionsData extension, ObjectInfoHolder objectInfos);
+
+	/**
+	 * Gets the latest version an object.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public ObjectData getObjectOfLatestVersion(CallContext context, String repositoryId, String versionSeriesId,
+			Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+			String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension,
+			ObjectInfoHolder objectInfos);
+
+	/**
+	 * Gets the properties of latest version an object.
+	 * 
+	 * <p>
+	 * Bindings: Web Services
+	 * </p>
+	 */
+	public Properties getPropertiesOfLatestVersion(CallContext context, String repositoryId, String versionSeriesId,
+			Boolean major, String filter, ExtensionsData extension);
+
+	/**
+	 * Gets the list of all versions of a document.
+	 * 
+	 * <p>
+	 * Bindings: AtomPub, Web Services
+	 * </p>
+	 */
+	public List<ObjectData> getAllVersions(CallContext context, String repositoryId, String versionSeriesId,
+			String filter, Boolean includeAllowableActions, ExtensionsData extension, ObjectInfoHolder objectInfos);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfo.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfo.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfo.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfo.java Fri Apr 16 14:14:00 2010
@@ -24,139 +24,142 @@ import java.util.List;
 import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;
 
 /**
- * This class contains information about an object. This data is used to generate the appropriate
- * links in AtomPub entries and feeds.
+ * This class contains information about an object. This data is used to
+ * generate the appropriate links in AtomPub entries and feeds.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface ObjectInfo {
 
-  /**
-   * Returns the object id.
-   */
-  String getId();
-
-  /**
-   * Returns the object name.
-   */
-  String getName();
-
-  /**
-   * Returns the creator.
-   */
-  String getCreatedBy();
-
-  /**
-   * Returns the creation date.
-   */
-  GregorianCalendar getCreationDate();
-
-  /**
-   * Returns the last modification date.
-   */
-  GregorianCalendar getLastModificationDate();
-
-  /**
-   * Returns the type id.
-   */
-  String getTypeId();
-
-  /**
-   * Returns the base type.
-   */
-  BaseTypeId getBaseType();
-
-  /**
-   * Returns <code>true</code> if the object is a document and if it is the current version or it is
-   * not versionable, <code>false</code> otherwise.
-   */
-  boolean isCurrentVersion();
-
-  /**
-   * Returns the version series id if the object is a document and it is versionable,
-   * <code>null</code> otherwise.
-   */
-  String getVersionSeriesId();
-
-  /**
-   * Returns the working copy id if the object is a document and a working copy exists,
-   * <code>null</code> otherwise.
-   */
-  String getWorkingCopyId();
-
-  /**
-   * Returns the original id of the working copy if the object is a document and a working copy,
-   * <code>null</code> otherwise.
-   */
-  String getWorkingCopyOriginalId();
-
-  /**
-   * Returns <code>true</code> if the object is a document and has content, <code>false</code>
-   * otherwise.
-   */
-  boolean hasContent();
-
-  /**
-   * Returns the content type of the content if the object is a document and has content,
-   * <code>null</code> otherwise.
-   */
-  String getContentType();
-
-  /**
-   * Returns the file name of the content if the object is a document and has content,
-   * <code>null</code> otherwise.
-   */
-  String getFileName();
-
-  /**
-   * Returns rendition information if the object has renditions, <code>null</code> otherwise.
-   */
-  List<RenditionInfo> getRenditionInfos();
-
-  /**
-   * Returns <code>true</code> if the object supports relationships even if no relationships exist,
-   * <code>false</code> otherwise.
-   */
-  boolean supportsRelationships();
-
-  /**
-   * Returns <code>true</code> if the object supports policies even if no policies are applied,
-   * <code>false</code> otherwise.
-   */
-  boolean supportsPolicies();
-
-  /**
-   * Returns <code>true</code> if the object has an ACL, <code>false</code> otherwise.
-   */
-  boolean hasAcl();
-
-  /**
-   * Returns <code>true</code> if the object has at least one parent, <code>false</code> otherwise.
-   */
-  boolean hasParent();
-
-  /**
-   * Returns <code>true</code> if the object is a folder and supports <code>getDescendants</code>,
-   * <code>false</code> otherwise.
-   */
-  boolean supportsDescendants();
-
-  /**
-   * Returns <code>true</code> if the object is a folder and supports <code>getFolderTree</code>,
-   * <code>false</code> otherwise.
-   */
-  boolean supportsFolderTree();
-
-  /**
-   * Returns the list of ids of the relationships that originate from this object, <code>null</code>
-   * is no such relationships exist.
-   */
-  List<String> getRelationshipSourceIds();
-
-  /**
-   * Returns the list of ids of the relationships that point to this object, <code>null</code> is no
-   * such relationships exist.
-   */
-  List<String> getRelationshipTargetIds();
+	/**
+	 * Returns the object id.
+	 */
+	String getId();
+
+	/**
+	 * Returns the object name.
+	 */
+	String getName();
+
+	/**
+	 * Returns the creator.
+	 */
+	String getCreatedBy();
+
+	/**
+	 * Returns the creation date.
+	 */
+	GregorianCalendar getCreationDate();
+
+	/**
+	 * Returns the last modification date.
+	 */
+	GregorianCalendar getLastModificationDate();
+
+	/**
+	 * Returns the type id.
+	 */
+	String getTypeId();
+
+	/**
+	 * Returns the base type.
+	 */
+	BaseTypeId getBaseType();
+
+	/**
+	 * Returns <code>true</code> if the object is a document and if it is the
+	 * current version or it is not versionable, <code>false</code> otherwise.
+	 */
+	boolean isCurrentVersion();
+
+	/**
+	 * Returns the version series id if the object is a document and it is
+	 * versionable, <code>null</code> otherwise.
+	 */
+	String getVersionSeriesId();
+
+	/**
+	 * Returns the working copy id if the object is a document and a working
+	 * copy exists, <code>null</code> otherwise.
+	 */
+	String getWorkingCopyId();
+
+	/**
+	 * Returns the original id of the working copy if the object is a document
+	 * and a working copy, <code>null</code> otherwise.
+	 */
+	String getWorkingCopyOriginalId();
+
+	/**
+	 * Returns <code>true</code> if the object is a document and has content,
+	 * <code>false</code> otherwise.
+	 */
+	boolean hasContent();
+
+	/**
+	 * Returns the content type of the content if the object is a document and
+	 * has content, <code>null</code> otherwise.
+	 */
+	String getContentType();
+
+	/**
+	 * Returns the file name of the content if the object is a document and has
+	 * content, <code>null</code> otherwise.
+	 */
+	String getFileName();
+
+	/**
+	 * Returns rendition information if the object has renditions,
+	 * <code>null</code> otherwise.
+	 */
+	List<RenditionInfo> getRenditionInfos();
+
+	/**
+	 * Returns <code>true</code> if the object supports relationships even if no
+	 * relationships exist, <code>false</code> otherwise.
+	 */
+	boolean supportsRelationships();
+
+	/**
+	 * Returns <code>true</code> if the object supports policies even if no
+	 * policies are applied, <code>false</code> otherwise.
+	 */
+	boolean supportsPolicies();
+
+	/**
+	 * Returns <code>true</code> if the object has an ACL, <code>false</code>
+	 * otherwise.
+	 */
+	boolean hasAcl();
+
+	/**
+	 * Returns <code>true</code> if the object has at least one parent,
+	 * <code>false</code> otherwise.
+	 */
+	boolean hasParent();
+
+	/**
+	 * Returns <code>true</code> if the object is a folder and supports
+	 * <code>getDescendants</code>, <code>false</code> otherwise.
+	 */
+	boolean supportsDescendants();
+
+	/**
+	 * Returns <code>true</code> if the object is a folder and supports
+	 * <code>getFolderTree</code>, <code>false</code> otherwise.
+	 */
+	boolean supportsFolderTree();
+
+	/**
+	 * Returns the list of ids of the relationships that originate from this
+	 * object, <code>null</code> is no such relationships exist.
+	 */
+	List<String> getRelationshipSourceIds();
+
+	/**
+	 * Returns the list of ids of the relationships that point to this object,
+	 * <code>null</code> is no such relationships exist.
+	 */
+	List<String> getRelationshipTargetIds();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoHolder.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoHolder.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoHolder.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoHolder.java Fri Apr 16 14:14:00 2010
@@ -19,21 +19,21 @@
 package org.apache.chemistry.opencmis.server.spi;
 
 /**
- * This class contains information about a set of objects. This data is used to generate the
- * appropriate links in AtomPub entries and feeds.
+ * This class contains information about a set of objects. This data is used to
+ * generate the appropriate links in AtomPub entries and feeds.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface ObjectInfoHolder {
 
-  /**
-   * Adds an object info.
-   */
-  void addObjectInfo(ObjectInfo info);
+	/**
+	 * Adds an object info.
+	 */
+	void addObjectInfo(ObjectInfo info);
 
-  /**
-   * Retrieves an object info.
-   */
-  ObjectInfo getObjectInfo(String id);
+	/**
+	 * Retrieves an object info.
+	 */
+	ObjectInfo getObjectInfo(String id);
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoImpl.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/ObjectInfoImpl.java Fri Apr 16 14:14:00 2010
@@ -31,219 +31,219 @@ import org.apache.chemistry.opencmis.com
  */
 public class ObjectInfoImpl implements ObjectInfo {
 
-  private String fId;
-  private String fName;
-  private String fCreatedBy;
-  private GregorianCalendar fCreationDate;
-  private GregorianCalendar fLastModificationDate;
-  private String fTypeId;
-  private BaseTypeId fBaseObjectTypeId;
-  private boolean fIsCurrentVersion = true;
-  private String fVersionSeriesId = null;
-  private String fWorkingCopyId = null;
-  private String fWorkingCopyOriginalId = null;
-  private boolean fHasContent = true;
-  private String fContentType = null;
-  private String fFileName = null;
-  private List<RenditionInfo> fRenditionInfos = null;
-  private boolean fSupportsRelationships = false;
-  private boolean fSupportsPolicies = false;
-  private boolean fHasAcl = false;
-  private boolean fHasParent = true;
-  private boolean fSupportsDescendants = false;
-  private boolean fSupportsFolderTree = false;
-  private List<String> fRelationshipSourceIds = null;
-  private List<String> fRelationshipTargetIds = null;
-
-  public ObjectInfoImpl() {
-  }
-
-  public ObjectInfoImpl(String id, BaseTypeId baseObjectTypeId) {
-    fId = id;
-    fBaseObjectTypeId = baseObjectTypeId;
-  }
-
-  public String getId() {
-    return fId;
-  }
-
-  public void setId(String id) {
-    fId = id;
-  }
-
-  public String getName() {
-    return fName;
-  }
-
-  public void setName(String name) {
-    fName = name;
-  }
-
-  public String getCreatedBy() {
-    return fCreatedBy;
-  }
-
-  public void setCreatedBy(String createdBy) {
-    fCreatedBy = createdBy;
-  }
-
-  public GregorianCalendar getCreationDate() {
-    return fCreationDate;
-  }
-
-  public void setCreationDate(GregorianCalendar creationDate) {
-    fCreationDate = creationDate;
-  }
-
-  public GregorianCalendar getLastModificationDate() {
-    return fLastModificationDate;
-  }
-
-  public void setLastModificationDate(GregorianCalendar lastModificationDate) {
-    fLastModificationDate = lastModificationDate;
-  }
-
-  public String getTypeId() {
-    return fTypeId;
-  }
-
-  public void setTypeId(String typeId) {
-    fTypeId = typeId;
-  }
-
-  public BaseTypeId getBaseType() {
-    return fBaseObjectTypeId;
-  }
-
-  public void setBaseType(BaseTypeId baseObjectTypeId) {
-    fBaseObjectTypeId = baseObjectTypeId;
-  }
-
-  public boolean isCurrentVersion() {
-    return fIsCurrentVersion;
-  }
-
-  public void setIsCurrentVersion(boolean currentVersion) {
-    fIsCurrentVersion = currentVersion;
-  }
-
-  public String getVersionSeriesId() {
-    return fVersionSeriesId;
-  }
-
-  public void setVersionSeriesId(String versionSeriesId) {
-    fVersionSeriesId = versionSeriesId;
-  }
-
-  public String getWorkingCopyId() {
-    return fWorkingCopyId;
-  }
-
-  public void setWorkingCopyId(String workingCopyId) {
-    fWorkingCopyId = workingCopyId;
-  }
-
-  public String getWorkingCopyOriginalId() {
-    return fWorkingCopyOriginalId;
-  }
-
-  public void setWorkingCopyOriginalId(String workingCopyOriginalId) {
-    fWorkingCopyOriginalId = workingCopyOriginalId;
-  }
-
-  public boolean hasContent() {
-    return fHasContent;
-  }
-
-  public void setHasContent(boolean hasContent) {
-    fHasContent = hasContent;
-  }
-
-  public String getContentType() {
-    return fContentType;
-  }
-
-  public void setContentType(String contentType) {
-    fContentType = contentType;
-  }
-
-  public String getFileName() {
-    return fFileName;
-  }
-
-  public void setFileName(String fileName) {
-    fFileName = fileName;
-  }
-
-  public List<RenditionInfo> getRenditionInfos() {
-    return fRenditionInfos;
-  }
-
-  public void setRenditionInfos(List<RenditionInfo> renditions) {
-    fRenditionInfos = renditions;
-  }
-
-  public boolean supportsRelationships() {
-    return fSupportsRelationships;
-  }
-
-  public void setSupportsRelationships(boolean supportsRelationships) {
-    fSupportsRelationships = supportsRelationships;
-  }
-
-  public boolean supportsPolicies() {
-    return fSupportsPolicies;
-  }
-
-  public void setSupportsPolicies(boolean supportsPolicies) {
-    fSupportsPolicies = supportsPolicies;
-  }
-
-  public boolean hasAcl() {
-    return fHasAcl;
-  }
-
-  public void setHasAcl(boolean hasAcl) {
-    fHasAcl = hasAcl;
-  }
-
-  public boolean hasParent() {
-    return fHasParent;
-  }
-
-  public void setHasParent(boolean hasParent) {
-    fHasParent = hasParent;
-  }
-
-  public boolean supportsDescendants() {
-    return fSupportsDescendants;
-  }
-
-  public void setSupportsDescendants(boolean supportsDescendants) {
-    fSupportsDescendants = supportsDescendants;
-  }
-
-  public boolean supportsFolderTree() {
-    return fSupportsFolderTree;
-  }
-
-  public void setSupportsFolderTree(boolean supportsFolderTree) {
-    fSupportsFolderTree = supportsFolderTree;
-  }
-
-  public List<String> getRelationshipSourceIds() {
-    return fRelationshipSourceIds;
-  }
-
-  public void setRelationshipSourceIds(List<String> relationshipSourceIds) {
-    fRelationshipSourceIds = relationshipSourceIds;
-  }
-
-  public List<String> getRelationshipTargetIds() {
-    return fRelationshipTargetIds;
-  }
-
-  public void setRelationshipTargetIds(List<String> relationshipTargetIds) {
-    fRelationshipTargetIds = relationshipTargetIds;
-  }
+	private String fId;
+	private String fName;
+	private String fCreatedBy;
+	private GregorianCalendar fCreationDate;
+	private GregorianCalendar fLastModificationDate;
+	private String fTypeId;
+	private BaseTypeId fBaseObjectTypeId;
+	private boolean fIsCurrentVersion = true;
+	private String fVersionSeriesId = null;
+	private String fWorkingCopyId = null;
+	private String fWorkingCopyOriginalId = null;
+	private boolean fHasContent = true;
+	private String fContentType = null;
+	private String fFileName = null;
+	private List<RenditionInfo> fRenditionInfos = null;
+	private boolean fSupportsRelationships = false;
+	private boolean fSupportsPolicies = false;
+	private boolean fHasAcl = false;
+	private boolean fHasParent = true;
+	private boolean fSupportsDescendants = false;
+	private boolean fSupportsFolderTree = false;
+	private List<String> fRelationshipSourceIds = null;
+	private List<String> fRelationshipTargetIds = null;
+
+	public ObjectInfoImpl() {
+	}
+
+	public ObjectInfoImpl(String id, BaseTypeId baseObjectTypeId) {
+		fId = id;
+		fBaseObjectTypeId = baseObjectTypeId;
+	}
+
+	public String getId() {
+		return fId;
+	}
+
+	public void setId(String id) {
+		fId = id;
+	}
+
+	public String getName() {
+		return fName;
+	}
+
+	public void setName(String name) {
+		fName = name;
+	}
+
+	public String getCreatedBy() {
+		return fCreatedBy;
+	}
+
+	public void setCreatedBy(String createdBy) {
+		fCreatedBy = createdBy;
+	}
+
+	public GregorianCalendar getCreationDate() {
+		return fCreationDate;
+	}
+
+	public void setCreationDate(GregorianCalendar creationDate) {
+		fCreationDate = creationDate;
+	}
+
+	public GregorianCalendar getLastModificationDate() {
+		return fLastModificationDate;
+	}
+
+	public void setLastModificationDate(GregorianCalendar lastModificationDate) {
+		fLastModificationDate = lastModificationDate;
+	}
+
+	public String getTypeId() {
+		return fTypeId;
+	}
+
+	public void setTypeId(String typeId) {
+		fTypeId = typeId;
+	}
+
+	public BaseTypeId getBaseType() {
+		return fBaseObjectTypeId;
+	}
+
+	public void setBaseType(BaseTypeId baseObjectTypeId) {
+		fBaseObjectTypeId = baseObjectTypeId;
+	}
+
+	public boolean isCurrentVersion() {
+		return fIsCurrentVersion;
+	}
+
+	public void setIsCurrentVersion(boolean currentVersion) {
+		fIsCurrentVersion = currentVersion;
+	}
+
+	public String getVersionSeriesId() {
+		return fVersionSeriesId;
+	}
+
+	public void setVersionSeriesId(String versionSeriesId) {
+		fVersionSeriesId = versionSeriesId;
+	}
+
+	public String getWorkingCopyId() {
+		return fWorkingCopyId;
+	}
+
+	public void setWorkingCopyId(String workingCopyId) {
+		fWorkingCopyId = workingCopyId;
+	}
+
+	public String getWorkingCopyOriginalId() {
+		return fWorkingCopyOriginalId;
+	}
+
+	public void setWorkingCopyOriginalId(String workingCopyOriginalId) {
+		fWorkingCopyOriginalId = workingCopyOriginalId;
+	}
+
+	public boolean hasContent() {
+		return fHasContent;
+	}
+
+	public void setHasContent(boolean hasContent) {
+		fHasContent = hasContent;
+	}
+
+	public String getContentType() {
+		return fContentType;
+	}
+
+	public void setContentType(String contentType) {
+		fContentType = contentType;
+	}
+
+	public String getFileName() {
+		return fFileName;
+	}
+
+	public void setFileName(String fileName) {
+		fFileName = fileName;
+	}
+
+	public List<RenditionInfo> getRenditionInfos() {
+		return fRenditionInfos;
+	}
+
+	public void setRenditionInfos(List<RenditionInfo> renditions) {
+		fRenditionInfos = renditions;
+	}
+
+	public boolean supportsRelationships() {
+		return fSupportsRelationships;
+	}
+
+	public void setSupportsRelationships(boolean supportsRelationships) {
+		fSupportsRelationships = supportsRelationships;
+	}
+
+	public boolean supportsPolicies() {
+		return fSupportsPolicies;
+	}
+
+	public void setSupportsPolicies(boolean supportsPolicies) {
+		fSupportsPolicies = supportsPolicies;
+	}
+
+	public boolean hasAcl() {
+		return fHasAcl;
+	}
+
+	public void setHasAcl(boolean hasAcl) {
+		fHasAcl = hasAcl;
+	}
+
+	public boolean hasParent() {
+		return fHasParent;
+	}
+
+	public void setHasParent(boolean hasParent) {
+		fHasParent = hasParent;
+	}
+
+	public boolean supportsDescendants() {
+		return fSupportsDescendants;
+	}
+
+	public void setSupportsDescendants(boolean supportsDescendants) {
+		fSupportsDescendants = supportsDescendants;
+	}
+
+	public boolean supportsFolderTree() {
+		return fSupportsFolderTree;
+	}
+
+	public void setSupportsFolderTree(boolean supportsFolderTree) {
+		fSupportsFolderTree = supportsFolderTree;
+	}
+
+	public List<String> getRelationshipSourceIds() {
+		return fRelationshipSourceIds;
+	}
+
+	public void setRelationshipSourceIds(List<String> relationshipSourceIds) {
+		fRelationshipSourceIds = relationshipSourceIds;
+	}
+
+	public List<String> getRelationshipTargetIds() {
+		return fRelationshipTargetIds;
+	}
+
+	public void setRelationshipTargetIds(List<String> relationshipTargetIds) {
+		fRelationshipTargetIds = relationshipTargetIds;
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfo.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfo.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfo.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfo.java Fri Apr 16 14:14:00 2010
@@ -21,36 +21,36 @@ package org.apache.chemistry.opencmis.se
 import java.math.BigInteger;
 
 /**
- * This class contains information about a rendition of an object. This data is used to generate the
- * appropriate links in AtomPub entries and feeds.
+ * This class contains information about a rendition of an object. This data is
+ * used to generate the appropriate links in AtomPub entries and feeds.
  * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
 public interface RenditionInfo {
 
-  /**
-   * Return the id of the rendition.
-   */
-  String getId();
-
-  /**
-   * Return the content type of the rendition.
-   */
-  String getContenType();
-
-  /**
-   * Return the kind of the rendition.
-   */
-  String getKind();
-
-  /**
-   * Return the title of the rendition.
-   */
-  String getTitle();
-
-  /**
-   * Return the size of the rendition in bytes.
-   */
-  BigInteger getLength();
+	/**
+	 * Return the id of the rendition.
+	 */
+	String getId();
+
+	/**
+	 * Return the content type of the rendition.
+	 */
+	String getContenType();
+
+	/**
+	 * Return the kind of the rendition.
+	 */
+	String getKind();
+
+	/**
+	 * Return the title of the rendition.
+	 */
+	String getTitle();
+
+	/**
+	 * Return the size of the rendition in bytes.
+	 */
+	BigInteger getLength();
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfosImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfosImpl.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfosImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-spi/src/main/java/org/apache/chemistry/opencmis/server/spi/RenditionInfosImpl.java Fri Apr 16 14:14:00 2010
@@ -28,49 +28,49 @@ import java.math.BigInteger;
  */
 public class RenditionInfosImpl implements RenditionInfo {
 
-  private String fId;
-  private String fContentType;
-  private String fKind;
-  private String fTitle;
-  private BigInteger fLength;
-
-  public String getId() {
-    return fId;
-  }
-
-  public void setId(String id) {
-    fId = id;
-  }
-
-  public String getContenType() {
-    return fContentType;
-  }
-
-  public void setContentType(String contentType) {
-    fContentType = contentType;
-  }
-
-  public String getKind() {
-    return fKind;
-  }
-
-  public void setKind(String kind) {
-    fKind = kind;
-  }
-
-  public String getTitle() {
-    return fTitle;
-  }
-
-  public void setTitle(String title) {
-    fTitle = title;
-  }
-
-  public BigInteger getLength() {
-    return fLength;
-  }
-
-  public void setLength(BigInteger length) {
-    fLength = length;
-  }
+	private String fId;
+	private String fContentType;
+	private String fKind;
+	private String fTitle;
+	private BigInteger fLength;
+
+	public String getId() {
+		return fId;
+	}
+
+	public void setId(String id) {
+		fId = id;
+	}
+
+	public String getContenType() {
+		return fContentType;
+	}
+
+	public void setContentType(String contentType) {
+		fContentType = contentType;
+	}
+
+	public String getKind() {
+		return fKind;
+	}
+
+	public void setKind(String kind) {
+		fKind = kind;
+	}
+
+	public String getTitle() {
+		return fTitle;
+	}
+
+	public void setTitle(String title) {
+		fTitle = title;
+	}
+
+	public BigInteger getLength() {
+		return fLength;
+	}
+
+	public void setLength(BigInteger length) {
+		fLength = length;
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AbstractServiceWrapper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AbstractServiceWrapper.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AbstractServiceWrapper.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AbstractServiceWrapper.java Fri Apr 16 14:14:00 2010
@@ -42,280 +42,288 @@ import org.apache.commons.logging.LogFac
  */
 public abstract class AbstractServiceWrapper {
 
-  private static final BigInteger MINUS_ONE = BigInteger.valueOf(-1);
+	private static final BigInteger MINUS_ONE = BigInteger.valueOf(-1);
 
-  private static final Log log = LogFactory.getLog(AbstractServiceWrapper.class);
+	private static final Log log = LogFactory.getLog(AbstractServiceWrapper.class);
 
-  private BigInteger fDefaultMaxItems = null;
-  private BigInteger fDefaultDepth = MINUS_ONE;
+	private BigInteger fDefaultMaxItems = null;
+	private BigInteger fDefaultDepth = MINUS_ONE;
 
-  /**
-   * Set the default maxItems.
-   */
-  protected void setDefaultMaxItems(BigInteger defaultMaxItems) {
-    fDefaultMaxItems = defaultMaxItems;
-  }
-
-  /**
-   * Set the default depth.
-   */
-  protected void setDefaultDepth(BigInteger defaultDepth) {
-    fDefaultDepth = defaultDepth;
-  }
-
-  /**
-   * Converts the given exception into a CMIS exception.
-   */
-  protected CmisBaseException createCmisException(Exception e) {
-    if (e == null) {
-      // should never happen
-      // if it happens its the fault of the framework...
-
-      return new CmisRuntimeException("Unknown exception!");
-    }
-    else if (e instanceof CmisBaseException) {
-      return (CmisBaseException) e;
-    }
-    else {
-      // should not happen if the connector works correctly
-      // it's alarming enough to log the exception
-      log.warn(e);
-
-      return new CmisRuntimeException(e.getMessage(), e);
-    }
-  }
-
-  /**
-   * Throws an exception if the given id is <code>null</code> or empty.
-   */
-  protected void checkId(String name, String id) {
-    if (id == null) {
-      throw new CmisInvalidArgumentException(name + " must be set!");
-    }
-
-    if (id.length() == 0) {
-      throw new CmisInvalidArgumentException(name + " must not be empty!");
-    }
-  }
-
-  /**
-   * Throws an exception if the given holder or id is <code>null</code> or empty.
-   */
-  protected void checkHolderId(String name, Holder<String> holder) {
-    if (holder == null) {
-      throw new CmisInvalidArgumentException(name + " must be set!");
-    }
-
-    checkId(name, holder.getValue());
-  }
-
-  /**
-   * Throws an exception if the repository id is <code>null</code> or empty.
-   */
-  protected void checkRepositoryId(String repositoryId) {
-    checkId("Repository Id", repositoryId);
-  }
-
-  /**
-   * Throws an exception if the given path is <code>null</code> or invalid.
-   */
-  protected void checkPath(String name, String path) {
-    if (path == null) {
-      throw new CmisInvalidArgumentException(name + " must be set!");
-    }
-
-    if (path.length() == 0) {
-      throw new CmisInvalidArgumentException(name + " must not be empty!");
-    }
-
-    if (path.charAt(0) != '/') {
-      throw new CmisInvalidArgumentException(name + " must start with '/'!");
-    }
-  }
-
-  /**
-   * Throws an exception if the given properties set is <code>null</code>.
-   */
-  protected void checkProperties(Properties properties) {
-    if (properties == null) {
-      throw new CmisInvalidArgumentException("Properties must be set!");
-    }
-  }
-
-  /**
-   * Throws an exception if the given content object is <code>null</code>.
-   */
-  protected void checkContentStream(ContentStream content) {
-    if (content == null) {
-      throw new CmisInvalidArgumentException("Content must be set!");
-    }
-  }
-
-  /**
-   * Throws an exception if the given query statement is <code>null</code> or empty.
-   */
-  protected void checkQueryStatement(String statement) {
-    if (statement == null) {
-      throw new CmisInvalidArgumentException("Statement must be set!");
-    }
-
-    if (statement.length() == 0) {
-      throw new CmisInvalidArgumentException("Statement must not be empty!");
-    }
-  }
-
-  /**
-   * Returns <code>true<code> if <code>value</code> is <code>null</code>.
-   */
-  protected Boolean getDefaultTrue(Boolean value) {
-    if (value == null) {
-      return Boolean.TRUE;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns <code>false<code> if <code>value</code> is <code>null</code>.
-   */
-  protected Boolean getDefaultFalse(Boolean value) {
-    if (value == null) {
-      return Boolean.FALSE;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>IncludeRelationships.NONE<code> if <code>value</code> is <code>null</code>.
-   */
-  protected IncludeRelationships getDefault(IncludeRelationships value) {
-    if (value == null) {
-      return IncludeRelationships.NONE;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>VersioningState.MAJOR<code> if <code>value</code> is <code>null</code>.
-   */
-  protected VersioningState getDefault(VersioningState value) {
-    if (value == null) {
-      return VersioningState.MAJOR;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>UnfileObjects.DELETE<code> if <code>value</code> is <code>null</code>.
-   */
-  protected UnfileObject getDefault(UnfileObject value) {
-    if (value == null) {
-      return UnfileObject.DELETE;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>AclPropagation.REPOSITORYDETERMINED<code> if <code>value</code> is
-   * <code>null</code>.
-   */
-  protected AclPropagation getDefault(AclPropagation value) {
-    if (value == null) {
-      return AclPropagation.REPOSITORYDETERMINED;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>RelationshipDirection.SOURCE<code> if <code>value</code> is <code>null</code>
-   * .
-   */
-  protected RelationshipDirection getDefault(RelationshipDirection value) {
-    if (value == null) {
-      return RelationshipDirection.SOURCE;
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the <code>"cmis:none"<code> if <code>value</code> is <code>null</code>.
-   */
-  protected String getDefaultRenditionFilter(String value) {
-    if ((value == null) || (value.length() == 0)) {
-      return "cmis:none";
-    }
-
-    return value;
-  }
-
-  /**
-   * Returns the default maxItems if <code>maxItems</code> == <code>null</code>, throws an exception
-   * if <code>maxItems</code> &lt; 0, returns <code>maxItems</code> otherwise.
-   */
-  protected BigInteger getMaxItems(BigInteger maxItems) {
-    if (maxItems == null) {
-      return fDefaultMaxItems;
-    }
-
-    if (maxItems.compareTo(BigInteger.ZERO) == -1) {
-      throw new CmisInvalidArgumentException("maxItems must not be negative!");
-    }
-
-    return maxItems;
-  }
-
-  /**
-   * Returns 0 if <code>skipCount</code> == <code>null</code>, throws an exception if
-   * <code>skipCount</code> &lt; 0, returns <code>skipCount</code> otherwise.
-   */
-  protected BigInteger getSkipCount(BigInteger skipCount) {
-    if (skipCount == null) {
-      return BigInteger.ZERO;
-    }
-
-    if (skipCount.compareTo(BigInteger.ZERO) == -1) {
-      throw new CmisInvalidArgumentException("skipCount must not be negative!");
-    }
-
-    return skipCount;
-  }
-
-  /**
-   * Checks the depth parameter if it complies with CMIS specification and returns the default value
-   * if <code>depth</code> is <code>null</code>.
-   */
-  protected BigInteger getDepth(BigInteger depth) {
-    if (depth == null) {
-      return fDefaultDepth;
-    }
-
-    if (depth.compareTo(BigInteger.ZERO) == 0) {
-      throw new CmisInvalidArgumentException("depth must not be 0!");
-    }
-
-    if (depth.compareTo(MINUS_ONE) == -1) {
-      throw new CmisInvalidArgumentException("depth must not be <-1!");
-    }
-
-    return depth;
-  }
-
-  /**
-   * Throws an exception if the given value is negative.
-   */
-  protected void checkNullOrPositive(String name, BigInteger value) {
-    if (value == null) {
-      return;
-    }
-
-    if (value.compareTo(BigInteger.ZERO) == -1) {
-      throw new CmisInvalidArgumentException(name + " must not be negative!");
-    }
-  }
+	/**
+	 * Set the default maxItems.
+	 */
+	protected void setDefaultMaxItems(BigInteger defaultMaxItems) {
+		fDefaultMaxItems = defaultMaxItems;
+	}
+
+	/**
+	 * Set the default depth.
+	 */
+	protected void setDefaultDepth(BigInteger defaultDepth) {
+		fDefaultDepth = defaultDepth;
+	}
+
+	/**
+	 * Converts the given exception into a CMIS exception.
+	 */
+	protected CmisBaseException createCmisException(Exception e) {
+		if (e == null) {
+			// should never happen
+			// if it happens its the fault of the framework...
+
+			return new CmisRuntimeException("Unknown exception!");
+		} else if (e instanceof CmisBaseException) {
+			return (CmisBaseException) e;
+		} else {
+			// should not happen if the connector works correctly
+			// it's alarming enough to log the exception
+			log.warn(e);
+
+			return new CmisRuntimeException(e.getMessage(), e);
+		}
+	}
+
+	/**
+	 * Throws an exception if the given id is <code>null</code> or empty.
+	 */
+	protected void checkId(String name, String id) {
+		if (id == null) {
+			throw new CmisInvalidArgumentException(name + " must be set!");
+		}
+
+		if (id.length() == 0) {
+			throw new CmisInvalidArgumentException(name + " must not be empty!");
+		}
+	}
+
+	/**
+	 * Throws an exception if the given holder or id is <code>null</code> or
+	 * empty.
+	 */
+	protected void checkHolderId(String name, Holder<String> holder) {
+		if (holder == null) {
+			throw new CmisInvalidArgumentException(name + " must be set!");
+		}
+
+		checkId(name, holder.getValue());
+	}
+
+	/**
+	 * Throws an exception if the repository id is <code>null</code> or empty.
+	 */
+	protected void checkRepositoryId(String repositoryId) {
+		checkId("Repository Id", repositoryId);
+	}
+
+	/**
+	 * Throws an exception if the given path is <code>null</code> or invalid.
+	 */
+	protected void checkPath(String name, String path) {
+		if (path == null) {
+			throw new CmisInvalidArgumentException(name + " must be set!");
+		}
+
+		if (path.length() == 0) {
+			throw new CmisInvalidArgumentException(name + " must not be empty!");
+		}
+
+		if (path.charAt(0) != '/') {
+			throw new CmisInvalidArgumentException(name + " must start with '/'!");
+		}
+	}
+
+	/**
+	 * Throws an exception if the given properties set is <code>null</code>.
+	 */
+	protected void checkProperties(Properties properties) {
+		if (properties == null) {
+			throw new CmisInvalidArgumentException("Properties must be set!");
+		}
+	}
+
+	/**
+	 * Throws an exception if the given content object is <code>null</code>.
+	 */
+	protected void checkContentStream(ContentStream content) {
+		if (content == null) {
+			throw new CmisInvalidArgumentException("Content must be set!");
+		}
+	}
+
+	/**
+	 * Throws an exception if the given query statement is <code>null</code> or
+	 * empty.
+	 */
+	protected void checkQueryStatement(String statement) {
+		if (statement == null) {
+			throw new CmisInvalidArgumentException("Statement must be set!");
+		}
+
+		if (statement.length() == 0) {
+			throw new CmisInvalidArgumentException("Statement must not be empty!");
+		}
+	}
+
+	/**
+	 * Returns <code>true<code> if <code>value</code> is <code>null</code>.
+	 */
+	protected Boolean getDefaultTrue(Boolean value) {
+		if (value == null) {
+			return Boolean.TRUE;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns <code>false<code> if <code>value</code> is <code>null</code>.
+	 */
+	protected Boolean getDefaultFalse(Boolean value) {
+		if (value == null) {
+			return Boolean.FALSE;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the <code>IncludeRelationships.NONE<code> if <code>value</code>
+	 * is <code>null</code>.
+	 */
+	protected IncludeRelationships getDefault(IncludeRelationships value) {
+		if (value == null) {
+			return IncludeRelationships.NONE;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the <code>VersioningState.MAJOR<code> if <code>value</code> is
+	 * <code>null</code>.
+	 */
+	protected VersioningState getDefault(VersioningState value) {
+		if (value == null) {
+			return VersioningState.MAJOR;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the <code>UnfileObjects.DELETE<code> if <code>value</code> is
+	 * <code>null</code>.
+	 */
+	protected UnfileObject getDefault(UnfileObject value) {
+		if (value == null) {
+			return UnfileObject.DELETE;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the
+	 * <code>AclPropagation.REPOSITORYDETERMINED<code> if <code>value</code> is
+	 * <code>null</code>.
+	 */
+	protected AclPropagation getDefault(AclPropagation value) {
+		if (value == null) {
+			return AclPropagation.REPOSITORYDETERMINED;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the
+	 * <code>RelationshipDirection.SOURCE<code> if <code>value</code> is
+	 * <code>null</code> .
+	 */
+	protected RelationshipDirection getDefault(RelationshipDirection value) {
+		if (value == null) {
+			return RelationshipDirection.SOURCE;
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the <code>"cmis:none"<code> if <code>value</code> is
+	 * <code>null</code>.
+	 */
+	protected String getDefaultRenditionFilter(String value) {
+		if ((value == null) || (value.length() == 0)) {
+			return "cmis:none";
+		}
+
+		return value;
+	}
+
+	/**
+	 * Returns the default maxItems if <code>maxItems</code> ==
+	 * <code>null</code>, throws an exception if <code>maxItems</code> &lt; 0,
+	 * returns <code>maxItems</code> otherwise.
+	 */
+	protected BigInteger getMaxItems(BigInteger maxItems) {
+		if (maxItems == null) {
+			return fDefaultMaxItems;
+		}
+
+		if (maxItems.compareTo(BigInteger.ZERO) == -1) {
+			throw new CmisInvalidArgumentException("maxItems must not be negative!");
+		}
+
+		return maxItems;
+	}
+
+	/**
+	 * Returns 0 if <code>skipCount</code> == <code>null</code>, throws an
+	 * exception if <code>skipCount</code> &lt; 0, returns
+	 * <code>skipCount</code> otherwise.
+	 */
+	protected BigInteger getSkipCount(BigInteger skipCount) {
+		if (skipCount == null) {
+			return BigInteger.ZERO;
+		}
+
+		if (skipCount.compareTo(BigInteger.ZERO) == -1) {
+			throw new CmisInvalidArgumentException("skipCount must not be negative!");
+		}
+
+		return skipCount;
+	}
+
+	/**
+	 * Checks the depth parameter if it complies with CMIS specification and
+	 * returns the default value if <code>depth</code> is <code>null</code>.
+	 */
+	protected BigInteger getDepth(BigInteger depth) {
+		if (depth == null) {
+			return fDefaultDepth;
+		}
+
+		if (depth.compareTo(BigInteger.ZERO) == 0) {
+			throw new CmisInvalidArgumentException("depth must not be 0!");
+		}
+
+		if (depth.compareTo(MINUS_ONE) == -1) {
+			throw new CmisInvalidArgumentException("depth must not be <-1!");
+		}
+
+		return depth;
+	}
+
+	/**
+	 * Throws an exception if the given value is negative.
+	 */
+	protected void checkNullOrPositive(String name, BigInteger value) {
+		if (value == null) {
+			return;
+		}
+
+		if (value.compareTo(BigInteger.ZERO) == -1) {
+			throw new CmisInvalidArgumentException(name + " must not be negative!");
+		}
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AclServiceWrapper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AclServiceWrapper.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AclServiceWrapper.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/AclServiceWrapper.java Fri Apr 16 14:14:00 2010
@@ -32,90 +32,87 @@ import org.apache.chemistry.opencmis.ser
  */
 public class AclServiceWrapper extends AbstractServiceWrapper implements CmisAclService {
 
-  private CmisAclService fService;
+	private CmisAclService fService;
 
-  /**
-   * Constructor.
-   * 
-   * @param service
-   *          the real service object
-   */
-  public AclServiceWrapper(CmisAclService service) {
-    if (service == null) {
-      throw new IllegalArgumentException("Service must be set!");
-    }
-
-    fService = service;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisAclService#applyAcl(org.apache.opencmis.server.spi.CallContext
-   * , java.lang.String, java.lang.String, org.apache.opencmis.commons.provider.AccessControlList,
-   * org.apache.opencmis.commons.enums.AclPropagation)
-   */
-  public Acl applyAcl(CallContext context, String repositoryId, String objectId,
-      Acl aces, AclPropagation aclPropagation) {
-    checkRepositoryId(repositoryId);
-    checkId("Object Id", objectId);
-    aclPropagation = getDefault(aclPropagation);
-
-    try {
-      return fService.applyAcl(context, repositoryId, objectId, aces, aclPropagation);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisAclService#applyAcl(org.apache.opencmis.server.spi.CallContext
-   * , java.lang.String, java.lang.String, org.apache.opencmis.commons.provider.AccessControlList,
-   * org.apache.opencmis.commons.provider.AccessControlList,
-   * org.apache.opencmis.commons.enums.AclPropagation,
-   * org.apache.opencmis.commons.api.ExtensionsData)
-   */
-  public Acl applyAcl(CallContext context, String repositoryId, String objectId,
-      Acl addAces, Acl removeAces, AclPropagation aclPropagation,
-      ExtensionsData extension) {
-    checkRepositoryId(repositoryId);
-    checkId("Object Id", objectId);
-    aclPropagation = getDefault(aclPropagation);
-
-    try {
-      return fService.applyAcl(context, repositoryId, objectId, addAces, removeAces,
-          aclPropagation, extension);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisAclService#getAcl(org.apache.opencmis.server.spi.CallContext
-   * , java.lang.String, java.lang.String, java.lang.Boolean,
-   * org.apache.opencmis.commons.api.ExtensionsData)
-   */
-  public Acl getAcl(CallContext context, String repositoryId, String objectId,
-      Boolean onlyBasicPermissions, ExtensionsData extension) {
-    checkRepositoryId(repositoryId);
-    checkId("Object Id", objectId);
-    onlyBasicPermissions = getDefaultTrue(onlyBasicPermissions);
-
-    try {
-      return fService.getAcl(context, repositoryId, objectId, onlyBasicPermissions, extension);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
+	/**
+	 * Constructor.
+	 * 
+	 * @param service
+	 *            the real service object
+	 */
+	public AclServiceWrapper(CmisAclService service) {
+		if (service == null) {
+			throw new IllegalArgumentException("Service must be set!");
+		}
+
+		fService = service;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisAclService#applyAcl(org.apache.opencmis
+	 * .server.spi.CallContext , java.lang.String, java.lang.String,
+	 * org.apache.opencmis.commons.provider.AccessControlList,
+	 * org.apache.opencmis.commons.enums.AclPropagation)
+	 */
+	public Acl applyAcl(CallContext context, String repositoryId, String objectId, Acl aces,
+			AclPropagation aclPropagation) {
+		checkRepositoryId(repositoryId);
+		checkId("Object Id", objectId);
+		aclPropagation = getDefault(aclPropagation);
+
+		try {
+			return fService.applyAcl(context, repositoryId, objectId, aces, aclPropagation);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisAclService#applyAcl(org.apache.opencmis
+	 * .server.spi.CallContext , java.lang.String, java.lang.String,
+	 * org.apache.opencmis.commons.provider.AccessControlList,
+	 * org.apache.opencmis.commons.provider.AccessControlList,
+	 * org.apache.opencmis.commons.enums.AclPropagation,
+	 * org.apache.opencmis.commons.api.ExtensionsData)
+	 */
+	public Acl applyAcl(CallContext context, String repositoryId, String objectId, Acl addAces, Acl removeAces,
+			AclPropagation aclPropagation, ExtensionsData extension) {
+		checkRepositoryId(repositoryId);
+		checkId("Object Id", objectId);
+		aclPropagation = getDefault(aclPropagation);
+
+		try {
+			return fService.applyAcl(context, repositoryId, objectId, addAces, removeAces, aclPropagation, extension);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisAclService#getAcl(org.apache.opencmis
+	 * .server.spi.CallContext , java.lang.String, java.lang.String,
+	 * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData)
+	 */
+	public Acl getAcl(CallContext context, String repositoryId, String objectId, Boolean onlyBasicPermissions,
+			ExtensionsData extension) {
+		checkRepositoryId(repositoryId);
+		checkId("Object Id", objectId);
+		onlyBasicPermissions = getDefaultTrue(onlyBasicPermissions);
+
+		try {
+			return fService.getAcl(context, repositoryId, objectId, onlyBasicPermissions, extension);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/DiscoveryServiceWrapper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/DiscoveryServiceWrapper.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/DiscoveryServiceWrapper.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/DiscoveryServiceWrapper.java Fri Apr 16 14:14:00 2010
@@ -36,82 +36,80 @@ import org.apache.chemistry.opencmis.ser
  */
 public class DiscoveryServiceWrapper extends AbstractServiceWrapper implements CmisDiscoveryService {
 
-  private CmisDiscoveryService fService;
+	private CmisDiscoveryService fService;
 
-  /**
-   * Constructor.
-   * 
-   * @param service
-   *          the real service object
-   * @param defaultMaxItems
-   *          default value for <code>maxItems</code> parameters
-   */
-  public DiscoveryServiceWrapper(CmisDiscoveryService service, BigInteger defaultMaxItems) {
-    if (service == null) {
-      throw new IllegalArgumentException("Service must be set!");
-    }
-
-    fService = service;
-    setDefaultMaxItems(defaultMaxItems);
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisDiscoveryService#getContentChanges(org.apache.opencmis.server
-   * .spi.CallContext, java.lang.String, org.apache.opencmis.commons.provider.Holder,
-   * java.lang.Boolean, java.lang.String, java.lang.Boolean, java.lang.Boolean,
-   * java.math.BigInteger, org.apache.opencmis.commons.api.ExtensionsData,
-   * org.apache.opencmis.server.spi.ObjectInfoHolder)
-   */
-  public ObjectList getContentChanges(CallContext context, String repositoryId,
-      Holder<String> changeLogToken, Boolean includeProperties, String filter,
-      Boolean includePolicyIds, Boolean includeAcl, BigInteger maxItems, ExtensionsData extension,
-      ObjectInfoHolder objectInfos) {
-    checkRepositoryId(repositoryId);
-    includeProperties = getDefaultFalse(includeProperties);
-    includePolicyIds = getDefaultFalse(includePolicyIds);
-    includeAcl = getDefaultFalse(includeAcl);
-    maxItems = getMaxItems(maxItems);
-
-    try {
-      return fService.getContentChanges(context, repositoryId, changeLogToken, includeProperties,
-          filter, includePolicyIds, includeAcl, maxItems, extension, objectInfos);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @seeorg.apache.opencmis.server.spi.CmisDiscoveryService#query(org.apache.opencmis.server.spi.
-   * CallContext, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.Boolean,
-   * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String, java.math.BigInteger,
-   * java.math.BigInteger, org.apache.opencmis.commons.api.ExtensionsData)
-   */
-  public ObjectList query(CallContext context, String repositoryId, String statement,
-      Boolean searchAllVersions, Boolean includeAllowableActions,
-      IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems,
-      BigInteger skipCount, ExtensionsData extension) {
-    checkRepositoryId(repositoryId);
-    checkQueryStatement(statement);
-    searchAllVersions = getDefaultFalse(searchAllVersions);
-    includeAllowableActions = getDefaultFalse(includeAllowableActions);
-    includeRelationships = getDefault(includeRelationships);
-    renditionFilter = getDefaultRenditionFilter(renditionFilter);
-    maxItems = getMaxItems(maxItems);
-    skipCount = getSkipCount(skipCount);
-
-    try {
-      return fService.query(context, repositoryId, statement, searchAllVersions,
-          includeAllowableActions, includeRelationships, renditionFilter, maxItems, skipCount,
-          extension);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
+	/**
+	 * Constructor.
+	 * 
+	 * @param service
+	 *            the real service object
+	 * @param defaultMaxItems
+	 *            default value for <code>maxItems</code> parameters
+	 */
+	public DiscoveryServiceWrapper(CmisDiscoveryService service, BigInteger defaultMaxItems) {
+		if (service == null) {
+			throw new IllegalArgumentException("Service must be set!");
+		}
+
+		fService = service;
+		setDefaultMaxItems(defaultMaxItems);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisDiscoveryService#getContentChanges
+	 * (org.apache.opencmis.server .spi.CallContext, java.lang.String,
+	 * org.apache.opencmis.commons.provider.Holder, java.lang.Boolean,
+	 * java.lang.String, java.lang.Boolean, java.lang.Boolean,
+	 * java.math.BigInteger, org.apache.opencmis.commons.api.ExtensionsData,
+	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
+	 */
+	public ObjectList getContentChanges(CallContext context, String repositoryId, Holder<String> changeLogToken,
+			Boolean includeProperties, String filter, Boolean includePolicyIds, Boolean includeAcl,
+			BigInteger maxItems, ExtensionsData extension, ObjectInfoHolder objectInfos) {
+		checkRepositoryId(repositoryId);
+		includeProperties = getDefaultFalse(includeProperties);
+		includePolicyIds = getDefaultFalse(includePolicyIds);
+		includeAcl = getDefaultFalse(includeAcl);
+		maxItems = getMaxItems(maxItems);
+
+		try {
+			return fService.getContentChanges(context, repositoryId, changeLogToken, includeProperties, filter,
+					includePolicyIds, includeAcl, maxItems, extension, objectInfos);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @seeorg.apache.opencmis.server.spi.CmisDiscoveryService#query(org.apache.
+	 * opencmis.server.spi. CallContext, java.lang.String, java.lang.String,
+	 * java.lang.Boolean, java.lang.Boolean,
+	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+	 * java.math.BigInteger, java.math.BigInteger,
+	 * org.apache.opencmis.commons.api.ExtensionsData)
+	 */
+	public ObjectList query(CallContext context, String repositoryId, String statement, Boolean searchAllVersions,
+			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+		checkRepositoryId(repositoryId);
+		checkQueryStatement(statement);
+		searchAllVersions = getDefaultFalse(searchAllVersions);
+		includeAllowableActions = getDefaultFalse(includeAllowableActions);
+		includeRelationships = getDefault(includeRelationships);
+		renditionFilter = getDefaultRenditionFilter(renditionFilter);
+		maxItems = getMaxItems(maxItems);
+		skipCount = getSkipCount(skipCount);
+
+		try {
+			return fService.query(context, repositoryId, statement, searchAllVersions, includeAllowableActions,
+					includeRelationships, renditionFilter, maxItems, skipCount, extension);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/MultiFilingServiceWrapper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/MultiFilingServiceWrapper.java?rev=934896&r1=934895&r2=934896&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/MultiFilingServiceWrapper.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/MultiFilingServiceWrapper.java Fri Apr 16 14:14:00 2010
@@ -30,71 +30,69 @@ import org.apache.chemistry.opencmis.ser
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
-public class MultiFilingServiceWrapper extends AbstractServiceWrapper implements
-    CmisMultiFilingService {
+public class MultiFilingServiceWrapper extends AbstractServiceWrapper implements CmisMultiFilingService {
 
-  private CmisMultiFilingService fService;
+	private CmisMultiFilingService fService;
 
-  /**
-   * Constructor.
-   * 
-   * @param service
-   *          the real service object
-   */
-  public MultiFilingServiceWrapper(CmisMultiFilingService service) {
-    if (service == null) {
-      throw new IllegalArgumentException("Service must be set!");
-    }
-
-    fService = service;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisMultiFilingService#addObjectToFolder(org.apache.opencmis
-   * .server.spi.CallContext, java.lang.String, java.lang.String, java.lang.String,
-   * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
-   * org.apache.opencmis.server.spi.ObjectInfoHolder)
-   */
-  public ObjectData addObjectToFolder(CallContext context, String repositoryId, String objectId,
-      String folderId, Boolean allVersions, ExtensionsData extension, ObjectInfoHolder objectInfos) {
-    checkRepositoryId(repositoryId);
-    checkId("Object Id", objectId);
-    checkId("Folder Id", folderId);
-    allVersions = getDefaultTrue(allVersions);
-
-    try {
-      return fService.addObjectToFolder(context, repositoryId, objectId, folderId, allVersions,
-          extension, objectInfos);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see
-   * org.apache.opencmis.server.spi.CmisMultiFilingService#removeObjectFromFolder(org.apache.opencmis
-   * .server.spi.CallContext, java.lang.String, java.lang.String, java.lang.String,
-   * org.apache.opencmis.commons.api.ExtensionsData,
-   * org.apache.opencmis.server.spi.ObjectInfoHolder)
-   */
-  public ObjectData removeObjectFromFolder(CallContext context, String repositoryId,
-      String objectId, String folderId, ExtensionsData extension, ObjectInfoHolder objectInfos) {
-    checkRepositoryId(repositoryId);
-    checkId("Object Id", objectId);
-
-    try {
-      return fService.removeObjectFromFolder(context, repositoryId, objectId, folderId, extension,
-          objectInfos);
-    }
-    catch (Exception e) {
-      throw createCmisException(e);
-    }
-  }
+	/**
+	 * Constructor.
+	 * 
+	 * @param service
+	 *            the real service object
+	 */
+	public MultiFilingServiceWrapper(CmisMultiFilingService service) {
+		if (service == null) {
+			throw new IllegalArgumentException("Service must be set!");
+		}
+
+		fService = service;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisMultiFilingService#addObjectToFolder
+	 * (org.apache.opencmis .server.spi.CallContext, java.lang.String,
+	 * java.lang.String, java.lang.String, java.lang.Boolean,
+	 * org.apache.opencmis.commons.api.ExtensionsData,
+	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
+	 */
+	public ObjectData addObjectToFolder(CallContext context, String repositoryId, String objectId, String folderId,
+			Boolean allVersions, ExtensionsData extension, ObjectInfoHolder objectInfos) {
+		checkRepositoryId(repositoryId);
+		checkId("Object Id", objectId);
+		checkId("Folder Id", folderId);
+		allVersions = getDefaultTrue(allVersions);
+
+		try {
+			return fService.addObjectToFolder(context, repositoryId, objectId, folderId, allVersions, extension,
+					objectInfos);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.server.spi.CmisMultiFilingService#removeObjectFromFolder
+	 * (org.apache.opencmis .server.spi.CallContext, java.lang.String,
+	 * java.lang.String, java.lang.String,
+	 * org.apache.opencmis.commons.api.ExtensionsData,
+	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
+	 */
+	public ObjectData removeObjectFromFolder(CallContext context, String repositoryId, String objectId,
+			String folderId, ExtensionsData extension, ObjectInfoHolder objectInfos) {
+		checkRepositoryId(repositoryId);
+		checkId("Object Id", objectId);
+
+		try {
+			return fService.removeObjectFromFolder(context, repositoryId, objectId, folderId, extension, objectInfos);
+		} catch (Exception e) {
+			throw createCmisException(e);
+		}
+	}
 
 }