You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
855 B
Java
29 lines
855 B
Java
package org.gcube.data.access.storagehub.handlers.plugins;
|
|
|
|
import javax.inject.Inject;
|
|
import javax.inject.Singleton;
|
|
|
|
@Singleton
|
|
public class OperationMediator {
|
|
|
|
@Inject
|
|
FolderPluginHandler folderHandler;
|
|
|
|
/*
|
|
boolean onMove(Item source, Item destination, Session session) throws PluginInitializationException, PluginNotFoundException, BackendGenericError, RepositoryException{
|
|
FolderManager sourceFolderManager = folderHandler.getFolderManager(source);
|
|
FolderManager destinationFolderManager = folderHandler.getFolderManager(destination);
|
|
|
|
if (source instanceof FolderItem) {
|
|
destinationFolderManager.onCreatedFolder((FolderItem) source);
|
|
|
|
|
|
session.move(source.getPath(), destination.getPath());
|
|
sourceFolderManager.onDeletingFolder((FolderItem) source);
|
|
} else if (source instanceof AbstractFileItem){
|
|
|
|
}
|
|
}
|
|
*/
|
|
}
|