|
||||||||||
| 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.DataService
public class DataService
Data service class for low-level access to Git repository data.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
client |
| Constructor Summary | |
|---|---|
DataService()
Create data service |
|
DataService(GitHubClient client)
Create data service |
|
| Method Summary | |
|---|---|
String |
createBlob(IRepositoryIdProvider repository,
Blob blob)
Create blob with given content |
Commit |
createCommit(IRepositoryIdProvider repository,
Commit commit)
Create commit in given repository |
Reference |
createReference(IRepositoryIdProvider repository,
Reference reference)
Create reference |
Tag |
createTag(IRepositoryIdProvider repository,
Tag tag)
Create tag object in given repository |
Tree |
createTree(IRepositoryIdProvider repository,
Collection<TreeEntry> entries)
Create tree |
Tree |
createTree(IRepositoryIdProvider repository,
Collection<TreeEntry> entries,
String baseTree)
Create tree |
Reference |
editReference(IRepositoryIdProvider repository,
Reference reference)
Edit reference |
Reference |
editReference(IRepositoryIdProvider repository,
Reference reference,
boolean force)
Edit reference |
Blob |
getBlob(IRepositoryIdProvider repository,
String sha)
Get blob for given SHA-1 |
Commit |
getCommit(IRepositoryIdProvider repository,
String sha)
Get commit for given SHA-1 |
Reference |
getReference(IRepositoryIdProvider repository,
String name)
Get reference with given name |
List<Reference> |
getReferences(IRepositoryIdProvider repository)
Get references for given repository |
Tag |
getTag(IRepositoryIdProvider repository,
String sha)
Get tag for given SHA-1 |
Tree |
getTree(IRepositoryIdProvider repository,
String sha)
Get tree with given SHA-1 |
Tree |
getTree(IRepositoryIdProvider repository,
String sha,
boolean recursive)
Get tree with given SHA-1 |
| 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 |
| Constructor Detail |
|---|
public DataService()
public DataService(GitHubClient client)
client - | Method Detail |
|---|
public Blob getBlob(IRepositoryIdProvider repository,
String sha)
throws IOException
repository - sha -
IOException
public String createBlob(IRepositoryIdProvider repository,
Blob blob)
throws IOException
repository - blob -
IOException
public Tree getTree(IRepositoryIdProvider repository,
String sha)
throws IOException
repository - sha -
IOException
public Tree getTree(IRepositoryIdProvider repository,
String sha,
boolean recursive)
throws IOException
repository - sha - recursive -
IOException
public Tree createTree(IRepositoryIdProvider repository,
Collection<TreeEntry> entries)
throws IOException
repository - entries -
IOException
public Tree createTree(IRepositoryIdProvider repository,
Collection<TreeEntry> entries,
String baseTree)
throws IOException
repository - entries - baseTree -
IOException
public Reference getReference(IRepositoryIdProvider repository,
String name)
throws IOException
repository - name -
IOException
public List<Reference> getReferences(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
public Reference createReference(IRepositoryIdProvider repository,
Reference reference)
throws IOException
repository - reference -
IOException
public Reference editReference(IRepositoryIdProvider repository,
Reference reference)
throws IOException
repository - reference -
IOException
public Reference editReference(IRepositoryIdProvider repository,
Reference reference,
boolean force)
throws IOException
repository - reference - force -
IOException
public Commit getCommit(IRepositoryIdProvider repository,
String sha)
throws IOException
repository - sha -
IOException
public Commit createCommit(IRepositoryIdProvider repository,
Commit commit)
throws IOException
repository - commit -
IOException
public Tag getTag(IRepositoryIdProvider repository,
String sha)
throws IOException
repository - sha -
IOException
public Tag createTag(IRepositoryIdProvider repository,
Tag tag)
throws IOException
repository - tag -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||