Skip to content
Snippets Groups Projects
Commit 90831455 authored by cramakri's avatar cramakri
Browse files

LMS-1153 Use collection versions of data set access predicate.

SVN: 15688
parent 3f20a924
No related branches found
No related tags found
No related merge requests found
......@@ -593,6 +593,13 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer
service.checkDataSetAccess(sToken, dataSetCode);
}
synchronized public void checkDataSetCollectionAccess(String sToken, List<String> dataSetCodes)
throws UserFailureException
{
checkSessionToken();
service.checkDataSetCollectionAccess(sToken, dataSetCodes);
}
synchronized public List<SimpleDataSetInformationDTO> listDataSets()
throws UserFailureException
{
......
......@@ -65,6 +65,15 @@ public interface IEncapsulatedOpenBISService
public void checkDataSetAccess(final String sessionToken, final String dataSetCode)
throws UserFailureException;
/**
* Check which of the list of of data sets the current user can access.
*
* @param sessionToken The user's session token.
* @param dataSetCodes The data set codes the user wants to access.
*/
public void checkDataSetCollectionAccess(String sessionToken, List<String> dataSetCodes)
throws UserFailureException;
/**
* Tries to get the experiment of specified identifier or <code>null</code> if not found.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment