fixing unknown object (they are old report, template and so on)
added FileItemType.DOCUMENT git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@174226 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
81f86c4a0c
commit
6eeca6b24d
|
@ -295,7 +295,10 @@ public class HLMapper {
|
||||||
logger.info("Mapping unknown object as simple FileItem");
|
logger.info("Mapping unknown object as simple FileItem");
|
||||||
theItem = new FileItem();
|
theItem = new FileItem();
|
||||||
type = WorkspaceItemType.FILE_ITEM;
|
type = WorkspaceItemType.FILE_ITEM;
|
||||||
|
FileItem theFileItem = (FileItem) theItem;
|
||||||
|
theFileItem.setFileItemType(FileItemType.DOCUMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
theItem.setId(item.getId());
|
theItem.setId(item.getId());
|
||||||
theItem.setName(itemName);
|
theItem.setName(itemName);
|
||||||
theItem.setPath(item.getPath());
|
theItem.setPath(item.getPath());
|
||||||
|
|
Loading…
Reference in New Issue