94 lines
2.5 KiB
Java
94 lines
2.5 KiB
Java
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.datacatalogue.utillibrary.shared.RolesCkanGroupOrOrg;
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.BeanUserInOrgGroupRole;
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.CkanConnectorAccessPoint;
|
|
import org.gcube.portlets.gcubeckan.gcubeckandatacatalog.shared.ManageProductResponse;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
/**
|
|
* The Interface GcubeCkanDataCatalogService.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Nov 4, 2016
|
|
*/
|
|
@RemoteServiceRelativePath("ckandatacatalogue")
|
|
public interface GcubeCkanDataCatalogService extends RemoteService {
|
|
|
|
|
|
/**
|
|
* Get the ckan connector access point.
|
|
*
|
|
* @param browserLocationURL the browser location URL
|
|
* @param pathInfoParameters the path info parameters
|
|
* @param queryStringParameters the query string parameters
|
|
* @return the c kan connector
|
|
* @throws Exception the exception
|
|
*/
|
|
CkanConnectorAccessPoint getCKanConnector(
|
|
String browserLocationURL, String pathInfoParameters, String queryStringParameters) throws Exception;
|
|
|
|
/**
|
|
* Get the current role in CKAN for this user.
|
|
*
|
|
* @return the my role
|
|
* @throws Exception the exception
|
|
*/
|
|
RolesCkanGroupOrOrg getMyRole() throws Exception;
|
|
|
|
/**
|
|
* Retrieve the list of organizations to whom the user belongs and their urls.
|
|
*
|
|
* @return the ckan organizations names and urls for user
|
|
*/
|
|
List<BeanUserInOrgGroupRole> getCkanOrganizationsNamesAndUrlsForUser();
|
|
|
|
/**
|
|
* Retrieve the list of groups to whom the user belongs and their urls.
|
|
*
|
|
* @return the ckan groups names and urls for user
|
|
*/
|
|
List<BeanUserInOrgGroupRole> getCkanGroupsNamesAndUrlsForUser();
|
|
|
|
/**
|
|
* Logout from ckan.
|
|
*
|
|
* @return the string
|
|
*/
|
|
String logoutFromCkanURL();
|
|
|
|
// /**
|
|
// * Remove auth cookie for ckan of this user.
|
|
// *
|
|
// * @return the string
|
|
// */
|
|
// String logoutURIFromCkan();
|
|
|
|
|
|
/**
|
|
* Check if the manage product needs to be shown (e.g., for GRSF products)
|
|
* @return
|
|
*/
|
|
ManageProductResponse isManageProductEnabled();
|
|
|
|
/**
|
|
* Check if the view per VRE is enabled, so the management panels but publish/share link must be removed.
|
|
* @param browserLocationURL the browser location URL
|
|
* @return the string
|
|
*/
|
|
String isViewPerVREEnabled(String browserLocationURL);
|
|
|
|
|
|
/**
|
|
* Outside login portal.
|
|
*
|
|
* @return true, if successful
|
|
*/
|
|
boolean outsideLoginPortal();
|
|
}
|