Repository: airavata
Updated Branches:
  refs/heads/airavata-gov-registry d14df923c -> 99de5cc42


http://git-wip-us.apache.org/repos/asf/airavata/blob/99de5cc4/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 2f8e255..065416d 100644
--- a/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift
+++ b/modules/airavata-sharing-registry/thrift_models/sharing_cpi.thrift
@@ -27,25 +27,25 @@ service GovRegistryService {
     /**
      * Domain Operations
     **/
-    bool createDomain(1: required sharing_models.Domain domain) throws (1: 
sharing_models.GovRegistryException gre)
+    string createDomain(1: required sharing_models.Domain domain) throws (1: 
sharing_models.GovRegistryException gre)
     bool updateDomain(1: required sharing_models.Domain domain) throws (1: 
sharing_models.GovRegistryException gre)
     bool deleteDomain(1: required string domainId) throws (1: 
sharing_models.GovRegistryException gre)
     sharing_models.Domain getDomain(1: required string domainId) throws (1: 
sharing_models.GovRegistryException gre)
-    list<sharing_models.Domain> getDomains(1: required i32 offset, 2: required 
i32 limit)
+    list<sharing_models.Domain> getDomains(1: required i32 offset, 2: required 
i32 limit) throws (1: sharing_models.GovRegistryException gre);
 
     /**
      * User Operations
     **/
-    bool registerUser(1: required sharing_models.User user) throws (1: 
sharing_models.GovRegistryException gre)
+    string createUser(1: required sharing_models.User user) throws (1: 
sharing_models.GovRegistryException gre)
     bool updatedUser(1: required sharing_models.User user) throws (1: 
sharing_models.GovRegistryException gre)
     bool deleteUser(1: required string userId) throws (1: 
sharing_models.GovRegistryException gre)
     sharing_models.User getUser(1: required string userId) throws (1: 
sharing_models.GovRegistryException gre)
-    list<sharing_models.User> getUsers(1: required string domain, 2: required 
i32 offset, 3: required i32 limit)
+    list<sharing_models.User> getUsers(1: required string domain, 2: required 
i32 offset, 3: required i32 limit) throws (1: 
sharing_models.GovRegistryException gre);
 
     /**
      * Group Operations
     **/
-    bool createGroup(1: required sharing_models.UserGroup group) throws (1: 
sharing_models.GovRegistryException gre)
+    string createGroup(1: required sharing_models.UserGroup group) throws (1: 
sharing_models.GovRegistryException gre)
     bool updateGroup(1: required sharing_models.UserGroup group) throws (1: 
sharing_models.GovRegistryException gre)
     bool deleteGroup(1: required string groupId) throws (1: 
sharing_models.GovRegistryException gre)
     sharing_models.UserGroup getGroup(1: required string groupId) throws (1: 
sharing_models.GovRegistryException gre)
@@ -53,21 +53,23 @@ service GovRegistryService {
 
     bool addUsersToGroup(1: required list<string> userIds, 2: required string 
groupId) throws (1: sharing_models.GovRegistryException gre);
     bool removeUsersFromGroup(1: required list<string> userIds, 2: required 
string groupId) throws (1: sharing_models.GovRegistryException gre);
-    map<string, sharing_models.GroupType> getGroupMembers(1: required string 
groupId)
+    map<string, sharing_models.GroupChildType> getGroupMembers(1: required 
string groupId, 2: required i32 offset, 3: required i32 limit) throws (1: 
sharing_models.GovRegistryException gre);
+    bool addChildGroupToParentGroup(1: required string childId, 2: required 
string groupId) throws (1: sharing_models.GovRegistryException gre);
+    bool removeChildGroupFromParentGroup(1: required string childId, 2: 
required string groupId) throws (1: sharing_models.GovRegistryException gre);
 
     /**
      * EntityType Operations
     **/
-    bool createEntityType(1: required sharing_models.EntityType entityType) 
throws (1: sharing_models.GovRegistryException gre)
+    string createEntityType(1: required sharing_models.EntityType entityType) 
throws (1: sharing_models.GovRegistryException gre)
     bool updateEntityType(1: required sharing_models.EntityType entityType) 
throws (1: sharing_models.GovRegistryException gre)
     bool deleteEntityType(1: required string entityTypeId) throws (1: 
sharing_models.GovRegistryException gre)
     sharing_models.EntityType getEntityType(1: required string entityTypeId) 
throws (1: sharing_models.GovRegistryException gre)
-    list<sharing_models.EntityType> getEntityTypes(1: required string domain, 
2: required i32 offset, 3: required i32 limit)
+    list<sharing_models.EntityType> getEntityTypes(1: required string domain, 
2: required i32 offset, 3: required i32 limit) throws (1: 
sharing_models.GovRegistryException gre);
 
     /**
      * Entity Operations
     **/
-    bool registerEntity(1: required sharing_models.Entity entity) throws (1: 
sharing_models.GovRegistryException gre)
+    string createEntity(1: required sharing_models.Entity entity) throws (1: 
sharing_models.GovRegistryException gre)
     bool updateEntity(1: required sharing_models.Entity entity) throws (1: 
sharing_models.GovRegistryException gre)
     bool deleteEntity(1: required string entityId) throws (1: 
sharing_models.GovRegistryException gre)
     sharing_models.Entity getEntity(1: required string entityId) throws (1: 
sharing_models.GovRegistryException gre)
@@ -75,11 +77,11 @@ service GovRegistryService {
             3: required map<string, string> filters, 4: required i32 offset, 
5: required i32 limit) throws (1: sharing_models.GovRegistryException gre)
 
     /**
-     * EntityType Operations
+     * Permission Operations
     **/
-    bool createPermissionType(1: required sharing_models.PermissionType 
permisionType) throws (1: sharing_models.GovRegistryException gre)
-    bool updatePermissionType(1: required sharing_models.PermissionType 
permisionType) throws (1: sharing_models.GovRegistryException gre)
+    string createPermissionType(1: required sharing_models.PermissionType 
permissionType) throws (1: sharing_models.GovRegistryException gre)
+    bool updatePermissionType(1: required sharing_models.PermissionType 
permissionType) throws (1: sharing_models.GovRegistryException gre)
     bool deletePermissionType(1: required string entityTypeId) throws (1: 
sharing_models.GovRegistryException gre)
-    sharing_models.PermissionType getPermissionType(1: required string 
permisionTypeId) throws (1: sharing_models.GovRegistryException gre)
+    sharing_models.PermissionType getPermissionType(1: required string 
permissionTypeId) throws (1: sharing_models.GovRegistryException gre)
     list<sharing_models.PermissionType> getPermissionTypes(1: required string 
domain, 2: required i32 offset, 3: required i32 limit) throws (1: 
sharing_models.GovRegistryException gre)
 }
\ No newline at end of file

Reply via email to