Skip to content
Snippets Groups Projects
Commit 58cd6c81 authored by felmer's avatar felmer
Browse files

LMS-1995 HierarchicalStorageUpdater adapted to segmented storage

SVN: 19808
parent d5dd36f7
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,8 @@ public class HierarchicalStorageUpdater implements IMaintenanceTask ...@@ -111,7 +111,8 @@ public class HierarchicalStorageUpdater implements IMaintenanceTask
{ {
File targetFile = File targetFile =
new File(hierarchyRoot, DataSetHierarchyHelper.createHierarchicalPath(dataSet)); new File(hierarchyRoot, DataSetHierarchyHelper.createHierarchicalPath(dataSet));
File sourceFile = new File(storeRoot, dataSet.getDataSetLocation()); File share = new File(storeRoot, dataSet.getDataSetShareId());
File sourceFile = new File(share, dataSet.getDataSetLocation());
linkMappings.put(targetFile.getAbsolutePath(), sourceFile.getAbsolutePath()); linkMappings.put(targetFile.getAbsolutePath(), sourceFile.getAbsolutePath());
} }
return linkMappings; return linkMappings;
......
...@@ -362,10 +362,18 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer ...@@ -362,10 +362,18 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer
service.checkSpaceAccess(sToken, spaceId); service.checkSpaceAccess(sToken, spaceId);
} }
public List<SimpleDataSetInformationDTO> listDataSets() public List<SimpleDataSetInformationDTO> listDataSets() throws UserFailureException
throws UserFailureException
{ {
return service.listDataSets(session.getToken(), session.getDataStoreCode()); List<SimpleDataSetInformationDTO> dataSets =
service.listDataSets(session.getToken(), session.getDataStoreCode());
for (SimpleDataSetInformationDTO dataSet : dataSets)
{
if (dataSet.getDataSetShareId() == null)
{
dataSet.setDataSetShareId(defaultShareId);
}
}
return dataSets;
} }
public List<ExternalData> listAvailableDataSets(ArchiverDataSetCriteria criteria) public List<ExternalData> listAvailableDataSets(ArchiverDataSetCriteria criteria)
......
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