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:
Francesco Mangiacrapa 2015-07-10 10:31:47 +00:00
parent dfc0e6afe9
commit 20924445b4
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}
}
/**

View File

@ -27,5 +27,6 @@ public enum ItemType {
IMAGE_DOCUMENT,
URL_DOCUMENT,
GCUBE_ITEM,
TIME_SERIES,
UNKNOWN_TYPE;
}