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:
Francesco Mangiacrapa 2018-11-19 17:30:05 +00:00
parent 81f86c4a0c
commit 6eeca6b24d
1 changed files with 3 additions and 0 deletions

View File

@ -295,7 +295,10 @@ public class HLMapper {
logger.info("Mapping unknown object as simple FileItem");
theItem = new FileItem();
type = WorkspaceItemType.FILE_ITEM;
FileItem theFileItem = (FileItem) theItem;
theFileItem.setFileItemType(FileItemType.DOCUMENT);
}
theItem.setId(item.getId());
theItem.setName(itemName);
theItem.setPath(item.getPath());