Class TrashHandler
- java.lang.Object
-
- org.gcube.data.access.storagehub.handlers.TrashHandler
-
@Singleton public class TrashHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description TrashHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmoveToTrash(javax.jcr.Session ses, javax.jcr.Node nodeToDelete, org.gcube.common.storagehub.model.items.Item item, String login)voidremoveNodes(javax.jcr.Session ses, List<org.gcube.common.storagehub.model.items.Item> itemsToDelete)voidremoveOnlyNodesContent(javax.jcr.Session ses, List<org.gcube.common.storagehub.model.items.Item> itemsToDelete)StringrestoreItem(javax.jcr.Session ses, org.gcube.common.storagehub.model.items.TrashItem item, org.gcube.common.storagehub.model.items.FolderItem destination, String login)
-
-
-
Method Detail
-
removeNodes
public void removeNodes(javax.jcr.Session ses, List<org.gcube.common.storagehub.model.items.Item> itemsToDelete) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-
removeOnlyNodesContent
public void removeOnlyNodesContent(javax.jcr.Session ses, List<org.gcube.common.storagehub.model.items.Item> itemsToDelete) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-
moveToTrash
public void moveToTrash(javax.jcr.Session ses, javax.jcr.Node nodeToDelete, org.gcube.common.storagehub.model.items.Item item, String login) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.BackendGenericError- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
restoreItem
public String restoreItem(javax.jcr.Session ses, org.gcube.common.storagehub.model.items.TrashItem item, org.gcube.common.storagehub.model.items.FolderItem destination, String login) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException, org.gcube.common.storagehub.model.exceptions.BackendGenericError
- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
-