airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [airavata] 10/13: Adding SecurityCheck annotation
Date Mon, 11 Dec 2017 19:56:15 GMT
This is an automated email from the ASF dual-hosted git repository.

smarru pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit a7f24b623f73f1cd217b830249c3590ac6715d55
Author: Sachin Kariyattin <sachin9675@gmail.com>
AuthorDate: Tue Dec 5 01:32:01 2017 -0500

    Adding SecurityCheck annotation
---
 .../airavata/service/profile/handlers/GroupManagerServiceHandler.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/GroupManagerServiceHandler.java
b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/GroupManagerServiceHandler.java
index 1c2a656..7a57f52 100644
--- a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/GroupManagerServiceHandler.java
+++ b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/GroupManagerServiceHandler.java
@@ -191,6 +191,7 @@ public class GroupManagerServiceHandler implements GroupManagerService.Iface
{
     }
 
     @Override
+    @SecurityCheck
     public boolean removeGroupAdmins(AuthzToken authzToken, String groupId, List<String>
adminIds) throws GroupManagerServiceException, AuthorizationException, TException {
         try {
             SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -206,6 +207,7 @@ public class GroupManagerServiceHandler implements GroupManagerService.Iface
{
     }
 
     @Override
+    @SecurityCheck
     public boolean hasAdminAccess(AuthzToken authzToken, String groupId, String adminId)
throws GroupManagerServiceException, AuthorizationException, TException {
         try {
             SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -221,6 +223,7 @@ public class GroupManagerServiceHandler implements GroupManagerService.Iface
{
     }
 
     @Override
+    @SecurityCheck
     public boolean hasOwnerAccess(AuthzToken authzToken, String groupId, String ownerId)
throws GroupManagerServiceException, AuthorizationException, TException {
         try {
             SharingRegistryService.Client sharingClient = sharingClientPool.getResource();

-- 
To stop receiving notification emails like this one, please contact
"commits@airavata.apache.org" <commits@airavata.apache.org>.

Mime
View raw message