airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [1/3] airavata git commit: changing exception name. removing static db connection string
Date Fri, 07 Oct 2016 20:43:02 GMT
Repository: airavata
Updated Branches:
  refs/heads/airavata-gov-registry d8eaa4151 -> 4739a9fcb


http://git-wip-us.apache.org/repos/asf/airavata/blob/4739a9fc/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 3f2d4b3..3b26a27 100644
--- a/modules/sharing-registry/thrift_models/sharing_cpi.thrift
+++ b/modules/sharing-registry/thrift_models/sharing_cpi.thrift
@@ -27,72 +27,72 @@ service GovRegistryService {
     /**
      * Domain Operations
     **/
-    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) throws (1: sharing_models.GovRegistryException gre);
+    string createDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException
gre)
+    bool updateDomain(1: required sharing_models.Domain domain) throws (1: sharing_models.SharingRegistryException
gre)
+    bool deleteDomain(1: required string domainId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.Domain getDomain(1: required string domainId) throws (1: sharing_models.SharingRegistryException
gre)
+    list<sharing_models.Domain> getDomains(1: required i32 offset, 2: required i32
limit) throws (1: sharing_models.SharingRegistryException gre);
 
     /**
      * User Operations
     **/
-    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) throws (1: sharing_models.GovRegistryException gre);
+    string createUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException
gre)
+    bool updatedUser(1: required sharing_models.User user) throws (1: sharing_models.SharingRegistryException
gre)
+    bool deleteUser(1: required string userId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.User getUser(1: required string userId) throws (1: sharing_models.SharingRegistryException
gre)
+    list<sharing_models.User> getUsers(1: required string domain, 2: required i32 offset,
3: required i32 limit) throws (1: sharing_models.SharingRegistryException gre);
 
     /**
      * Group Operations
     **/
-    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)
+    string createGroup(1: required sharing_models.UserGroup group) throws (1: sharing_models.SharingRegistryException
gre)
+    bool updateGroup(1: required sharing_models.UserGroup group) throws (1: sharing_models.SharingRegistryException
gre)
+    bool deleteGroup(1: required string groupId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.UserGroup getGroup(1: required string groupId) throws (1: sharing_models.SharingRegistryException
gre)
     list<sharing_models.UserGroup> getGroups(1: required string domain, 2: required
i32 offset, 3: required i32 limit)
 
-    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.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);
+    bool addUsersToGroup(1: required list<string> userIds, 2: required string groupId)
throws (1: sharing_models.SharingRegistryException gre);
+    bool removeUsersFromGroup(1: required list<string> userIds, 2: required string
groupId) throws (1: sharing_models.SharingRegistryException gre);
+    map<string, sharing_models.GroupChildType> getGroupMembers(1: required string groupId,
2: required i32 offset, 3: required i32 limit) throws (1: sharing_models.SharingRegistryException
gre);
+    bool addChildGroupToParentGroup(1: required string childId, 2: required string groupId)
throws (1: sharing_models.SharingRegistryException gre);
+    bool removeChildGroupFromParentGroup(1: required string childId, 2: required string groupId)
throws (1: sharing_models.SharingRegistryException gre);
 
     /**
      * EntityType Operations
     **/
-    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) throws (1: sharing_models.GovRegistryException gre);
+    string createEntityType(1: required sharing_models.EntityType entityType) throws (1:
sharing_models.SharingRegistryException gre)
+    bool updateEntityType(1: required sharing_models.EntityType entityType) throws (1: sharing_models.SharingRegistryException
gre)
+    bool deleteEntityType(1: required string entityTypeId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.EntityType getEntityType(1: required string entityTypeId) throws (1: sharing_models.SharingRegistryException
gre)
+    list<sharing_models.EntityType> getEntityTypes(1: required string domain, 2: required
i32 offset, 3: required i32 limit) throws (1: sharing_models.SharingRegistryException gre);
 
     /**
      * Entity Operations
     **/
-    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)
+    string createEntity(1: required sharing_models.Entity entity) throws (1: sharing_models.SharingRegistryException
gre)
+    bool updateEntity(1: required sharing_models.Entity entity) throws (1: sharing_models.SharingRegistryException
gre)
+    bool deleteEntity(1: required string entityId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.Entity getEntity(1: required string entityId) throws (1: sharing_models.SharingRegistryException
gre)
     list<sharing_models.Entity> searchEntities(1: required string userId, 2: required
string entityTypeId, 3: required map<sharing_models.EntitySearchFields,
-     string> filters, 4: required i32 offset, 5: required i32 limit) throws (1: sharing_models.GovRegistryException
gre)
-    list<sharing_models.User> getListOfSharedUsers(1: required string entityId, 2:
required string permissionTypeId) throws (1: sharing_models.GovRegistryException gre)
-    list<sharing_models.UserGroup> getListOfSharedGroups(1: required string entityId,
2: required string permissionTypeId) throws (1: sharing_models.GovRegistryException gre)
+     string> filters, 4: required i32 offset, 5: required i32 limit) throws (1: sharing_models.SharingRegistryException
gre)
+    list<sharing_models.User> getListOfSharedUsers(1: required string entityId, 2:
required string permissionTypeId) throws (1: sharing_models.SharingRegistryException gre)
+    list<sharing_models.UserGroup> getListOfSharedGroups(1: required string entityId,
2: required string permissionTypeId) throws (1: sharing_models.SharingRegistryException gre)
 
     /**
      * Permission Operations
     **/
