You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2016/02/04 18:52:35 UTC

oodt git commit: OODT-781 fix removal error

Repository: oodt
Updated Branches:
  refs/heads/master 7d14a1594 -> 2590e0438


OODT-781 fix removal error


Project: http://git-wip-us.apache.org/repos/asf/oodt/repo
Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/2590e043
Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/2590e043
Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/2590e043

Branch: refs/heads/master
Commit: 2590e0438640670a93c4dba44502e3d4d3261a30
Parents: 7d14a15
Author: Tom Barber <to...@analytical-labs.com>
Authored: Thu Feb 4 17:52:25 2016 +0000
Committer: Tom Barber <to...@analytical-labs.com>
Committed: Thu Feb 4 17:52:25 2016 +0000

----------------------------------------------------------------------
 CHANGES.txt                                           |  4 ++++
 .../oodt/cas/filemgr/system/XmlRpcFileManager.java    | 14 ++++++++++++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oodt/blob/2590e043/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index aa1319b..bbb551a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,9 @@
 Apache OODT Change Log
 ======================
+Release 0.12 - Under development
+
+* OODT-781 Add missing XMLRPC endpoint for remove hashtable. (magicaltrout)
+
 Release 0.11 - 12/29/2015
 
 * OODT-918 - Created a prerequisite workflow condition for DRAT (Karanjeet

http://git-wip-us.apache.org/repos/asf/oodt/blob/2590e043/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
----------------------------------------------------------------------
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
index 2b0d5dc..bd4dd80 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
+++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
@@ -1106,6 +1106,20 @@ public class XmlRpcFileManager {
     return true;
   }
 
+  public boolean removeProduct(Hashtable table) throws CatalogException {
+    Product p = XmlRpcStructFactory.getProductFromXmlRpc(productHash);
+
+    try {
+      catalog.removeProduct(p);
+    } catch (CatalogException e) {
+      LOG.log(Level.WARNING, "Exception modifying product: ["
+                             + p.getProductId() + "]: Message: " + e.getMessage(), e);
+      throw e;
+    }
+
+    return true;
+  }
+  
   public boolean removeProduct(Map<String, Object> productHash) throws CatalogException {
     Product p = XmlRpcStructFactory.getProductFromXmlRpc(productHash);