101 lines
2.7 KiB
Java
101 lines
2.7 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.widgets.wsexplorer.client.rpc;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.FilterCriteria;
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemCategory;
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
|
/**
|
|
* The Interface WorkspaceExplorerServiceAsync.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 24, 2015
|
|
*/
|
|
public interface WorkspaceExplorerServiceAsync {
|
|
|
|
/**
|
|
* Gets the root.
|
|
*
|
|
* @param showableTypes
|
|
* the showable types
|
|
* @param purgeEmpyFolders
|
|
* the purge empy folders
|
|
* @param filterCriteria
|
|
* the filter criteria
|
|
* @param callback
|
|
* the callback
|
|
* @return the root
|
|
*/
|
|
public void getRoot(List<ItemType> showableTypes, boolean purgeEmpyFolders,
|
|
FilterCriteria filterCriteria, AsyncCallback<Item> callback);
|
|
|
|
/**
|
|
* Check name.
|
|
*
|
|
* @param name
|
|
* the name
|
|
* @param callback
|
|
* the callback
|
|
*/
|
|
public void checkName(String name, AsyncCallback<Boolean> callback);
|
|
|
|
/**
|
|
* Gets the folder.
|
|
*
|
|
* @param folderId
|
|
* the folder id
|
|
* @param showableTypes
|
|
* the showable types
|
|
* @param purgeEmpyFolders
|
|
* the purge empy folders
|
|
* @param filterCriteria
|
|
* the filter criteria
|
|
* @param callback
|
|
* the callback
|
|
* @return the folder
|
|
*/
|
|
public void getFolder(String folderId, List<ItemType> showableTypes,
|
|
boolean purgeEmpyFolders, FilterCriteria filterCriteria,
|
|
AsyncCallback<Item> callback);
|
|
|
|
/**
|
|
* Gets the list parents by item identifier.
|
|
*
|
|
* @param itemIdentifier the item identifier
|
|
* @param includeItemAsParent the include item as parent
|
|
* @param asyncCallback the callback
|
|
* @return the list parents by item identifier
|
|
*/
|
|
public void getListParentsByItemIdentifier(String itemIdentifier,
|
|
boolean includeItemAsParent, AsyncCallback<List<Item>> asyncCallback);
|
|
|
|
/**
|
|
* Gets the my special folder.
|
|
*
|
|
* @param showableTypes the showable types
|
|
* @param purgeEmpyFolders the purge empy folders
|
|
* @param filterCriteria the filter criteria
|
|
* @param asyncCallback the async callback
|
|
* @return the my special folder
|
|
*/
|
|
public void getMySpecialFolder(List<ItemType> showableTypes, boolean purgeEmpyFolders, FilterCriteria filterCriteria, AsyncCallback<Item> asyncCallback);
|
|
|
|
/**
|
|
* Gets the item by category.
|
|
*
|
|
* @param category the category
|
|
* @param asyncCallback the async callback
|
|
* @return the item by category
|
|
*/
|
|
public void getItemByCategory(ItemCategory category, AsyncCallback<Item> asyncCallback);
|
|
|
|
}
|