public class CommitDelegator extends BaseDelegator implements ICommitDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
CommitDelegator(IOptionsServer server)
Instantiates a new graph commit delegator.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getBlobObject(java.lang.String repo,
java.lang.String sha)
Usage: cat-file -n {repo} blob {object-sha}
|
ICommit |
getCommitObject(java.lang.String sha)
Usage: cat-file commit {object-sha}
|
ICommit |
getCommitObject(java.lang.String sha,
java.lang.String repo)
Usage: cat-file -n {repo} commit {object-sha}
|
java.util.List<ICommit> |
getGraphCommitLogList(GraphCommitLogOptions options)
Returns a
List<ICommit> encapsulating a commit logs which holds the
data retrieved as part of the 'p4 graph log -n command' |
IGraphObject |
getGraphObject(java.lang.String sha)
Usage: cat-file -t {object-sha}
|
public CommitDelegator(IOptionsServer server)
server - the serverpublic ICommit getCommitObject(java.lang.String sha) throws P4JavaException
ICommitDelegator(requires 'super' permission)
getCommitObject in interface ICommitDelegatorsha - graph SHAP4JavaException - API errorpublic ICommit getCommitObject(java.lang.String sha, java.lang.String repo) throws P4JavaException
ICommitDelegatorgetCommitObject in interface ICommitDelegatorsha - graph SHArepo - graph repoP4JavaException - API errorpublic java.io.InputStream getBlobObject(java.lang.String repo,
java.lang.String sha)
throws P4JavaException
ICommitDelegatorgetBlobObject in interface ICommitDelegatorrepo - graph reposha - graph SHAP4JavaException - API errorpublic IGraphObject getGraphObject(java.lang.String sha) throws P4JavaException
ICommitDelegatorgetGraphObject in interface ICommitDelegatorsha - graph SHAP4JavaException - API errorpublic java.util.List<ICommit> getGraphCommitLogList(GraphCommitLogOptions options) throws P4JavaException
List<ICommit> encapsulating a commit logs which holds the
data retrieved as part of the 'p4 graph log -n command'getGraphCommitLogList in interface ICommitDelegatoroptions - Various options supported by the commandP4JavaException - on error