Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 052D3200BA6 for ; Tue, 4 Oct 2016 00:23:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 03AF9160AED; Mon, 3 Oct 2016 22:23:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 408F6160ADC for ; Tue, 4 Oct 2016 00:23:47 +0200 (CEST) Received: (qmail 24120 invoked by uid 500); 3 Oct 2016 22:23:46 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 24111 invoked by uid 99); 3 Oct 2016 22:23:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 22:23:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 47AA0DFB89; Mon, 3 Oct 2016 22:23:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Date: Mon, 03 Oct 2016 22:23:46 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] airavata git commit: WIP archived-at: Mon, 03 Oct 2016 22:23:48 -0000 Repository: airavata Updated Branches: refs/heads/airavata-gov-registry 99de5cc42 -> a99f76612 http://git-wip-us.apache.org/repos/asf/airavata/blob/a99f7661/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift ---------------------------------------------------------------------- diff --git a/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift b/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift index 065416d..48c87fb 100644 --- a/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift +++ b/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift @@ -84,4 +84,12 @@ service GovRegistryService { bool deletePermissionType(1: required string entityTypeId) throws (1: sharing_models.GovRegistryException gre) sharing_models.PermissionType getPermissionType(1: required string permissionTypeId) throws (1: sharing_models.GovRegistryException gre) list getPermissionTypes(1: required string domain, 2: required i32 offset, 3: required i32 limit) throws (1: sharing_models.GovRegistryException gre) + + /** + * Sharing Entity with Users and Groups + **/ + bool shareEntityWithUsers(1: required string entityId, 2: required list userList, 3: required sharing_models.PermissionType perssionType) throws (1: sharing_models.GovRegistryException gre) + bool revokeEntitySharingFromUsers(1: required string entityId, 2: required list userList, 3: required sharing_models.PermissionType perssionType) throws (1: sharing_models.GovRegistryException gre) + bool shareEntityWithGroups(1: required string entityId, 2: required list groupList, 3: required sharing_models.PermissionType perssionType) throws (1: sharing_models.GovRegistryException gre) + bool revokeEntitySharingFromGroups(1: required string entityId, 2: required list groupList, 3: required sharing_models.PermissionType perssionType) throws (1: sharing_models.GovRegistryException gre) } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/a99f7661/modules/airavata-sharing-registry/thrift_models/sharing_models.thrift ---------------------------------------------------------------------- diff --git a/modules/airavata-sharing-registry/thrift_models/sharing_models.thrift b/modules/airavata-sharing-registry/thrift_models/sharing_models.thrift index 554d74d..ce74a89 100644 --- a/modules/airavata-sharing-registry/thrift_models/sharing_models.thrift +++ b/modules/airavata-sharing-registry/thrift_models/sharing_models.thrift @@ -102,12 +102,20 @@ struct PermissionType { 6: optional i64 updatedTime } +enum SharingType { + DIRECT, + INHERITED + } + struct Sharing { 1: optional string permissionTypeId, 2: optional string entityId, 3: optional string groupId, - 4: optional i64 createdTime, - 5: optional i64 updatedTime + 4: optional GroupType groupType, + 5: optional SharingType sharingType, + 6: optional string inheritedPermissionTypeId, + 7: optional i64 createdTime, + 8: optional i64 updatedTime } exception GovRegistryException {