airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [01/14] airavata git commit: making corrections to user profile service code
Date Thu, 02 Feb 2017 21:23:53 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 7a662756d -> 80dbaba6f


http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
----------------------------------------------------------------------
diff --git a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
index 2dcfd0e..91eb8c4 100644
--- a/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
+++ b/modules/user-profile/user-profile-stubs/src/main/java/org/apache/airavata/userprofile/crude/cpi/user_profile_crud_cpiConstants.java
@@ -1,3 +1,19 @@
+    /*
+     * 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.
+     */
 /**
  * Autogenerated by Thrift Compiler (0.9.3)
  *

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
old mode 100755
new mode 100644
index ba95bee..877ba8d
--- a/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
+++ b/thrift-interface-descriptions/component-cpis/generate-cpi-stubs.sh
@@ -73,6 +73,9 @@ GFAC_SRC_DIR='../../modules/gfac/gfac-client/src/main/java/'
 REGISTRY_THRIFT_FILE='registry-api.thrift'
 REGISTRY_SRC_DIR='../../modules/registry/registry-server/registry-api-stubs/src/main/java/'
 
+USER_PROFILE_THRIFT_FILE='user-profile-crud-cpi.thrift'
+USER_PROFILE_SRC_DIR='../../modules/user-profile/user-profile-stubs/src/main/java/'
+
 # Initialize the thrift arguments.
 #  Since most of the Airavata API and Data Models have includes, use recursive option by
default.
 #  Generate all the files in target directory
@@ -171,11 +174,12 @@ generate_thrift_stubs() {
 for arg in "$@"
 do
     case "$arg" in
-    all)    echo "Generate all (credential store, orchestrator, gfac) Stubs"
+    all)    echo "Generate all (credential store, orchestrator, gfac, user_profile) Stubs"
             generate_thrift_stubs ${CS_THRIFT_FILE} ${CS_SRC_DIR}
             generate_thrift_stubs ${ORCHESTRATOR_THRIFT_FILE} ${ORCHESTRATOR_SRC_DIR}
             generate_thrift_stubs ${GFAC_THRIFT_FILE} ${GFAC_SRC_DIR}
             generate_thrift_stubs ${REGISTRY_THRIFT_FILE} ${REGISTRY_SRC_DIR}
+            generate_thrift_stubs ${USER_PROFILE_THRIFT_FILE} ${USER_PROFILE_SRC_DIR}
             ;;
     cs)   echo "Generating Credential Store Stubs"
             generate_thrift_stubs ${CS_THRIFT_FILE} ${CS_SRC_DIR}
@@ -189,6 +193,9 @@ do
     registry)    echo "Generate Registry Stubs"
             generate_thrift_stubs ${REGISTRY_THRIFT_FILE} ${REGISTRY_SRC_DIR}
             ;;
+    up)    echo "Generate User profile Stubs"
+            generate_thrift_stubs ${USER_PROFILE_THRIFT_FILE} ${USER_PROFILE_SRC_DIR}
+            ;;
     *)      echo "Invalid or unsupported option"
     	    show_usage
 	        exit 1

http://git-wip-us.apache.org/repos/asf/airavata/blob/8f6f2183/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
----------------------------------------------------------------------
diff --git a/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift b/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
new file mode 100644
index 0000000..cbdc53c
--- /dev/null
+++ b/thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift
@@ -0,0 +1,58 @@
+/*
+ * 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.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
+
+
+namespace java org.apache.airavata.userprofile.crude.cpi
+
+const string USER_PROFILE_CPI_VERSION = "0.16.0"
+
+service UserProfileCrudeService {
+
+  string addUserProfile (1: required user_profile_model.UserProfile userProfile)
+                        throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  bool updateUserProfile (1: required user_profile_model.UserProfile userProfile)
+                          throws (1:registry_api_errors.RegistryServiceException registryException);
+
+  user_profile_model.UserProfile getUserProfileById(1: required string userId, 2: required
string gatewayId)
+                                                throws (1:registry_api_errors.RegistryServiceException
registryException);
+
+  bool deleteUserProfile(1: required string userId)
+                                                  throws (1:registry_api_errors.RegistryServiceException
registryException);
+
+  list<user_profile_model.UserProfile> getAllUserProfilesInGateway (1: required string
gatewayId, 2: required i32 offset, 3: required i32 limit)
+                          throws (1:registry_api_errors.RegistryServiceException registryException);
+
+ user_profile_model.UserProfile getUserProfileByName(1: required string userName, 2: required
string gatewayId)
+                                                throws (1:registry_api_errors.RegistryServiceException
registryException);
+
+   bool doesUserExist(1: required string userName, 2: required string gatewayId)
+                                                   throws (1:registry_api_errors.RegistryServiceException
registryException);
+
+
+}
\ No newline at end of file


Mime
View raw message