2013-02-06 15:40:17 +01:00
|
|
|
package org.gcube.portlets.user.workspace.client.interfaces;
|
|
|
|
|
2013-02-13 18:39:33 +01:00
|
|
|
import java.util.List;
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
import org.gcube.portlets.user.workspace.client.model.FileModel;
|
|
|
|
|
|
|
|
/**
|
2019-02-22 14:40:20 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
2013-02-06 15:40:17 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
//Implements this interface to upgrade the state of the store that was loaded in Async Tree
|
|
|
|
public interface TreeAppControllerInterface {
|
|
|
|
|
|
|
|
enum VisualizationType {TREE, SHORTCUT};
|
|
|
|
|
|
|
|
//Methods returns true if state operation is OK, false otherwise
|
|
|
|
boolean renameItem(String itemIdentifier, String newName, String extension);
|
|
|
|
boolean deleteItem(String itemIdentifier);
|
|
|
|
boolean addFolder(String itemIdentifier, String name, String parentIdentifier);
|
|
|
|
boolean addFile(String itemIdentifier, String name, String parentIdentifier);
|
2013-02-13 18:39:33 +01:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
boolean reloadFolderChildren(String itemIdentifier);
|
2013-02-13 18:39:33 +01:00
|
|
|
List<FileModel> getListParentsByIdentifierFromTree(String itemIdentifier);
|
2013-02-06 15:40:17 +01:00
|
|
|
void setVisualizationType(VisualizationType type);
|
2019-09-13 16:48:26 +02:00
|
|
|
|
|
|
|
void findItemAndSelectItemInTree(String itemIdentifier); //this method is no longer used
|
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
void expandFolder(String itemIdentifier);
|
|
|
|
void searching(boolean isSearch);
|
|
|
|
void selectRootItem();
|
|
|
|
FileModel getSelectedFolderInTree();
|
|
|
|
}
|