Skip to content
Snippets Groups Projects
Commit c3f07050 authored by tpylak's avatar tpylak
Browse files

LMS-1491 refactor servlets serving screening images to make a part creating...

LMS-1491 refactor servlets serving screening images to make a part creating thumbnails independant of the servlets

SVN: 15496
parent c2cbcd19
No related merge requests found
......@@ -316,7 +316,7 @@ abstract public class AbstractDatasetDownloadServlet extends HttpServlet
}
}
protected static final class Size
public static final class Size
{
private final int width;
......@@ -343,9 +343,10 @@ abstract public class AbstractDatasetDownloadServlet extends HttpServlet
{
DatabaseInstance databaseInstance = getDatabaseInstance(session);
File storeDir = applicationContext.getConfigParameters().getStorePath();
String databaseUuid = databaseInstance.getUuid();
File dataSetRootDirectory =
DatasetLocationUtil.getDatasetLocationPath(storeDir, dataSetCode, databaseInstance
.getUuid());
DatasetLocationUtil.getDatasetLocationPath(storeDir, dataSetCode, databaseUuid);
if (dataSetRootDirectory.exists() == false)
{
throw new UserFailureException("Data set '" + dataSetCode + "' not found in the store.");
......
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