airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1408387 - in /airavata/trunk/modules/registry: airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java
Date Mon, 12 Nov 2012 18:16:25 GMT
Author: chathuri
Date: Mon Nov 12 18:16:24 2012
New Revision: 1408387

URL: http://svn.apache.org/viewvc?rev=1408387&view=rev
Log:
removing boolean return type from update methods of registry api

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
    airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java?rev=1408387&r1=1408386&r2=1408387&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Mon Nov 12 18:16:24 2012
@@ -838,7 +838,7 @@ public class AiravataJPARegistry extends
 	}
 
 	@Override
-	public boolean updateExperimentExecutionUser(String experimentId,
+	public void updateExperimentExecutionUser(String experimentId,
 			String user) throws RegistryException {
 		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
@@ -847,7 +847,6 @@ public class AiravataJPARegistry extends
 		ExperimentDataResource data = experiment.getData();
 		data.setUserName(user);
 		data.save();
-		return true;
 	}
 
 
@@ -908,7 +907,7 @@ public class AiravataJPARegistry extends
 
 
 	@Override
-	public boolean updateExperimentMetadata(String experimentId, String metadata)
+	public void updateExperimentMetadata(String experimentId, String metadata)
 			throws RegistryException {
 		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
@@ -924,7 +923,6 @@ public class AiravataJPARegistry extends
 			experimentMetadata.setMetadata(metadata);
 		}
 		experimentMetadata.save();
-		return true;
 	}
 
 

Modified: airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java?rev=1408387&r1=1408386&r2=1408387&view=diff
==============================================================================
--- airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java
(original)
+++ airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/ProvenanceRegistry.java
Mon Nov 12 18:16:24 2012
@@ -59,7 +59,7 @@ public interface ProvenanceRegistry exte
      * @return
      * @throws RegistryException
      */
-	public abstract boolean updateExperimentExecutionUser(String experimentId, String user)
throws RegistryException;
+	public abstract void updateExperimentExecutionUser(String experimentId, String user) throws
RegistryException;
     
     /**
      * Retrieve the user who is runing the experiment
@@ -108,7 +108,7 @@ public interface ProvenanceRegistry exte
      * @return
      * @throws RegistryException
      */
-    public abstract boolean updateExperimentMetadata(String experimentId, String metadata)
throws RegistryException;
+    public abstract void updateExperimentMetadata(String experimentId, String metadata) throws
RegistryException;
     
     /**
      * Return the template name of the workflow that this intance was created from



Mime
View raw message