/** * */ package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client; import java.util.List; import org.gcube.datacatalogue.ckanutillibrary.shared.RolesCkanGroupOrOrg; import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.BeanUserInOrgGroupRole; import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.CkanConnectorAccessPoint; import com.google.gwt.user.client.rpc.AsyncCallback; /** * 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 callback); /** * Gets the CKAN connector. * * @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( String browserLocationURL, String pathInfoParameters, String queryStringParameters, AsyncCallback callback); /** * Logout from ckan url. * * @param callback the callback */ void logoutFromCkanURL(AsyncCallback 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> callback); /** * Retrieve the list of groups to whom the user belongs and their urls. * * @param callback the callback * @return the ckan groups names and urls for user */ void getCkanGroupsNamesAndUrlsForUser( AsyncCallback> callback); /** * Check if the manage product needs to be shown (e.g., for GRSF products) * * @param callback the callback */ void isManageProductEnabled(AsyncCallback callback); /** * Checks if is view per VRE enabled. * * @param browserLocationURL the browser location URL * @param callback the callback */ void isViewPerVREEnabled(String browserLocationURL, AsyncCallback callback); /** * Outside login portal. * * @param callback the callback */ void outsideLoginPortal(AsyncCallback callback); }