2016-05-26 17:50:06 +02:00
|
|
|
package org.gcube.portlets.widgets.githubconnector.client.rpc;
|
|
|
|
|
2016-06-13 18:26:53 +02:00
|
|
|
import java.util.ArrayList;
|
2016-05-26 17:50:06 +02:00
|
|
|
|
2016-06-15 18:25:04 +02:00
|
|
|
import org.gcube.portlets.widgets.githubconnector.shared.git.GitHubCloneSession;
|
|
|
|
import org.gcube.portlets.widgets.githubconnector.shared.git.data.GitHubRepository;
|
|
|
|
import org.gcube.portlets.widgets.githubconnector.shared.git.data.credential.GitHubCredential;
|
2016-05-26 17:50:06 +02:00
|
|
|
import org.gcube.portlets.widgets.githubconnector.shared.session.UserInfo;
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-06-30 18:05:17 +02:00
|
|
|
* @author Giancarlo Panichi
|
2017-05-12 17:38:47 +02:00
|
|
|
*
|
2016-05-26 17:50:06 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface GitHubConnectorServiceAsync {
|
|
|
|
|
|
|
|
public static GitHubConnectorServiceAsync INSTANCE = (GitHubConnectorServiceAsync) GWT
|
|
|
|
.create(GitHubConnectorService.class);
|
|
|
|
|
|
|
|
void hello(AsyncCallback<UserInfo> callback);
|
|
|
|
|
2016-06-13 18:26:53 +02:00
|
|
|
void getRepositories(String repositoryOwner,
|
|
|
|
GitHubCredential gitHubCredential,
|
|
|
|
AsyncCallback<ArrayList<GitHubRepository>> callback);
|
2016-05-26 17:50:06 +02:00
|
|
|
|
2016-06-15 18:25:04 +02:00
|
|
|
void cloneRepository(GitHubCloneSession gitHubCloneSession,
|
|
|
|
AsyncCallback<Void> callback);
|
|
|
|
|
2016-05-26 17:50:06 +02:00
|
|
|
}
|