2015-03-03 11:21:17 +01:00
|
|
|
package org.gcube.portlets.user.joinvre.client;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
2015-09-02 19:26:00 +02:00
|
|
|
import java.util.LinkedHashMap;
|
2017-11-08 18:53:58 +01:00
|
|
|
import java.util.List;
|
2015-03-03 11:21:17 +01:00
|
|
|
|
2016-03-24 18:51:32 +01:00
|
|
|
import org.gcube.portal.databook.shared.UserInfo;
|
2015-03-03 12:31:46 +01:00
|
|
|
import org.gcube.portlets.user.joinvre.shared.VRE;
|
2015-09-02 19:26:00 +02:00
|
|
|
import org.gcube.portlets.user.joinvre.shared.VRECategory;
|
2015-03-03 11:21:17 +01:00
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
|
|
|
|
*/
|
2015-03-03 17:13:12 +01:00
|
|
|
@RemoteServiceRelativePath("JoinService")
|
2015-03-03 11:21:17 +01:00
|
|
|
public interface JoinService extends RemoteService {
|
|
|
|
|
2017-11-08 18:53:58 +01:00
|
|
|
List<String> isTabbedPanel();
|
2017-11-08 18:25:37 +01:00
|
|
|
|
2015-09-02 19:26:00 +02:00
|
|
|
LinkedHashMap<VRECategory, ArrayList<VRE>> getVREs();
|
2015-03-03 11:21:17 +01:00
|
|
|
|
2017-11-08 18:25:37 +01:00
|
|
|
LinkedHashMap<VRECategory, ArrayList<VRE>> getPortalSitesMappedToVRE(String tabName);
|
|
|
|
|
|
|
|
LinkedHashMap<VRECategory, ArrayList<VRE>> getVREsByOrganisation(String organisationName);
|
|
|
|
|
|
|
|
LinkedHashMap<VRECategory, ArrayList<VRE>> getVREsByCategory(String categoryName);
|
|
|
|
|
|
|
|
ArrayList<String> getAllOrganisations();
|
|
|
|
|
|
|
|
ArrayList<String> getAllCategories();
|
|
|
|
|
2016-03-21 16:55:32 +01:00
|
|
|
String joinVRE(Long vreId);
|
2015-03-04 14:59:12 +01:00
|
|
|
|
2016-03-21 16:55:32 +01:00
|
|
|
VRE getSelectedVRE(Long vreId);
|
|
|
|
|
2017-07-05 18:27:46 +02:00
|
|
|
void addMembershipRequest(VRE theVRE, String optionalMessage);
|
2016-03-22 18:48:34 +01:00
|
|
|
|
|
|
|
boolean registerUser(String scope, long vreId, boolean isInvitation);
|
2016-03-24 12:52:36 +01:00
|
|
|
|
|
|
|
String isExistingInvite(long siteId);
|
2016-03-24 18:51:32 +01:00
|
|
|
|
2017-07-04 19:05:31 +02:00
|
|
|
String getTermsOfUse(long siteId);
|
|
|
|
|
|
|
|
UserInfo readInvite(String inviteId, long siteId);
|
2015-03-03 11:21:17 +01:00
|
|
|
}
|