org.gcube.portlets.user.homelibrary.util
Class WorkspaceTypes

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.WorkspaceTypes

public class WorkspaceTypes
extends Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Constructor Summary
WorkspaceTypes()
           
 
Method Summary
static FolderItem getFolderItem(WorkspaceItem item)
           
static String getItemTypeAsString(WorkspaceItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceTypes

public WorkspaceTypes()
Method Detail

getFolderItem

public static FolderItem getFolderItem(WorkspaceItem item)
                                throws WrongItemTypeException
Parameters:
item - the item to convert.
Returns:
the folder item.
Throws:
WrongItemTypeException - if the item is not a folder item.

getItemTypeAsString

public static String getItemTypeAsString(WorkspaceItem item)
Parameters:
item - the item where to get the type.
Returns:
the resulting type string.


Copyright © 2013. All Rights Reserved.