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;
|
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.AsyncCallback;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
|
|
|
|
*/
|
|
|
|
public interface JoinServiceAsync {
|
|
|
|
|
2015-09-02 19:26:00 +02:00
|
|
|
void getVREs(AsyncCallback< LinkedHashMap<VRECategory, ArrayList<VRE>>> callback);
|
2015-03-04 14:59:12 +01:00
|
|
|
|
2016-03-21 16:55:32 +01:00
|
|
|
void joinVRE(Long vreId, AsyncCallback<String> callback);
|
|
|
|
|
|
|
|
void getSelectedVRE(Long vreId, AsyncCallback<VRE> callback);
|
|
|
|
|
|
|
|
void addMembershipRequest(String scope, String optionalMessage,
|
|
|
|
AsyncCallback<Void> callback);
|
2016-03-22 18:48:34 +01:00
|
|
|
|
|
|
|
void registerUser(String scope, long vreId, boolean isInvitation,
|
|
|
|
AsyncCallback<Boolean> callback);
|
2016-03-24 12:52:36 +01:00
|
|
|
|
|
|
|
void isExistingInvite(long siteId, AsyncCallback<String> callback);
|
2016-03-24 18:51:32 +01:00
|
|
|
|
2017-07-04 19:05:31 +02:00
|
|
|
void readInvite(String inviteId, long siteId, AsyncCallback<UserInfo> callback);
|
|
|
|
|
|
|
|
void getTermsOfUse(long siteId, AsyncCallback<String> callback);
|
2015-03-03 11:21:17 +01:00
|
|
|
}
|