Interface WorkspaceTrashFolder
-
- All Superinterfaces:
WorkspaceFolder,WorkspaceItem
public interface WorkspaceTrashFolder extends WorkspaceFolder
The Interface WorkspaceTrashFolder.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jun 26, 2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddeletePermanentlyById(String id)Delete permanently a specific item.List<String>emptyTrash()Empty Trash.TrashedItemgetTrashItemById(String id)Deprecated.useorg.gcube.portal.storagehubwrapper.server.tohl.homelibrary.home.workspace.Workspace#getItem(String itemId)insteadList<TrashedItem>listTrashItems()Deprecated.use#getChildren()insteadList<String>restoreAll()Restore all item in Trash.voidrestoreById(String id)Restore a specific item.-
Methods inherited from interface org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceFolder
isPublicFolder
-
Methods inherited from interface org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceItem
getAccounting, getCreationTime, getDescription, getId, getLastModificationTime, getLastModifiedBy, getName, getOwner, getParentId, getPath, getPropertyMap, getTitle, getType, isFolder, isHidden, isRoot, isShared, isTrashed
-
-
-
-
Method Detail
-
emptyTrash
List<String> emptyTrash() throws InternalErrorException
Empty Trash.- Returns:
- a list of WorkspaceItem ids not removed; the list is null if every item has been removed
- Throws:
InternalErrorException- the internal error exception
-
deletePermanentlyById
void deletePermanentlyById(String id) throws InternalErrorException
Delete permanently a specific item.- Parameters:
id- item to delete- Throws:
InternalErrorException- the internal error exception
-
restoreAll
List<String> restoreAll() throws InternalErrorException
Restore all item in Trash.- Returns:
- a list of WorkspaceItem ids not restored; the list is null if every item has been restored
- Throws:
InternalErrorException- the internal error exception
-
restoreById
void restoreById(String id) throws InternalErrorException
Restore a specific item.- Parameters:
id- item to restore- Throws:
InternalErrorException- the internal error exception
-
listTrashItems
@Deprecated List<TrashedItem> listTrashItems() throws InternalErrorException, ItemNotFoundException
Deprecated.use#getChildren()insteadGet trashed items.- Returns:
- the list of trashed items
- Throws:
InternalErrorException- the internal error exceptionItemNotFoundException- the item not found exception
-
getTrashItemById
@Deprecated TrashedItem getTrashItemById(String id) throws InternalErrorException
Deprecated.useorg.gcube.portal.storagehubwrapper.server.tohl.homelibrary.home.workspace.Workspace#getItem(String itemId)insteadGet Trash Item by Id.- Parameters:
id- of a trashed item- Returns:
- a trashed item
- Throws:
InternalErrorException- the internal error exception
-
-