2018-06-26 14:58:41 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2018-09-24 11:25:04 +02:00
|
|
|
package org.gcube.common.storagehubwrapper.shared.tohl;
|
2018-06-26 14:58:41 +02:00
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
import org.gcube.common.storagehubwrapper.shared.tohl.exceptions.InternalErrorException;
|
|
|
|
|
2018-09-24 11:25:04 +02:00
|
|
|
|
2018-06-26 14:58:41 +02:00
|
|
|
/**
|
2018-09-24 11:25:04 +02:00
|
|
|
* The Interface TrashedItem.
|
2018-06-26 14:58:41 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
2018-09-24 11:25:04 +02:00
|
|
|
* Sep 21, 2018
|
2018-06-26 14:58:41 +02:00
|
|
|
*/
|
2018-09-24 11:25:04 +02:00
|
|
|
public interface TrashedItem extends WorkspaceItem {
|
2018-06-26 14:58:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get original parent Id to restore the item.
|
|
|
|
*
|
|
|
|
* @return the original parent Id to restore the item
|
|
|
|
*/
|
|
|
|
String getOriginalParentId();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the path where the item was deleted.
|
|
|
|
*
|
|
|
|
* @return the path where the item was deleted
|
|
|
|
*/
|
|
|
|
String getDeletedFrom();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the user who deleted the item.
|
|
|
|
*
|
|
|
|
* @return the user who deleted the item
|
|
|
|
*/
|
|
|
|
String getDeletedBy();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the date when the item was deleted.
|
|
|
|
*
|
|
|
|
* @return the date when the item was deleted
|
|
|
|
*/
|
|
|
|
Calendar getDeletedTime();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return true if the trash item was a folder.
|
|
|
|
*
|
|
|
|
* @return true if the trash item was a folder, false otherwise
|
|
|
|
*/
|
|
|
|
boolean isFolder();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get mime type.
|
|
|
|
*
|
|
|
|
* @return the mime type of the trashed item
|
|
|
|
* @throws InternalErrorException the internal error exception
|
|
|
|
*/
|
|
|
|
String getMimeType() throws InternalErrorException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the name of the trashed item.
|
|
|
|
*
|
|
|
|
* @return the name of the trashed item
|
|
|
|
*/
|
2018-10-03 10:52:25 +02:00
|
|
|
String getName();
|
2018-06-26 14:58:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return this item type.
|
|
|
|
* @return the type.
|
|
|
|
*/
|
|
|
|
WorkspaceItemType getType();
|
|
|
|
|
|
|
|
}
|