Interface TrashedItem
-
- All Superinterfaces:
WorkspaceItem
- All Known Implementing Classes:
TrashItem
public interface TrashedItem extends WorkspaceItem
The Interface TrashedItem.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Sep 21, 2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDeletedBy()Get the user who deleted the item.StringgetDeletedFrom()Get the path where the item was deleted.CalendargetDeletedTime()Get the date when the item was deleted.StringgetMimeType()Get mime type.StringgetName()Get the name of the trashed item.StringgetOriginalParentId()Get original parent Id to restore the item.WorkspaceItemTypegetType()Return this item type.booleanisFolder()Return true if the trash item was a folder.-
Methods inherited from interface org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceItem
getAccounting, getCreationTime, getDescription, getId, getLastModificationTime, getLastModifiedBy, getOwner, getParentId, getPath, getPropertyMap, getTitle, isHidden, isRoot, isShared, isTrashed
-
-
-
-
Method Detail
-
getOriginalParentId
String getOriginalParentId()
Get original parent Id to restore the item.- Returns:
- the original parent Id to restore the item
-
getDeletedFrom
String getDeletedFrom()
Get the path where the item was deleted.- Returns:
- the path where the item was deleted
-
getDeletedBy
String getDeletedBy()
Get the user who deleted the item.- Returns:
- the user who deleted the item
-
getDeletedTime
Calendar getDeletedTime()
Get the date when the item was deleted.- Returns:
- the date when the item was deleted
-
isFolder
boolean isFolder()
Return true if the trash item was a folder.- Specified by:
isFolderin interfaceWorkspaceItem- Returns:
- true if the trash item was a folder, false otherwise
-
getMimeType
String getMimeType() throws InternalErrorException
Get mime type.- Returns:
- the mime type of the trashed item
- Throws:
InternalErrorException- the internal error exception
-
getName
String getName()
Get the name of the trashed item.- Specified by:
getNamein interfaceWorkspaceItem- Returns:
- the name of the trashed item
-
getType
WorkspaceItemType getType()
Return this item type.- Specified by:
getTypein interfaceWorkspaceItem- Returns:
- the type.
-
-