public interface IJobSpec extends IServerResource
Job specs are complete and not refreshable, updateable, or completable. Setter methods below have only local effect.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IJobSpec.IJobSpecField
Interface onto the main jobspec field specifier.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComments()
Get the comments associated with this jobspec.
|
String |
getFieldPreset(String fieldName)
Get the preset for a given field.
|
List<IJobSpec.IJobSpecField> |
getFields()
Return a list of all known Perforce job fields on this jobspec.
|
List<String> |
getFieldValues(String fieldName)
Get a list of field values for a given field.
|
Map<String,String> |
getPresets()
Return a map of the possible presets for each known jobspec field.
|
Map<String,List<String>> |
getValues()
Return a map of the values 'select' fields can have for each relevant jobspec
field.
|
void |
setComments(String comments)
Set the comments associated with this jobspec.
|
void |
setFields(List<IJobSpec.IJobSpecField> fields)
Set the list of all known Perforce job fields on this jobspec.
|
void |
setPresets(Map<String,String> presets)
Set the map of the possible presets for each known jobspec field.
|
void |
setValues(Map<String,List<String>> values)
Set the map of the values 'select' fields can have for each relevant jobspec
field.
|
canRefresh, canUpdate, refresh, setServer, update, update, updateList<IJobSpec.IJobSpecField> getFields()
void setFields(List<IJobSpec.IJobSpecField> fields)
fields - list of job fieldsMap<String,List<String>> getValues()
void setValues(Map<String,List<String>> values)
values - value mapMap<String,String> getPresets()
void setPresets(Map<String,String> presets)
presets - map of presetsString getComments()
void setComments(String comments)
comments - jobspec comment stringList<String> getFieldValues(String fieldName)
fieldName - non-null field nameCopyright © 2017 Perforce Software. All Rights Reserved.