2016-06-13 09:48:29 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
|
|
|
|
|
2016-09-27 18:38:33 +02:00
|
|
|
import java.util.List;
|
2016-06-29 16:50:18 +02:00
|
|
|
|
2017-01-25 18:30:53 +01:00
|
|
|
import org.gcube.datacatalogue.ckanutillibrary.shared.RolesCkanGroupOrOrg;
|
2016-11-21 10:12:24 +01:00
|
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.BeanUserInOrgGroupRole;
|
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 com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
2016-06-20 15:22:21 +02:00
|
|
|
|
2016-11-04 13:01:35 +01:00
|
|
|
|
2016-06-13 09:48:29 +02:00
|
|
|
/**
|
2016-06-20 15:22:21 +02:00
|
|
|
* The Interface GcubeCkanDataCatalogServiceAsync.
|
2016-06-13 09:48:29 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
2016-11-04 13:01:35 +01:00
|
|
|
* Nov 4, 2016
|
2016-06-13 09:48:29 +02:00
|
|
|
*/
|
|
|
|
public interface GcubeCkanDataCatalogServiceAsync {
|
|
|
|
|
2016-11-04 13:01:35 +01:00
|
|
|
/**
|
|
|
|
* Gets the my role.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the my role
|
|
|
|
*/
|
2017-01-25 18:30:53 +01:00
|
|
|
void getMyRole(AsyncCallback<RolesCkanGroupOrOrg> callback);
|
2016-06-13 12:54:15 +02:00
|
|
|
|
2016-11-04 13:01:35 +01:00
|
|
|
/**
|
|
|
|
* Gets the c kan connector.
|
|
|
|
*
|
|
|
|
* @param pathInfoParameters the path info parameters
|
|
|
|
* @param queryStringParameters the query string parameters
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the c kan connector
|
|
|
|
*/
|
2016-06-20 15:22:21 +02:00
|
|
|
void getCKanConnector(
|
2017-02-15 18:49:48 +01:00
|
|
|
String pathInfoParameters, String queryStringParameters,
|
|
|
|
AsyncCallback<CkanConnectorAccessPoint> callback);
|
2016-06-23 12:49:45 +02:00
|
|
|
|
2016-11-04 13:01:35 +01:00
|
|
|
/**
|
|
|
|
* Logout from ckan url.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
|
|
|
void logoutFromCkanURL(AsyncCallback<String> callback);
|
|
|
|
|
2017-02-15 18:49:48 +01:00
|
|
|
// /**
|
|
|
|
// * Logout uri from ckan.
|
|
|
|
// *
|
|
|
|
// * @param callback the callback
|
|
|
|
// */
|
|
|
|
// void logoutURIFromCkan(AsyncCallback<String> callback);
|
2016-06-28 12:45:24 +02:00
|
|
|
|
2016-11-04 13:01:35 +01:00
|
|
|
/**
|
|
|
|
* Gets the ckan organizations names and urls for user.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
* @return the ckan organizations names and urls for user
|
|
|
|
*/
|
2016-06-29 16:50:18 +02:00
|
|
|
void getCkanOrganizationsNamesAndUrlsForUser(
|
2016-11-21 10:12:24 +01:00
|
|
|
AsyncCallback<List<BeanUserInOrgGroupRole>> callback);
|
2017-02-15 18:49:48 +01:00
|
|
|
|
2016-11-20 22:33:51 +01:00
|
|
|
/**
|
|
|
|
* Retrieve the list of groups to whom the user belongs and their urls.
|
|
|
|
*
|
|
|
|
* @return the ckan groups names and urls for user
|
|
|
|
*/
|
|
|
|
void getCkanGroupsNamesAndUrlsForUser(
|
2016-11-21 10:12:24 +01:00
|
|
|
AsyncCallback<List<BeanUserInOrgGroupRole>> callback);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Outside portal.
|
|
|
|
*
|
|
|
|
* @param callback the callback
|
|
|
|
*/
|
|
|
|
void outsidePortal(AsyncCallback<Boolean> callback);
|
2016-11-04 13:01:35 +01:00
|
|
|
|
2016-11-29 17:20:50 +01:00
|
|
|
/**
|
|
|
|
* Check if the manage product needs to be shown (e.g., for GRSF products)
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
void isManageProductEnabled(AsyncCallback<Boolean> callback);
|
2016-06-13 09:48:29 +02:00
|
|
|
}
|