You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2017/05/23 19:45:51 UTC
[1/3] airavata git commit: adding new API method to get the group
memberships for a user
Repository: airavata
Updated Branches:
refs/heads/develop 701f36a7a -> cb27490d6
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-service-docs/api-docs/index.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/index.html b/modules/sharing-registry/sharing-service-docs/api-docs/index.html
index 8773c10..740be59 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/index.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/index.html
@@ -1,24 +1,3 @@
-<!--
-
-
- 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.
-
--->
<html><head>
<link href="style.css" rel="stylesheet" type="text/css"/>
<title>All Thrift declarations</title></head><body>
@@ -42,6 +21,7 @@
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_deleteGroup">deleteGroup</a></li>
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_deletePermissionType">deletePermissionType</a></li>
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_deleteUser">deleteUser</a></li>
+<li><a href="sharing_cpi.html#Fn_SharingRegistryService_getAllMemberGroupsForUser">getAllMemberGroupsForUser</a></li>
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_getDomain">getDomain</a></li>
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_getDomains">getDomains</a></li>
<li><a href="sharing_cpi.html#Fn_SharingRegistryService_getEntity">getEntity</a></li>
@@ -84,6 +64,7 @@
</tr><tr>
<td>sharing_models</td><td></td>
<td><a href="sharing_models.html#Struct_Domain">Domain</a><br/>
+<a href="sharing_models.html#Struct_DuplicateEntryException">DuplicateEntryException</a><br/>
<a href="sharing_models.html#Struct_Entity">Entity</a><br/>
<a href="sharing_models.html#Enum_EntitySearchField">EntitySearchField</a><br/>
<a href="sharing_models.html#Struct_EntityType">EntityType</a><br/>
@@ -102,124 +83,5 @@
</td>
<td><code><a href="sharing_models.html#Const_DO_NOT_SET_AT_CLIENTS_ID">DO_NOT_SET_AT_CLIENTS_ID</a></code><br/>
</code></td>
-</tr><tr>
-<td>airavata_errors</td><td></td>
-<td><a href="airavata_errors.html#Struct_AiravataClientException">AiravataClientException</a><br/>
-<a href="airavata_errors.html#Enum_AiravataErrorType">AiravataErrorType</a><br/>
-<a href="airavata_errors.html#Struct_AiravataSystemException">AiravataSystemException</a><br/>
-<a href="airavata_errors.html#Struct_AuthenticationException">AuthenticationException</a><br/>
-<a href="airavata_errors.html#Struct_AuthorizationException">AuthorizationException</a><br/>
-<a href="airavata_errors.html#Struct_DuplicateEntryException">DuplicateEntryException</a><br/>
-<a href="airavata_errors.html#Struct_ExperimentNotFoundException">ExperimentNotFoundException</a><br/>
-<a href="airavata_errors.html#Struct_InvalidRequestException">InvalidRequestException</a><br/>
-<a href="airavata_errors.html#Struct_LaunchValidationException">LaunchValidationException</a><br/>
-<a href="airavata_errors.html#Struct_ProjectNotFoundException">ProjectNotFoundException</a><br/>
-<a href="airavata_errors.html#Struct_TimedOutException">TimedOutException</a><br/>
-<a href="airavata_errors.html#Struct_ValidationResults">ValidationResults</a><br/>
-<a href="airavata_errors.html#Struct_ValidatorResult">ValidatorResult</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>experiment_model</td><td></td>
-<td><a href="experiment_model.html#Struct_ExperimentModel">ExperimentModel</a><br/>
-<a href="experiment_model.html#Enum_ExperimentSearchFields">ExperimentSearchFields</a><br/>
-<a href="experiment_model.html#Struct_ExperimentStatistics">ExperimentStatistics</a><br/>
-<a href="experiment_model.html#Struct_ExperimentSummaryModel">ExperimentSummaryModel</a><br/>
-<a href="experiment_model.html#Enum_ExperimentType">ExperimentType</a><br/>
-<a href="experiment_model.html#Enum_ProjectSearchFields">ProjectSearchFields</a><br/>
-<a href="experiment_model.html#Struct_UserConfigurationDataModel">UserConfigurationDataModel</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>airavata_commons</td><td></td>
-<td><a href="airavata_commons.html#Struct_ErrorModel">ErrorModel</a><br/>
-<a href="airavata_commons.html#Struct_ValidationResults">ValidationResults</a><br/>
-<a href="airavata_commons.html#Struct_ValidatorResult">ValidatorResult</a><br/>
-</td>
-<td><code><a href="airavata_commons.html#Const_DEFAULT_ID">DEFAULT_ID</a></code><br/>
-</code></td>
-</tr><tr>
-<td>application_io_models</td><td></td>
-<td><a href="application_io_models.html#Enum_DataType">DataType</a><br/>
-<a href="application_io_models.html#Struct_InputDataObjectType">InputDataObjectType</a><br/>
-<a href="application_io_models.html#Struct_OutputDataObjectType">OutputDataObjectType</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>compute_resource_model</td><td></td>
-<td><a href="compute_resource_model.html#Struct_BatchQueue">BatchQueue</a><br/>
-<a href="compute_resource_model.html#Struct_CloudJobSubmission">CloudJobSubmission</a><br/>
-<a href="compute_resource_model.html#Struct_ComputeResourceDescription">ComputeResourceDescription</a><br/>
-<a href="compute_resource_model.html#Enum_DMType">DMType</a><br/>
-<a href="compute_resource_model.html#Enum_FileSystems">FileSystems</a><br/>
-<a href="compute_resource_model.html#Struct_GlobusJobSubmission">GlobusJobSubmission</a><br/>
-<a href="compute_resource_model.html#Enum_JobManagerCommand">JobManagerCommand</a><br/>
-<a href="compute_resource_model.html#Struct_JobSubmissionInterface">JobSubmissionInterface</a><br/>
-<a href="compute_resource_model.html#Enum_JobSubmissionProtocol">JobSubmissionProtocol</a><br/>
-<a href="compute_resource_model.html#Struct_LOCALSubmission">LOCALSubmission</a><br/>
-<a href="compute_resource_model.html#Enum_MonitorMode">MonitorMode</a><br/>
-<a href="compute_resource_model.html#Enum_ProviderName">ProviderName</a><br/>
-<a href="compute_resource_model.html#Struct_ResourceJobManager">ResourceJobManager</a><br/>
-<a href="compute_resource_model.html#Enum_ResourceJobManagerType">ResourceJobManagerType</a><br/>
-<a href="compute_resource_model.html#Struct_SSHJobSubmission">SSHJobSubmission</a><br/>
-<a href="compute_resource_model.html#Struct_UnicoreJobSubmission">UnicoreJobSubmission</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>parallelism_model</td><td></td>
-<td><a href="parallelism_model.html#Enum_ApplicationParallelismType">ApplicationParallelismType</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>data_movement_models</td><td></td>
-<td><a href="data_movement_models.html#Enum_DMType">DMType</a><br/>
-<a href="data_movement_models.html#Struct_DataMovementInterface">DataMovementInterface</a><br/>
-<a href="data_movement_models.html#Enum_DataMovementProtocol">DataMovementProtocol</a><br/>
-<a href="data_movement_models.html#Struct_GridFTPDataMovement">GridFTPDataMovement</a><br/>
-<a href="data_movement_models.html#Struct_LOCALDataMovement">LOCALDataMovement</a><br/>
-<a href="data_movement_models.html#Struct_SCPDataMovement">SCPDataMovement</a><br/>
-<a href="data_movement_models.html#Enum_SecurityProtocol">SecurityProtocol</a><br/>
-<a href="data_movement_models.html#Struct_UnicoreDataMovement">UnicoreDataMovement</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>scheduling_model</td><td></td>
-<td><a href="scheduling_model.html#Struct_ComputationalResourceSchedulingModel">ComputationalResourceSchedulingModel</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>status_models</td><td></td>
-<td><a href="status_models.html#Enum_ExperimentState">ExperimentState</a><br/>
-<a href="status_models.html#Struct_ExperimentStatus">ExperimentStatus</a><br/>
-<a href="status_models.html#Enum_JobState">JobState</a><br/>
-<a href="status_models.html#Struct_JobStatus">JobStatus</a><br/>
-<a href="status_models.html#Enum_ProcessState">ProcessState</a><br/>
-<a href="status_models.html#Struct_ProcessStatus">ProcessStatus</a><br/>
-<a href="status_models.html#Struct_QueueStatusModel">QueueStatusModel</a><br/>
-<a href="status_models.html#Enum_TaskState">TaskState</a><br/>
-<a href="status_models.html#Struct_TaskStatus">TaskStatus</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>process_model</td><td></td>
-<td><a href="process_model.html#Struct_ProcessModel">ProcessModel</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>task_model</td><td></td>
-<td><a href="task_model.html#Enum_DataStageType">DataStageType</a><br/>
-<a href="task_model.html#Struct_DataStagingTaskModel">DataStagingTaskModel</a><br/>
-<a href="task_model.html#Struct_EnvironmentSetupTaskModel">EnvironmentSetupTaskModel</a><br/>
-<a href="task_model.html#Struct_JobSubmissionTaskModel">JobSubmissionTaskModel</a><br/>
-<a href="task_model.html#Struct_MonitorTaskModel">MonitorTaskModel</a><br/>
-<a href="task_model.html#Struct_TaskModel">TaskModel</a><br/>
-<a href="task_model.html#Enum_TaskTypes">TaskTypes</a><br/>
-</td>
-<td></code></td>
-</tr><tr>
-<td>job_model</td><td></td>
-<td><a href="job_model.html#Struct_JobModel">JobModel</a><br/>
-</td>
-<td></code></td>
</tr></table>
</div></body></html>
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
index 8f55070..4be429a 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_cpi.html
@@ -1,24 +1,3 @@
-<!--
-
-
- 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.
-
--->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -46,6 +25,7 @@
<li><a href="#Fn_SharingRegistryService_deleteGroup">deleteGroup</a></li>
<li><a href="#Fn_SharingRegistryService_deletePermissionType">deletePermissionType</a></li>
<li><a href="#Fn_SharingRegistryService_deleteUser">deleteUser</a></li>
+<li><a href="#Fn_SharingRegistryService_getAllMemberGroupsForUser">getAllMemberGroupsForUser</a></li>
<li><a href="#Fn_SharingRegistryService_getDomain">getDomain</a></li>
<li><a href="#Fn_SharingRegistryService_getDomains">getDomains</a></li>
<li><a href="#Fn_SharingRegistryService_getEntity">getEntity</a></li>
@@ -90,7 +70,7 @@
<h3 id="Svc_SharingRegistryService">Service: SharingRegistryService</h3>
<div class="definition"><h4 id="Fn_SharingRegistryService_createDomain">Function: SharingRegistryService.createDomain</h4>
<pre><code>string</code> createDomain(<code><a href="sharing_models.html#Struct_Domain">sharing_models.Domain</a></code> domain)
- throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
+ throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="sharing_models.html#Struct_DuplicateEntryException">sharing_models.DuplicateEntryException</a></code>
</pre><p>API method to create a new domain</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updateDomain">Function: SharingRegistryService.updateDomain</h4>
<pre><code>bool</code> updateDomain(<code><a href="sharing_models.html#Struct_Domain">sharing_models.Domain</a></code> domain)
@@ -115,7 +95,7 @@
</pre><p>API method to get all domain.</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createUser">Function: SharingRegistryService.createUser</h4>
<pre><code>string</code> createUser(<code><a href="sharing_models.html#Struct_User">sharing_models.User</a></code> user)
- throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
+ throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="sharing_models.html#Struct_DuplicateEntryException">sharing_models.DuplicateEntryException</a></code>
</pre><p>API method to register a user in the system</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updatedUser">Function: SharingRegistryService.updatedUser</h4>
<pre><code>bool</code> updatedUser(<code><a href="sharing_models.html#Struct_User">sharing_models.User</a></code> user)
@@ -211,9 +191,13 @@
<code>string</code> groupId)
throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
</pre><p>API method to remove a child group from parent group.</p>
-<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createEntityType">Function: SharingRegistryService.createEntityType</h4>
+<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_getAllMemberGroupsForUser">Function: SharingRegistryService.getAllMemberGroupsForUser</h4>
+<pre><code>list<<code><a href="sharing_models.html#Struct_UserGroup">sharing_models.UserGroup</a></code>></code> getAllMemberGroupsForUser(<code>string</code> domainId,
+ <code>string</code> userId)
+ throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>
+</pre></div><div class="definition"><h4 id="Fn_SharingRegistryService_createEntityType">Function: SharingRegistryService.createEntityType</h4>
<pre><code>string</code> createEntityType(<code><a href="sharing_models.html#Struct_EntityType">sharing_models.EntityType</a></code> entityType)
- throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
+ throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="sharing_models.html#Struct_DuplicateEntryException">sharing_models.DuplicateEntryException</a></code>
</pre><p>API method to create a new entity type</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updateEntityType">Function: SharingRegistryService.updateEntityType</h4>
<pre><code>bool</code> updateEntityType(<code><a href="sharing_models.html#Struct_EntityType">sharing_models.EntityType</a></code> entityType)
@@ -285,7 +269,7 @@
</pre><p>API method to get a list of shared groups given the entity id</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_createPermissionType">Function: SharingRegistryService.createPermissionType</h4>
<pre><code>string</code> createPermissionType(<code><a href="sharing_models.html#Struct_PermissionType">sharing_models.PermissionType</a></code> permissionType)
- throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="airavata_errors.html#Struct_DuplicateEntryException">airavata_errors.DuplicateEntryException</a></code>
+ throws <code><a href="sharing_models.html#Struct_SharingRegistryException">sharing_models.SharingRegistryException</a></code>, <code><a href="sharing_models.html#Struct_DuplicateEntryException">sharing_models.DuplicateEntryException</a></code>
</pre><p>API method to create permission type</p>
<br/></div><div class="definition"><h4 id="Fn_SharingRegistryService_updatePermissionType">Function: SharingRegistryService.updatePermissionType</h4>
<pre><code>bool</code> updatePermissionType(<code><a href="sharing_models.html#Struct_PermissionType">sharing_models.PermissionType</a></code> permissionType)
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
index 07e4a1d..f6bf941 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/sharing_models.html
@@ -1,24 +1,3 @@
-<!--
-
-
- 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.
-
--->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -32,6 +11,7 @@
<tr>
<td>sharing_models</td><td></td>
<td><a href="#Struct_Domain">Domain</a><br/>
+<a href="#Struct_DuplicateEntryException">DuplicateEntryException</a><br/>
<a href="#Struct_Entity">Entity</a><br/>
<a href="#Enum_EntitySearchField">EntitySearchField</a><br/>
<a href="#Struct_EntityType">EntityType</a><br/>
@@ -309,4 +289,12 @@ set will be default to current time</li>
<tr><td>1</td><td>message</td><td><code>string</code></td><td></td><td>required</td><td></td></tr>
</table><br/><p>Exception model used in the sharing registry service</p>
+<br/></div><div class="definition"><h3 id="Struct_DuplicateEntryException">Exception: DuplicateEntryException</h3>
+<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
+<tr><td>1</td><td>message</td><td><code>string</code></td><td></td><td>required</td><td></td></tr>
+</table><br/>This exception is thrown when you try to save a duplicate entity that already exists
+ in the database.
+
+ message: contains the associated error message
+
<br/></div></div></body></html>
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-service-docs/api-docs/style.css
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-service-docs/api-docs/style.css b/modules/sharing-registry/sharing-service-docs/api-docs/style.css
index c53ad37..34fd9d7 100644
--- a/modules/sharing-registry/sharing-service-docs/api-docs/style.css
+++ b/modules/sharing-registry/sharing-service-docs/api-docs/style.css
@@ -1,21 +1,11 @@
-/**
+/*!
+ * Bootstrap v2.0.3
*
- * 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
+ * Copyright 2012 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * 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.
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";}
.clearfix:after{clear:both;}
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/thrift_models/sharing_cpi.thrift
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/thrift_models/sharing_cpi.thrift b/modules/sharing-registry/thrift_models/sharing_cpi.thrift
index 8791d24..c408846 100644
--- a/modules/sharing-registry/thrift_models/sharing_cpi.thrift
+++ b/modules/sharing-registry/thrift_models/sharing_cpi.thrift
@@ -21,14 +21,13 @@
namespace java org.apache.airavata.sharing.registry.service.cpi
include "./sharing_models.thrift"
-include "../../../thrift-interface-descriptions/airavata-apis/airavata_errors.thrift"
service SharingRegistryService {
/**
<p>API method to create a new domain</p>
*/
- string createDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
+ string createDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException sre, 2: sharing_models.DuplicateEntryException dee)
/**
<p>API method to update a domain</p>
*/
@@ -53,7 +52,7 @@ service SharingRegistryService {
/**
<p>API method to register a user in the system</p>
*/
- string createUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
+ string createUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException sre, 2: sharing_models.DuplicateEntryException dee)
/**
<p>API method to update existing user</p>
*/
@@ -128,10 +127,12 @@ service SharingRegistryService {
*/
bool removeChildGroupFromParentGroup(1: required string domainId, 2: required string childId, 3: required string groupId) throws (1: sharing_models.SharingRegistryException sre);
+ list<sharing_models.UserGroup> getAllMemberGroupsForUser(1: required string domainId, 2: required string userId) throws (1: sharing_models.SharingRegistryException sre);
+
/**
<p>API method to create a new entity type</p>
*/
- string createEntityType(1: required sharing_models.EntityType entityType) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
+ string createEntityType(1: required sharing_models.EntityType entityType) throws (1: sharing_models.SharingRegistryException sre, 2: sharing_models.DuplicateEntryException dee)
/**
<p>API method to update entity type</p>
*/
@@ -190,7 +191,7 @@ service SharingRegistryService {
/**
<p>API method to create permission type</p>
*/
- string createPermissionType(1: required sharing_models.PermissionType permissionType) throws (1: sharing_models.SharingRegistryException sre, 2: airavata_errors.DuplicateEntryException dee)
+ string createPermissionType(1: required sharing_models.PermissionType permissionType) throws (1: sharing_models.SharingRegistryException sre, 2: sharing_models.DuplicateEntryException dee)
/**
<p>API method to update permission type</p>
*/
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/thrift_models/sharing_models.thrift
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/thrift_models/sharing_models.thrift b/modules/sharing-registry/thrift_models/sharing_models.thrift
index 25c6ea9..141f120 100644
--- a/modules/sharing-registry/thrift_models/sharing_models.thrift
+++ b/modules/sharing-registry/thrift_models/sharing_models.thrift
@@ -277,3 +277,13 @@ struct Sharing {
exception SharingRegistryException {
1: required string message
}
+
+/**
+* This exception is thrown when you try to save a duplicate entity that already exists
+* in the database.
+*
+* message: contains the associated error message
+**/
+exception DuplicateEntryException {
+ 1: required string message
+}
\ No newline at end of file
[2/3] airavata git commit: adding new API method to get the group
memberships for a user
Posted by sc...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
index 60fa2b5..175fef6 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/service/cpi/SharingRegistryService.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
@@ -63,7 +44,7 @@ public class SharingRegistryService {
*
* @param domain
*/
- public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
+ public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException;
/**
* <p>API method to update a domain</p>
@@ -106,7 +87,7 @@ public class SharingRegistryService {
*
* @param user
*/
- public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
+ public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException;
/**
* <p>API method to update existing user</p>
@@ -254,12 +235,14 @@ public class SharingRegistryService {
*/
public boolean removeChildGroupFromParentGroup(String domainId, String childId, String groupId) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+ public List<org.apache.airavata.sharing.registry.models.UserGroup> getAllMemberGroupsForUser(String domainId, String userId) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException;
+
/**
* <p>API method to create a new entity type</p>
*
* @param entityType
*/
- public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
+ public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException;
/**
* <p>API method to update entity type</p>
@@ -373,7 +356,7 @@ public class SharingRegistryService {
*
* @param permissionType
*/
- public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException;
+ public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException;
/**
* <p>API method to update permission type</p>
@@ -519,6 +502,8 @@ public class SharingRegistryService {
public void removeChildGroupFromParentGroup(String domainId, String childId, String groupId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getAllMemberGroupsForUser(String domainId, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -591,7 +576,7 @@ public class SharingRegistryService {
super(iprot, oprot);
}
- public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String createDomain(org.apache.airavata.sharing.registry.models.Domain domain) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
send_createDomain(domain);
return recv_createDomain();
@@ -604,7 +589,7 @@ public class SharingRegistryService {
sendBase("createDomain", args);
}
- public String recv_createDomain() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String recv_createDomain() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
createDomain_result result = new createDomain_result();
receiveBase(result, "createDomain");
@@ -751,7 +736,7 @@ public class SharingRegistryService {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDomains failed: unknown result");
}
- public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String createUser(org.apache.airavata.sharing.registry.models.User user) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
send_createUser(user);
return recv_createUser();
@@ -764,7 +749,7 @@ public class SharingRegistryService {
sendBase("createUser", args);
}
- public String recv_createUser() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String recv_createUser() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
createUser_result result = new createUser_result();
receiveBase(result, "createUser");
@@ -1243,7 +1228,34 @@ public class SharingRegistryService {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeChildGroupFromParentGroup failed: unknown result");
}
- public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public List<org.apache.airavata.sharing.registry.models.UserGroup> getAllMemberGroupsForUser(String domainId, String userId) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+ {
+ send_getAllMemberGroupsForUser(domainId, userId);
+ return recv_getAllMemberGroupsForUser();
+ }
+
+ public void send_getAllMemberGroupsForUser(String domainId, String userId) throws org.apache.thrift.TException
+ {
+ getAllMemberGroupsForUser_args args = new getAllMemberGroupsForUser_args();
+ args.setDomainId(domainId);
+ args.setUserId(userId);
+ sendBase("getAllMemberGroupsForUser", args);
+ }
+
+ public List<org.apache.airavata.sharing.registry.models.UserGroup> recv_getAllMemberGroupsForUser() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException
+ {
+ getAllMemberGroupsForUser_result result = new getAllMemberGroupsForUser_result();
+ receiveBase(result, "getAllMemberGroupsForUser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.sre != null) {
+ throw result.sre;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllMemberGroupsForUser failed: unknown result");
+ }
+
+ public String createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
send_createEntityType(entityType);
return recv_createEntityType();
@@ -1256,7 +1268,7 @@ public class SharingRegistryService {
sendBase("createEntityType", args);
}
- public String recv_createEntityType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String recv_createEntityType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
createEntityType_result result = new createEntityType_result();
receiveBase(result, "createEntityType");
@@ -1626,7 +1638,7 @@ public class SharingRegistryService {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getListOfSharedGroups failed: unknown result");
}
- public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String createPermissionType(org.apache.airavata.sharing.registry.models.PermissionType permissionType) throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
send_createPermissionType(permissionType);
return recv_createPermissionType();
@@ -1639,7 +1651,7 @@ public class SharingRegistryService {
sendBase("createPermissionType", args);
}
- public String recv_createPermissionType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException
+ public String recv_createPermissionType() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException
{
createPermissionType_result result = new createPermissionType_result();
receiveBase(result, "createPermissionType");
@@ -1977,7 +1989,7 @@ public class SharingRegistryService {
prot.writeMessageEnd();
}
- public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
+ public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -2172,7 +2184,7 @@ public class SharingRegistryService {
prot.writeMessageEnd();
}
- public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
+ public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -2798,6 +2810,41 @@ public class SharingRegistryService {
}
}
+ public void getAllMemberGroupsForUser(String domainId, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllMemberGroupsForUser_call method_call = new getAllMemberGroupsForUser_call(domainId, userId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllMemberGroupsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String domainId;
+ private String userId;
+ public getAllMemberGroupsForUser_call(String domainId, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.domainId = domainId;
+ this.userId = userId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllMemberGroupsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllMemberGroupsForUser_args args = new getAllMemberGroupsForUser_args();
+ args.setDomainId(domainId);
+ args.setUserId(userId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List<org.apache.airavata.sharing.registry.models.UserGroup> getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAllMemberGroupsForUser();
+ }
+ }
+
public void createEntityType(org.apache.airavata.sharing.registry.models.EntityType entityType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
createEntityType_call method_call = new createEntityType_call(entityType, resultHandler, this, ___protocolFactory, ___transport);
@@ -2820,7 +2867,7 @@ public class SharingRegistryService {
prot.writeMessageEnd();
}
- public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
+ public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -3316,7 +3363,7 @@ public class SharingRegistryService {
prot.writeMessageEnd();
}
- public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.model.error.DuplicateEntryException, org.apache.thrift.TException {
+ public String getResult() throws org.apache.airavata.sharing.registry.models.SharingRegistryException, org.apache.airavata.sharing.registry.models.DuplicateEntryException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -3749,6 +3796,7 @@ public class SharingRegistryService {
processMap.put("getGroupMembersOfTypeGroup", new getGroupMembersOfTypeGroup());
processMap.put("addChildGroupsToParentGroup", new addChildGroupsToParentGroup());
processMap.put("removeChildGroupFromParentGroup", new removeChildGroupFromParentGroup());
+ processMap.put("getAllMemberGroupsForUser", new getAllMemberGroupsForUser());
processMap.put("createEntityType", new createEntityType());
processMap.put("updateEntityType", new updateEntityType());
processMap.put("isEntityTypeExists", new isEntityTypeExists());
@@ -3796,7 +3844,7 @@ public class SharingRegistryService {
result.success = iface.createDomain(args.domain);
} catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
result.sre = sre;
- } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+ } catch (org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
result.dee = dee;
}
return result;
@@ -3945,7 +3993,7 @@ public class SharingRegistryService {
result.success = iface.createUser(args.user);
} catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
result.sre = sre;
- } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+ } catch (org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
result.dee = dee;
}
return result;
@@ -4366,6 +4414,30 @@ public class SharingRegistryService {
}
}
+ public static class getAllMemberGroupsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllMemberGroupsForUser_args> {
+ public getAllMemberGroupsForUser() {
+ super("getAllMemberGroupsForUser");
+ }
+
+ public getAllMemberGroupsForUser_args getEmptyArgsInstance() {
+ return new getAllMemberGroupsForUser_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getAllMemberGroupsForUser_result getResult(I iface, getAllMemberGroupsForUser_args args) throws org.apache.thrift.TException {
+ getAllMemberGroupsForUser_result result = new getAllMemberGroupsForUser_result();
+ try {
+ result.success = iface.getAllMemberGroupsForUser(args.domainId, args.userId);
+ } catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
+ result.sre = sre;
+ }
+ return result;
+ }
+ }
+
public static class createEntityType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createEntityType_args> {
public createEntityType() {
super("createEntityType");
@@ -4385,7 +4457,7 @@ public class SharingRegistryService {
result.success = iface.createEntityType(args.entityType);
} catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
result.sre = sre;
- } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+ } catch (org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
result.dee = dee;
}
return result;
@@ -4729,7 +4801,7 @@ public class SharingRegistryService {
result.success = iface.createPermissionType(args.permissionType);
} catch (org.apache.airavata.sharing.registry.models.SharingRegistryException sre) {
result.sre = sre;
- } catch (org.apache.airavata.model.error.DuplicateEntryException dee) {
+ } catch (org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
result.dee = dee;
}
return result;
@@ -5021,6 +5093,7 @@ public class SharingRegistryService {
processMap.put("getGroupMembersOfTypeGroup", new getGroupMembersOfTypeGroup());
processMap.put("addChildGroupsToParentGroup", new addChildGroupsToParentGroup());
processMap.put("removeChildGroupFromParentGroup", new removeChildGroupFromParentGroup());
+ processMap.put("getAllMemberGroupsForUser", new getAllMemberGroupsForUser());
processMap.put("createEntityType", new createEntityType());
processMap.put("updateEntityType", new updateEntityType());
processMap.put("isEntityTypeExists", new isEntityTypeExists());
@@ -5081,8 +5154,8 @@ public class SharingRegistryService {
result.setSreIsSet(true);
msg = result;
}
- else if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
- result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+ else if (e instanceof org.apache.airavata.sharing.registry.models.DuplicateEntryException) {
+ result.dee = (org.apache.airavata.sharing.registry.models.DuplicateEntryException) e;
result.setDeeIsSet(true);
msg = result;
}
@@ -5431,8 +5504,8 @@ public class SharingRegistryService {
result.setSreIsSet(true);
msg = result;
}
- else if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
- result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
+ else if (e instanceof org.apache.airavata.sharing.registry.models.DuplicateEntryException) {
+ result.dee = (org.apache.airavata.sharing.registry.models.DuplicateEntryException) e;
result.setDeeIsSet(true);
msg = result;
}
@@ -6434,20 +6507,20 @@ public class SharingRegistryService {
}
}
- public static class createEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createEntityType_args, String> {
- public createEntityType() {
- super("createEntityType");
+ public static class getAllMemberGroupsForUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllMemberGroupsForUser_args, List<org.apache.airavata.sharing.registry.models.UserGroup>> {
+ public getAllMemberGroupsForUser() {
+ super("getAllMemberGroupsForUser");
}
- public createEntityType_args getEmptyArgsInstance() {
- return new createEntityType_args();
+ public getAllMemberGroupsForUser_args getEmptyArgsInstance() {
+ return new getAllMemberGroupsForUser_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
- createEntityType_result result = new createEntityType_result();
+ return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>>() {
+ public void onComplete(List<org.apache.airavata.sharing.registry.models.UserGroup> o) {
+ getAllMemberGroupsForUser_result result = new getAllMemberGroupsForUser_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -6460,17 +6533,12 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- createEntityType_result result = new createEntityType_result();
+ getAllMemberGroupsForUser_result result = new getAllMemberGroupsForUser_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
msg = result;
}
- else if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
- result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
- result.setDeeIsSet(true);
- msg = result;
- }
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -6491,27 +6559,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, createEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
- iface.createEntityType(args.entityType,resultHandler);
+ public void start(I iface, getAllMemberGroupsForUser_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> resultHandler) throws TException {
+ iface.getAllMemberGroupsForUser(args.domainId, args.userId,resultHandler);
}
}
- public static class updateEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateEntityType_args, Boolean> {
- public updateEntityType() {
- super("updateEntityType");
+ public static class createEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createEntityType_args, String> {
+ public createEntityType() {
+ super("createEntityType");
}
- public updateEntityType_args getEmptyArgsInstance() {
- return new updateEntityType_args();
+ public createEntityType_args getEmptyArgsInstance() {
+ return new createEntityType_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- updateEntityType_result result = new updateEntityType_result();
+ return new AsyncMethodCallback<String>() {
+ public void onComplete(String o) {
+ createEntityType_result result = new createEntityType_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -6523,12 +6590,17 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- updateEntityType_result result = new updateEntityType_result();
+ createEntityType_result result = new createEntityType_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
msg = result;
}
+ else if (e instanceof org.apache.airavata.sharing.registry.models.DuplicateEntryException) {
+ result.dee = (org.apache.airavata.sharing.registry.models.DuplicateEntryException) e;
+ result.setDeeIsSet(true);
+ msg = result;
+ }
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -6549,25 +6621,25 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, updateEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.updateEntityType(args.entityType,resultHandler);
+ public void start(I iface, createEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ iface.createEntityType(args.entityType,resultHandler);
}
}
- public static class isEntityTypeExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isEntityTypeExists_args, Boolean> {
- public isEntityTypeExists() {
- super("isEntityTypeExists");
+ public static class updateEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateEntityType_args, Boolean> {
+ public updateEntityType() {
+ super("updateEntityType");
}
- public isEntityTypeExists_args getEmptyArgsInstance() {
- return new isEntityTypeExists_args();
+ public updateEntityType_args getEmptyArgsInstance() {
+ return new updateEntityType_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
- isEntityTypeExists_result result = new isEntityTypeExists_result();
+ updateEntityType_result result = new updateEntityType_result();
result.success = o;
result.setSuccessIsSet(true);
try {
@@ -6581,7 +6653,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- isEntityTypeExists_result result = new isEntityTypeExists_result();
+ updateEntityType_result result = new updateEntityType_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -6607,25 +6679,25 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, isEntityTypeExists_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.isEntityTypeExists(args.domainId, args.entityTypeId,resultHandler);
+ public void start(I iface, updateEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.updateEntityType(args.entityType,resultHandler);
}
}
- public static class deleteEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteEntityType_args, Boolean> {
- public deleteEntityType() {
- super("deleteEntityType");
+ public static class isEntityTypeExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isEntityTypeExists_args, Boolean> {
+ public isEntityTypeExists() {
+ super("isEntityTypeExists");
}
- public deleteEntityType_args getEmptyArgsInstance() {
- return new deleteEntityType_args();
+ public isEntityTypeExists_args getEmptyArgsInstance() {
+ return new isEntityTypeExists_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
- deleteEntityType_result result = new deleteEntityType_result();
+ isEntityTypeExists_result result = new isEntityTypeExists_result();
result.success = o;
result.setSuccessIsSet(true);
try {
@@ -6639,121 +6711,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- deleteEntityType_result result = new deleteEntityType_result();
- if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
- result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
- result.setSreIsSet(true);
- msg = result;
- }
- else
- {
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
- }
- fb.close();
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, deleteEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.deleteEntityType(args.domainId, args.entityTypeId,resultHandler);
- }
- }
-
- public static class getEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntityType_args, org.apache.airavata.sharing.registry.models.EntityType> {
- public getEntityType() {
- super("getEntityType");
- }
-
- public getEntityType_args getEmptyArgsInstance() {
- return new getEntityType_args();
- }
-
- public AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType>() {
- public void onComplete(org.apache.airavata.sharing.registry.models.EntityType o) {
- getEntityType_result result = new getEntityType_result();
- result.success = o;
- try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
- }
- fb.close();
- }
- public void onError(Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
- getEntityType_result result = new getEntityType_result();
- if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
- result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
- result.setSreIsSet(true);
- msg = result;
- }
- else
- {
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
- }
- fb.close();
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, getEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType> resultHandler) throws TException {
- iface.getEntityType(args.domainId, args.entityTypeId,resultHandler);
- }
- }
-
- public static class getEntityTypes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntityTypes_args, List<org.apache.airavata.sharing.registry.models.EntityType>> {
- public getEntityTypes() {
- super("getEntityTypes");
- }
-
- public getEntityTypes_args getEmptyArgsInstance() {
- return new getEntityTypes_args();
- }
-
- public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>>() {
- public void onComplete(List<org.apache.airavata.sharing.registry.models.EntityType> o) {
- getEntityTypes_result result = new getEntityTypes_result();
- result.success = o;
- try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
- }
- fb.close();
- }
- public void onError(Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
- getEntityTypes_result result = new getEntityTypes_result();
+ isEntityTypeExists_result result = new isEntityTypeExists_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -6779,26 +6737,27 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, getEntityTypes_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>> resultHandler) throws TException {
- iface.getEntityTypes(args.domainId, args.offset, args.limit,resultHandler);
+ public void start(I iface, isEntityTypeExists_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.isEntityTypeExists(args.domainId, args.entityTypeId,resultHandler);
}
}
- public static class createEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createEntity_args, String> {
- public createEntity() {
- super("createEntity");
+ public static class deleteEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteEntityType_args, Boolean> {
+ public deleteEntityType() {
+ super("deleteEntityType");
}
- public createEntity_args getEmptyArgsInstance() {
- return new createEntity_args();
+ public deleteEntityType_args getEmptyArgsInstance() {
+ return new deleteEntityType_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
- createEntity_result result = new createEntity_result();
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ deleteEntityType_result result = new deleteEntityType_result();
result.success = o;
+ result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -6810,7 +6769,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- createEntity_result result = new createEntity_result();
+ deleteEntityType_result result = new deleteEntityType_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -6836,27 +6795,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, createEntity_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
- iface.createEntity(args.entity,resultHandler);
+ public void start(I iface, deleteEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.deleteEntityType(args.domainId, args.entityTypeId,resultHandler);
}
}
- public static class updateEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateEntity_args, Boolean> {
- public updateEntity() {
- super("updateEntity");
+ public static class getEntityType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntityType_args, org.apache.airavata.sharing.registry.models.EntityType> {
+ public getEntityType() {
+ super("getEntityType");
}
- public updateEntity_args getEmptyArgsInstance() {
- return new updateEntity_args();
+ public getEntityType_args getEmptyArgsInstance() {
+ return new getEntityType_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- updateEntity_result result = new updateEntity_result();
+ return new AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType>() {
+ public void onComplete(org.apache.airavata.sharing.registry.models.EntityType o) {
+ getEntityType_result result = new getEntityType_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -6868,7 +6826,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- updateEntity_result result = new updateEntity_result();
+ getEntityType_result result = new getEntityType_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -6894,27 +6852,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, updateEntity_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.updateEntity(args.entity,resultHandler);
+ public void start(I iface, getEntityType_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.sharing.registry.models.EntityType> resultHandler) throws TException {
+ iface.getEntityType(args.domainId, args.entityTypeId,resultHandler);
}
}
- public static class isEntityExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isEntityExists_args, Boolean> {
- public isEntityExists() {
- super("isEntityExists");
+ public static class getEntityTypes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntityTypes_args, List<org.apache.airavata.sharing.registry.models.EntityType>> {
+ public getEntityTypes() {
+ super("getEntityTypes");
}
- public isEntityExists_args getEmptyArgsInstance() {
- return new isEntityExists_args();
+ public getEntityTypes_args getEmptyArgsInstance() {
+ return new getEntityTypes_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- isEntityExists_result result = new isEntityExists_result();
+ return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>>() {
+ public void onComplete(List<org.apache.airavata.sharing.registry.models.EntityType> o) {
+ getEntityTypes_result result = new getEntityTypes_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -6926,7 +6883,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- isEntityExists_result result = new isEntityExists_result();
+ getEntityTypes_result result = new getEntityTypes_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -6952,27 +6909,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, isEntityExists_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.isEntityExists(args.domainId, args.entityId,resultHandler);
+ public void start(I iface, getEntityTypes_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.EntityType>> resultHandler) throws TException {
+ iface.getEntityTypes(args.domainId, args.offset, args.limit,resultHandler);
}
}
- public static class deleteEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteEntity_args, Boolean> {
- public deleteEntity() {
- super("deleteEntity");
+ public static class createEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createEntity_args, String> {
+ public createEntity() {
+ super("createEntity");
}
- public deleteEntity_args getEmptyArgsInstance() {
- return new deleteEntity_args();
+ public createEntity_args getEmptyArgsInstance() {
+ return new createEntity_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- deleteEntity_result result = new deleteEntity_result();
+ return new AsyncMethodCallback<String>() {
+ public void onComplete(String o) {
+ createEntity_result result = new createEntity_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -6984,7 +6940,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- deleteEntity_result result = new deleteEntity_result();
+ createEntity_result result = new createEntity_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7010,26 +6966,27 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, deleteEntity_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.deleteEntity(args.domainId, args.entityId,resultHandler);
+ public void start(I iface, createEntity_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ iface.createEntity(args.entity,resultHandler);
}
}
- public static class getEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntity_args, org.apache.airavata.sharing.registry.models.Entity> {
- public getEntity() {
- super("getEntity");
+ public static class updateEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateEntity_args, Boolean> {
+ public updateEntity() {
+ super("updateEntity");
}
- public getEntity_args getEmptyArgsInstance() {
- return new getEntity_args();
+ public updateEntity_args getEmptyArgsInstance() {
+ return new updateEntity_args();
}
- public AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity>() {
- public void onComplete(org.apache.airavata.sharing.registry.models.Entity o) {
- getEntity_result result = new getEntity_result();
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ updateEntity_result result = new updateEntity_result();
result.success = o;
+ result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -7041,7 +6998,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getEntity_result result = new getEntity_result();
+ updateEntity_result result = new updateEntity_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7067,26 +7024,27 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, getEntity_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity> resultHandler) throws TException {
- iface.getEntity(args.domainId, args.entityId,resultHandler);
+ public void start(I iface, updateEntity_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.updateEntity(args.entity,resultHandler);
}
}
- public static class searchEntities<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, searchEntities_args, List<org.apache.airavata.sharing.registry.models.Entity>> {
- public searchEntities() {
- super("searchEntities");
+ public static class isEntityExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isEntityExists_args, Boolean> {
+ public isEntityExists() {
+ super("isEntityExists");
}
- public searchEntities_args getEmptyArgsInstance() {
- return new searchEntities_args();
+ public isEntityExists_args getEmptyArgsInstance() {
+ return new isEntityExists_args();
}
- public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>>() {
- public void onComplete(List<org.apache.airavata.sharing.registry.models.Entity> o) {
- searchEntities_result result = new searchEntities_result();
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ isEntityExists_result result = new isEntityExists_result();
result.success = o;
+ result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -7098,7 +7056,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- searchEntities_result result = new searchEntities_result();
+ isEntityExists_result result = new isEntityExists_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7124,26 +7082,27 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, searchEntities_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>> resultHandler) throws TException {
- iface.searchEntities(args.domainId, args.userId, args.filters, args.offset, args.limit,resultHandler);
+ public void start(I iface, isEntityExists_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.isEntityExists(args.domainId, args.entityId,resultHandler);
}
}
- public static class getListOfSharedUsers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getListOfSharedUsers_args, List<org.apache.airavata.sharing.registry.models.User>> {
- public getListOfSharedUsers() {
- super("getListOfSharedUsers");
+ public static class deleteEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deleteEntity_args, Boolean> {
+ public deleteEntity() {
+ super("deleteEntity");
}
- public getListOfSharedUsers_args getEmptyArgsInstance() {
- return new getListOfSharedUsers_args();
+ public deleteEntity_args getEmptyArgsInstance() {
+ return new deleteEntity_args();
}
- public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>>() {
- public void onComplete(List<org.apache.airavata.sharing.registry.models.User> o) {
- getListOfSharedUsers_result result = new getListOfSharedUsers_result();
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ deleteEntity_result result = new deleteEntity_result();
result.success = o;
+ result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -7155,7 +7114,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getListOfSharedUsers_result result = new getListOfSharedUsers_result();
+ deleteEntity_result result = new deleteEntity_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7181,25 +7140,25 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, getListOfSharedUsers_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>> resultHandler) throws TException {
- iface.getListOfSharedUsers(args.domainId, args.entityId, args.permissionTypeId,resultHandler);
+ public void start(I iface, deleteEntity_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.deleteEntity(args.domainId, args.entityId,resultHandler);
}
}
- public static class getListOfSharedGroups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getListOfSharedGroups_args, List<org.apache.airavata.sharing.registry.models.UserGroup>> {
- public getListOfSharedGroups() {
- super("getListOfSharedGroups");
+ public static class getEntity<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getEntity_args, org.apache.airavata.sharing.registry.models.Entity> {
+ public getEntity() {
+ super("getEntity");
}
- public getListOfSharedGroups_args getEmptyArgsInstance() {
- return new getListOfSharedGroups_args();
+ public getEntity_args getEmptyArgsInstance() {
+ return new getEntity_args();
}
- public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>>() {
- public void onComplete(List<org.apache.airavata.sharing.registry.models.UserGroup> o) {
- getListOfSharedGroups_result result = new getListOfSharedGroups_result();
+ return new AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity>() {
+ public void onComplete(org.apache.airavata.sharing.registry.models.Entity o) {
+ getEntity_result result = new getEntity_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -7212,7 +7171,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- getListOfSharedGroups_result result = new getListOfSharedGroups_result();
+ getEntity_result result = new getEntity_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7238,25 +7197,25 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, getListOfSharedGroups_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> resultHandler) throws TException {
- iface.getListOfSharedGroups(args.domainId, args.entityId, args.permissionTypeId,resultHandler);
+ public void start(I iface, getEntity_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.sharing.registry.models.Entity> resultHandler) throws TException {
+ iface.getEntity(args.domainId, args.entityId,resultHandler);
}
}
- public static class createPermissionType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPermissionType_args, String> {
- public createPermissionType() {
- super("createPermissionType");
+ public static class searchEntities<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, searchEntities_args, List<org.apache.airavata.sharing.registry.models.Entity>> {
+ public searchEntities() {
+ super("searchEntities");
}
- public createPermissionType_args getEmptyArgsInstance() {
- return new createPermissionType_args();
+ public searchEntities_args getEmptyArgsInstance() {
+ return new searchEntities_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
- createPermissionType_result result = new createPermissionType_result();
+ return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>>() {
+ public void onComplete(List<org.apache.airavata.sharing.registry.models.Entity> o) {
+ searchEntities_result result = new searchEntities_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -7269,17 +7228,12 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- createPermissionType_result result = new createPermissionType_result();
+ searchEntities_result result = new searchEntities_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
msg = result;
}
- else if (e instanceof org.apache.airavata.model.error.DuplicateEntryException) {
- result.dee = (org.apache.airavata.model.error.DuplicateEntryException) e;
- result.setDeeIsSet(true);
- msg = result;
- }
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -7300,27 +7254,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, createPermissionType_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
- iface.createPermissionType(args.permissionType,resultHandler);
+ public void start(I iface, searchEntities_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.Entity>> resultHandler) throws TException {
+ iface.searchEntities(args.domainId, args.userId, args.filters, args.offset, args.limit,resultHandler);
}
}
- public static class updatePermissionType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updatePermissionType_args, Boolean> {
- public updatePermissionType() {
- super("updatePermissionType");
+ public static class getListOfSharedUsers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getListOfSharedUsers_args, List<org.apache.airavata.sharing.registry.models.User>> {
+ public getListOfSharedUsers() {
+ super("getListOfSharedUsers");
}
- public updatePermissionType_args getEmptyArgsInstance() {
- return new updatePermissionType_args();
+ public getListOfSharedUsers_args getEmptyArgsInstance() {
+ return new getListOfSharedUsers_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- updatePermissionType_result result = new updatePermissionType_result();
+ return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>>() {
+ public void onComplete(List<org.apache.airavata.sharing.registry.models.User> o) {
+ getListOfSharedUsers_result result = new getListOfSharedUsers_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -7332,7 +7285,7 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- updatePermissionType_result result = new updatePermissionType_result();
+ getListOfSharedUsers_result result = new getListOfSharedUsers_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -7358,27 +7311,26 @@ public class SharingRegistryService {
return false;
}
- public void start(I iface, updatePermissionType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
- iface.updatePermissionType(args.permissionType,resultHandler);
+ public void start(I iface, getListOfSharedUsers_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.User>> resultHandler) throws TException {
+ iface.getListOfSharedUsers(args.domainId, args.entityId, args.permissionTypeId,resultHandler);
}
}
- public static class isPermissionExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isPermissionExists_args, Boolean> {
- public isPermissionExists() {
- super("isPermissionExists");
+ public static class getListOfSharedGroups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getListOfSharedGroups_args, List<org.apache.airavata.sharing.registry.models.UserGroup>> {
+ public getListOfSharedGroups() {
+ super("getListOfSharedGroups");
}
- public isPermissionExists_args getEmptyArgsInstance() {
- return new isPermissionExists_args();
+ public getListOfSharedGroups_args getEmptyArgsInstance() {
+ return new getListOfSharedGroups_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
- isPermissionExists_result result = new isPermissionExists_result();
+ return new AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>>() {
+ public void onComplete(List<org.apache.airavata.sharing.registry.models.UserGroup> o) {
+ getListOfSharedGroups_result result = new getListOfSharedGroups_result();
result.success = o;
- result.setSuccessIsSet(true);
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -7390,7 +7342,185 @@ public class SharingRegistryService {
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- isPermissionExists_result result = new isPermissionExists_result();
+ getListOfSharedGroups_result result = new getListOfSharedGroups_result();
+ if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
+ result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
+ result.setSreIsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getListOfSharedGroups_args args, org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.sharing.registry.models.UserGroup>> resultHandler) throws TException {
+ iface.getListOfSharedGroups(args.domainId, args.entityId, args.permissionTypeId,resultHandler);
+ }
+ }
+
+ public static class createPermissionType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPermissionType_args, String> {
+ public createPermissionType() {
+ super("createPermissionType");
+ }
+
+ public createPermissionType_args getEmptyArgsInstance() {
+ return new createPermissionType_args();
+ }
+
+ public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<String>() {
+ public void onComplete(String o) {
+ createPermissionType_result result = new createPermissionType_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ createPermissionType_result result = new createPermissionType_result();
+ if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
+ result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
+ result.setSreIsSet(true);
+ msg = result;
+ }
+ else if (e instanceof org.apache.airavata.sharing.registry.models.DuplicateEntryException) {
+ result.dee = (org.apache.airavata.sharing.registry.models.DuplicateEntryException) e;
+ result.setDeeIsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, createPermissionType_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ iface.createPermissionType(args.permissionType,resultHandler);
+ }
+ }
+
+ public static class updatePermissionType<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updatePermissionType_args, Boolean> {
+ public updatePermissionType() {
+ super("updatePermissionType");
+ }
+
+ public updatePermissionType_args getEmptyArgsInstance() {
+ return new updatePermissionType_args();
+ }
+
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ updatePermissionType_result result = new updatePermissionType_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ updatePermissionType_result result = new updatePermissionType_result();
+ if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
+ result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
+ result.setSreIsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, updatePermissionType_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ iface.updatePermissionType(args.permissionType,resultHandler);
+ }
+ }
+
+ public static class isPermissionExists<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isPermissionExists_args, Boolean> {
+ public isPermissionExists() {
+ super("isPermissionExists");
+ }
+
+ public isPermissionExists_args getEmptyArgsInstance() {
+ return new isPermissionExists_args();
+ }
+
+ public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Boolean>() {
+ public void onComplete(Boolean o) {
+ isPermissionExists_result result = new isPermissionExists_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ isPermissionExists_result result = new isPermissionExists_result();
if (e instanceof org.apache.airavata.sharing.registry.models.SharingRegistryException) {
result.sre = (org.apache.airavata.sharing.registry.models.SharingRegistryException) e;
result.setSreIsSet(true);
@@ -8259,7 +8389,7 @@ public class SharingRegistryService {
public String success; // required
public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
- public org.apache.airavata.model.error.DuplicateEntryException dee; // required
+ public org.apache.airavata.sharing.registry.models.DuplicateEntryException dee; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -8345,7 +8475,7 @@ public class SharingRegistryService {
public createDomain_result(
String success,
org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
- org.apache.airavata.model.error.DuplicateEntryException dee)
+ org.apache.airavata.sharing.registry.models.DuplicateEntryException dee)
{
this();
this.success = success;
@@ -8364,7 +8494,7 @@ public class SharingRegistryService {
this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
}
if (other.isSetDee()) {
- this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+ this.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException(other.dee);
}
}
@@ -8427,11 +8557,11 @@ public class SharingRegistryService {
}
}
- public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+ public org.apache.airavata.sharing.registry.models.DuplicateEntryException getDee() {
return this.dee;
}
- public createDomain_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+ public createDomain_result setDee(org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
this.dee = dee;
return this;
}
@@ -8473,7 +8603,7 @@ public class SharingRegistryService {
if (value == null) {
unsetDee();
} else {
- setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+ setDee((org.apache.airavata.sharing.registry.models.DuplicateEntryException)value);
}
break;
@@ -8720,7 +8850,7 @@ public class SharingRegistryService {
break;
case 2: // DEE
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+ struct.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException();
struct.dee.read(iprot);
struct.setDeeIsSet(true);
} else {
@@ -8810,7 +8940,7 @@ public class SharingRegistryService {
struct.setSreIsSet(true);
}
if (incoming.get(2)) {
- struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+ struct.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException();
struct.dee.read(iprot);
struct.setDeeIsSet(true);
}
@@ -13462,7 +13592,7 @@ public class SharingRegistryService {
public String success; // required
public org.apache.airavata.sharing.registry.models.SharingRegistryException sre; // required
- public org.apache.airavata.model.error.DuplicateEntryException dee; // required
+ public org.apache.airavata.sharing.registry.models.DuplicateEntryException dee; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -13548,7 +13678,7 @@ public class SharingRegistryService {
public createUser_result(
String success,
org.apache.airavata.sharing.registry.models.SharingRegistryException sre,
- org.apache.airavata.model.error.DuplicateEntryException dee)
+ org.apache.airavata.sharing.registry.models.DuplicateEntryException dee)
{
this();
this.success = success;
@@ -13567,7 +13697,7 @@ public class SharingRegistryService {
this.sre = new org.apache.airavata.sharing.registry.models.SharingRegistryException(other.sre);
}
if (other.isSetDee()) {
- this.dee = new org.apache.airavata.model.error.DuplicateEntryException(other.dee);
+ this.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException(other.dee);
}
}
@@ -13630,11 +13760,11 @@ public class SharingRegistryService {
}
}
- public org.apache.airavata.model.error.DuplicateEntryException getDee() {
+ public org.apache.airavata.sharing.registry.models.DuplicateEntryException getDee() {
return this.dee;
}
- public createUser_result setDee(org.apache.airavata.model.error.DuplicateEntryException dee) {
+ public createUser_result setDee(org.apache.airavata.sharing.registry.models.DuplicateEntryException dee) {
this.dee = dee;
return this;
}
@@ -13676,7 +13806,7 @@ public class SharingRegistryService {
if (value == null) {
unsetDee();
} else {
- setDee((org.apache.airavata.model.error.DuplicateEntryException)value);
+ setDee((org.apache.airavata.sharing.registry.models.DuplicateEntryException)value);
}
break;
@@ -13923,7 +14053,7 @@ public class SharingRegistryService {
break;
case 2: // DEE
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+ struct.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException();
struct.dee.read(iprot);
struct.setDeeIsSet(true);
} else {
@@ -14013,7 +14143,7 @@ public class SharingRegistryService {
struct.setSreIsSet(true);
}
if (incoming.get(2)) {
- struct.dee = new org.apache.airavata.model.error.DuplicateEntryException();
+ struct.dee = new org.apache.airavata.sharing.registry.models.DuplicateEntryException();
struct.dee.read(iprot);
struct.setDeeIsSet(true);
}
@@ -23749,80 +23879,1119 @@ public class SharingRegistryService {
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.sharing.registry.models.UserGroup.class))));
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.sharing.registry.models.UserGroup.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getGroups_result.class, metaDataMap);
+ }
+
+ public getGroups_result() {
+ }
+
+ public getGroups_result(
+ List<org.apache.airavata.sharing.registry.models.UserGroup> success)
+ {
+ this();
+ this.success = success;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ pu
<TRUNCATED>
[3/3] airavata git commit: adding new API method to get the group
memberships for a user
Posted by sc...@apache.org.
adding new API method to get the group memberships for a user
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/cb27490d
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/cb27490d
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/cb27490d
Branch: refs/heads/develop
Commit: cb27490d668460afbbbef2953077e9121867f997
Parents: 701f36a
Author: scnakandala <su...@gmail.com>
Authored: Tue May 23 15:45:37 2017 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Tue May 23 15:45:48 2017 -0400
----------------------------------------------------------------------
.../repositories/GroupMembershipRepository.java | 13 +
.../server/SharingRegistryServerHandler.java | 12 +-
.../SharingRegistryServerHandlerTest.java | 4 +
.../sharing/registry/models/Domain.java | 19 -
.../sharing/registry/models/Entity.java | 19 -
.../registry/models/EntitySearchField.java | 19 -
.../sharing/registry/models/EntityType.java | 19 -
.../registry/models/GroupCardinality.java | 19 -
.../sharing/registry/models/GroupChildType.java | 23 -
.../registry/models/GroupMembership.java | 19 -
.../sharing/registry/models/GroupType.java | 19 -
.../sharing/registry/models/PermissionType.java | 19 -
.../registry/models/SearchCondition.java | 19 -
.../sharing/registry/models/SearchCriteria.java | 19 -
.../sharing/registry/models/Sharing.java | 19 -
.../models/SharingRegistryException.java | 19 -
.../sharing/registry/models/SharingType.java | 19 -
.../airavata/sharing/registry/models/User.java | 19 -
.../sharing/registry/models/UserGroup.java | 19 -
.../models/sharing_modelsConstants.java | 19 -
.../service/cpi/SharingRegistryService.java | 4721 +++++++++++-------
.../sharing-service-docs/api-docs/index.html | 142 +-
.../api-docs/sharing_cpi.html | 36 +-
.../api-docs/sharing_models.html | 30 +-
.../sharing-service-docs/api-docs/style.css | 22 +-
.../thrift_models/sharing_cpi.thrift | 11 +-
.../thrift_models/sharing_models.thrift | 10 +
27 files changed, 2985 insertions(+), 2343 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/GroupMembershipRepository.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/GroupMembershipRepository.java b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/GroupMembershipRepository.java
index 12c26fe..2d98c89 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/GroupMembershipRepository.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/GroupMembershipRepository.java
@@ -60,6 +60,19 @@ public class GroupMembershipRepository extends AbstractRepository<GroupMembershi
return groups;
}
+ //TODO Replace with prepared statements
+ public List<UserGroup> getAllMemberGroupsForUser(String domainId, String userId) throws SharingRegistryException {
+ String queryString = "SELECT DISTINCT G FROM " + UserGroupEntity.class.getSimpleName() + " G, " + GroupMembershipEntity.class.getSimpleName()
+ + " GM WHERE GM." + DBConstants.GroupMembershipTable.PARENT_ID + " = G." + DBConstants.UserGroupTable.GROUP_ID + " AND " +
+ "GM." + DBConstants.GroupMembershipTable.DOMAIN_ID + " = G." + DBConstants.UserGroupTable.DOMAIN_ID + " AND " +
+ "GM." + DBConstants.GroupMembershipTable.DOMAIN_ID+"='"+domainId + "' AND "+
+ "GM." + DBConstants.GroupMembershipTable.CHILD_ID+"='"+userId + "' AND GM." + DBConstants.GroupMembershipTable.CHILD_TYPE
+ + "='" + GroupChildType.USER.toString() + "'";
+ UserGroupRepository userGroupRepository = new UserGroupRepository();
+ List<UserGroup> groups = userGroupRepository.select(queryString, 0, -1);
+ return groups;
+ }
+
public List<GroupMembership> getAllParentMembershipsForChild(String domainId, String childId) throws SharingRegistryException {
List<GroupMembership> finalParentGroups = new ArrayList<>();
Map<String, String> filters = new HashMap<>();
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
index f592793..30b7fb9 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
@@ -20,7 +20,6 @@
package org.apache.airavata.sharing.registry.server;
import org.apache.airavata.common.exception.ApplicationSettingsException;
-import org.apache.airavata.model.error.DuplicateEntryException;
import org.apache.airavata.sharing.registry.db.entities.*;
import org.apache.airavata.sharing.registry.db.repositories.*;
import org.apache.airavata.sharing.registry.db.utils.DBConstants;
@@ -466,6 +465,17 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
}
}
+ @Override
+ public List<UserGroup> getAllMemberGroupsForUser(String domainId, String userId) throws SharingRegistryException, TException {
+ try{
+ GroupMembershipRepository groupMembershipRepository = new GroupMembershipRepository();
+ return groupMembershipRepository.getAllMemberGroupsForUser(domainId, userId);
+ }catch (SharingRegistryException ex) {
+ logger.error(ex.getMessage(), ex);
+ throw ex;
+ }
+ }
+
/**
* * EntityType Operations
* *
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/SharingRegistryServerHandlerTest.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/SharingRegistryServerHandlerTest.java b/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/SharingRegistryServerHandlerTest.java
index fb7f763..0e81e68 100644
--- a/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/SharingRegistryServerHandlerTest.java
+++ b/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/SharingRegistryServerHandlerTest.java
@@ -111,6 +111,7 @@ public class SharingRegistryServerHandlerTest {
userGroup1.setUpdatedTime(System.currentTimeMillis());
Assert.assertNotNull(sharingRegistryServerHandler.createGroup(userGroup1));
+ Assert.assertTrue(sharingRegistryServerHandler.getAllMemberGroupsForUser(domainId, userId1).size() == 1);
UserGroup userGroup2 = new UserGroup();
String groupName2 = "test-group-2." + System.currentTimeMillis();
@@ -128,7 +129,10 @@ public class SharingRegistryServerHandlerTest {
Assert.assertNotNull(sharingRegistryServerHandler.createGroup(userGroup2));
sharingRegistryServerHandler.addUsersToGroup(domainId, Arrays.asList(userId1), groupId1);
+
sharingRegistryServerHandler.addUsersToGroup(domainId, Arrays.asList(userId2, userId3), groupId2);
+ Assert.assertTrue(sharingRegistryServerHandler.getAllMemberGroupsForUser(domainId, userId3).size() == 1);
+
sharingRegistryServerHandler.addChildGroupsToParentGroup(domainId, Arrays.asList(groupId2), groupId1);
Assert.assertTrue(sharingRegistryServerHandler.getGroupMembersOfTypeGroup(domainId, groupId1, 0, 10).size() == 1);
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Domain.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Domain.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Domain.java
index 9241ae6..a0e89a5 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Domain.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Domain.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
index 902c678..54064ab 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Entity.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntitySearchField.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntitySearchField.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntitySearchField.java
index 5445abf..2486d4f 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntitySearchField.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntitySearchField.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntityType.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntityType.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntityType.java
index 177722d..5d7ce4c 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntityType.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/EntityType.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupCardinality.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupCardinality.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupCardinality.java
index b6ac6c3..00641c6 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupCardinality.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupCardinality.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupChildType.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupChildType.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupChildType.java
index cdb5903..8503159 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupChildType.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupChildType.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
@@ -26,10 +7,6 @@
package org.apache.airavata.sharing.registry.models;
-import java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
/**
* <p>System internal data type to match group child types</p>
*
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupMembership.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupMembership.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupMembership.java
index 52d141d..02920b8 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupMembership.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupMembership.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupType.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupType.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupType.java
index 04fd3dd..ee4f131 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupType.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/GroupType.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/PermissionType.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/PermissionType.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/PermissionType.java
index 5df9ee1..f05a484 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/PermissionType.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/PermissionType.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCondition.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCondition.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCondition.java
index 094e40d..bdeb721 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCondition.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCondition.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCriteria.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCriteria.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCriteria.java
index b90714b..c0fc452 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCriteria.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SearchCriteria.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java
index 43f7805..203f8db 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingRegistryException.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingRegistryException.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingRegistryException.java
index da15083..4eca646 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingRegistryException.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingRegistryException.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingType.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingType.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingType.java
index 824a2d0..746b23b 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingType.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/SharingType.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/User.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/User.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/User.java
index 52839e7..37e9d34 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/User.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/User.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/UserGroup.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/UserGroup.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/UserGroup.java
index 28b914e..1cd8a0a 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/UserGroup.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/UserGroup.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
http://git-wip-us.apache.org/repos/asf/airavata/blob/cb27490d/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/sharing_modelsConstants.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/sharing_modelsConstants.java b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/sharing_modelsConstants.java
index b6b921a..07fc3c7 100644
--- a/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/sharing_modelsConstants.java
+++ b/modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/sharing_modelsConstants.java
@@ -1,23 +1,4 @@
/**
- *
- * 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)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING