airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [24/31] airavata git commit: Fixed issue with SecureClient
Date Wed, 13 Jul 2016 05:33:31 GMT
Fixed issue with SecureClient


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/1148ffc0
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/1148ffc0
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/1148ffc0

Branch: refs/heads/grouper-integration
Commit: 1148ffc078a4dafbb5f3e38d355f9faa07320594
Parents: 3b09770
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Tue Jul 12 16:39:56 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Tue Jul 12 16:39:56 2016 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/client/secure/client/SecureClient.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/1148ffc0/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/secure/client/SecureClient.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/secure/client/SecureClient.java
b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/secure/client/SecureClient.java
index a82ca2b..bf7f39f 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/secure/client/SecureClient.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/secure/client/SecureClient.java
@@ -27,6 +27,7 @@ import org.apache.airavata.model.error.AiravataClientException;
 import org.apache.airavata.model.error.InvalidRequestException;
 import org.apache.airavata.model.security.AuthzToken;
 import org.apache.airavata.model.workspace.Gateway;
+import org.apache.airavata.model.workspace.GatewayApprovalStatus;
 import org.apache.airavata.security.AiravataSecurityException;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.ConfigurationContextFactory;
@@ -222,7 +223,7 @@ public class SecureClient {
                 System.out.println("Enter the gateway id: ");
                 String gatewayId = scanner.next().trim();
 
-                Gateway gateway = new Gateway(gatewayId);
+                Gateway gateway = new Gateway(gatewayId, GatewayApprovalStatus.REQUESTED);
                 gateway.setDomain("airavata.org");
                 gateway.setEmailAddress("airavata@apache.org");
                 gateway.setGatewayName("airavataGW");


Mime
View raw message