airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject airavata git commit: Adding a thrift datamodel for the google doc version discussed earlier - AIRAVATA-1016
Date Fri, 10 Jun 2016 19:24:34 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 2c7da5eca -> 3eca75420


Adding a thrift datamodel for the google doc version discussed earlier - AIRAVATA-1016


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

Branch: refs/heads/develop
Commit: 3eca754202c7cff3a5b079af86b8b75752f3369f
Parents: 2c7da5e
Author: Suresh Marru <smarru@apache.org>
Authored: Fri Jun 10 15:24:20 2016 -0400
Committer: Suresh Marru <smarru@apache.org>
Committed: Fri Jun 10 15:24:20 2016 -0400

----------------------------------------------------------------------
 .../user-group-models/user_profile_model.thrift | 91 ++++++++++++++++++++
 1 file changed, 91 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/3eca7542/thrift-interface-descriptions/data-models/user-group-models/user_profile_model.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/data-models/user-group-models/user_profile_model.thrift
b/thrift-interface-descriptions/data-models/user-group-models/user_profile_model.thrift
new file mode 100644
index 0000000..3d8a9de
--- /dev/null
+++ b/thrift-interface-descriptions/data-models/user-group-models/user_profile_model.thrift
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+ namespace java org.apache.airavata.model.user
+ namespace php Airavata.Model.User
+ namespace cpp apache.airavata.model.user
+ namespace py apache.airavata.model.user
+
+const string USER_PROFILE_VERSION = "1.0"
+
+enum Status {
+    ACTIVE,
+    CONFIRMED,
+    APPROVED,
+    DELETED,
+    DUPLICATE,
+    GRACE_PERIOD,
+    INVITED,
+    DENIED
+    PENDING,
+    PENDING_APPROVAL,
+    PENDING_CONFIRMATION
+    SUSPENDED
+    DECLINED
+    EXPIRED
+}
+
+struct Publication {
+    1: optional string numCitations,
+    2: optional string name
+}
+
+struct Institution {
+    1: optional bool verified
+}
+
+struct Award {
+    1: optional string id,
+    2: optional string piLastName,
+    3: optional string title,
+    4: optional string awardeeName,
+    5: optional string piFirstName,
+    6: optional string awardeeStateCode,
+    7: optional string agency,
+    8: optional string date,
+    9: optional string fundsObligatedAmt,
+    10: optional string publicAccessMandate,
+    11: optional string awardeeCity
+}
+
+
+/**
+ * A structure holding the user profile and its child models.
+ *
+ * userModelVersion:
+ *  Version number of profile
+ *
+ * airavataInternalUserId:
+ *  internal to Airavata, not intended to be used outside of the Airavata platform or possibly
by gateways
+ *  (that is, never shown to users), never reassigned, REQUIRED
+ *
+*/
+
+struct UserProfile {
+    1: optional string userModelVersion = USER_PROFILE_VERSION,
+    2: optional string airavataInternalUserId = "DO_NOT_ADD_AT_CLIENT",
+    3: optional string email,
+    4: optional string name,
+    5: optional i64 tier,
+    6: optional list<Publication> publications,
+    7: optional list<Award> funding,
+    8: optional Institution institution,
+    9: optional string fundingID
+}
\ No newline at end of file


Mime
View raw message