public class GraphCommitLogOptions extends Options
Usage: log -n repo [ -u user -A date-B date -m N -N N -X N ] [ commit... ]
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GRAPH_COMMITLOG_COMMAND_PART |
static java.lang.String |
OPTIONS_SPECS |
immutable, optionList
Constructor and Description |
---|
GraphCommitLogOptions()
Default constructor
|
GraphCommitLogOptions(java.lang.String repo,
int maxResults,
java.lang.String startDate,
java.lang.String endDate,
int minNumberOfParents,
int maxNumberOfParents,
java.lang.String... commitValue)
Constructs a GraphCommitLogOptions with the given arguments
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCommitValue()
Returns the commit SHA values
|
java.lang.String |
getEndDate()
Returns the he upper date limit of logs retrieved
|
int |
getMaxParents()
Returns the maximum number of parents the fetched log commit is expected to have.
|
int |
getMaxResults()
Returns the maximum results expected from the log command
|
int |
getMinParents()
Returns the minimum number of parents the fetched log commit is expected to have
|
java.lang.String |
getRepo()
Returns the repo used as part of option -n
|
java.lang.String |
getStartDate()
Returns The lower date limit of the logs retrieved.
|
java.lang.String |
getUser()
Returns the user of the commit
|
java.util.List<java.lang.String> |
processOptions(IServer server)
Turn this (specific) options object into a list of strings to be sent to
the Perforce server as options for a specific command.
|
void |
setCommitValue(java.lang.String... commitValue)
Sets the optional argument of commit SHA values
|
void |
setEndDate(java.lang.String endDate)
The value expected by -B option
The upper date limit of logs retrieved
|
void |
setMaxParents(int maximumNumberOfParents)
The value expected by -X option
The maximum number of parents the fetched log commit is expected to have.
|
void |
setMaxResults(int maxResults)
Sets the optional option value for option -m
|
void |
setMinParents(int minimumNumberOfParents)
The value expected by the -N option.
|
void |
setRepo(java.lang.String repo)
Sets the mandatory option value for option -n
which defines the repository against which the
command is
|
void |
setStartDate(java.lang.String startDate)
The value expected by the -A option
The lower date limit of the logs retrieved.
|
void |
setUser(java.lang.String user)
The value expected by -u option
The user who is responsible for the commits retrieved by p4 log
|
getOptions, isImmutable, processFields, setImmutable, setOptions
public static final java.lang.String GRAPH_COMMITLOG_COMMAND_PART
public static final java.lang.String OPTIONS_SPECS
public GraphCommitLogOptions()
public GraphCommitLogOptions(java.lang.String repo, int maxResults, java.lang.String startDate, java.lang.String endDate, int minNumberOfParents, int maxNumberOfParents, java.lang.String... commitValue)
repo
- maxResults
- startDate
- endDate
- minNumberOfParents
- maxNumberOfParents
- commitValue
- public java.util.List<java.lang.String> processOptions(IServer server) throws OptionsException
Options
The method is used by the server object to generate the string-based arguments expected by the Perforce server corresponding to the state of this method-specific options object. Will return an empty list if there are no "interesting" options set or available. May simply return the superclass options string list if is non-null, but that behaviour is neither guaranteed nor required.
Note that this method is not intended to be called directly by users but by the underlying P4Java plumbing; odd results may occur if this method is called in other contexts.
processOptions
in class Options
server
- possibly-null IServer representing the Perforce server the
options are to be used against. If this parameter is null, it
is acceptable to throw an OptionsException, but it is also
possible to ignore it and do the best you can with what you've
got...OptionsException
public void setRepo(java.lang.String repo)
repo
- public java.lang.String getRepo()
public void setMaxResults(int maxResults)
maxResults
- public int getMaxResults()
public void setCommitValue(java.lang.String... commitValue)
commitValue
- public java.lang.String[] getCommitValue()
public void setStartDate(java.lang.String startDate)
startDate
- public java.lang.String getStartDate()
public void setEndDate(java.lang.String endDate)
endDate
- public java.lang.String getEndDate()
public void setMinParents(int minimumNumberOfParents)
minimumNumberOfParents
- public int getMinParents()
public void setMaxParents(int maximumNumberOfParents)
maximumNumberOfParents
- public int getMaxParents()
public void setUser(java.lang.String user)
user
- public java.lang.String getUser()
Copyright © 2018 Perforce Software. All Rights Reserved.