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
