|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.option.Options
com.perforce.p4java.option.changelist.SubmitOptions
public class SubmitOptions
Options class for the IChangelist.submit method.
Field Summary | |
---|---|
protected List<String> |
jobIds
If not null, should contain a list of job IDs for jobs that will have their status changed to fixed or "jobStatus", below. |
protected String |
jobStatus
If not null, should contain a string to which the jobs in the jobIds list (or local jobs list) will be set on a successful submit; if null, the jobs will be marked "fixed". |
static String |
OPTIONS_SPECS
Options: -r, -s |
protected boolean |
reOpen
If true, submitted files will remain open (on the client's default changelist) after the submit has completed. |
Fields inherited from class com.perforce.p4java.option.Options |
---|
immutable, optionList, OPTPFX |
Constructor Summary | |
---|---|
SubmitOptions()
Default constructor. |
|
SubmitOptions(boolean reOpen,
List<String> jobIds,
String jobStatus)
Explicit value constructor. |
|
SubmitOptions(String... options)
Strings-based constructor; see 'p4 help [command]' for possible options. |
Method Summary | |
---|---|
List<String> |
getJobIds()
|
String |
getJobStatus()
|
boolean |
isReOpen()
|
List<String> |
processOptions(IServer server)
Note that the implementation of the various options here is less straightforward than for typical server-based Options classes due to the lack of one-to-one correspondence between options and flags and the need for strict option ordering. |
SubmitOptions |
setJobIds(List<String> jobIds)
|
SubmitOptions |
setJobStatus(String jobStatus)
|
SubmitOptions |
setReOpen(boolean reOpen)
|
Methods inherited from class com.perforce.p4java.option.Options |
---|
applyRule, applyRule, applyRule, applyRule, getOptions, isImmutable, processFields, setImmutable, setOptions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPTIONS_SPECS
protected boolean reOpen
protected List<String> jobIds
This list will override any jobs already in the changelist's local job list (usually the result of being fixed elsewhere and picked up during a refresh of the changelist).
protected String jobStatus
Constructor Detail |
---|
public SubmitOptions()
public SubmitOptions(String... options)
WARNING: you should not pass more than one option or argument in each string parameter. Each option or argument should be passed-in as its own separate string parameter, without any spaces between the option and the option value (if any).
NOTE: setting options this way always bypasses the internal options values, and getter methods against the individual values corresponding to the strings passed in to this constructor will not normally reflect the string's setting. Do not use this constructor unless you know what you're doing and / or you do not also use the field getters and setters.
Options.Options(java.lang.String...)
public SubmitOptions(boolean reOpen, List<String> jobIds, String jobStatus)
Method Detail |
---|
public List<String> processOptions(IServer server) throws OptionsException
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
- if an error occurs in options processing that is
not some species of ConnectionException, RequestException,
AccessException, etc.Options.processOptions(com.perforce.p4java.server.IServer)
public boolean isReOpen()
public SubmitOptions setReOpen(boolean reOpen)
public List<String> getJobIds()
public SubmitOptions setJobIds(List<String> jobIds)
public String getJobStatus()
public SubmitOptions setJobStatus(String jobStatus)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |