Skip to content
Snippets Groups Projects
Commit 2f374e09 authored by jakubs's avatar jakubs
Browse files

SP-169 BIS-90 rename the ETL service method listDataSets to listFileDataSets

SVN: 25914
parent 9abf761d
No related branches found
No related tags found
No related merge requests found
...@@ -1050,7 +1050,7 @@ public class ETLService extends AbstractCommonServer<IETLLIMSService> implements ...@@ -1050,7 +1050,7 @@ public class ETLService extends AbstractCommonServer<IETLLIMSService> implements
} }
@Override @Override
public List<SimpleDataSetInformationDTO> listDataSets(String sessionToken, String dataStoreCode) public List<SimpleDataSetInformationDTO> listFileDataSets(String sessionToken, String dataStoreCode)
throws UserFailureException throws UserFailureException
{ {
List<ExternalData> dataSets = loadDataSets(sessionToken, dataStoreCode); List<ExternalData> dataSets = loadDataSets(sessionToken, dataStoreCode);
......
...@@ -351,10 +351,10 @@ public class ETLServiceLogger extends AbstractServerLogger implements IETLLIMSSe ...@@ -351,10 +351,10 @@ public class ETLServiceLogger extends AbstractServerLogger implements IETLLIMSSe
} }
@Override @Override
public List<SimpleDataSetInformationDTO> listDataSets(String sessionToken, String dataStore) public List<SimpleDataSetInformationDTO> listFileDataSets(String sessionToken, String dataStore)
throws UserFailureException throws UserFailureException
{ {
logAccess(Level.DEBUG, sessionToken, "listDataSets", "DATA_STORE(%s)", dataStore); logAccess(Level.DEBUG, sessionToken, "listFileDataSets", "DATA_STORE(%s)", dataStore);
return null; return null;
} }
......
...@@ -437,11 +437,11 @@ public interface IETLLIMSService extends IServer, ISessionProvider, IConversatio ...@@ -437,11 +437,11 @@ public interface IETLLIMSService extends IServer, ISessionProvider, IConversatio
throws UserFailureException; throws UserFailureException;
/** /**
* Lists data sets belonging to chosen data store. * Lists file-content data sets belonging to chosen data store.
*/ */
@Transactional(readOnly = true) @Transactional(readOnly = true)
@RolesAllowed(RoleWithHierarchy.SPACE_ETL_SERVER) @RolesAllowed(RoleWithHierarchy.SPACE_ETL_SERVER)
public List<SimpleDataSetInformationDTO> listDataSets(final String sessionToken, public List<SimpleDataSetInformationDTO> listFileDataSets(final String sessionToken,
String dataStore) throws UserFailureException; String dataStore) throws UserFailureException;
/** /**
......
...@@ -148,7 +148,7 @@ public class ETLServiceTest extends AbstractServerTestCase ...@@ -148,7 +148,7 @@ public class ETLServiceTest extends AbstractServerTestCase
} }
@Test @Test
public void testListDataSets() public void testListFileDataSets()
{ {
prepareGetSession(); prepareGetSession();
context.checking(new Expectations() context.checking(new Expectations()
...@@ -183,7 +183,7 @@ public class ETLServiceTest extends AbstractServerTestCase ...@@ -183,7 +183,7 @@ public class ETLServiceTest extends AbstractServerTestCase
}); });
List<SimpleDataSetInformationDTO> dataSets = List<SimpleDataSetInformationDTO> dataSets =
createService().listDataSets(SESSION_TOKEN, DSS_CODE); createService().listFileDataSets(SESSION_TOKEN, DSS_CODE);
assertEquals(DSS_CODE, dataSets.get(0).getDataStoreCode()); assertEquals(DSS_CODE, dataSets.get(0).getDataStoreCode());
assertEquals("my-type", dataSets.get(0).getDataSetType()); assertEquals("my-type", dataSets.get(0).getDataSetType());
......
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