airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata git commit: setting user id to airavataInternalUserId
Date Mon, 13 Jun 2016 19:01:42 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 21fcc27b5 -> 43bef68af


setting user id to airavataInternalUserId


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

Branch: refs/heads/develop
Commit: 43bef68af6e6bc05b654a097111e288bf4928417
Parents: 21fcc27
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon Jun 13 15:01:38 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon Jun 13 15:01:38 2016 -0400

----------------------------------------------------------------------
 .../airavata/userprofile/core/UserProfileCPIImplementation.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/43bef68a/modules/user-profile/user-profile-core/src/main/java/org/apache/airavata/userprofile/core/UserProfileCPIImplementation.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-core/src/main/java/org/apache/airavata/userprofile/core/UserProfileCPIImplementation.java
b/modules/user-profile/user-profile-core/src/main/java/org/apache/airavata/userprofile/core/UserProfileCPIImplementation.java
index 9b02517..d6599c7 100644
--- a/modules/user-profile/user-profile-core/src/main/java/org/apache/airavata/userprofile/core/UserProfileCPIImplementation.java
+++ b/modules/user-profile/user-profile-core/src/main/java/org/apache/airavata/userprofile/core/UserProfileCPIImplementation.java
@@ -46,6 +46,8 @@ public class UserProfileCPIImplementation implements UserProfileCPI {
     @Override
     public String createUserProfile(UserProfile userProfile) throws UserProfileException
{
         userProfile.setUserId(UUID.randomUUID().toString());
+        // Setting user id to airavataInternalUserId. We don't distinguish these two at the
moment.
+        userProfile.setAiravataInternalUserId(userProfile.getUserId());
         userProfileDao.createUserProfile(userProfile);
         return userProfile.getUserId();
     }


Mime
View raw message