airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1388630 - /airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Date Fri, 21 Sep 2012 19:20:26 GMT
Author: samindaw
Date: Fri Sep 21 19:20:26 2012
New Revision: 1388630

URL: http://svn.apache.org/viewvc?rev=1388630&view=rev
Log:
create experiment if it exists

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.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=1388630&r1=1388629&r2=1388630&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
Fri Sep 21 19:20:26 2012
@@ -826,7 +826,7 @@ public class AiravataJPARegistry extends
 	@Override
 	public boolean updateExperimentExecutionUser(String experimentId,
 			String user) throws RegistryException {
-		if (!isExperimentExists(experimentId)){
+		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
 		}
 		ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
@@ -862,7 +862,7 @@ public class AiravataJPARegistry extends
 	@Override
 	public boolean updateExperimentName(String experimentId,
 			String experimentName) throws RegistryException {
-		if (!isExperimentExists(experimentId)){
+		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
 		}
 		ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
@@ -876,7 +876,7 @@ public class AiravataJPARegistry extends
 	@Override
 	public String getExperimentMetadata(String experimentId)
 			throws RegistryException {
-		if (!isExperimentExists(experimentId)){
+		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
 		}
 		ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
@@ -891,7 +891,7 @@ public class AiravataJPARegistry extends
 	@Override
 	public boolean updateExperimentMetadata(String experimentId, String metadata)
 			throws RegistryException {
-		if (!isExperimentExists(experimentId)){
+		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
 		}
 		ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
@@ -1325,7 +1325,7 @@ public class AiravataJPARegistry extends
 	@Override
 	public boolean addWorkflowInstance(String experimentId,
 			String workflowInstanceId, String templateName) throws RegistryException {
-		if (!isExperimentExists(experimentId)){
+		if (!isExperimentExists(experimentId, true)){
 			throw new ExperimentDoesNotExistsException(experimentId);
 		}
 		if (isWorkflowInstanceExists(workflowInstanceId)){



Mime
View raw message