-    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 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)
+    string createPermissionType(1: required sharing_models.PermissionType permissionType)
throws (1: sharing_models.SharingRegistryException gre)
+    bool updatePermissionType(1: required sharing_models.PermissionType permissionType) throws
(1: sharing_models.SharingRegistryException gre)
+    bool deletePermissionType(1: required string entityTypeId) throws (1: sharing_models.SharingRegistryException
gre)
+    sharing_models.PermissionType getPermissionType(1: required string permissionTypeId)
throws (1: sharing_models.SharingRegistryException gre)
+    list<sharing_models.PermissionType> getPermissionTypes(1: required string domain,
2: required i32 offset, 3: required i32 limit) throws (1: sharing_models.SharingRegistryException
gre)
 
     /**
      * Sharing Entity with Users and Groups
     **/
-    bool shareEntityWithUsers(1: required string entityId, 2: required list<string>
userList, 3: required string perssionTypeId, 4: required bool cascadePermission) throws (1:
sharing_models.GovRegistryException gre)
-    bool revokeEntitySharingFromUsers(1: required string entityId, 2: required list<string>
userList, 3: required string perssionTypeId ) throws (1: sharing_models.GovRegistryException
gre)
-    bool shareEntityWithGroups(1: required string entityId, 2: required list<string>
groupList, 3: required string perssionTypeId, 4: required bool cascadePermission) throws (1:
sharing_models.GovRegistryException gre)
-    bool revokeEntitySharingFromGroups(1: required string entityId, 2: required list<string>
groupList, 3: required string perssionTypeId) throws (1: sharing_models.GovRegistryException
gre)
-    bool userHasAccess(1: required string domainId, 2: required string userId, 3: required
string entityId, 4: required string permissionTypeId) throws (1: sharing_models.GovRegistryException
gre)
+    bool shareEntityWithUsers(1: required string entityId, 2: required list<string>
userList, 3: required string perssionTypeId, 4: required bool cascadePermission) throws (1:
sharing_models.SharingRegistryException gre)
+    bool revokeEntitySharingFromUsers(1: required string entityId, 2: required list<string>
userList, 3: required string perssionTypeId ) throws (1: sharing_models.SharingRegistryException
gre)
+    bool shareEntityWithGroups(1: required string entityId, 2: required list<string>
groupList, 3: required string perssionTypeId, 4: required bool cascadePermission) throws (1:
sharing_models.SharingRegistryException gre)
+    bool revokeEntitySharingFromGroups(1: required string entityId, 2: required list<string>
groupList, 3: required string perssionTypeId) throws (1: sharing_models.SharingRegistryException
gre)
+    bool userHasAccess(1: required string domainId, 2: required string userId, 3: required
string entityId, 4: required string permissionTypeId) throws (1: sharing_models.SharingRegistryException
gre)
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata/blob/4739a9fc/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 0994cb9..8e78143 100644
--- a/modules/sharing-registry/thrift_models/sharing_models.thrift
+++ b/modules/sharing-registry/thrift_models/sharing_models.thrift
@@ -124,6 +124,6 @@ struct Sharing {
     7: optional i64 updatedTime
 }
 
-exception GovRegistryException {
+exception SharingRegistryException {
   1: required string message
 }


Mime
View raw message