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}
(requires 'super' permission)
|
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
|
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
getCommitObject
in interface ICommitDelegator
P4JavaException
public ICommit getCommitObject(java.lang.String sha, java.lang.String repo) throws P4JavaException
ICommitDelegator
getCommitObject
in interface ICommitDelegator
P4JavaException
public java.io.InputStream getBlobObject(java.lang.String repo, java.lang.String sha) throws P4JavaException
ICommitDelegator
getBlobObject
in interface ICommitDelegator
P4JavaException
public IGraphObject getGraphObject(java.lang.String sha) throws P4JavaException
ICommitDelegator
getGraphObject
in interface ICommitDelegator
P4JavaException
public java.util.List<ICommit> getGraphCommitLogList(GraphCommitLogOptions options) throws P4JavaException
getGraphCommitLogList
in interface ICommitDelegator
options
- Various options supported by the commandP4JavaException
Copyright © 2018 Perforce Software. All Rights Reserved.