2016-04-21 10:37:31 +02:00
|
|
|
package org.gcube.portlets.user.workspaceexplorerapp.client.rpc;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.workspaceexplorerapp.shared.FilterCriteria;
|
|
|
|
import org.gcube.portlets.user.workspaceexplorerapp.shared.Item;
|
|
|
|
import org.gcube.portlets.user.workspaceexplorerapp.shared.ItemType;
|
|
|
|
import org.gcube.portlets.user.workspaceexplorerapp.shared.WorkspaceNavigatorServiceException;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
2017-07-03 17:25:05 +02:00
|
|
|
* The Interface WorkspaceExplorerAppService.
|
2016-04-21 10:37:31 +02:00
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jul 3, 2017
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("WorkspaceExplorerAppService")
|
|
|
|
public interface WorkspaceExplorerAppService extends RemoteService {
|
|
|
|
|
2017-07-03 17:25:05 +02:00
|
|
|
/**
|
|
|
|
* Gets the folder.
|
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param folder the folder @param showableTypes the showable types @param
|
|
|
|
* purgeEmpyFolders the purge empy folders @param filterCriteria
|
|
|
|
* the filter criteria @return the folder @throws
|
|
|
|
* WorkspaceNavigatorServiceException the workspace navigator
|
|
|
|
* service exception @throws
|
2017-07-03 17:25:05 +02:00
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
Item getFolder(Item folder, List<ItemType> showableTypes, boolean purgeEmpyFolders, FilterCriteria filterCriteria)
|
|
|
|
throws WorkspaceNavigatorServiceException;
|
2016-04-21 10:37:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the root.
|
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param showableTypes the showable types
|
2016-04-21 10:37:31 +02:00
|
|
|
* @param purgeEmpyFolders the purge empy folders
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param filterCriteria the filter criteria
|
2016-04-21 10:37:31 +02:00
|
|
|
* @return the root
|
2020-04-09 17:58:03 +02:00
|
|
|
* @throws WorkspaceNavigatorServiceException the workspace navigator service
|
|
|
|
* exception
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
Item getRoot(List<ItemType> showableTypes, boolean purgeEmpyFolders, FilterCriteria filterCriteria)
|
2016-04-21 10:37:31 +02:00
|
|
|
throws WorkspaceNavigatorServiceException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the my special folder.
|
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param showableTypes the showable types
|
2016-04-21 10:37:31 +02:00
|
|
|
* @param purgeEmpyFolders the purge empy folders
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param filterCriteria the filter criteria
|
2016-04-21 10:37:31 +02:00
|
|
|
* @return the my special folder
|
2020-04-09 17:58:03 +02:00
|
|
|
* @throws WorkspaceNavigatorServiceException the workspace navigator service
|
|
|
|
* exception
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
Item getMySpecialFolder(List<ItemType> showableTypes, boolean purgeEmpyFolders, FilterCriteria filterCriteria)
|
2016-04-21 10:37:31 +02:00
|
|
|
throws WorkspaceNavigatorServiceException;
|
|
|
|
|
|
|
|
/**
|
2017-07-03 17:25:05 +02:00
|
|
|
* Gets the breadcrumbs by item identifier to parent limit.
|
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param itemIdentifier the item identifier
|
|
|
|
* @param parentLimit the parent limit
|
2017-07-03 17:25:05 +02:00
|
|
|
* @param includeItemAsParent the include item as parent
|
|
|
|
* @return the breadcrumbs by item identifier to parent limit
|
|
|
|
* @throws Exception the exception
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
List<Item> getBreadcrumbsByItemIdentifierToParentLimit(String itemIdentifier, String parentLimit,
|
2016-04-21 10:37:31 +02:00
|
|
|
boolean includeItemAsParent) throws Exception;
|
|
|
|
|
|
|
|
/**
|
2020-04-09 17:58:03 +02:00
|
|
|
* Gets the breadcrumbs by item identifier.
|
2017-07-03 17:25:05 +02:00
|
|
|
*
|
2020-04-09 17:58:03 +02:00
|
|
|
* @param itemIdentifier the item identifier
|
|
|
|
* @param includeItemAsParent the include item as parent
|
|
|
|
* @return the breadcrumbs by item identifier
|
2017-07-03 17:25:05 +02:00
|
|
|
* @throws Exception the exception
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
2020-04-15 16:44:04 +02:00
|
|
|
//List<Item> getBreadcrumbsByItemIdentifier(String itemIdentifier, boolean includeItemAsParent) throws Exception;
|
2016-04-21 10:37:31 +02:00
|
|
|
|
|
|
|
/**
|
2017-07-03 17:25:05 +02:00
|
|
|
* Gets the public link for item id.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @return the public link for item id
|
|
|
|
* @throws Exception the exception
|
2016-04-21 10:37:31 +02:00
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
String getPublicLinkForItemId(String itemId) throws Exception;
|
2016-09-19 12:19:49 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the folder id from encrypted.
|
|
|
|
*
|
|
|
|
* @param encryptedFolderId the encrypted folder id
|
|
|
|
* @return the folder id from encrypted
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
2020-04-09 17:58:03 +02:00
|
|
|
String getFolderIdFromEncrypted(String encryptedFolderId) throws Exception;
|
|
|
|
|
2016-04-21 10:37:31 +02:00
|
|
|
}
|