Repository: airavata Updated Branches: refs/heads/develop a5156a920 -> f3b8e021c
setting default gateway approval status Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/f3b8e021 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/f3b8e021 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/f3b8e021 Branch: refs/heads/develop Commit: f3b8e021cbaba7e218a70dbf7b9d1a59e9b11047 Parents: a5156a9 Author: scnakandala <supun.nakand...@gmail.com> Authored: Wed Sep 21 17:12:00 2016 -0400 Committer: scnakandala <supun.nakand...@gmail.com> Committed: Wed Sep 21 17:12:00 2016 -0400 ---------------------------------------------------------------------- .../core/experiment/catalog/impl/ExperimentCatalogImpl.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/f3b8e021/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java index 3bc0b92..8494493 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java @@ -38,6 +38,7 @@ import org.apache.airavata.model.status.ProcessStatus; import org.apache.airavata.model.status.TaskStatus; import org.apache.airavata.model.task.TaskModel; import org.apache.airavata.model.workspace.Gateway; +import org.apache.airavata.model.workspace.GatewayApprovalStatus; import org.apache.airavata.model.workspace.Notification; import org.apache.airavata.model.workspace.Project; import org.apache.airavata.registry.core.experiment.catalog.ExpCatResourceUtils; @@ -65,6 +66,7 @@ public class ExperimentCatalogImpl implements ExperimentCatalog { if (!ExpCatResourceUtils.isGatewayExist(ServerSettings.getDefaultUserGateway())){ gatewayResource = (GatewayResource) ExpCatResourceUtils.createGateway(ServerSettings.getDefaultUserGateway()); gatewayResource.setGatewayName(ServerSettings.getDefaultUserGateway()); + gatewayResource.setGatewayApprovalStatus(GatewayApprovalStatus.APPROVED.toString()); gatewayResource.save(); }else { gatewayResource = (GatewayResource) ExpCatResourceUtils.getGateway(ServerSettings.getDefaultUserGateway());