|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.RepositoryService
public class RepositoryService
Repository service class.
| Field Summary | |
|---|---|
static String |
FIELD_DESCRIPTION
FIELD_DESCRIPTION |
static String |
FIELD_HOMEPAGE
FIELD_HOMEPAGE |
static String |
FIELD_NAME
FIELD_NAME |
static String |
FIELD_PUBLIC
FIELD_PUBLIC |
static String |
FILTER_TYPE
Type filter key |
static String |
TYPE_ALL
All repositories filter type |
static String |
TYPE_MEMBER
Member repository filter type |
static String |
TYPE_PRIVATE
Private repository filter type |
static String |
TYPE_PUBLIC
Public repository filter type |
| Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
client |
| Constructor Summary | |
|---|---|
RepositoryService()
Create repository service |
|
RepositoryService(GitHubClient client)
Create repository service |
|
| Method Summary | |
|---|---|
RepositoryHook |
createHook(IRepositoryIdProvider repository,
RepositoryHook hook)
Create hook in repository |
protected PagedRequest<Repository> |
createPagedForkRequest(IRepositoryIdProvider repository,
int start,
int size)
Create paged request for iterating over repositories forks |
Repository |
createRepository(Repository repository)
Create a new repository |
Repository |
createRepository(String organization,
Repository repository)
Create a new repository |
void |
deleteHook(IRepositoryIdProvider repository,
int hookId)
Delete hook from repository |
RepositoryHook |
editHook(IRepositoryIdProvider repository,
RepositoryHook hook)
Edit hook in repository |
Repository |
editRepository(Repository repository)
Edit given repository |
Repository |
forkRepository(IRepositoryIdProvider repository)
Fork given repository into new repository under the currently authenticated user. |
Repository |
forkRepository(IRepositoryIdProvider repository,
String organization)
Fork given repository into new repository. |
List<RepositoryBranch> |
getBranches(IRepositoryIdProvider repository)
Get branches in given repository |
List<Contributor> |
getContributors(IRepositoryIdProvider repository,
boolean includeAnonymous)
Get contributors to repository |
List<Repository> |
getForks(IRepositoryIdProvider repository)
Get all the forks of the given repository |
RepositoryHook |
getHook(IRepositoryIdProvider repository,
int hookId)
Get hook from repository with given id |
List<RepositoryHook> |
getHooks(IRepositoryIdProvider repository)
Get hooks for given repository |
Map<String,Long> |
getLanguages(IRepositoryIdProvider repository)
Get languages used in given repository |
List<Repository> |
getOrgRepositories(String organization)
Get organization repositories for the given organization |
List<Repository> |
getOrgRepositories(String organization,
Map<String,String> filterData)
Get organization repositories for the given organization |
List<Repository> |
getRepositories()
Get repositories for the currently authenticated user |
List<Repository> |
getRepositories(Map<String,String> filterData)
Get repositories for the currently authenticated user |
List<Repository> |
getRepositories(String user)
Get repositories for the given user |
Repository |
getRepository(IRepositoryIdProvider provider)
Get repository |
Repository |
getRepository(String owner,
String name)
Get repository |
List<RepositoryTag> |
getTags(IRepositoryIdProvider repository)
Get tags in given repository |
PageIterator<Repository> |
pageForks(IRepositoryIdProvider repository)
Page forks of given repository |
PageIterator<Repository> |
pageForks(IRepositoryIdProvider repository,
int size)
Page forks of given repository |
PageIterator<Repository> |
pageForks(IRepositoryIdProvider repository,
int start,
int size)
Page forks of given repository |
PageIterator<Repository> |
pageOrgRepositories(String organization)
Page repositories for the given organization |
PageIterator<Repository> |
pageOrgRepositories(String organization,
int size)
Page repositories for the given organization |
PageIterator<Repository> |
pageOrgRepositories(String organization,
int start,
int size)
Page repositories for the given organization |
PageIterator<Repository> |
pageOrgRepositories(String organization,
Map<String,String> filterData)
Page repositories for the given organization |
PageIterator<Repository> |
pageOrgRepositories(String organization,
Map<String,String> filterData,
int size)
Page repositories for the given organization |
PageIterator<Repository> |
pageOrgRepositories(String organization,
Map<String,String> filterData,
int start,
int size)
Page repositories for the given organization |
PageIterator<Repository> |
pageRepositories()
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(int size)
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(int start,
int size)
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(Map<String,String> filterData)
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(Map<String,String> filterData,
int size)
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(Map<String,String> filterData,
int start,
int size)
Page repositories for currently authenticated user |
PageIterator<Repository> |
pageRepositories(String user)
Page repositories for given user |
PageIterator<Repository> |
pageRepositories(String user,
int size)
Page repositories for given user |
PageIterator<Repository> |
pageRepositories(String user,
int start,
int size)
Page repositories for given user |
List<SearchRepository> |
searchRepositories(Map<String,String> params)
Search for repositories matching search parameters. |
List<SearchRepository> |
searchRepositories(Map<String,String> queryParams,
int startPage)
Search for repositories matching search parameters. |
List<SearchRepository> |
searchRepositories(String query)
Search for repositories matching query. |
List<SearchRepository> |
searchRepositories(String query,
int startPage)
Search for repositories matching query. |
List<SearchRepository> |
searchRepositories(String query,
String language)
Search for repositories matching language and query. |
List<SearchRepository> |
searchRepositories(String query,
String language,
int startPage)
Search for repositories matching language and query. |
void |
testHook(IRepositoryIdProvider repository,
int hookId)
Test hook in repository. |
| Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_NAME
public static final String FIELD_DESCRIPTION
public static final String FIELD_HOMEPAGE
public static final String FIELD_PUBLIC
public static final String FILTER_TYPE
public static final String TYPE_PUBLIC
public static final String TYPE_PRIVATE
public static final String TYPE_MEMBER
public static final String TYPE_ALL
| Constructor Detail |
|---|
public RepositoryService()
public RepositoryService(GitHubClient client)
client - cannot be null| Method Detail |
|---|
public List<Repository> getRepositories()
throws IOException
IOException
public List<Repository> getRepositories(Map<String,String> filterData)
throws IOException
filterData -
IOException
public PageIterator<Repository> pageRepositories()
throws IOException
IOException
public PageIterator<Repository> pageRepositories(int size)
throws IOException
size -
IOException
public PageIterator<Repository> pageRepositories(int start,
int size)
throws IOException
start - size -
IOException
public PageIterator<Repository> pageRepositories(Map<String,String> filterData)
throws IOException
filterData -
IOException
public PageIterator<Repository> pageRepositories(Map<String,String> filterData,
int size)
throws IOException
filterData - size -
IOException
public PageIterator<Repository> pageRepositories(Map<String,String> filterData,
int start,
int size)
throws IOException
filterData - start - size -
IOException
public List<Repository> getRepositories(String user)
throws IOException
user -
IOException
public PageIterator<Repository> pageRepositories(String user)
throws IOException
user -
IOException
public PageIterator<Repository> pageRepositories(String user,
int size)
throws IOException
user - size -
IOException
public PageIterator<Repository> pageRepositories(String user,
int start,
int size)
throws IOException
user - start - size -
IOException
public List<Repository> getOrgRepositories(String organization)
throws IOException
organization -
IOExceptionpublic PageIterator<Repository> pageOrgRepositories(String organization)
organization -
public PageIterator<Repository> pageOrgRepositories(String organization,
int size)
organization - size -
public PageIterator<Repository> pageOrgRepositories(String organization,
int start,
int size)
organization - start - size -
public List<Repository> getOrgRepositories(String organization,
Map<String,String> filterData)
throws IOException
organization - filterData -
IOException
public PageIterator<Repository> pageOrgRepositories(String organization,
Map<String,String> filterData)
organization - filterData -
public PageIterator<Repository> pageOrgRepositories(String organization,
Map<String,String> filterData,
int size)
organization - filterData - size -
public PageIterator<Repository> pageOrgRepositories(String organization,
Map<String,String> filterData,
int start,
int size)
organization - filterData - start - size -
public List<SearchRepository> searchRepositories(String query)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
query -
IOException
public List<SearchRepository> searchRepositories(String query,
int startPage)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
query - startPage -
IOException
public List<SearchRepository> searchRepositories(String query,
String language)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
query - language -
IOException
public List<SearchRepository> searchRepositories(String query,
String language,
int startPage)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
query - language - startPage -
IOException
public List<SearchRepository> searchRepositories(Map<String,String> params)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
params -
IOException
public List<SearchRepository> searchRepositories(Map<String,String> queryParams,
int startPage)
throws IOException
This method requires an API v2 configured GitHubClient as it is
not yet supported in API v3 clients.
queryParams - startPage -
IOException
public Repository createRepository(Repository repository)
throws IOException
repository -
IOException
public Repository createRepository(String organization,
Repository repository)
throws IOException
organization - repository -
IOException
public Repository getRepository(String owner,
String name)
throws IOException
owner - name -
IOException
public Repository getRepository(IRepositoryIdProvider provider)
throws IOException
provider -
IOException
protected PagedRequest<Repository> createPagedForkRequest(IRepositoryIdProvider repository,
int start,
int size)
repository - start - size -
public List<Repository> getForks(IRepositoryIdProvider repository)
throws IOException
repository -
IOExceptionpublic PageIterator<Repository> pageForks(IRepositoryIdProvider repository)
repository -
public PageIterator<Repository> pageForks(IRepositoryIdProvider repository,
int size)
repository - size -
public PageIterator<Repository> pageForks(IRepositoryIdProvider repository,
int start,
int size)
repository - start - size -
public Repository editRepository(Repository repository)
throws IOException
repository -
IOException
public Repository forkRepository(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public Repository forkRepository(IRepositoryIdProvider repository,
String organization)
throws IOException
repository - organization -
IOException
public Map<String,Long> getLanguages(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public List<RepositoryBranch> getBranches(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public List<RepositoryTag> getTags(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public List<Contributor> getContributors(IRepositoryIdProvider repository,
boolean includeAnonymous)
throws IOException
repository - includeAnonymous -
IOException
public List<RepositoryHook> getHooks(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public RepositoryHook getHook(IRepositoryIdProvider repository,
int hookId)
throws IOException
repository - hookId -
IOException
public RepositoryHook createHook(IRepositoryIdProvider repository,
RepositoryHook hook)
throws IOException
repository - hook -
IOException
public RepositoryHook editHook(IRepositoryIdProvider repository,
RepositoryHook hook)
throws IOException
repository - hook -
IOException
public void deleteHook(IRepositoryIdProvider repository,
int hookId)
throws IOException
repository - hookId -
IOException
public void testHook(IRepositoryIdProvider repository,
int hookId)
throws IOException
repository - hookId -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||