Author: fmui
Date: Thu Jan 20 15:07:13 2011
New Revision: 1061334
URL: http://svn.apache.org/viewvc?rev=1061334&view=rev
Log:
some cosmetic code clean up
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AclServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/CmisLocalSpi.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/DiscoveryServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/MultiFilingServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/NavigationServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/ObjectServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/PolicyServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RelationshipServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/RepositoryServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/VersioningServiceImpl.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/DiscoveryService.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/PolicyService.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/RelationshipService.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/VersioningService.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.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/atompub/LinkCache.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/LinkCache.java
Thu Jan 20 15:07:13 2011
@@ -34,9 +34,6 @@ import org.apache.chemistry.opencmis.com
/**
* Link cache.
- *
- * @author <a href="mailto:[email protected]">Florian Müller</a>
- *
*/
public class LinkCache implements Serializable {
@@ -46,11 +43,11 @@ public class LinkCache implements Serial
private static final int CACHE_SIZE_TYPES = 100;
private static final int CACHE_SIZE_OBJECTS = 400;
- private Cache fLinkCache;
- private Cache fTypeLinkCache;
- private Cache fCollectionLinkCache;
- private Cache fTemplateCache;
- private Cache fRepositoryLinkCache;
+ private Cache linkCache;
+ private Cache typeLinkCache;
+ private Cache collectionLinkCache;
+ private Cache templateCache;
+ private Cache repositoryLinkCache;
/**
* Constructor.
@@ -71,8 +68,8 @@ public class LinkCache implements Serial
objCount = CACHE_SIZE_OBJECTS;
}
- fLinkCache = new CacheImpl("Link Cache");
- fLinkCache.initialize(new String[] {
+ linkCache = new CacheImpl("Link Cache");
+ linkCache.initialize(new String[] {
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
LruCacheLevelImpl.class.getName() + " " +
LruCacheLevelImpl.MAX_ENTRIES + "=" + objCount, // id
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=16", // rel
@@ -80,8 +77,8 @@ public class LinkCache implements Serial
+ MapCacheLevelImpl.SINGLE_VALUE + "=true" // type
});
- fTypeLinkCache = new CacheImpl("Type Link Cache");
- fTypeLinkCache.initialize(new String[] {
+ typeLinkCache = new CacheImpl("Type Link Cache");
+ typeLinkCache.initialize(new String[] {
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
LruCacheLevelImpl.class.getName() + " " +
LruCacheLevelImpl.MAX_ENTRIES + "=" + typeCount, // id
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=16", // rel
@@ -89,20 +86,20 @@ public class LinkCache implements Serial
+ MapCacheLevelImpl.SINGLE_VALUE + "=true"// type
});
- fCollectionLinkCache = new CacheImpl("Collection Link Cache");
- fCollectionLinkCache.initialize(new String[] {
+ collectionLinkCache = new CacheImpl("Collection Link Cache");
+ collectionLinkCache.initialize(new String[] {
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=8" // collection
});
- fTemplateCache = new CacheImpl("URI Template Cache");
- fTemplateCache.initialize(new String[] {
+ templateCache = new CacheImpl("URI Template Cache");
+ templateCache.initialize(new String[] {
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=6" // type
});
- fRepositoryLinkCache = new CacheImpl("Repository Link Cache");
- fRepositoryLinkCache.initialize(new String[] {
+ repositoryLinkCache = new CacheImpl("Repository Link Cache");
+ repositoryLinkCache.initialize(new String[] {
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
MapCacheLevelImpl.class.getName() + " " +
MapCacheLevelImpl.CAPACITY + "=6" // rel
});
@@ -112,21 +109,21 @@ public class LinkCache implements Serial
* Adds a link.
*/
public void addLink(String repositoryId, String id, String rel, String
type, String link) {
- fLinkCache.put(link, repositoryId, id, rel, type);
+ linkCache.put(link, repositoryId, id, rel, type);
}
/**
* Removes all links of an object.
*/
public void removeLinks(String repositoryId, String id) {
- fLinkCache.remove(repositoryId, id);
+ linkCache.remove(repositoryId, id);
}
/**
* Gets a link.
*/
public String getLink(String repositoryId, String id, String rel, String
type) {
- return (String) fLinkCache.get(repositoryId, id, rel, type);
+ return (String) linkCache.get(repositoryId, id, rel, type);
}
/**
@@ -140,84 +137,77 @@ public class LinkCache implements Serial
* Checks a link.
*/
public int checkLink(String repositoryId, String id, String rel, String
type) {
- return fLinkCache.check(repositoryId, id, rel, type);
+ return linkCache.check(repositoryId, id, rel, type);
}
/**
* Locks the link cache.
*/
public void lockLinks() {
- fLinkCache.writeLock();
+ linkCache.writeLock();
}
/**
* Unlocks the link cache.
*/
public void unlockLinks() {
- fLinkCache.writeUnlock();
+ linkCache.writeUnlock();
}
/**
* Adds a type link.
*/
public void addTypeLink(String repositoryId, String id, String rel, String
type, String link) {
- fTypeLinkCache.put(link, repositoryId, id, rel, type);
+ typeLinkCache.put(link, repositoryId, id, rel, type);
}
/**
* Removes all links of a type.
*/
public void removeTypeLinks(String repositoryId, String id) {
- fTypeLinkCache.remove(repositoryId, id);
+ typeLinkCache.remove(repositoryId, id);
}
/**
* Gets a type link.
*/
public String getTypeLink(String repositoryId, String id, String rel,
String type) {
- return (String) fTypeLinkCache.get(repositoryId, id, rel, type);
- }
-
- /**
- * Gets a type link.
- */
- public String getTypeLink(String repositoryId, String id, String rel) {
- return getLink(repositoryId, id, rel, null);
+ return (String) typeLinkCache.get(repositoryId, id, rel, type);
}
/**
* Locks the type link cache.
*/
public void lockTypeLinks() {
- fTypeLinkCache.writeLock();
+ typeLinkCache.writeLock();
}
/**
* Unlocks the type link cache.
*/
public void unlockTypeLinks() {
- fTypeLinkCache.writeUnlock();
+ typeLinkCache.writeUnlock();
}
/**
* Adds a collection.
*/
public void addCollection(String repositoryId, String collection, String
link) {
- fCollectionLinkCache.put(link, repositoryId, collection);
+ collectionLinkCache.put(link, repositoryId, collection);
}
/**
* Gets a collection.
*/
public String getCollection(String repositoryId, String collection) {
- return (String) fCollectionLinkCache.get(repositoryId, collection);
+ return (String) collectionLinkCache.get(repositoryId, collection);
}
/**
* Adds an URI template.
*/
public void addTemplate(String repositoryId, String type, String link) {
- fTemplateCache.put(link, repositoryId, type);
+ templateCache.put(link, repositoryId, type);
}
/**
@@ -225,7 +215,7 @@ public class LinkCache implements Serial
* parameters.
*/
public String getTemplateLink(String repositoryId, String type,
Map<String, Object> parameters) {
- String template = (String) fTemplateCache.get(repositoryId, type);
+ String template = (String) templateCache.get(repositoryId, type);
if (template == null) {
return null;
}
@@ -270,25 +260,25 @@ public class LinkCache implements Serial
* Adds a collection.
*/
public void addRepositoryLink(String repositoryId, String rel, String
link) {
- fRepositoryLinkCache.put(link, repositoryId, rel);
+ repositoryLinkCache.put(link, repositoryId, rel);
}
/**
* Gets a collection.
*/
public String getRepositoryLink(String repositoryId, String rel) {
- return (String) fRepositoryLinkCache.get(repositoryId, rel);
+ return (String) repositoryLinkCache.get(repositoryId, rel);
}
/**
* Removes all entries of the given repository from the caches.
*/
public void clearRepository(String repositoryId) {
- fLinkCache.remove(repositoryId);
- fTypeLinkCache.remove(repositoryId);
- fCollectionLinkCache.remove(repositoryId);
- fTemplateCache.remove(repositoryId);
- fRepositoryLinkCache.remove(repositoryId);
+ linkCache.remove(repositoryId);
+ typeLinkCache.remove(repositoryId);
+ collectionLinkCache.remove(repositoryId);
+ templateCache.remove(repositoryId);
+ repositoryLinkCache.remove(repositoryId);
}
/*
@@ -298,8 +288,8 @@ public class LinkCache implements Serial
*/
@Override
public String toString() {
- return "Link Cache [link cache=" + fLinkCache + ", type link cache=" +
fTypeLinkCache
- + ", collection link cache=" + fCollectionLinkCache + ",
repository link cache=" + fRepositoryLinkCache
- + ", template cache=" + fTemplateCache + "]";
+ return "Link Cache [link cache=" + linkCache + ", type link cache=" +
typeLinkCache
+ + ", collection link cache=" + collectionLinkCache + ",
repository link cache=" + repositoryLinkCache
+ + ", template cache=" + templateCache + "]";
}
}
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.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/AbstractLocalService.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AbstractLocalService.java
Thu Jan 20 15:07:13 2011
@@ -1,5 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
-
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -20,6 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
import java.util.HashMap;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/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/local/AclServiceImpl.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AclServiceImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/AclServiceImpl.java
Thu Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import org.apache.chemistry.opencmis.client.bindings.spi.Session;
import org.apache.chemistry.opencmis.commons.data.Acl;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/CmisLocalSpi.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/CmisLocalSpi.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/CmisLocalSpi.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/CmisLocalSpi.java
Thu Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.util.HashMap;
import java.util.Map;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/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/local/DiscoveryServiceImpl.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/DiscoveryServiceImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/DiscoveryServiceImpl.java
Thu Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/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/local/MultiFilingServiceImpl.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/MultiFilingServiceImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/MultiFilingServiceImpl.java
Thu Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import org.apache.chemistry.opencmis.client.bindings.spi.Session;
import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/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/local/NavigationServiceImpl.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/NavigationServiceImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/local/NavigationServiceImpl.java
Thu Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
import java.util.List;
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=1061334&r1=1061333&r2=1061334&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 Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
import java.util.List;
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=1061334&r1=1061333&r2=1061334&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 Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.util.List;
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=1061334&r1=1061333&r2=1061334&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 Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
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=1061334&r1=1061333&r2=1061334&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 Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.math.BigInteger;
import java.util.List;
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=1061334&r1=1061333&r2=1061334&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 Jan 20 15:07:13 2011
@@ -1,4 +1,3 @@
-package org.apache.chemistry.opencmis.client.bindings.spi.local;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.cl
* under the License.
*
*/
-
+package org.apache.chemistry.opencmis.client.bindings.spi.local;
import java.util.List;
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/DiscoveryService.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/DiscoveryService.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/DiscoveryService.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/DiscoveryService.java
Thu Jan 20 15:07:13 2011
@@ -39,13 +39,13 @@ public interface DiscoveryService {
/**
* Executes a CMIS query statement against the contents of the repository.
*/
- public ObjectList query(String repositoryId, String statement, Boolean
searchAllVersions,
- Boolean includeAllowableActions, IncludeRelationships
includeRelationships, String renditionFilter,
- BigInteger maxItems, BigInteger skipCount, ExtensionsData
extension);
+ ObjectList query(String repositoryId, String statement, Boolean
searchAllVersions, Boolean includeAllowableActions,
+ IncludeRelationships includeRelationships, String renditionFilter,
BigInteger maxItems,
+ BigInteger skipCount, ExtensionsData extension);
/**
* Gets a list of content changes.
*/
- public ObjectList getContentChanges(String repositoryId, Holder<String>
changeLogToken, Boolean includeProperties,
+ ObjectList getContentChanges(String repositoryId, Holder<String>
changeLogToken, Boolean includeProperties,
String filter, Boolean includePolicyIds, Boolean includeAcl,
BigInteger maxItems, ExtensionsData extension);
}
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/PolicyService.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/PolicyService.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/PolicyService.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/PolicyService.java
Thu Jan 20 15:07:13 2011
@@ -38,16 +38,15 @@ public interface PolicyService {
/**
* Applies a specified policy to an object.
*/
- public void applyPolicy(String repositoryId, String policyId, String
objectId, ExtensionsData extension);
+ void applyPolicy(String repositoryId, String policyId, String objectId,
ExtensionsData extension);
/**
* Removes a specified policy from an object.
*/
- public void removePolicy(String repositoryId, String policyId, String
objectId, ExtensionsData extension);
+ void removePolicy(String repositoryId, String policyId, String objectId,
ExtensionsData extension);
/**
* Gets the list of policies currently applied to the specified object.
*/
- public List<ObjectData> getAppliedPolicies(String repositoryId, String
objectId, String filter,
- ExtensionsData extension);
+ List<ObjectData> getAppliedPolicies(String repositoryId, String objectId,
String filter, ExtensionsData extension);
}
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/RelationshipService.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/RelationshipService.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/RelationshipService.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/RelationshipService.java
Thu Jan 20 15:07:13 2011
@@ -40,7 +40,7 @@ public interface RelationshipService {
* Gets all or a subset of relationships associated with an independent
* object.
*/
- public ObjectList getObjectRelationships(String repositoryId, String
objectId, Boolean includeSubRelationshipTypes,
+ ObjectList getObjectRelationships(String repositoryId, String objectId,
Boolean includeSubRelationshipTypes,
RelationshipDirection relationshipDirection, String typeId, String
filter, Boolean includeAllowableActions,
BigInteger maxItems, BigInteger skipCount, ExtensionsData
extension);
}
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/VersioningService.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/VersioningService.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/VersioningService.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/VersioningService.java
Thu Jan 20 15:07:13 2011
@@ -41,39 +41,38 @@ public interface VersioningService {
/**
* Create a private working copy of the document.
*/
- public void checkOut(String repositoryId, Holder<String> objectId,
ExtensionsData extension,
- Holder<Boolean> contentCopied);
+ void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData
extension, Holder<Boolean> contentCopied);
/**
* Reverses the effect of a check-out.
*/
- public void cancelCheckOut(String repositoryId, String objectId,
ExtensionsData extension);
+ void cancelCheckOut(String repositoryId, String objectId, ExtensionsData
extension);
/**
* Checks-in the private working copy (PWC) document.
*/
- public void checkIn(String repositoryId, Holder<String> objectId, Boolean
major, Properties properties,
+ void checkIn(String repositoryId, Holder<String> objectId, Boolean major,
Properties properties,
ContentStream contentStream, String checkinComment, List<String>
policies, Acl addAces, Acl removeAces,
ExtensionsData extension);
/**
* Get the latest document object in the version series.
*/
- public ObjectData getObjectOfLatestVersion(String repositoryId, String
objectId, String versionSeriesId,
- Boolean major, String filter, Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
+ ObjectData getObjectOfLatestVersion(String repositoryId, String objectId,
String versionSeriesId, Boolean major,
+ String filter, Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter, Boolean includePolicyIds, Boolean
includeAcl, ExtensionsData extension);
/**
* Get a subset of the properties for the latest document object in the
* version series.
*/
- public Properties getPropertiesOfLatestVersion(String repositoryId, String
objectId, String versionSeriesId,
+ Properties getPropertiesOfLatestVersion(String repositoryId, String
objectId, String versionSeriesId,
Boolean major, String filter, ExtensionsData extension);
/**
* Returns the list of all document objects in the specified version
series,
* sorted by the property "cmis:creationDate" descending.
*/
- public List<ObjectData> getAllVersions(String repositoryId, String
objectId, String versionSeriesId, String filter,
+ List<ObjectData> getAllVersions(String repositoryId, String objectId,
String versionSeriesId, String filter,
Boolean includeAllowableActions, ExtensionsData extension);
}
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java?rev=1061334&r1=1061333&r2=1061334&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java
Thu Jan 20 15:07:13 2011
@@ -19,7 +19,6 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
import java.io.ByteArrayInputStream;
-import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;