Class CommitDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.CommitDelegator
- All Implemented Interfaces:
ICommitDelegator
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCommitDelegator(IOptionsServer server) Instantiates a new graph commit delegator. -
Method Summary
Modifier and TypeMethodDescriptiongetBlobObject(String repo, String sha) Usage: cat-file -n {repo} blob {object-sha}getCommitObject(String sha) Usage: cat-file commit {object-sha}getCommitObject(String sha, String repo) Usage: cat-file -n {repo} commit {object-sha}Returns aList<ICommit>encapsulating a commit logs which holds the data retrieved as part of the 'p4 graph log -n command'getGraphObject(String sha) Usage: cat-file -t {object-sha}
-
Constructor Details
-
CommitDelegator
Instantiates a new graph commit delegator.- Parameters:
server- the server
-
-
Method Details
-
getCommitObject
Description copied from interface:ICommitDelegatorUsage: cat-file commit {object-sha}(requires 'super' permission)
- Specified by:
getCommitObjectin interfaceICommitDelegator- Parameters:
sha- graph SHA- Returns:
- graph commit object
- Throws:
P4JavaException- API error
-
getCommitObject
Description copied from interface:ICommitDelegatorUsage: cat-file -n {repo} commit {object-sha}- Specified by:
getCommitObjectin interfaceICommitDelegator- Parameters:
sha- graph SHArepo- graph repo- Returns:
- graph commit object
- Throws:
P4JavaException- API error
-
getBlobObject
Description copied from interface:ICommitDelegatorUsage: cat-file -n {repo} blob {object-sha}- Specified by:
getBlobObjectin interfaceICommitDelegator- Parameters:
repo- graph reposha- graph SHA- Returns:
- InputStream of the graph file
- Throws:
P4JavaException- API error
-
getGraphObject
Description copied from interface:ICommitDelegatorUsage: cat-file -t {object-sha}- Specified by:
getGraphObjectin interfaceICommitDelegator- Parameters:
sha- graph SHA- Returns:
- graph object
- Throws:
P4JavaException- API error
-
getGraphCommitLogList
Returns aList<ICommit>encapsulating a commit logs which holds the data retrieved as part of the 'p4 graph log -n command'- Specified by:
getGraphCommitLogListin interfaceICommitDelegator- Parameters:
options- Various options supported by the command- Returns:
- list of commits
- Throws:
P4JavaException- on error
-