256: Workspace explorer
Task-Url: https://support.d4science.org/issues/256 Added TIME_SERIES in ItemType git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117151 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
dfc0e6afe9
commit
20924445b4
|
@ -139,7 +139,13 @@ public class ItemBuilder {
|
|||
* @return the folder item type
|
||||
*/
|
||||
protected static ItemType getFolderItemType(FolderItem item){
|
||||
return ItemType.valueOf(item.getFolderItemType().toString());
|
||||
|
||||
try{
|
||||
return ItemType.valueOf(item.getFolderItemType().toString());
|
||||
}catch (Exception e) {
|
||||
_log.error("Item Type non found: ",e);
|
||||
return ItemType.UNKNOWN_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,5 +27,6 @@ public enum ItemType {
|
|||
IMAGE_DOCUMENT,
|
||||
URL_DOCUMENT,
|
||||
GCUBE_ITEM,
|
||||
TIME_SERIES,
|
||||
UNKNOWN_TYPE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue