airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject [32/50] [abbrv] airavata git commit: setting default gateway request cretion time
Date Fri, 26 Aug 2016 15:43:27 GMT
setting default gateway request cretion time


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

Branch: refs/heads/lahiru/AIRAVATA-2057
Commit: 67102da4443e92d99d5750c1fa204e87fe6e8a30
Parents: c6a82a0
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Aug 16 21:14:08 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Aug 16 21:14:08 2016 -0400

----------------------------------------------------------------------
 .../registry/core/experiment/catalog/impl/GatewayRegistry.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/67102da4/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
index 37d8820..515b83b 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
@@ -66,7 +66,7 @@ public class GatewayRegistry {
             resource.setDeclinedReason(gateway.getDeclinedReason());
             resource.setOauthClientId(gateway.getOauthClientId());
             resource.setOauthClientSecret(gateway.getOauthClientSecret());
-            resource.setRequestCreationTime(new Timestamp(gateway.getRequestCreationTime()));
+            resource.setRequestCreationTime(new Timestamp(System.currentTimeMillis()));
             resource.save();
             return gateway.getGatewayId();
         }catch (RegistryException e){
@@ -94,7 +94,6 @@ public class GatewayRegistry {
             existingGateway.setDeclinedReason(updatedGateway.getDeclinedReason());
             existingGateway.setOauthClientId(updatedGateway.getOauthClientId());
             existingGateway.setOauthClientSecret(updatedGateway.getOauthClientSecret());
-            existingGateway.setRequestCreationTime(new Timestamp(updatedGateway.getRequestCreationTime()));
             existingGateway.save();
         }catch (RegistryException e){
             logger.error("Error while updating gateway to registry", e);


Mime
View raw message