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
public class CommitDelegator extends BaseDelegator implements 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
Constructors Constructor Description CommitDelegator(IOptionsServer server)Instantiates a new graph commit delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetBlobObject(java.lang.String repo, java.lang.String sha)Usage: cat-file -n {repo} blob {object-sha}ICommitgetCommitObject(java.lang.String sha)Usage: cat-file commit {object-sha}ICommitgetCommitObject(java.lang.String sha, java.lang.String repo)Usage: cat-file -n {repo} commit {object-sha}java.util.List<ICommit>getGraphCommitLogList(GraphCommitLogOptions options)Returns aList<ICommit>encapsulating a commit logs which holds the data retrieved as part of the 'p4 graph log -n command'IGraphObjectgetGraphObject(java.lang.String sha)Usage: cat-file -t {object-sha}
-
-
-
Constructor Detail
-
CommitDelegator
public CommitDelegator(IOptionsServer server)
Instantiates a new graph commit delegator.- Parameters:
server- the server
-
-
Method Detail
-
getCommitObject
public ICommit getCommitObject(java.lang.String sha) throws P4JavaException
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
public ICommit getCommitObject(java.lang.String sha, java.lang.String repo) throws P4JavaException
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
public java.io.InputStream getBlobObject(java.lang.String repo, java.lang.String sha) throws P4JavaExceptionDescription 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
public IGraphObject getGraphObject(java.lang.String sha) throws P4JavaException
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
public java.util.List<ICommit> getGraphCommitLogList(GraphCommitLogOptions options) throws P4JavaException
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
-
-