2016-06-13 09:48:29 +02:00
|
|
|
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
|
|
|
|
|
2016-06-29 16:50:18 +02:00
|
|
|
import java.util.Map;
|
|
|
|
|
2016-06-23 12:49:45 +02:00
|
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.CkanConnectorAccessPoint;
|
2016-06-13 09:48:29 +02:00
|
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.CkanRole;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
2016-06-20 15:22:21 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
|
|
* Jun 20, 2016
|
2016-06-13 09:48:29 +02:00
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("ckandatacatalogue")
|
|
|
|
public interface GcubeCkanDataCatalogService extends RemoteService {
|
|
|
|
|
2016-06-20 16:05:58 +02:00
|
|
|
|
2016-06-23 12:49:45 +02:00
|
|
|
CkanConnectorAccessPoint getCKanConnector(
|
2016-09-05 18:18:57 +02:00
|
|
|
String pathInfoParameters, String queryStringParameters, String currentUrl) throws Exception;
|
2016-06-20 15:22:21 +02:00
|
|
|
|
2016-06-13 09:48:29 +02:00
|
|
|
CkanRole getMyRole() throws Exception;
|
2016-06-20 15:22:21 +02:00
|
|
|
|
2016-06-13 12:54:15 +02:00
|
|
|
String getUser();
|
2016-06-29 16:50:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieve the list of organizations to whom the user belongs and their urls
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
Map<String, String> getCkanOrganizationsNamesAndUrlsForUser();
|
2016-06-23 12:49:45 +02:00
|
|
|
|
|
|
|
void logoutFromCkan();
|
2016-06-28 12:45:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
String logoutURIFromCkan();
|
2016-06-29 18:35:01 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Check if the there is a user logged in
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
boolean outsidePortal();
|
2016-06-13 09:48:29 +02:00
|
|
|
}
|