chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r936922 [9/18] - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/ chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/c...
Date Thu, 22 Apr 2010 16:04:22 GMT
Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/ObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/ObjectServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/ObjectServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/ObjectServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -22,203 +22,203 @@ import org.apache.chemistry.opencmis.com
 
 public class ObjectServiceImpl extends AbstractLocalService implements ObjectService {
 
-	/**
-	 * Constructor.
-	 */
-	public ObjectServiceImpl(Session session, CmisServiceFactory factory) {
-		setSession(session);
-		setServiceFactory(factory);
-	}
-
-	public String createDocument(String repositoryId, Properties properties, String folderId,
-			ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces,
-			Acl removeAces, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.createDocument(repositoryId, properties, folderId, contentStream, versioningState, policies,
-					addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
-			String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces,
-			ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.createDocumentFromSource(repositoryId, sourceId, properties, folderId, versioningState,
-					policies, addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies,
-			Acl addAces, Acl removeAces, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.createFolder(repositoryId, properties, folderId, policies, addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public String createPolicy(String repositoryId, Properties properties, String folderId, List<String> policies,
-			Acl addAces, Acl removeAces, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.createPolicy(repositoryId, properties, folderId, policies, addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public String createRelationship(String repositoryId, Properties properties, List<String> policies, Acl addAces,
-			Acl removeAces, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.createRelationship(repositoryId, properties, policies, addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
-			ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.deleteContentStream(repositoryId, objectId, changeToken, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void deleteObject(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.deleteObject(repositoryId, objectId, allVersions, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions,
-			UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.deleteTree(repositoryId, folderId, allVersions, unfileObjects, continueOnFailure, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getAllowableActions(repositoryId, objectId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset,
-			BigInteger length, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getContentStream(repositoryId, objectId, streamId, offset, length, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
-			Boolean includeAcl, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getObject(repositoryId, objectId, filter, includeAllowableActions, includeRelationships,
-					renditionFilter, includePolicyIds, includeAcl, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
-			Boolean includeAcl, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getObjectByPath(repositoryId, path, filter, includeAllowableActions, includeRelationships,
-					renditionFilter, includePolicyIds, includeAcl, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public Properties getProperties(String repositoryId, String objectId, String filter, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getProperties(repositoryId, objectId, filter, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public List<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getRenditions(repositoryId, objectId, renditionFilter, maxItems, skipCount, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId,
-			ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.moveObject(repositoryId, objectId, targetFolderId, sourceFolderId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag,
-			Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.setContentStream(repositoryId, objectId, overwriteFlag, changeToken, contentStream, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
-			Properties properties, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.updateProperties(repositoryId, objectId, changeToken, properties, extension);
-		} finally {
-			service.close();
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public ObjectServiceImpl(Session session, CmisServiceFactory factory) {
+        setSession(session);
+        setServiceFactory(factory);
+    }
+
+    public String createDocument(String repositoryId, Properties properties, String folderId,
+            ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces,
+            Acl removeAces, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.createDocument(repositoryId, properties, folderId, contentStream, versioningState, policies,
+                    addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
+            String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces,
+            ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.createDocumentFromSource(repositoryId, sourceId, properties, folderId, versioningState,
+                    policies, addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies,
+            Acl addAces, Acl removeAces, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.createFolder(repositoryId, properties, folderId, policies, addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public String createPolicy(String repositoryId, Properties properties, String folderId, List<String> policies,
+            Acl addAces, Acl removeAces, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.createPolicy(repositoryId, properties, folderId, policies, addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public String createRelationship(String repositoryId, Properties properties, List<String> policies, Acl addAces,
+            Acl removeAces, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.createRelationship(repositoryId, properties, policies, addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
+            ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.deleteContentStream(repositoryId, objectId, changeToken, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void deleteObject(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.deleteObject(repositoryId, objectId, allVersions, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions,
+            UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.deleteTree(repositoryId, folderId, allVersions, unfileObjects, continueOnFailure, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getAllowableActions(repositoryId, objectId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset,
+            BigInteger length, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getContentStream(repositoryId, objectId, streamId, offset, length, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
+            Boolean includeAcl, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getObject(repositoryId, objectId, filter, includeAllowableActions, includeRelationships,
+                    renditionFilter, includePolicyIds, includeAcl, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
+            Boolean includeAcl, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getObjectByPath(repositoryId, path, filter, includeAllowableActions, includeRelationships,
+                    renditionFilter, includePolicyIds, includeAcl, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public Properties getProperties(String repositoryId, String objectId, String filter, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getProperties(repositoryId, objectId, filter, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public List<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getRenditions(repositoryId, objectId, renditionFilter, maxItems, skipCount, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId,
+            ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.moveObject(repositoryId, objectId, targetFolderId, sourceFolderId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag,
+            Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.setContentStream(repositoryId, objectId, overwriteFlag, changeToken, contentStream, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
+            Properties properties, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.updateProperties(repositoryId, objectId, changeToken, properties, extension);
+        } finally {
+            service.close();
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/PolicyServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/PolicyServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/PolicyServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/PolicyServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -11,42 +11,42 @@ import org.apache.chemistry.opencmis.com
 
 public class PolicyServiceImpl extends AbstractLocalService implements PolicyService {
 
-	/**
-	 * Constructor.
-	 */
-	public PolicyServiceImpl(Session session, CmisServiceFactory factory) {
-		setSession(session);
-		setServiceFactory(factory);
-	}
-
-	public void applyPolicy(String repositoryId, String policyId, String objectId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.applyPolicy(repositoryId, policyId, objectId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public List<ObjectData> getAppliedPolicies(String repositoryId, String objectId, String filter,
-			ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getAppliedPolicies(repositoryId, objectId, filter, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void removePolicy(String repositoryId, String policyId, String objectId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.removePolicy(repositoryId, policyId, objectId, extension);
-		} finally {
-			service.close();
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public PolicyServiceImpl(Session session, CmisServiceFactory factory) {
+        setSession(session);
+        setServiceFactory(factory);
+    }
+
+    public void applyPolicy(String repositoryId, String policyId, String objectId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.applyPolicy(repositoryId, policyId, objectId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public List<ObjectData> getAppliedPolicies(String repositoryId, String objectId, String filter,
+            ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getAppliedPolicies(repositoryId, objectId, filter, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void removePolicy(String repositoryId, String policyId, String objectId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.removePolicy(repositoryId, policyId, objectId, extension);
+        } finally {
+            service.close();
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RelationshipServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RelationshipServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RelationshipServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RelationshipServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -12,24 +12,24 @@ import org.apache.chemistry.opencmis.com
 
 public class RelationshipServiceImpl extends AbstractLocalService implements RelationshipService {
 
-	/**
-	 * Constructor.
-	 */
-	public RelationshipServiceImpl(Session session, CmisServiceFactory factory) {
-		setSession(session);
-		setServiceFactory(factory);
-	}
+    /**
+     * Constructor.
+     */
+    public RelationshipServiceImpl(Session session, CmisServiceFactory factory) {
+        setSession(session);
+        setServiceFactory(factory);
+    }
 
-	public ObjectList getObjectRelationships(String repositoryId, String objectId, Boolean includeSubRelationshipTypes,
-			RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
+    public ObjectList getObjectRelationships(String repositoryId, String objectId, Boolean includeSubRelationshipTypes,
+            RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
 
-		try {
-			return service.getObjectRelationships(repositoryId, objectId, includeSubRelationshipTypes,
-					relationshipDirection, typeId, filter, includeAllowableActions, maxItems, skipCount, extension);
-		} finally {
-			service.close();
-		}
-	}
+        try {
+            return service.getObjectRelationships(repositoryId, objectId, includeSubRelationshipTypes,
+                    relationshipDirection, typeId, filter, includeAllowableActions, maxItems, skipCount, extension);
+        } finally {
+            service.close();
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RepositoryServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RepositoryServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RepositoryServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -18,65 +18,65 @@ import org.apache.chemistry.opencmis.com
  */
 public class RepositoryServiceImpl extends AbstractLocalService implements RepositoryService {
 
-	/**
-	 * Constructor.
-	 */
-	public RepositoryServiceImpl(Session session, CmisServiceFactory factory) {
-		setSession(session);
-		setServiceFactory(factory);
-	}
-
-	public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getRepositoryInfo(repositoryId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension) {
-		CmisService service = getService(null);
-
-		try {
-			return service.getRepositoryInfos(extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getTypeDefinition(repositoryId, typeId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getTypeChildren(repositoryId, typeId, includePropertyDefinitions, maxItems, skipCount,
-					extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth,
-			Boolean includePropertyDefinitions, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getTypeDescendants(repositoryId, typeId, depth, includePropertyDefinitions, extension);
-		} finally {
-			service.close();
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public RepositoryServiceImpl(Session session, CmisServiceFactory factory) {
+        setSession(session);
+        setServiceFactory(factory);
+    }
+
+    public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getRepositoryInfo(repositoryId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension) {
+        CmisService service = getService(null);
+
+        try {
+            return service.getRepositoryInfos(extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getTypeDefinition(repositoryId, typeId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getTypeChildren(repositoryId, typeId, includePropertyDefinitions, maxItems, skipCount,
+                    extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth,
+            Boolean includePropertyDefinitions, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getTypeDescendants(repositoryId, typeId, depth, includePropertyDefinitions, extension);
+        } finally {
+            service.close();
+        }
+    }
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/VersioningServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/VersioningServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/VersioningServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/VersioningServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -16,83 +16,83 @@ import org.apache.chemistry.opencmis.com
 
 public class VersioningServiceImpl extends AbstractLocalService implements VersioningService {
 
-	/**
-	 * Constructor.
-	 */
-	public VersioningServiceImpl(Session session, CmisServiceFactory factory) {
-		setSession(session);
-		setServiceFactory(factory);
-	}
-
-	public void cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.cancelCheckOut(repositoryId, objectId, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void checkIn(String repositoryId, Holder<String> objectId, Boolean major, Properties properties,
-			ContentStream contentStream, String checkinComment, List<String> policies, Acl addAces, Acl removeAces,
-			ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.checkIn(repositoryId, objectId, major, properties, contentStream, checkinComment, policies,
-					addAces, removeAces, extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData extension,
-			Holder<Boolean> contentCopied) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			service.checkOut(repositoryId, objectId, extension, contentCopied);
-		} finally {
-			service.close();
-		}
-	}
-
-	public List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter,
-			Boolean includeAllowableActions, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getAllVersions(repositoryId, objectId, versionSeriesId, filter, includeAllowableActions,
-					extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
-			Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getObjectOfLatestVersion(repositoryId, objectId, versionSeriesId, major, filter,
-					includeAllowableActions, includeRelationships, renditionFilter, includePolicyIds, includeAcl,
-					extension);
-		} finally {
-			service.close();
-		}
-	}
-
-	public Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
-			Boolean major, String filter, ExtensionsData extension) {
-		CmisService service = getService(repositoryId);
-
-		try {
-			return service.getPropertiesOfLatestVersion(repositoryId, objectId, versionSeriesId, major, filter,
-					extension);
-		} finally {
-			service.close();
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public VersioningServiceImpl(Session session, CmisServiceFactory factory) {
+        setSession(session);
+        setServiceFactory(factory);
+    }
+
+    public void cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.cancelCheckOut(repositoryId, objectId, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void checkIn(String repositoryId, Holder<String> objectId, Boolean major, Properties properties,
+            ContentStream contentStream, String checkinComment, List<String> policies, Acl addAces, Acl removeAces,
+            ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.checkIn(repositoryId, objectId, major, properties, contentStream, checkinComment, policies,
+                    addAces, removeAces, extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData extension,
+            Holder<Boolean> contentCopied) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            service.checkOut(repositoryId, objectId, extension, contentCopied);
+        } finally {
+            service.close();
+        }
+    }
+
+    public List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter,
+            Boolean includeAllowableActions, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getAllVersions(repositoryId, objectId, versionSeriesId, filter, includeAllowableActions,
+                    extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+            Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getObjectOfLatestVersion(repositoryId, objectId, versionSeriesId, major, filter,
+                    includeAllowableActions, includeRelationships, renditionFilter, includePolicyIds, includeAcl,
+                    extension);
+        } finally {
+            service.close();
+        }
+    }
+
+    public Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+            Boolean major, String filter, ExtensionsData extension) {
+        CmisService service = getService(repositoryId);
+
+        try {
+            return service.getPropertiesOfLatestVersion(repositoryId, objectId, versionSeriesId, major, filter,
+                    extension);
+        } finally {
+            service.close();
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java Thu Apr 22 16:04:19 2010
@@ -45,62 +45,62 @@ import org.apache.chemistry.opencmis.com
  */
 public abstract class AbstractWebServicesService {
 
-	private Session fSession;
+    private Session fSession;
 
-	/**
-	 * Sets the current session.
-	 */
-	protected void setSession(Session session) {
-		fSession = session;
-	}
-
-	/**
-	 * Gets the current session.
-	 */
-	protected Session getSession() {
-		return fSession;
-	}
-
-	/**
-	 * Converts a Web Services Exception into a CMIS Client exception.
-	 */
-	protected CmisBaseException convertException(CmisException ex) {
-		if ((ex == null) || (ex.getFaultInfo() == null)) {
-			return new CmisRuntimeException("CmisException has no fault!");
-		}
-
-		String msg = ex.getFaultInfo().getMessage();
-		BigInteger code = ex.getFaultInfo().getCode();
-
-		switch (ex.getFaultInfo().getType()) {
-		case CONSTRAINT:
-			return new CmisConstraintException(msg, code);
-		case CONTENT_ALREADY_EXISTS:
-			return new CmisContentAlreadyExistsException(msg, code);
-		case FILTER_NOT_VALID:
-			return new CmisFilterNotValidException(msg, code);
-		case INVALID_ARGUMENT:
-			return new CmisInvalidArgumentException(msg, code);
-		case NAME_CONSTRAINT_VIOLATION:
-			return new CmisNameConstraintViolationException(msg, code);
-		case NOT_SUPPORTED:
-			return new CmisNotSupportedException(msg, code);
-		case OBJECT_NOT_FOUND:
-			return new CmisObjectNotFoundException(msg, code);
-		case PERMISSION_DENIED:
-			return new CmisPermissionDeniedException(msg, code);
-		case RUNTIME:
-			return new CmisRuntimeException(msg, code);
-		case STORAGE:
-			return new CmisStorageException(msg, code);
-		case STREAM_NOT_SUPPORTED:
-			return new CmisStreamNotSupportedException(msg, code);
-		case UPDATE_CONFLICT:
-			return new CmisUpdateConflictException(msg, code);
-		case VERSIONING:
-			return new CmisVersioningException(msg, code);
-		}
+    /**
+     * Sets the current session.
+     */
+    protected void setSession(Session session) {
+        fSession = session;
+    }
+
+    /**
+     * Gets the current session.
+     */
+    protected Session getSession() {
+        return fSession;
+    }
+
+    /**
+     * Converts a Web Services Exception into a CMIS Client exception.
+     */
+    protected CmisBaseException convertException(CmisException ex) {
+        if ((ex == null) || (ex.getFaultInfo() == null)) {
+            return new CmisRuntimeException("CmisException has no fault!");
+        }
+
+        String msg = ex.getFaultInfo().getMessage();
+        BigInteger code = ex.getFaultInfo().getCode();
+
+        switch (ex.getFaultInfo().getType()) {
+        case CONSTRAINT:
+            return new CmisConstraintException(msg, code);
+        case CONTENT_ALREADY_EXISTS:
+            return new CmisContentAlreadyExistsException(msg, code);
+        case FILTER_NOT_VALID:
+            return new CmisFilterNotValidException(msg, code);
+        case INVALID_ARGUMENT:
+            return new CmisInvalidArgumentException(msg, code);
+        case NAME_CONSTRAINT_VIOLATION:
+            return new CmisNameConstraintViolationException(msg, code);
+        case NOT_SUPPORTED:
+            return new CmisNotSupportedException(msg, code);
+        case OBJECT_NOT_FOUND:
+            return new CmisObjectNotFoundException(msg, code);
+        case PERMISSION_DENIED:
+            return new CmisPermissionDeniedException(msg, code);
+        case RUNTIME:
+            return new CmisRuntimeException(msg, code);
+        case STORAGE:
+            return new CmisStorageException(msg, code);
+        case STREAM_NOT_SUPPORTED:
+            return new CmisStreamNotSupportedException(msg, code);
+        case UPDATE_CONFLICT:
+            return new CmisUpdateConflictException(msg, code);
+        case VERSIONING:
+            return new CmisVersioningException(msg, code);
+        }
 
-		return new CmisRuntimeException("Unknown exception[" + ex.getFaultInfo().getType().value() + "]: " + msg);
-	}
+        return new CmisRuntimeException("Unknown exception[" + ex.getFaultInfo().getType().value() + "]: " + msg);
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AclServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AclServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AclServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AclServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -38,57 +38,57 @@ import org.apache.chemistry.opencmis.com
  */
 public class AclServiceImpl extends AbstractWebServicesService implements AclService {
 
-	private final PortProvider fPortProvider;
+    private final PortProvider fPortProvider;
 
-	/**
-	 * Constructor.
-	 */
-	public AclServiceImpl(Session session, PortProvider portProvider) {
-		setSession(session);
-		fPortProvider = portProvider;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.ACLService#applyACL(java.lang.String,
-	 * java.lang.String, org.apache.opencmis.client.provider.AccessControlList,
-	 * org.apache.opencmis.client.provider.AccessControlList,
-	 * org.apache.opencmis.commons.enums.ACLPropagation,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public Acl applyAcl(String repositoryId, String objectId, Acl addACEs, Acl removeACEs,
-			AclPropagation aclPropagation, ExtensionsData extension) {
-		ACLServicePort port = fPortProvider.getACLServicePort();
-
-		try {
-			return convert(port.applyACL(repositoryId, objectId, convert(addACEs), convert(removeACEs), convert(
-					EnumACLPropagation.class, aclPropagation), convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.ACLService#getACL(java.lang.String,
-	 * java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, ExtensionsData extension) {
-		ACLServicePort port = fPortProvider.getACLServicePort();
-
-		try {
-			return convert(port.getACL(repositoryId, objectId, onlyBasicPermissions, convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public AclServiceImpl(Session session, PortProvider portProvider) {
+        setSession(session);
+        fPortProvider = portProvider;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.ACLService#applyACL(java.lang.String,
+     * java.lang.String, org.apache.opencmis.client.provider.AccessControlList,
+     * org.apache.opencmis.client.provider.AccessControlList,
+     * org.apache.opencmis.commons.enums.ACLPropagation,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public Acl applyAcl(String repositoryId, String objectId, Acl addACEs, Acl removeACEs,
+            AclPropagation aclPropagation, ExtensionsData extension) {
+        ACLServicePort port = fPortProvider.getACLServicePort();
+
+        try {
+            return convert(port.applyACL(repositoryId, objectId, convert(addACEs), convert(removeACEs), convert(
+                    EnumACLPropagation.class, aclPropagation), convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.ACLService#getACL(java.lang.String,
+     * java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, ExtensionsData extension) {
+        ACLServicePort port = fPortProvider.getACLServicePort();
+
+        try {
+            return convert(port.getACL(repositoryId, objectId, onlyBasicPermissions, convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CmisWebServicesSpi.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CmisWebServicesSpi.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CmisWebServicesSpi.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/CmisWebServicesSpi.java Thu Apr 22 16:04:19 2010
@@ -38,89 +38,89 @@ import org.apache.commons.logging.LogFac
  */
 public class CmisWebServicesSpi implements CmisSpiFactory, CmisSpi {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private static Log log = LogFactory.getLog(CmisWebServicesSpi.class);
+    private static Log log = LogFactory.getLog(CmisWebServicesSpi.class);
 
-	private RepositoryService repositoryService;
-	private NavigationService navigationService;
-	private ObjectService objectService;
-	private VersioningService versioningService;
-	private DiscoveryService discoveryService;
-	private MultiFilingService multiFilingService;
-	private RelationshipService relationshipService;
-	private PolicyService policyService;
-	private AclService aclService;
-
-	/**
-	 * Constructor.
-	 */
-	public CmisWebServicesSpi() {
-	}
-
-	public CmisSpi getSpiInstance(Session session) {
-		if (log.isDebugEnabled()) {
-			log.debug("Initializing Web Services SPI...");
-		}
-
-		PortProvider portProvider = new PortProvider(session);
-
-		repositoryService = new RepositoryServiceImpl(session, portProvider);
-		navigationService = new NavigationServiceImpl(session, portProvider);
-		objectService = new ObjectServiceImpl(session, portProvider);
-		versioningService = new VersioningServiceImpl(session, portProvider);
-		discoveryService = new DiscoveryServiceImpl(session, portProvider);
-		multiFilingService = new MultiFilingServiceImpl(session, portProvider);
-		relationshipService = new RelationshipServiceImpl(session, portProvider);
-		policyService = new PolicyServiceImpl(session, portProvider);
-		aclService = new AclServiceImpl(session, portProvider);
-
-		return this;
-	}
-
-	public RepositoryService getRepositoryService() {
-		return repositoryService;
-	}
-
-	public NavigationService getNavigationService() {
-		return navigationService;
-	}
-
-	public ObjectService getObjectService() {
-		return objectService;
-	}
-
-	public DiscoveryService getDiscoveryService() {
-		return discoveryService;
-	}
-
-	public VersioningService getVersioningService() {
-		return versioningService;
-	}
-
-	public MultiFilingService getMultiFilingService() {
-		return multiFilingService;
-	}
-
-	public RelationshipService getRelationshipService() {
-		return relationshipService;
-	}
-
-	public PolicyService getPolicyService() {
-		return policyService;
-	}
-
-	public AclService getAclService() {
-		return aclService;
-	}
-
-	public void clearAllCaches() {
-	}
-
-	public void clearRepositoryCache(String repositoryId) {
-	}
-
-	public void close() {
-		// no-op for Web Services
-	}
+    private RepositoryService repositoryService;
+    private NavigationService navigationService;
+    private ObjectService objectService;
+    private VersioningService versioningService;
+    private DiscoveryService discoveryService;
+    private MultiFilingService multiFilingService;
+    private RelationshipService relationshipService;
+    private PolicyService policyService;
+    private AclService aclService;
+
+    /**
+     * Constructor.
+     */
+    public CmisWebServicesSpi() {
+    }
+
+    public CmisSpi getSpiInstance(Session session) {
+        if (log.isDebugEnabled()) {
+            log.debug("Initializing Web Services SPI...");
+        }
+
+        PortProvider portProvider = new PortProvider(session);
+
+        repositoryService = new RepositoryServiceImpl(session, portProvider);
+        navigationService = new NavigationServiceImpl(session, portProvider);
+        objectService = new ObjectServiceImpl(session, portProvider);
+        versioningService = new VersioningServiceImpl(session, portProvider);
+        discoveryService = new DiscoveryServiceImpl(session, portProvider);
+        multiFilingService = new MultiFilingServiceImpl(session, portProvider);
+        relationshipService = new RelationshipServiceImpl(session, portProvider);
+        policyService = new PolicyServiceImpl(session, portProvider);
+        aclService = new AclServiceImpl(session, portProvider);
+
+        return this;
+    }
+
+    public RepositoryService getRepositoryService() {
+        return repositoryService;
+    }
+
+    public NavigationService getNavigationService() {
+        return navigationService;
+    }
+
+    public ObjectService getObjectService() {
+        return objectService;
+    }
+
+    public DiscoveryService getDiscoveryService() {
+        return discoveryService;
+    }
+
+    public VersioningService getVersioningService() {
+        return versioningService;
+    }
+
+    public MultiFilingService getMultiFilingService() {
+        return multiFilingService;
+    }
+
+    public RelationshipService getRelationshipService() {
+        return relationshipService;
+    }
+
+    public PolicyService getPolicyService() {
+        return policyService;
+    }
+
+    public AclService getAclService() {
+        return aclService;
+    }
+
+    public void clearAllCaches() {
+    }
+
+    public void clearRepositoryCache(String repositoryId) {
+    }
+
+    public void close() {
+        // no-op for Web Services
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/DiscoveryServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/DiscoveryServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/DiscoveryServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/DiscoveryServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -44,71 +44,71 @@ import org.apache.chemistry.opencmis.com
  */
 public class DiscoveryServiceImpl extends AbstractWebServicesService implements DiscoveryService {
 
-	private final PortProvider fPortProvider;
+    private final PortProvider fPortProvider;
 
-	/**
-	 * Constructor.
-	 */
-	public DiscoveryServiceImpl(Session session, PortProvider portProvider) {
-		setSession(session);
-		fPortProvider = portProvider;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.DiscoveryService#getContentChanges
-	 * (java.lang.String, org.apache.opencmis.client.provider.Holder,
-	 * java.lang.Boolean, java.lang.String, java.lang.Boolean,
-	 * java.lang.Boolean, java.math.BigInteger,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public ObjectList getContentChanges(String repositoryId, Holder<String> changeLogToken, Boolean includeProperties,
-			String filter, Boolean includePolicyIds, Boolean includeACL, BigInteger maxItems, ExtensionsData extension) {
-		DiscoveryServicePort port = fPortProvider.getDiscoveryServicePort();
-
-		try {
-			javax.xml.ws.Holder<String> portChangeLokToken = convertHolder(changeLogToken);
-			javax.xml.ws.Holder<CmisObjectListType> portObjects = new javax.xml.ws.Holder<CmisObjectListType>();
-
-			port.getContentChanges(repositoryId, portChangeLokToken, includeProperties, filter, includePolicyIds,
-					includeACL, maxItems, convert(extension), portObjects);
-
-			setHolderValue(portChangeLokToken, changeLogToken);
-
-			return convert(portObjects.value);
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.DiscoveryService#query(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.client.provider.ExtensionsData)
-	 */
-	public ObjectList query(String repositoryId, String statement, Boolean searchAllVersions,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		DiscoveryServicePort port = fPortProvider.getDiscoveryServicePort();
-
-		try {
-			return convert(port.query(repositoryId, statement, searchAllVersions, includeAllowableActions, convert(
-					EnumIncludeRelationships.class, includeRelationships), renditionFilter, maxItems, skipCount,
-					convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public DiscoveryServiceImpl(Session session, PortProvider portProvider) {
+        setSession(session);
+        fPortProvider = portProvider;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.DiscoveryService#getContentChanges
+     * (java.lang.String, org.apache.opencmis.client.provider.Holder,
+     * java.lang.Boolean, java.lang.String, java.lang.Boolean,
+     * java.lang.Boolean, java.math.BigInteger,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public ObjectList getContentChanges(String repositoryId, Holder<String> changeLogToken, Boolean includeProperties,
+            String filter, Boolean includePolicyIds, Boolean includeACL, BigInteger maxItems, ExtensionsData extension) {
+        DiscoveryServicePort port = fPortProvider.getDiscoveryServicePort();
+
+        try {
+            javax.xml.ws.Holder<String> portChangeLokToken = convertHolder(changeLogToken);
+            javax.xml.ws.Holder<CmisObjectListType> portObjects = new javax.xml.ws.Holder<CmisObjectListType>();
+
+            port.getContentChanges(repositoryId, portChangeLokToken, includeProperties, filter, includePolicyIds,
+                    includeACL, maxItems, convert(extension), portObjects);
+
+            setHolderValue(portChangeLokToken, changeLogToken);
+
+            return convert(portObjects.value);
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.DiscoveryService#query(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.client.provider.ExtensionsData)
+     */
+    public ObjectList query(String repositoryId, String statement, Boolean searchAllVersions,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        DiscoveryServicePort port = fPortProvider.getDiscoveryServicePort();
+
+        try {
+            return convert(port.query(repositoryId, statement, searchAllVersions, includeAllowableActions, convert(
+                    EnumIncludeRelationships.class, includeRelationships), renditionFilter, maxItems, skipCount,
+                    convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/MultiFilingServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/MultiFilingServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/MultiFilingServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/MultiFilingServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -37,63 +37,63 @@ import org.apache.chemistry.opencmis.com
  */
 public class MultiFilingServiceImpl extends AbstractWebServicesService implements MultiFilingService {
 
-	private final PortProvider fPortProvider;
+    private final PortProvider fPortProvider;
 
-	/**
-	 * Constructor.
-	 */
-	public MultiFilingServiceImpl(Session session, PortProvider portProvider) {
-		setSession(session);
-		fPortProvider = portProvider;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.MultiFilingService#addObjectToFolder
-	 * (java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public void addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions,
-			ExtensionsData extension) {
-		MultiFilingServicePort port = fPortProvider.getMultiFilingServicePort();
-
-		try {
-			javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);
-
-			port.addObjectToFolder(repositoryId, objectId, folderId, allVersions, portExtension);
-
-			setExtensionValues(portExtension, extension);
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.MultiFilingService#removeObjectFromFolder
-	 * (java.lang.String, java.lang.String, java.lang.String,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public void removeObjectFromFolder(String repositoryId, String objectId, String folderId, ExtensionsData extension) {
-		MultiFilingServicePort port = fPortProvider.getMultiFilingServicePort();
-
-		try {
-			javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);
-
-			port.removeObjectFromFolder(repositoryId, objectId, folderId, portExtension);
-
-			setExtensionValues(portExtension, extension);
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public MultiFilingServiceImpl(Session session, PortProvider portProvider) {
+        setSession(session);
+        fPortProvider = portProvider;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.MultiFilingService#addObjectToFolder
+     * (java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public void addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions,
+            ExtensionsData extension) {
+        MultiFilingServicePort port = fPortProvider.getMultiFilingServicePort();
+
+        try {
+            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);
+
+            port.addObjectToFolder(repositoryId, objectId, folderId, allVersions, portExtension);
+
+            setExtensionValues(portExtension, extension);
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.MultiFilingService#removeObjectFromFolder
+     * (java.lang.String, java.lang.String, java.lang.String,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public void removeObjectFromFolder(String repositoryId, String objectId, String folderId, ExtensionsData extension) {
+        MultiFilingServicePort port = fPortProvider.getMultiFilingServicePort();
+
+        try {
+            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);
+
+            port.removeObjectFromFolder(repositoryId, objectId, folderId, portExtension);
+
+            setExtensionValues(portExtension, extension);
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/NavigationServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/NavigationServiceImpl.java?rev=936922&r1=936921&r2=936922&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/NavigationServiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/NavigationServiceImpl.java Thu Apr 22 16:04:19 2010
@@ -48,203 +48,203 @@ import org.apache.chemistry.opencmis.com
  */
 public class NavigationServiceImpl extends AbstractWebServicesService implements NavigationService {
 
-	private final PortProvider fPortProvider;
+    private final PortProvider fPortProvider;
 
-	/**
-	 * Constructor.
-	 */
-	public NavigationServiceImpl(Session session, PortProvider portProvider) {
-		setSession(session);
-		fPortProvider = portProvider;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getChildren(java
-	 * .lang.String, java.lang.String, java.lang.String, java.lang.String,
-	 * java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, java.math.BigInteger, java.math.BigInteger,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			return convert(port.getChildren(repositoryId, folderId, filter, orderBy, includeAllowableActions, convert(
-					EnumIncludeRelationships.class, includeRelationships), renditionFilter, includePathSegment,
-					maxItems, skipCount, convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getDescendants(
-	 * java.lang.String, java.lang.String, java.math.BigInteger,
-	 * java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public List<ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth,
-			String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			List<CmisObjectInFolderContainerType> containerList = port.getDescendants(repositoryId, folderId, depth,
-					filter, includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
-					renditionFilter, includePathSegment, convert(extension));
-
-			// no list?
-			if (containerList == null) {
-				return null;
-			}
-
-			// convert list
-			List<ObjectInFolderContainer> result = new ArrayList<ObjectInFolderContainer>();
-			for (CmisObjectInFolderContainerType container : containerList) {
-				result.add(convert(container));
-			}
-
-			return result;
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getFolderParent
-	 * (java.lang.String, java.lang.String, java.lang.String,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			return convert(port.getFolderParent(repositoryId, folderId, filter, convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getFolderTree(java
-	 * .lang.String, java.lang.String, java.math.BigInteger, java.lang.String,
-	 * java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public List<ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth,
-			String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			List<CmisObjectInFolderContainerType> containerList = port.getFolderTree(repositoryId, folderId, depth,
-					filter, includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
-					renditionFilter, includePathSegment, convert(extension));
-
-			// no list?
-			if (containerList == null) {
-				return null;
-			}
-
-			// convert list
-			List<ObjectInFolderContainer> result = new ArrayList<ObjectInFolderContainer>();
-			for (CmisObjectInFolderContainerType container : containerList) {
-				result.add(convert(container));
-			}
-
-			return result;
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getObjectParents
-	 * (java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			Boolean includeRelativePathSegment, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			List<CmisObjectParentsType> parentsList = port.getObjectParents(repositoryId, objectId, filter,
-					includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
-					renditionFilter, includeRelativePathSegment, convert(extension));
-
-			// no list?
-			if (parentsList == null) {
-				return null;
-			}
-
-			// convert list
-			List<ObjectParentData> result = new ArrayList<ObjectParentData>();
-			for (CmisObjectParentsType parent : parentsList) {
-				result.add(convert(parent));
-			}
-
-			return result;
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.client.provider.NavigationService#getCheckedOutDocs
-	 * (java.lang.String, java.lang.String, java.lang.String, java.lang.String,
-	 * java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.math.BigInteger, java.math.BigInteger,
-	 * org.apache.opencmis.client.provider.ExtensionsData)
-	 */
-	public ObjectList getCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		NavigationServicePort port = fPortProvider.getNavigationServicePort();
-
-		try {
-			return convert(port.getCheckedOutDocs(repositoryId, folderId, filter, orderBy, includeAllowableActions,
-					convert(EnumIncludeRelationships.class, includeRelationships), renditionFilter, maxItems,
-					skipCount, convert(extension)));
-		} catch (CmisException e) {
-			throw convertException(e);
-		} catch (Exception e) {
-			throw new CmisRuntimeException("Error: " + e.getMessage(), e);
-		}
-	}
+    /**
+     * Constructor.
+     */
+    public NavigationServiceImpl(Session session, PortProvider portProvider) {
+        setSession(session);
+        fPortProvider = portProvider;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getChildren(java
+     * .lang.String, java.lang.String, java.lang.String, java.lang.String,
+     * java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, java.math.BigInteger, java.math.BigInteger,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            return convert(port.getChildren(repositoryId, folderId, filter, orderBy, includeAllowableActions, convert(
+                    EnumIncludeRelationships.class, includeRelationships), renditionFilter, includePathSegment,
+                    maxItems, skipCount, convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getDescendants(
+     * java.lang.String, java.lang.String, java.math.BigInteger,
+     * java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public List<ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth,
+            String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            List<CmisObjectInFolderContainerType> containerList = port.getDescendants(repositoryId, folderId, depth,
+                    filter, includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
+                    renditionFilter, includePathSegment, convert(extension));
+
+            // no list?
+            if (containerList == null) {
+                return null;
+            }
+
+            // convert list
+            List<ObjectInFolderContainer> result = new ArrayList<ObjectInFolderContainer>();
+            for (CmisObjectInFolderContainerType container : containerList) {
+                result.add(convert(container));
+            }
+
+            return result;
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getFolderParent
+     * (java.lang.String, java.lang.String, java.lang.String,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            return convert(port.getFolderParent(repositoryId, folderId, filter, convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getFolderTree(java
+     * .lang.String, java.lang.String, java.math.BigInteger, java.lang.String,
+     * java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public List<ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth,
+            String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            List<CmisObjectInFolderContainerType> containerList = port.getFolderTree(repositoryId, folderId, depth,
+                    filter, includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
+                    renditionFilter, includePathSegment, convert(extension));
+
+            // no list?
+            if (containerList == null) {
+                return null;
+            }
+
+            // convert list
+            List<ObjectInFolderContainer> result = new ArrayList<ObjectInFolderContainer>();
+            for (CmisObjectInFolderContainerType container : containerList) {
+                result.add(convert(container));
+            }
+
+            return result;
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getObjectParents
+     * (java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            Boolean includeRelativePathSegment, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            List<CmisObjectParentsType> parentsList = port.getObjectParents(repositoryId, objectId, filter,
+                    includeAllowableActions, convert(EnumIncludeRelationships.class, includeRelationships),
+                    renditionFilter, includeRelativePathSegment, convert(extension));
+
+            // no list?
+            if (parentsList == null) {
+                return null;
+            }
+
+            // convert list
+            List<ObjectParentData> result = new ArrayList<ObjectParentData>();
+            for (CmisObjectParentsType parent : parentsList) {
+                result.add(convert(parent));
+            }
+
+            return result;
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.client.provider.NavigationService#getCheckedOutDocs
+     * (java.lang.String, java.lang.String, java.lang.String, java.lang.String,
+     * java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.math.BigInteger, java.math.BigInteger,
+     * org.apache.opencmis.client.provider.ExtensionsData)
+     */
+    public ObjectList getCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        NavigationServicePort port = fPortProvider.getNavigationServicePort();
+
+        try {
+            return convert(port.getCheckedOutDocs(repositoryId, folderId, filter, orderBy, includeAllowableActions,
+                    convert(EnumIncludeRelationships.class, includeRelationships), renditionFilter, maxItems,
+                    skipCount, convert(extension)));
+        } catch (CmisException e) {
+            throw convertException(e);
+        } catch (Exception e) {
+            throw new CmisRuntimeException("Error: " + e.getMessage(), e);
+        }
+    }
 }



Mime
View raw message