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
|
|
|
|
|
|
|
import org.gcube.portlets.widgets.githubconnector.shared.exception.ServiceException;
|
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.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
2016-06-30 18:05:17 +02:00
|
|
|
*
|
|
|
|
* @author Giancarlo Panichi
|
2017-05-12 17:38:47 +02:00
|
|
|
*
|
2016-06-30 18:05:17 +02:00
|
|
|
*
|
2016-05-26 17:50:06 +02:00
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("githubconnectorservice")
|
|
|
|
public interface GitHubConnectorService extends RemoteService {
|
|
|
|
|
|
|
|
public UserInfo hello() throws ServiceException;
|
|
|
|
|
2016-06-13 18:26:53 +02:00
|
|
|
public ArrayList<GitHubRepository> getRepositories(String repositoryOwner, GitHubCredential gitHubCredential) throws ServiceException;
|
2016-05-26 17:50:06 +02:00
|
|
|
|
2016-06-15 18:25:04 +02:00
|
|
|
public void cloneRepository(GitHubCloneSession gitHubCloneSession) throws ServiceException;
|
2016-05-26 17:50:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|