|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.connector.git.GitFunction
public abstract class GitFunction
| Field Summary | |
|---|---|
protected GitConnector |
connector
|
protected static int |
DEFAULT_PAGE_SIZE
|
protected static String |
DELIMITER
|
protected String |
name
|
protected int |
pageSize
|
protected static String |
REMOTE_BRANCH_PREFIX
|
protected static Comparator<org.eclipse.jgit.lib.Ref> |
REVERSE_REF_COMPARATOR
|
protected static String |
TAG_PREFIX
|
| Constructor Summary | |
|---|---|
protected |
GitFunction(String name,
GitConnector connector)
|
| Method Summary | |
|---|---|
protected void |
addBranchesAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer)
Add the names of the branches as children of the current node. |
protected void |
addCommitsAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
int pageSize)
Add the first page of commits in the history names of the tags as children of the current node. |
protected void |
addCommitsAsPageOfChildren(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.lib.Repository repository,
CallSpecification spec,
PageWriter writer,
PageKey pageKey)
Add an additional page of commits in the history names of the tags as children of the current node. |
protected void |
addTagsAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer)
Add the names of the tags as children of the current node. |
protected String |
branchRefForName(String branchName)
Obtain the name of the branch reference |
abstract Document |
execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values)
|
String |
getName()
Get the name of this function. |
boolean |
isPaged()
|
protected boolean |
isQueryable(CallSpecification callSpec)
|
protected org.eclipse.jgit.lib.ObjectId |
resolveBranchOrTagOrCommitId(org.eclipse.jgit.lib.Repository repository,
String branchOrTagOrCommitId)
Resolve the branch name, tag name, or commit ID into the appropriate ObjectId. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String DELIMITER
protected static final String REMOTE_BRANCH_PREFIX
protected static final String TAG_PREFIX
protected static final int DEFAULT_PAGE_SIZE
protected static final Comparator<org.eclipse.jgit.lib.Ref> REVERSE_REF_COMPARATOR
protected final String name
protected final GitConnector connector
protected int pageSize
| Constructor Detail |
|---|
protected GitFunction(String name,
GitConnector connector)
| Method Detail |
|---|
public String getName()
public boolean isPaged()
public abstract Document execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values)
throws org.eclipse.jgit.api.errors.GitAPIException,
IOException
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionprotected String branchRefForName(String branchName)
branchName -
protected org.eclipse.jgit.lib.ObjectId resolveBranchOrTagOrCommitId(org.eclipse.jgit.lib.Repository repository,
String branchOrTagOrCommitId)
throws IOException
remote.
repository - the Repository object; may not be nullbranchOrTagOrCommitId - the branch name, tag name, or commit ID; may not be null
IOException - if there is a problem reading the Git repository
protected void addBranchesAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer)
throws org.eclipse.jgit.api.errors.GitAPIException
git - the Git object; may not be nullspec - the call specification; may not be nullwriter - the document writer for the current node; may not be null
org.eclipse.jgit.api.errors.GitAPIException - if there is a problem accessing the Git repository
protected void addTagsAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer)
throws org.eclipse.jgit.api.errors.GitAPIException
git - the Git object; may not be nullspec - the call specification; may not be nullwriter - the document writer for the current node; may not be null
org.eclipse.jgit.api.errors.GitAPIException - if there is a problem accessing the Git repository
protected void addCommitsAsChildren(org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
int pageSize)
throws org.eclipse.jgit.api.errors.GitAPIException
git - the Git object; may not be nullspec - the call specification; may not be nullwriter - the document writer for the current node; may not be nullpageSize - the number of commits to include, and the number of commits that will be in the next page (if there are
more commits)
org.eclipse.jgit.api.errors.GitAPIException - if there is a problem accessing the Git repository
protected void addCommitsAsPageOfChildren(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.lib.Repository repository,
CallSpecification spec,
PageWriter writer,
PageKey pageKey)
throws org.eclipse.jgit.api.errors.GitAPIException,
IOException
git - the Git object; may not be nullrepository - the Repository object; may not be nullspec - the call specification; may not be nullwriter - the page writer for the current node; may not be nullpageKey - the page key for this page; may not be null
org.eclipse.jgit.api.errors.GitAPIException - if there is a problem accessing the Git repository
IOException - if there is a problem reading the Git repositoryprotected boolean isQueryable(CallSpecification callSpec)
public String toString()
toString in class Object
|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||