From 8074f15129b69a61f19de09b7e54ceeba3591071 Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Thu, 24 Jun 2010 15:27:40 +0000
Subject: [PATCH] LMS-1584 fix: add authorization

SVN: 16728
---
 .../systemsx/cisd/openbis/generic/shared/IETLLIMSService.java  | 3 ++-
 .../cisd/openbis/generic/shared/IETLLIMSService.java.expected  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java
index ba1157aa530..0e37e403f7a 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java
@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider
      */
     @Transactional(readOnly = true)
     @RolesAllowed(RoleSet.ETL_SERVER)
-    public ExternalData tryGetDataSetForServer(String sessionToken, String dataSetCode)
+    public ExternalData tryGetDataSetForServer(String sessionToken,
+            @AuthorizationGuard(guardClass = DataSetCodePredicate.class) String dataSetCode)
             throws UserFailureException;
 
 }
diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java.expected b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java.expected
index ba1157aa530..0e37e403f7a 100644
--- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java.expected
+++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/IETLLIMSService.java.expected
@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider
      */
     @Transactional(readOnly = true)
     @RolesAllowed(RoleSet.ETL_SERVER)
-    public ExternalData tryGetDataSetForServer(String sessionToken, String dataSetCode)
+    public ExternalData tryGetDataSetForServer(String sessionToken,
+            @AuthorizationGuard(guardClass = DataSetCodePredicate.class) String dataSetCode)
             throws UserFailureException;
 
 }
-- 
GitLab