public class JobSpec extends ServerResource implements IJobSpec
| Modifier and Type | Class and Description |
|---|---|
protected class |
JobSpec.JobSpecField |
IJobSpec.IJobSpecFieldrefreshable, server, updateable| Constructor and Description |
|---|
JobSpec() |
JobSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Completing a job spec calls
refresh() |
java.lang.String |
getComments()
Get the comments associated with this jobspec.
|
java.lang.String |
getFieldPreset(java.lang.String fieldName)
Get the preset for a given field.
|
java.util.List<IJobSpec.IJobSpecField> |
getFields()
Return a list of all known Perforce job fields on this jobspec.
|
java.util.List<java.lang.String> |
getFieldValues(java.lang.String fieldName)
Get a list of field values for a given field.
|
java.util.Map<java.lang.String,java.lang.String> |
getPresets()
Return a map of the possible presets for each known jobspec field.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getValues()
Return a map of the values 'select' fields can have for each relevant jobspec
field.
|
void |
refresh()
This method will refresh by getting the complete job spec model.
|
void |
setComments(java.lang.String comments)
Set the comments associated with this jobspec.
|
void |
setFields(java.util.List<IJobSpec.IJobSpecField> fields)
Set the list of all known Perforce job fields on this jobspec.
|
void |
setPresets(java.util.Map<java.lang.String,java.lang.String> presets)
Set the map of the possible presets for each known jobspec field.
|
void |
setValues(java.util.Map<java.lang.String,java.util.List<java.lang.String>> values)
Set the map of the values 'select' fields can have for each relevant jobspec
field.
|
canRefresh, canUpdate, clearRawFields, getRawField, getRawFields, hasRawField, parseDate, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRefresh, canUpdate, clearRawFields, getRawField, getRawFields, hasRawField, setRawField, setRawFields, setServer, update, update, updatepublic JobSpec()
public JobSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
public void complete()
throws ConnectionException,
RequestException,
AccessException
refresh()complete in interface IServerResourcecomplete in class ServerResourceConnectionException - when there is an error talking to the Helix serverRequestException - when there is a problem with the data provided in the requestAccessException - when access to the branch command is not authorisedrefresh(),
ServerResource.complete()public void refresh()
throws ConnectionException,
RequestException,
AccessException
refresh in interface IServerResourcerefresh in class ServerResourceConnectionException - if the Perforce server is unreachable or is not
connected.RequestException - if the Perforce server encounters an error during
its processing of the requestAccessException - if the Perforce server denies access to the callerServerResource.refresh()public java.lang.String getComments()
IJobSpecgetComments in interface IJobSpecIJobSpec.getComments()public java.util.List<IJobSpec.IJobSpecField> getFields()
IJobSpecgetFields in interface IJobSpecIJobSpec.getFields()public java.util.Map<java.lang.String,java.lang.String> getPresets()
IJobSpecgetPresets in interface IJobSpecIJobSpec.getPresets()public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getValues()
IJobSpecgetValues in interface IJobSpecIJobSpec.getValues()public java.util.List<java.lang.String> getFieldValues(java.lang.String fieldName)
IJobSpecgetFieldValues in interface IJobSpecfieldName - non-null field nameIJobSpec.getFieldValues(java.lang.String)public java.lang.String getFieldPreset(java.lang.String fieldName)
IJobSpecgetFieldPreset in interface IJobSpecfieldName - non-null field nameIJobSpec.getFieldPreset(java.lang.String)public void setComments(java.lang.String comments)
IJobSpecsetComments in interface IJobSpeccomments - jobspec comment stringIJobSpec.setComments(java.lang.String)public void setFields(java.util.List<IJobSpec.IJobSpecField> fields)
IJobSpecsetFields in interface IJobSpecfields - list of job fieldsIJobSpec.setFields(java.util.List)public void setPresets(java.util.Map<java.lang.String,java.lang.String> presets)
IJobSpecsetPresets in interface IJobSpecpresets - map of presetsIJobSpec.setPresets(java.util.Map)public void setValues(java.util.Map<java.lang.String,java.util.List<java.lang.String>> values)
IJobSpecsetValues in interface IJobSpecvalues - value mapIJobSpec.setValues(java.util.Map)Copyright © 2021 Perforce Software. All Rights Reserved.