You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by sf...@apache.org on 2011/04/24 18:12:31 UTC
svn commit: r1096340 [1/7] - in /chemistry/opencmis/trunk:
chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/
chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/j...
Author: sfermigier
Date: Sun Apr 24 16:12:27 2011
New Revision: 1096340
URL: http://svn.apache.org/viewvc?rev=1096340&view=rev
Log:
Big clean up .
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/test/java/org/apache/chemistry/opencmis/server/support/query/AbstractParserTest.java (with props)
Removed:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/test/java/org/apache/chemistry/opencmis/server/support/query/AbstractParserTst.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/CacheImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/ContentTypeCacheLevelImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AbstractAtomPubService.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomPubParser.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/CmisAtomPubConstants.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/PolicyServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientCmisObject.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientFileableCmisObject.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientDocumentImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientPolicyImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientRelationshipImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterable.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterator.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetcher.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CacheTest.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AllowableActionsDocument.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/MultiFilingService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/NavigationService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/PolicyService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/RelationshipService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ServiceDocument.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/VersioningService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/ControlParser.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/DiscoveryService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/NavigationService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/ObjectService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/RepositoryService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/VersioningService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/dummy/DummyService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/Dispatcher.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/HttpUtils.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/test/java/org/apache/chemistry/opencmis/server/impl/AtomEntryParserTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareServiceFactory.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/TypeManager.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/ConfigurationSettings.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/FilterParser.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/NameValidator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/TypeManagerImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/query/InMemoryQueryProcessor.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/AbstractServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/AtomLinkInfoProvider.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/BaseServiceValidatorImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAbstractServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryMultiFilingServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryNavigationServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryService.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryServiceFactoryImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryVersioningServiceImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/AbstractMultiFilingImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/AbstractSingleFilingImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/ContentStreamDataImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentVersionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/FolderImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/ObjectStoreImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerFactory.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoredObjectImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/VersionedDocumentImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DefaultTypeSystemCreator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/InMemoryDocumentTypeDefinition.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/InMemoryFolderTypeDefinition.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/InMemoryPolicyTypeDefinition.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/InMemoryRelationshipTypeDefinition.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersionTestTypeSystemCreator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/AbstractQueryConditionProcessor.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/AbstractQueryTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/ProcessQueryTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/QueryParseTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/QueryTestDataCreator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/QueryTypesTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrDocument.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNodeFactory.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/XPathBuilderTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeValidator.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/query/AbstractPredicateWalker.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/query/QueryObject.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/test/java/org/apache/chemistry/opencmis/server/support/query/TestParserExt.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/test/java/org/apache/chemistry/opencmis/server/support/query/TestParserStrict.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser/src/main/java/org/apache/chemistry/opencmis/browser/BrowseServlet.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/MultiThreadedObjectGenerator.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/ObjGenApp.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/ObjectGenerator.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/TimeLogger.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.java Sun Apr 24 16:12:27 2011
@@ -159,7 +159,7 @@ public final class CmisBindingFactory {
/**
* Checks the passed session parameters.
*/
- private void checkSessionParameters(Map<String, String> sessionParameters, boolean mustContainSPI) {
+ private static void checkSessionParameters(Map<String, String> sessionParameters, boolean mustContainSPI) {
// don't accept null
if (sessionParameters == null) {
throw new IllegalArgumentException("Session parameter map not set!");
@@ -179,7 +179,7 @@ public final class CmisBindingFactory {
* Checks if the given parameter is present. If not, throw an
* <code>IllegalArgumentException</code>.
*/
- private void check(Map<String, String> sessionParameters, String parameter) {
+ private static void check(Map<String, String> sessionParameters, String parameter) {
if (!sessionParameters.containsKey(parameter)) {
throw new IllegalArgumentException("Parameter '" + parameter + "' is missing!");
}
@@ -200,7 +200,7 @@ public final class CmisBindingFactory {
/**
* Creates a default session parameters map with some reasonable defaults.
*/
- private Map<String, String> createNewDefaultParameters() {
+ private static Map<String, String> createNewDefaultParameters() {
Map<String, String> result = new HashMap<String, String>();
result.put(SessionParameter.CACHE_SIZE_REPOSITORIES, "10");
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/CacheImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/CacheImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/CacheImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/CacheImpl.java Sun Apr 24 16:12:27 2011
@@ -31,9 +31,9 @@ import org.apache.commons.logging.LogFac
/**
* Default cache implementation.
- *
+ *
* @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ *
*/
public class CacheImpl implements Cache {
@@ -307,7 +307,7 @@ public class CacheImpl implements Cache
// ---- internal ----
- private String getFormattedKeys(String[] keys) {
+ private static String getFormattedKeys(String[] keys) {
StringBuilder sb = new StringBuilder();
for (String k : keys) {
if (sb.length() > 0) {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/ContentTypeCacheLevelImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/ContentTypeCacheLevelImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/ContentTypeCacheLevelImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/impl/ContentTypeCacheLevelImpl.java Sun Apr 24 16:12:27 2011
@@ -24,9 +24,9 @@ import java.util.TreeMap;
/**
* Content type cache.
- *
+ *
* @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ *
*/
public class ContentTypeCacheLevelImpl extends MapCacheLevelImpl {
@@ -58,7 +58,7 @@ public class ContentTypeCacheLevelImpl e
* Normalizes the key which should be a content type. It's quite simple at
* the moment but should cover most cases.
*/
- private String normalize(String key) {
+ private static String normalize(String key) {
if (key == null) {
return null;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AbstractAtomPubService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AbstractAtomPubService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AbstractAtomPubService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AbstractAtomPubService.java Sun Apr 24 16:12:27 2011
@@ -602,7 +602,7 @@ public class AbstractAtomPubService impl
/**
* Converts a list of ACEs into Map for better handling.
*/
- private Map<String, Set<String>> convertAclToMap(Acl acl) {
+ private static Map<String, Set<String>> convertAclToMap(Acl acl) {
Map<String, Set<String>> result = new HashMap<String, Set<String>>();
if ((acl == null) || (acl.getAces() == null)) {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java Sun Apr 24 16:12:27 2011
@@ -37,10 +37,13 @@ import org.apache.chemistry.opencmis.com
import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisProperty;
import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertyString;
+import static org.apache.chemistry.opencmis.client.bindings.spi.atompub.CmisAtomPubConstants.*;
+
+
/**
* Writes a CMIS Atom entry to an output stream.
*/
-public class AtomEntryWriter implements CmisAtomPubConstants {
+public class AtomEntryWriter {
private static final String PREFIX_ATOM = "atom";
private static final String PREFIX_CMIS = "cmis";
@@ -155,7 +158,7 @@ public class AtomEntryWriter implements
return result;
}
- private String getUpdated() {
+ private static String getUpdated() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomPubParser.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomPubParser.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomPubParser.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomPubParser.java Sun Apr 24 16:12:27 2011
@@ -54,10 +54,12 @@ import org.apache.chemistry.opencmis.com
import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeRelationshipDefinitionType;
import org.apache.chemistry.opencmis.commons.impl.jaxb.EnumPropertiesBase;
+import static org.apache.chemistry.opencmis.client.bindings.spi.atompub.CmisAtomPubConstants.*;
+
/**
* AtomPub Parser.
*/
-public class AtomPubParser implements CmisAtomPubConstants {
+public class AtomPubParser {
// public constants
public static final String LINK_REL_CONTENT = "@@content@@";
@@ -127,7 +129,7 @@ public class AtomPubParser implements Cm
/**
* Parses a service document.
*/
- private ServiceDoc parseServiceDoc(XMLStreamReader parser) throws Exception {
+ private static ServiceDoc parseServiceDoc(XMLStreamReader parser) throws Exception {
ServiceDoc result = new ServiceDoc();
next(parser);
@@ -161,7 +163,7 @@ public class AtomPubParser implements Cm
/**
* Parses a workspace element in a service document.
*/
- private RepositoryWorkspace parseWorkspace(XMLStreamReader parser) throws Exception {
+ private static RepositoryWorkspace parseWorkspace(XMLStreamReader parser) throws Exception {
RepositoryWorkspace workspace = new RepositoryWorkspace();
next(parser);
@@ -281,7 +283,7 @@ public class AtomPubParser implements Cm
/**
* Parses an Allowable Actions document.
*/
- private AtomAllowableActions parseAllowableActions(XMLStreamReader parser) throws Exception {
+ private static AtomAllowableActions parseAllowableActions(XMLStreamReader parser) throws Exception {
AtomElement elemenet = unmarshalElement(parser, CmisAllowableActionsType.class);
return new AtomAllowableActions((CmisAllowableActionsType) elemenet.getObject());
}
@@ -289,7 +291,7 @@ public class AtomPubParser implements Cm
/**
* Parses an ACL document.
*/
- private AtomAcl parseACL(XMLStreamReader parser) throws Exception {
+ private static AtomAcl parseACL(XMLStreamReader parser) throws Exception {
AtomElement elemenet = unmarshalElement(parser, CmisAccessControlListType.class);
return new AtomAcl((CmisAccessControlListType) elemenet.getObject());
}
@@ -341,7 +343,7 @@ public class AtomPubParser implements Cm
/**
* Unmarshals a JAXB element.
*/
- private <T> AtomElement unmarshalElement(XMLStreamReader parser, Class<T> cmisType) throws Exception {
+ private static <T> AtomElement unmarshalElement(XMLStreamReader parser, Class<T> cmisType) throws Exception {
QName name = parser.getName();
Unmarshaller u = JaxBHelper.createUnmarshaller();
@@ -391,7 +393,7 @@ public class AtomPubParser implements Cm
/**
* Parses a workspace element.
*/
- private AtomElement parseWorkspaceElement(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseWorkspaceElement(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
if (Constants.NAMESPACE_RESTATOM.equals(name.getNamespaceURI())) {
@@ -419,7 +421,7 @@ public class AtomPubParser implements Cm
/**
* Parses a collection tag.
*/
- private AtomElement parseCollection(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseCollection(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
Map<String, String> result = new HashMap<String, String>();
@@ -454,7 +456,7 @@ public class AtomPubParser implements Cm
/**
* Parses a template tag.
*/
- private AtomElement parseTemplate(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseTemplate(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
Map<String, String> result = new HashMap<String, String>();
@@ -492,7 +494,7 @@ public class AtomPubParser implements Cm
/**
* Parses a link tag.
*/
- private AtomElement parseLink(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseLink(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
AtomLink result = new AtomLink();
@@ -516,7 +518,7 @@ public class AtomPubParser implements Cm
/**
* Parses a link tag.
*/
- private AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
AtomLink result = new AtomLink();
result.setRel(LINK_REL_CONTENT);
@@ -537,7 +539,7 @@ public class AtomPubParser implements Cm
/**
* Parses a text tag.
*/
- private AtomElement parseText(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseText(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
return new AtomElement(name, readText(parser));
}
@@ -545,7 +547,7 @@ public class AtomPubParser implements Cm
/**
* Parses a text tag and convert it into an integer.
*/
- private AtomElement parseBigInteger(XMLStreamReader parser) throws Exception {
+ private static AtomElement parseBigInteger(XMLStreamReader parser) throws Exception {
QName name = parser.getName();
return new AtomElement(name, new BigInteger(readText(parser)));
}
@@ -553,7 +555,7 @@ public class AtomPubParser implements Cm
/**
* Parses a tag that contains text.
*/
- private String readText(XMLStreamReader parser) throws Exception {
+ private static String readText(XMLStreamReader parser) throws Exception {
StringBuilder sb = new StringBuilder();
next(parser);
@@ -584,7 +586,7 @@ public class AtomPubParser implements Cm
/**
* Skips a tag or subtree.
*/
- private void skip(XMLStreamReader parser) throws Exception {
+ private static void skip(XMLStreamReader parser) throws Exception {
int level = 1;
while (next(parser)) {
int event = parser.getEventType();
@@ -601,7 +603,7 @@ public class AtomPubParser implements Cm
next(parser);
}
- private boolean next(XMLStreamReader parser) throws Exception {
+ private static boolean next(XMLStreamReader parser) throws Exception {
if (parser.hasNext()) {
parser.next();
return true;
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/CmisAtomPubConstants.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/CmisAtomPubConstants.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/CmisAtomPubConstants.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/CmisAtomPubConstants.java Sun Apr 24 16:12:27 2011
@@ -28,53 +28,57 @@ import org.apache.chemistry.opencmis.com
/**
* Constants for AtomPub.
*/
-public interface CmisAtomPubConstants {
+public final class CmisAtomPubConstants {
+
+ private CmisAtomPubConstants() {
+ }
// service doc
- String TAG_SERVICE = "service";
- String TAG_WORKSPACE = "workspace";
- String TAG_REPOSITORY_INFO = "repositoryInfo";
- String TAG_COLLECTION = "collection";
- String TAG_COLLECTION_TYPE = "collectionType";
- String TAG_URI_TEMPLATE = "uritemplate";
- String TAG_TEMPLATE_TEMPLATE = "template";
- String TAG_TEMPLATE_TYPE = "type";
- String TAG_LINK = "link";
+ public static final String TAG_SERVICE = "service";
+ public static final String TAG_WORKSPACE = "workspace";
+ public static final String TAG_REPOSITORY_INFO = "repositoryInfo";
+ public static final String TAG_COLLECTION = "collection";
+ public static final String TAG_COLLECTION_TYPE = "collectionType";
+ public static final String TAG_URI_TEMPLATE = "uritemplate";
+ public static final String TAG_TEMPLATE_TEMPLATE = "template";
+ public static final String TAG_TEMPLATE_TYPE = "type";
+ public static final String TAG_LINK = "link";
// atom
- String TAG_ATOM_ID = "id";
- String TAG_ATOM_TITLE = "title";
- String TAG_ATOM_UPDATED = "updated";
+ public static final String TAG_ATOM_ID = "id";
+ public static final String TAG_ATOM_TITLE = "title";
+ public static final String TAG_ATOM_UPDATED = "updated";
// feed
- String TAG_FEED = "feed";
+ public static final String TAG_FEED = "feed";
// entry
- String TAG_ENTRY = "entry";
- String TAG_OBJECT = "object";
- String TAG_NUM_ITEMS = "numItems";
- String TAG_PATH_SEGMENT = "pathSegment";
- String TAG_RELATIVE_PATH_SEGMENT = "relativePathSegment";
- String TAG_TYPE = "type";
- String TAG_CHILDREN = "children";
- String TAG_CONTENT = "content";
- String TAG_CONTENT_MEDIATYPE = "mediatype";
- String TAG_CONTENT_BASE64 = "base64";
-
- String ATTR_DOCUMENT_TYPE = CmisTypeDocumentDefinitionType.class.getAnnotation(XmlType.class).name();
- String ATTR_FOLDER_TYPE = CmisTypeFolderDefinitionType.class.getAnnotation(XmlType.class).name();
- String ATTR_RELATIONSHIP_TYPE = CmisTypeRelationshipDefinitionType.class.getAnnotation(XmlType.class).name();
- String ATTR_POLICY_TYPE = CmisTypePolicyDefinitionType.class.getAnnotation(XmlType.class).name();
+ public static final String TAG_ENTRY = "entry";
+ public static final String TAG_OBJECT = "object";
+ public static final String TAG_NUM_ITEMS = "numItems";
+ public static final String TAG_PATH_SEGMENT = "pathSegment";
+ public static final String TAG_RELATIVE_PATH_SEGMENT = "relativePathSegment";
+ public static final String TAG_TYPE = "type";
+ public static final String TAG_CHILDREN = "children";
+ public static final String TAG_CONTENT = "content";
+ public static final String TAG_CONTENT_MEDIATYPE = "mediatype";
+ public static final String TAG_CONTENT_BASE64 = "base64";
+
+ public static final String ATTR_DOCUMENT_TYPE = CmisTypeDocumentDefinitionType.class.getAnnotation(XmlType.class).name();
+ public static final String ATTR_FOLDER_TYPE = CmisTypeFolderDefinitionType.class.getAnnotation(XmlType.class).name();
+ public static final String ATTR_RELATIONSHIP_TYPE = CmisTypeRelationshipDefinitionType.class.getAnnotation(XmlType.class).name();
+ public static final String ATTR_POLICY_TYPE = CmisTypePolicyDefinitionType.class.getAnnotation(XmlType.class).name();
// allowable actions
- String TAG_ALLOWABLEACTIONS = "allowableActions";
+ public static final String TAG_ALLOWABLEACTIONS = "allowableActions";
// ACL
- String TAG_ACL = "acl";
+ public static final String TAG_ACL = "acl";
// links
- String LINK_REL = "rel";
- String LINK_HREF = "href";
- String LINK_TYPE = "type";
- String CONTENT_SRC = "src";
+ public static final String LINK_REL = "rel";
+ public static final String LINK_HREF = "href";
+ public static final String LINK_TYPE = "type";
+ public static final String CONTENT_SRC = "src";
+
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java Sun Apr 24 16:12:27 2011
@@ -591,7 +591,7 @@ public class ObjectServiceImpl extends A
// ---- internal ----
- private void checkCreateProperties(Properties properties) {
+ private static void checkCreateProperties(Properties properties) {
if ((properties == null) || (properties.getProperties() == null)) {
throw new CmisInvalidArgumentException("Properties must be set!");
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/PolicyServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/PolicyServiceImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/PolicyServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/PolicyServiceImpl.java Sun Apr 24 16:12:27 2011
@@ -168,7 +168,7 @@ public class PolicyServiceImpl extends A
/**
* Finds the id property within a CMIS object.
*/
- private String findIdProperty(CmisObjectType object) {
+ private static String findIdProperty(CmisObjectType object) {
if ((object == null) || (object.getProperties() == null)) {
return null;
}
Modified: 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/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractWebServicesService.java Sun Apr 24 16:12:27 2011
@@ -126,7 +126,7 @@ public abstract class AbstractWebService
return new CmisRuntimeException("Unknown exception[" + ex.getFaultInfo().getType().value() + "]: " + msg);
}
- private String getNodeAsString(Node node) {
+ private static String getNodeAsString(Node node) {
try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformrt = factory.newTransformer();
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java Sun Apr 24 16:12:27 2011
@@ -540,7 +540,7 @@ public abstract class AbstractCmisObject
}
public TransientCmisObject getTransientObject() {
- return (TransientCmisObject) getAdapter(TransientCmisObject.class);
+ return getAdapter(TransientCmisObject.class);
}
protected TransientCmisObject createTransientCmisObject() {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientCmisObject.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientCmisObject.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientCmisObject.java Sun Apr 24 16:12:27 2011
@@ -60,8 +60,6 @@ import org.apache.chemistry.opencmis.com
public abstract class AbstractTransientCmisObject implements TransientCmisObject {
- private static final long serialVersionUID = 1L;
-
protected Session session;
protected CmisObject object;
@@ -540,7 +538,7 @@ public abstract class AbstractTransientC
* Returns a list of values.
*/
@SuppressWarnings("unchecked")
- private <T> List<T> checkProperty(PropertyDefinition<T> propertyDefinition, Object value) {
+ private static <T> List<T> checkProperty(PropertyDefinition<T> propertyDefinition, Object value) {
// null values are ok for updates
if (value == null) {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientFileableCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientFileableCmisObject.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientFileableCmisObject.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractTransientFileableCmisObject.java Sun Apr 24 16:12:27 2011
@@ -28,8 +28,6 @@ import org.apache.chemistry.opencmis.cli
public abstract class AbstractTransientFileableCmisObject extends AbstractTransientCmisObject implements
TransientFileableCmisObject {
- private static final long serialVersionUID = 1L;
-
public FileableCmisObject move(ObjectId sourceFolderId, ObjectId targetFolderId) {
return ((FileableCmisObject) getCmisObject()).move(sourceFolderId, targetFolderId);
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Sun Apr 24 16:12:27 2011
@@ -141,7 +141,7 @@ public class SessionImpl implements Sess
}
this.parameters = parameters;
- this.locale = this.determineLocale(parameters);
+ this.locale = determineLocale(parameters);
this.objectFactory = createObjectFactory();
this.cache = createCache();
@@ -149,13 +149,13 @@ public class SessionImpl implements Sess
cachePathOmit = Boolean.parseBoolean(parameters.get(SessionParameter.CACHE_PATH_OMIT));
}
- private String determineRepositoryId(Map<String, String> parameters) {
+ private static String determineRepositoryId(Map<String, String> parameters) {
String repositoryId = parameters.get(SessionParameter.REPOSITORY_ID);
// if null then the provider will return a repository id (lazy)
return repositoryId;
}
- private Locale determineLocale(Map<String, String> parameters) {
+ private static Locale determineLocale(Map<String, String> parameters) {
Locale locale = null;
String language = parameters.get(SessionParameter.LOCALE_ISO639_LANGUAGE);
@@ -255,7 +255,7 @@ public class SessionImpl implements Sess
if (context == null) {
throw new IllegalArgumentException("Operation context must be set!");
}
-
+
final NavigationService navigationService = getBinding().getNavigationService();
final ObjectFactory objectFactory = getObjectFactory();
final OperationContext ctxt = new OperationContextImpl(context);
@@ -300,7 +300,7 @@ public class SessionImpl implements Sess
if (context == null) {
throw new IllegalArgumentException("Operation context must be set!");
}
-
+
lock.readLock().lock();
try {
Holder<String> changeLogTokenHolder = new Holder<String>(changeLogToken);
@@ -596,7 +596,7 @@ public class SessionImpl implements Sess
this.binding = CmisBindingHelper.createBinding(this.parameters);
/* get initial repository id from session parameter */
- String repositoryId = this.determineRepositoryId(this.parameters);
+ String repositoryId = determineRepositoryId(this.parameters);
if (repositoryId == null) {
throw new IllegalStateException("Repository Id is not set!");
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientDocumentImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientDocumentImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientDocumentImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientDocumentImpl.java Sun Apr 24 16:12:27 2011
@@ -40,8 +40,6 @@ import org.apache.chemistry.opencmis.com
public class TransientDocumentImpl extends AbstractTransientFileableCmisObject implements TransientDocument {
- private static final long serialVersionUID = 1L;
-
private ContentStream contentStream;
private boolean contentOverwrite;
private boolean deleteContent;
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientFolderImpl.java Sun Apr 24 16:12:27 2011
@@ -44,8 +44,6 @@ import org.apache.chemistry.opencmis.com
public class TransientFolderImpl extends AbstractTransientFileableCmisObject implements TransientFolder {
- private static final long serialVersionUID = 1L;
-
private boolean isMarkedForDeleteTree;
private boolean deleteTreeAllVersions;
private UnfileObject deleteTreeUnfile;
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientPolicyImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientPolicyImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientPolicyImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientPolicyImpl.java Sun Apr 24 16:12:27 2011
@@ -23,8 +23,6 @@ import org.apache.chemistry.opencmis.com
public class TransientPolicyImpl extends AbstractTransientFileableCmisObject implements TransientPolicy {
- private static final long serialVersionUID = 1L;
-
public String getPolicyText() {
return getPropertyValue(PropertyIds.POLICY_TEXT);
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientRelationshipImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientRelationshipImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientRelationshipImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/TransientRelationshipImpl.java Sun Apr 24 16:12:27 2011
@@ -26,8 +26,6 @@ import org.apache.chemistry.opencmis.com
public class TransientRelationshipImpl extends AbstractTransientCmisObject implements TransientRelationship {
- private static final long serialVersionUID = 1L;
-
public CmisObject getSource() {
return getSource(getSession().getDefaultContext());
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterable.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterable.java Sun Apr 24 16:12:27 2011
@@ -31,7 +31,7 @@ public abstract class AbstractIterable<T
private long skipCount;
private AbstractIterator<T> iterator;
- public AbstractIterable(AbstractPageFetcher<T> pageFetcher) {
+ protected AbstractIterable(AbstractPageFetcher<T> pageFetcher) {
this(0, pageFetcher);
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterator.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterator.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterator.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractIterator.java Sun Apr 24 16:12:27 2011
@@ -44,7 +44,7 @@ public abstract class AbstractIterator<T
* @param skipCount
* @param pageFetcher
*/
- public AbstractIterator(long skipCount, AbstractPageFetcher<T> pageFetcher) {
+ protected AbstractIterator(long skipCount, AbstractPageFetcher<T> pageFetcher) {
this.skipCount = skipCount;
this.pageFetcher = pageFetcher;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetcher.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetcher.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetcher.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetcher.java Sun Apr 24 16:12:27 2011
@@ -30,7 +30,7 @@ public abstract class AbstractPageFetche
protected long maxNumItems;
- public AbstractPageFetcher(long maxNumItems) {
+ protected AbstractPageFetcher(long maxNumItems) {
this.maxNumItems = maxNumItems;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java Sun Apr 24 16:12:27 2011
@@ -50,13 +50,13 @@ import org.apache.chemistry.opencmis.com
* A set of utility methods that simplify file and folder operations.
*/
public class FileUtils {
-
+
private FileUtils() {
}
/**
* Gets an object by path or object id.
- *
+ *
* @param pathOrIdOfObject
* the path or object id
* @param session
@@ -84,7 +84,7 @@ public class FileUtils {
/**
* Gets a folder by path or object id.
- *
+ *
* @param pathOrIdOfObject
* the path or folder id
* @param session
@@ -104,7 +104,7 @@ public class FileUtils {
/**
* Creates a document from a file.
- *
+ *
* @param parentIdOrPath
* the id or path of the parent folder
* @param file
@@ -140,7 +140,7 @@ public class FileUtils {
/**
* Creates a text document from a string.
- *
+ *
* @param parentIdOrPath
* the id or path of the parent folder
* @param name
@@ -154,10 +154,9 @@ public class FileUtils {
* @param session
* the session
* @return the newly created document
- * @throws FileNotFoundException
*/
public static Document createTextDocument(String parentIdOrPath, String name, String content, String type,
- VersioningState versioningState, Session session) throws FileNotFoundException {
+ VersioningState versioningState, Session session) {
if (type == null) {
type = BaseTypeId.CMIS_DOCUMENT.value(); // "cmis:document";
}
@@ -178,7 +177,7 @@ public class FileUtils {
/**
* Creates a child folder with the name specified of the type specified. If
* type is null then will default to cmis:folder.
- *
+ *
* @param parentFolder
* the parent folder
* @param name
@@ -202,7 +201,7 @@ public class FileUtils {
/**
* Creates a folder using a String identifier.
- *
+ *
* @param parentIdOrPath
* the id or path of the parent folder
* @param name
@@ -230,7 +229,7 @@ public class FileUtils {
/**
* Downloads the contentStream for the given doc to the specified path.
- *
+ *
* @param doc
* the document
* @param destinationPath
@@ -247,7 +246,7 @@ public class FileUtils {
/**
* Downloads a document by its id or path.
- *
+ *
* @param docIdOrPath
* the id or path of the document
* @param destinationPath
@@ -277,7 +276,7 @@ public class FileUtils {
/**
* Deletes an object by path or id (string identifier).
- *
+ *
* @param pathOrIdOfObject
* the id or path of the object
* @param session
@@ -296,7 +295,7 @@ public class FileUtils {
/**
* Prints out all of the properties for this object to System.out.
- *
+ *
* @param object
* the object
*/
@@ -307,7 +306,7 @@ public class FileUtils {
/**
* Prints out all of the properties for this object to the given
* PrintStream.
- *
+ *
* @param object
* the object
*/
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CacheTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CacheTest.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CacheTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CacheTest.java Sun Apr 24 16:12:27 2011
@@ -50,7 +50,7 @@ public class CacheTest {
String cacheKey = "key";
// add object
- CmisObject obj1 = this.createCmisObject(id);
+ CmisObject obj1 = createCmisObject(id);
cache.put(obj1, cacheKey);
// access object
@@ -86,7 +86,7 @@ public class CacheTest {
String cacheKey = "key";
for (int i = 0; i < cacheSize + 1; i++) {
- CmisObject obj = this.createCmisObject("id" + i);
+ CmisObject obj = createCmisObject("id" + i);
cache.put(obj, cacheKey);
}
@@ -122,7 +122,7 @@ public class CacheTest {
String cacheKey = "key";
for (int i = 0; i < cacheSize; i++) {
- CmisObject obj = this.createCmisObject("id" + i);
+ CmisObject obj = createCmisObject("id" + i);
cache.put(obj, cacheKey);
}
@@ -144,16 +144,16 @@ public class CacheTest {
/**
* Create a Mock for testing Cache is sufficient.
- *
+ *
* @param id
* @param path
* @return a mocked object
*/
- private CmisObject createCmisObject(final String id) {
+ private static CmisObject createCmisObject(final String id) {
return new CmisObjectMock(id);
}
- private Cache createCache(int cacheSize, int ttl) {
+ private static Cache createCache(int cacheSize, int ttl) {
Cache cache = new CacheImpl();
Map<String, String> parameters = new HashMap<String, String>();
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java Sun Apr 24 16:12:27 2011
@@ -23,43 +23,30 @@ import org.apache.chemistry.opencmis.com
/**
* Document type definition.
- *
+ *
* @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
-public class DocumentTypeDefinitionImpl extends AbstractTypeDefinition implements DocumentTypeDefinition {
+public class DocumentTypeDefinitionImpl extends AbstractTypeDefinition
+ implements DocumentTypeDefinition {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- private ContentStreamAllowed fContentStreamAllowed = ContentStreamAllowed.NOTALLOWED;
- private Boolean fIsVersionable = Boolean.FALSE;
+ private ContentStreamAllowed fContentStreamAllowed = ContentStreamAllowed.NOTALLOWED;
+ private Boolean fIsVersionable = Boolean.FALSE;
- /*
- * (non-Javadoc)
- *
- * @seeorg.apache.opencmis.client.provider.DocumentTypeDefinitionData#
- * getContentStreamAllowed()
- */
- public ContentStreamAllowed getContentStreamAllowed() {
- return fContentStreamAllowed;
- }
-
- public void setContentStreamAllowed(ContentStreamAllowed contentStreamAllowed) {
- fContentStreamAllowed = contentStreamAllowed;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.DocumentTypeDefinitionData#isVersionable
- * ()
- */
- public Boolean isVersionable() {
- return fIsVersionable;
- }
-
- public void setIsVersionable(Boolean isVersionable) {
- fIsVersionable = isVersionable;
- }
+ public ContentStreamAllowed getContentStreamAllowed() {
+ return fContentStreamAllowed;
+ }
+
+ public void setContentStreamAllowed(ContentStreamAllowed contentStreamAllowed) {
+ fContentStreamAllowed = contentStreamAllowed;
+ }
+
+ public Boolean isVersionable() {
+ return fIsVersionable;
+ }
+
+ public void setIsVersionable(Boolean isVersionable) {
+ fIsVersionable = isVersionable;
+ }
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclService.java Sun Apr 24 16:12:27 2011
@@ -43,6 +43,9 @@ import org.apache.chemistry.opencmis.com
*/
public class AclService {
+ private AclService() {
+ }
+
/**
* Get ACL.
*/
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AllowableActionsDocument.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AllowableActionsDocument.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AllowableActionsDocument.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AllowableActionsDocument.java Sun Apr 24 16:12:27 2011
@@ -23,7 +23,6 @@ import static org.apache.chemistry.openc
import java.io.OutputStream;
import javax.xml.bind.JAXBException;
-import javax.xml.stream.XMLStreamException;
import org.apache.chemistry.opencmis.commons.data.AllowableActions;
import org.apache.chemistry.opencmis.commons.impl.JaxBHelper;
@@ -31,9 +30,9 @@ import org.apache.chemistry.opencmis.com
/**
* Allowable Actions document.
- *
+ *
* @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ *
*/
public class AllowableActionsDocument {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java Sun Apr 24 16:12:27 2011
@@ -345,7 +345,7 @@ public class AtomEntryParser {
/**
* Parses a tag that contains text.
*/
- private String readText(XMLStreamReader parser) throws Exception {
+ private static String readText(XMLStreamReader parser) throws Exception {
StringBuilder sb = new StringBuilder();
next(parser);
@@ -376,7 +376,7 @@ public class AtomEntryParser {
/**
* Parses a tag that contains base64 encoded content.
*/
- private LightByteArrayOutputStream readBase64(XMLStreamReader parser) throws Exception {
+ private static LightByteArrayOutputStream readBase64(XMLStreamReader parser) throws Exception {
LightByteArrayOutputStream bufferStream = new LightByteArrayOutputStream();
Base64.OutputStream b64stream = new Base64.OutputStream(bufferStream, Base64.DECODE);
@@ -408,7 +408,7 @@ public class AtomEntryParser {
/**
* Copies a subtree into a stream.
*/
- private byte[] copy(XMLStreamReader parser) throws Exception {
+ private static byte[] copy(XMLStreamReader parser) throws Exception {
// create a writer
ByteArrayOutputStream out = new ByteArrayOutputStream();
XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(out);
@@ -449,7 +449,7 @@ public class AtomEntryParser {
/**
* Copies a XML start element.
*/
- private void copyStartElement(XMLStreamReader parser, XMLStreamWriter writer) throws Exception {
+ private static void copyStartElement(XMLStreamReader parser, XMLStreamWriter writer) throws Exception {
String namespaceUri = parser.getNamespaceURI();
String prefix = parser.getPrefix();
String localName = parser.getLocalName();
@@ -493,7 +493,7 @@ public class AtomEntryParser {
* Checks if the given prefix is assigned to the given namespace.
*/
@SuppressWarnings("unchecked")
- private void addNamespaceIfMissing(XMLStreamWriter writer, String prefix, String namespaceUri) throws Exception {
+ private static void addNamespaceIfMissing(XMLStreamWriter writer, String prefix, String namespaceUri) throws Exception {
if ((namespaceUri == null) || (namespaceUri.trim().length() == 0)) {
return;
}
@@ -520,7 +520,7 @@ public class AtomEntryParser {
/**
* Adds a namespace to a XML element.
*/
- private void addNamespace(XMLStreamWriter writer, String prefix, String namespaceUri) throws Exception {
+ private static void addNamespace(XMLStreamWriter writer, String prefix, String namespaceUri) throws Exception {
if ((prefix == null) || (prefix.trim().length() == 0)) {
writer.setDefaultNamespace(namespaceUri);
writer.writeDefaultNamespace(namespaceUri);
@@ -533,7 +533,7 @@ public class AtomEntryParser {
/**
* Skips a tag or subtree.
*/
- private void skip(XMLStreamReader parser) throws Exception {
+ private static void skip(XMLStreamReader parser) throws Exception {
int level = 1;
while (next(parser)) {
int event = parser.getEventType();
@@ -550,7 +550,7 @@ public class AtomEntryParser {
next(parser);
}
- private boolean next(XMLStreamReader parser) throws Exception {
+ private static boolean next(XMLStreamReader parser) throws Exception {
if (parser.hasNext()) {
try {
parser.next();
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java Sun Apr 24 16:12:27 2011
@@ -232,7 +232,7 @@ public class CmisAtomPubServlet extends
/**
* Translates an exception in an appropriate HTTP error code.
*/
- private int getErrorCode(CmisBaseException ex) {
+ private static int getErrorCode(CmisBaseException ex) {
if (ex instanceof CmisConstraintException) {
return 409;
} else if (ex instanceof CmisContentAlreadyExistsException) {
@@ -265,7 +265,7 @@ public class CmisAtomPubServlet extends
/**
* Prints the error HTML page.
*/
- private void printError(Exception ex, HttpServletResponse response) {
+ private static void printError(Exception ex, HttpServletResponse response) {
int statusCode = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
String exceptionName = "runtime";
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java Sun Apr 24 16:12:27 2011
@@ -59,6 +59,9 @@ public class DiscoveryService {
private static final String METHOD_GET = "GET";
private static final String METHOD_POST = "POST";
+ private DiscoveryService() {
+ }
+
/**
* Query.
*/
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/MultiFilingService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/MultiFilingService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/MultiFilingService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/MultiFilingService.java Sun Apr 24 16:12:27 2011
@@ -40,6 +40,9 @@ import org.apache.chemistry.opencmis.com
*/
public class MultiFilingService {
+ private MultiFilingService() {
+ }
+
/**
* Remove object from folder.
*/
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/NavigationService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/NavigationService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/NavigationService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/NavigationService.java Sun Apr 24 16:12:27 2011
@@ -67,6 +67,9 @@ import org.apache.chemistry.opencmis.com
*/
public final class NavigationService {
+ private NavigationService() {
+ }
+
/**
* Children Collection GET.
*/
@@ -386,15 +389,14 @@ public final class NavigationService {
feed.writeSelfLink(compileUrl(baseUrl, RESOURCE_PARENTS, objectInfo.getId()), null);
// write entries
- if (parents != null) {
- AtomEntry entry = new AtomEntry(feed.getWriter());
- for (ObjectParentData object : parents) {
- if ((object == null) || (object.getObject() == null)) {
- continue;
- }
- writeObjectEntry(service, entry, object.getObject(), null, repositoryId, null,
- object.getRelativePathSegment(), baseUrl, false);
+ AtomEntry entry = new AtomEntry(feed.getWriter());
+ for (ObjectParentData object : parents) {
+ if ((object == null) || (object.getObject() == null)) {
+ continue;
}
+ writeObjectEntry(service, entry, object.getObject(), null,
+ repositoryId, null, object.getRelativePathSegment(),
+ baseUrl, false);
}
// we are done
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java Sun Apr 24 16:12:27 2011
@@ -67,8 +67,11 @@ public final class ObjectService {
private static final int BUFFER_SIZE = 64 * 1024;
+ private ObjectService() {
+ }
+
/**
- * Create*.
+ * Create.
*/
public static void create(CallContext context, CmisService service, String repositoryId,
HttpServletRequest request, HttpServletResponse response) throws Exception {
@@ -168,7 +171,7 @@ public final class ObjectService {
* Delete object.
*/
public static void deleteObject(CallContext context, CmisService service, String repositoryId,
- HttpServletRequest request, HttpServletResponse response) throws Exception {
+ HttpServletRequest request, HttpServletResponse response) {
// get parameters
String objectId = getStringParameter(request, Constants.PARAM_ID);
Boolean allVersions = getBooleanParameter(request, Constants.PARAM_ALL_VERSIONS);
@@ -184,7 +187,7 @@ public final class ObjectService {
* Delete content stream.
*/
public static void deleteContentStream(CallContext context, CmisService service, String repositoryId,
- HttpServletRequest request, HttpServletResponse response) throws Exception {
+ HttpServletRequest request, HttpServletResponse response) {
// get parameters
String objectId = getStringParameter(request, Constants.PARAM_ID);
String changeToken = getStringParameter(request, Constants.PARAM_CHANGE_TOKEN);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/PolicyService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/PolicyService.java?rev=1096340&r1=1096339&r2=1096340&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/PolicyService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/PolicyService.java Sun Apr 24 16:12:27 2011
@@ -44,6 +44,9 @@ import org.apache.chemistry.opencmis.com
*/
public class PolicyService {
+ private PolicyService() {
+ }
+
/**
* Get applied policies.
*/
@@ -86,14 +89,12 @@ public class PolicyService {
feed.writeSelfLink(compileUrl(baseUrl, RESOURCE_POLICIES, objectInfo.getId()), null);
// write entries
- if (policies != null) {
- AtomEntry entry = new AtomEntry(feed.getWriter());
- for (ObjectData policy : policies) {
- if (policy == null) {
- continue;
- }
- writePolicyEntry(service, entry, objectInfo.getId(), policy, repositoryId, baseUrl);
+ AtomEntry entry = new AtomEntry(feed.getWriter());
+ for (ObjectData policy : policies) {
+ if (policy == null) {
+ continue;
}
+ writePolicyEntry(service, entry, objectInfo.getId(), policy, repositoryId, baseUrl);
}
// we are done
@@ -145,7 +146,7 @@ public class PolicyService {
* Remove policy.
*/
public static void removePolicy(CallContext context, CmisService service, String repositoryId,
- HttpServletRequest request, HttpServletResponse response) throws Exception {
+ HttpServletRequest request, HttpServletResponse response) {
// get parameters
String objectId = getStringParameter(request, Constants.PARAM_ID);
String policyId = getStringParameter(request, Constants.PARAM_POLICY_ID);