ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1190266 - /incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java
Date Fri, 28 Oct 2011 12:11:45 GMT
Author: marrs
Date: Fri Oct 28 12:11:45 2011
New Revision: 1190266

URL: http://svn.apache.org/viewvc?rev=1190266&view=rev
Log:
ACE-195 applied patch

Modified:
    incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java

Modified: incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java?rev=1190266&r1=1190265&r2=1190266&view=diff
==============================================================================
--- incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java
(original)
+++ incubator/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/Workspace.java
Fri Oct 28 12:11:45 2011
@@ -296,18 +296,9 @@ public class Workspace {
     
     public void deleteRepositoryObject(String entityType, String entityId) {
         RepositoryObject result = null;
-        try {
-            List list = null;
-            Filter filter = FrameworkUtil.createFilter(entityId);
             ObjectRepository objectRepository = getObjectRepository(entityType);
-            list = objectRepository.get(filter);
-            if (list != null && list.size() == 1) {
-                objectRepository.remove((RepositoryObject) list.get(0));
-            }
-        }
-        catch (InvalidSyntaxException e) {
-            e.printStackTrace();
-        }
+            RepositoryObject repositoryObject = objectRepository.get(entityId);
+            objectRepository.remove(repositoryObject);
     }
 
     private ObjectRepository getObjectRepository(String entityType) {



Mime
View raw message