Interface WorkspaceItem
-
- All Known Subinterfaces:
FileItem,GCubeItem,ImageFileItem,PDFFileItem,TrashedItem,URLFileItem,URLItem,WorkspaceFolder,WorkspaceSharedFolder,WorkspaceTrashFolder,WorkspaceVREFolder
- All Known Implementing Classes:
FileItem,GcubeItem,ImageFile,PDFFile,TrashItem,URLFile,URLFileItem,WorkspaceFolder,WorkspaceItem,WorkspaceSharedFolder,WorkspaceVREFolder
public interface WorkspaceItemThe Interface WorkspaceItem.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Oct 2, 2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<org.gcube.common.storagehub.model.items.nodes.accounting.AccountEntry>getAccounting()Gets the accounting.CalendargetCreationTime()This item creation time.StringgetDescription()This item description.StringgetId()This item id.CalendargetLastModificationTime()This item last modification time.StringgetLastModifiedBy()Gets the last modified by.StringgetName()This item name.StringgetOwner()This item owner.StringgetParentId()Gets the parent id.StringgetPath()Gets the path.PropertyMapgetPropertyMap()Gets the map property.StringgetTitle()Gets the title.WorkspaceItemTypegetType()Return this item type.booleanisFolder()Check if the item is a folder.booleanisHidden()Return a flag indicating whether the element is hidden.booleanisRoot()Says if this item is a root element.booleanisShared()Return a flag indicating whether the element is shared.booleanisTrashed()Check if the item is in the trash.
-
-
-
Method Detail
-
getId
String getId()
This item id.- Returns:
- the id.
-
getName
String getName()
This item name.- Returns:
- the name.
-
getTitle
String getTitle()
Gets the title.- Returns:
- the title
-
getDescription
String getDescription()
This item description.- Returns:
- the description.
-
getCreationTime
Calendar getCreationTime()
This item creation time.- Returns:
- the creation time.
-
getLastModificationTime
Calendar getLastModificationTime()
This item last modification time.- Returns:
- the last modification time.
-
getLastModifiedBy
String getLastModifiedBy()
Gets the last modified by.- Returns:
- the last modified by
-
getOwner
String getOwner()
This item owner.- Returns:
- the owner.
-
getPropertyMap
PropertyMap getPropertyMap()
Gets the map property.- Returns:
- the map property
-
getAccounting
List<org.gcube.common.storagehub.model.items.nodes.accounting.AccountEntry> getAccounting()
Gets the accounting.- Returns:
- the accounting
-
getPath
String getPath()
Gets the path.- Returns:
- the path
-
getParentId
String getParentId()
Gets the parent id.- Returns:
- the parent id
-
getType
WorkspaceItemType getType()
Return this item type.- Returns:
- the type.
-
isRoot
boolean isRoot()
Says if this item is a root element.- Returns:
trueif this element is a root,falseotherwise.
-
isHidden
boolean isHidden()
Return a flag indicating whether the element is hidden.- Returns:
trueif the element is hidden,falseif the element is visible.
-
isShared
boolean isShared()
Return a flag indicating whether the element is shared.- Returns:
trueif the element is shared,falseotherwise.
-
isTrashed
boolean isTrashed()
Check if the item is in the trash.- Returns:
- true if the item has been trashed
-
isFolder
boolean isFolder()
Check if the item is a folder.- Returns:
- true if the item is a folder
-
-