chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1461120 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/
Date Tue, 26 Mar 2013 13:25:16 GMT
Author: jens
Date: Tue Mar 26 13:25:16 2013
New Revision: 1461120

URL: http://svn.apache.org/r1461120
Log:
InMemory: fix build, add missing file

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAclService.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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAclService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAclService.java?rev=1461120&r1=1461119&r2=1461120&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAclService.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryAclService.java
Tue Mar 26 13:25:16 2013
@@ -34,11 +34,9 @@ import org.slf4j.LoggerFactory;
 public class InMemoryAclService extends InMemoryAbstractServiceImpl {
 
     private static final Logger LOG = LoggerFactory.getLogger(InMemoryAclService.class.getName());
-    final AtomLinkInfoProvider fAtomLinkProvider;
 
     public InMemoryAclService(StoreManager storeManager) {
         super(storeManager);
-        fAtomLinkProvider = new AtomLinkInfoProvider(fStoreManager);
     }
 
     public Acl getAcl(CallContext context, String repositoryId, String objectId, Boolean
onlyBasicPermissions,

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryMultiFilingServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryMultiFilingServiceImpl.java?rev=1461120&r1=1461119&r2=1461120&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryMultiFilingServiceImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryMultiFilingServiceImpl.java
Tue Mar 26 13:25:16 2013
@@ -35,11 +35,8 @@ public class InMemoryMultiFilingServiceI
 
     private static final Logger LOG = LoggerFactory.getLogger(InMemoryMultiFilingServiceImpl.class.getName());
 
-    final AtomLinkInfoProvider fAtomLinkProvider;
-
     public InMemoryMultiFilingServiceImpl(StoreManager storeMgr) {
         super(storeMgr);
-        fAtomLinkProvider = new AtomLinkInfoProvider(storeMgr);
     }
 
     public void addObjectToFolder(CallContext context, String repositoryId, String objectId,
String folderId,

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryNavigationServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryNavigationServiceImpl.java?rev=1461120&r1=1461119&r2=1461120&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryNavigationServiceImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryNavigationServiceImpl.java
Tue Mar 26 13:25:16 2013
@@ -68,11 +68,8 @@ public class InMemoryNavigationServiceIm
 
     private static final Logger LOG = LoggerFactory.getLogger(InMemoryNavigationServiceImpl.class);
 
-    final AtomLinkInfoProvider fAtomLinkProvider;
-
     public InMemoryNavigationServiceImpl(StoreManager storeManager) {
         super(storeManager);
-        fAtomLinkProvider = new AtomLinkInfoProvider(fStoreManager);
     }
 
     public ObjectList getCheckedOutDocs(CallContext context, String repositoryId, String
folderId, String filter,

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java?rev=1461120&r1=1461119&r2=1461120&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java
Tue Mar 26 13:25:16 2013
@@ -92,11 +92,8 @@ import org.slf4j.LoggerFactory;
 public class InMemoryObjectServiceImpl extends InMemoryAbstractServiceImpl {
     private static final Logger LOG = LoggerFactory.getLogger(InMemoryServiceFactoryImpl.class.getName());
 
-    final AtomLinkInfoProvider fAtomLinkProvider;
-
     public InMemoryObjectServiceImpl(StoreManager storeManager) {
         super(storeManager);
-        fAtomLinkProvider = new AtomLinkInfoProvider(fStoreManager);
     }
 
     public String createDocument(CallContext context, String repositoryId, Properties properties,
String folderId,
@@ -1052,9 +1049,13 @@ public class InMemoryObjectServiceImpl e
        TypeDefinition targetTypeDef = fStoreManager.getTypeById(repositoryId, objStore.getObjectById(targetId).getTypeId()).getTypeDefinition();
        TypeValidator.validateAllowedRelationshipTypes(typeDef,  sourceTypeDef, targetTypeDef);
 
-        StoredObject storedObject = objStore.createRelationship( relationObjects[0], relationObjects[1],
+       // get name from properties
+       pd = propMap.get(PropertyIds.NAME);
+       String name = (String) pd.getFirstValue();
+
+       StoredObject storedObject = objStore.createRelationship(name, relationObjects[0],
relationObjects[1],
                 propMap, user, addACEs,  removeACEs);
-        return storedObject;
+       return storedObject;
     }
 
     private StoredObject createItemIntern(CallContext context, String repositoryId, Properties
properties, String folderId,



Mime
View raw message