gcube-ckan-datacatalog/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GcubeCkanDataCatalogService...

97 lines
2.5 KiB
Java
Raw Normal View History

/**
*
*/
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
import java.util.List;
2021-04-09 15:39:48 +02:00
import org.gcube.datacatalogue.utillibrary.shared.RolesCkanGroupOrOrg;
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.BeanUserInOrgGroupRole;
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.CkanConnectorAccessPoint;
2021-06-15 18:37:17 +02:00
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.ManageProductResponse;
import com.google.gwt.user.client.rpc.AsyncCallback;
2021-06-15 18:37:17 +02:00
// TODO: Auto-generated Javadoc
/**
* The Interface GcubeCkanDataCatalogServiceAsync.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Nov 4, 2016
*/
public interface GcubeCkanDataCatalogServiceAsync {
/**
* Gets the my role.
*
* @param callback the callback
* @return the my role
*/
void getMyRole(AsyncCallback<RolesCkanGroupOrOrg> callback);
/**
2020-07-03 17:15:11 +02:00
* Gets the CKAN connector.
*
2020-07-03 17:15:11 +02:00
* @param browserLocationURL the browser location URL that performs the call
* @param pathInfoParameters the path info parameters
* @param queryStringParameters the query string parameters
* @param callback the callback
* @return the c kan connector
*/
void getCKanConnector(
2020-07-03 17:15:11 +02:00
String browserLocationURL, String pathInfoParameters, String queryStringParameters,
AsyncCallback<CkanConnectorAccessPoint> callback);
/**
* Logout from ckan url.
*
* @param callback the callback
*/
void logoutFromCkanURL(AsyncCallback<String> callback);
/**
* Gets the ckan organizations names and urls for user.
*
* @param callback the callback
* @return the ckan organizations names and urls for user
*/
void getCkanOrganizationsNamesAndUrlsForUser(
AsyncCallback<List<BeanUserInOrgGroupRole>> callback);
/**
* Retrieve the list of groups to whom the user belongs and their urls.
*
2019-12-05 14:26:23 +01:00
* @param callback the callback
* @return the ckan groups names and urls for user
*/
void getCkanGroupsNamesAndUrlsForUser(
AsyncCallback<List<BeanUserInOrgGroupRole>> callback);
2021-06-15 18:37:17 +02:00
/**
2021-06-15 18:37:17 +02:00
* Checks if is manage product enabled.
*
* @param callback the callback
*/
2021-06-15 18:37:17 +02:00
void isManageProductEnabled(AsyncCallback<ManageProductResponse> callback);
2020-07-03 17:15:11 +02:00
/**
2020-07-03 17:15:11 +02:00
* Checks if is view per VRE enabled.
2019-12-05 14:26:23 +01:00
*
2020-07-03 17:15:11 +02:00
* @param browserLocationURL the browser location URL
2019-12-05 14:26:23 +01:00
* @param callback the callback
*/
2020-07-03 17:15:11 +02:00
void isViewPerVREEnabled(String browserLocationURL, AsyncCallback<String> callback);
2019-12-05 14:26:23 +01:00
/**
2019-12-05 14:26:23 +01:00
* Outside login portal.
*
* @param callback the callback
*/
2019-12-05 14:26:23 +01:00
void outsideLoginPortal(AsyncCallback<Boolean> callback);
}