oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject svn commit: r1412053 - /oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java
Date Wed, 21 Nov 2012 10:50:31 GMT
Author: luca
Date: Wed Nov 21 10:50:30 2012
New Revision: 1412053

URL: http://svn.apache.org/viewvc?rev=1412053&view=rev
Log:
Removing product references upon metadata update, as they will be added again later on.

Modified:
    oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java

Modified: oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java
URL: http://svn.apache.org/viewvc/oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java?rev=1412053&r1=1412052&r2=1412053&view=diff
==============================================================================
--- oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java
(original)
+++ oodt/trunk/curator/src/main/java/org/apache/oodt/cas/curation/service/MetadataResource.java
Wed Nov 21 10:50:30 2012
@@ -523,6 +523,12 @@ public class MetadataResource extends Cu
       // retrieve existing metadata
       metadata = catalog.getMetadata(product);
       
+      // remove product references (as they will be added later)
+      metadata.removeMetadata("reference_orig");
+      metadata.removeMetadata("reference_data_store");
+      metadata.removeMetadata("reference_fileSize");
+      metadata.removeMetadata("reference_mimeType");
+      
       // merge new and existing metadata
       metadata.addMetadata(newMetadata);
       



Mime
View raw message