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.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 aList<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}
-
-
-
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:ICommitDelegator
Usage: cat-file commit {object-sha}(requires 'super' permission)
- Specified by:
getCommitObject
in 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:ICommitDelegator
Usage: cat-file -n {repo} commit {object-sha}- Specified by:
getCommitObject
in 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 P4JavaException
Description copied from interface:ICommitDelegator
Usage: cat-file -n {repo} blob {object-sha}- Specified by:
getBlobObject
in 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:ICommitDelegator
Usage: cat-file -t {object-sha}- Specified by:
getGraphObject
in 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:
getGraphCommitLogList
in interfaceICommitDelegator
- Parameters:
options
- Various options supported by the command- Returns:
- list of commits
- Throws:
P4JavaException
- on error
-
-