Package com.perforce.p4java.core
Interface IJobSpec
- All Superinterfaces:
IServerResource
- All Known Implementing Classes:
JobSpec
Metadata definitions for jobs associated with a specific server. See the main
Perforce documentation for the (voluminous) commentary on the various semantics
and usage models for this information. In summary, every job is associated
with a server-wide jobspec which details the various fields, values, etc.
associated with the job; this information can be used to dynamically produce
forms, display widgets, etc.
Job specs are complete and not refreshable, updateable, or completable. Setter methods below have only local effect.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface onto the main jobspec field specifier. -
Method Summary
Modifier and TypeMethodDescriptionGet the comments associated with this jobspec.getFieldPreset(String fieldName) Get the preset for a given field.Return a list of all known Perforce job fields on this jobspec.getFieldValues(String fieldName) Get a list of field values for a given field.Return a map of the possible presets for each known jobspec field.Return a map of the values 'select' fields can have for each relevant jobspec field.voidsetComments(String comments) Set the comments associated with this jobspec.voidsetFields(List<IJobSpec.IJobSpecField> fields) Set the list of all known Perforce job fields on this jobspec.voidsetPresets(Map<String, String> presets) Set the map of the possible presets for each known jobspec field.voidSet the map of the values 'select' fields can have for each relevant jobspec field.Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Method Details
-
getFields
List<IJobSpec.IJobSpecField> getFields()Return a list of all known Perforce job fields on this jobspec.- Returns:
- non-null but possibly-empty list of IJobSpecField objects for all known job fields in this jobspec.
-
setFields
Set the list of all known Perforce job fields on this jobspec.- Parameters:
fields- list of job fields
-
getValues
Return a map of the values 'select' fields can have for each relevant jobspec field.- Returns:
- non-null but possibly-empty map of select field value lists.
-
setValues
Set the map of the values 'select' fields can have for each relevant jobspec field.- Parameters:
values- value map
-
getPresets
Return a map of the possible presets for each known jobspec field.- Returns:
- non-null but possibly-empty map of presets
-
setPresets
Set the map of the possible presets for each known jobspec field.- Parameters:
presets- map of presets
-
getComments
String getComments()Get the comments associated with this jobspec.- Returns:
- possibly-null comments string. This may be rather large...
-
setComments
Set the comments associated with this jobspec.- Parameters:
comments- jobspec comment string
-
getFieldValues
Get a list of field values for a given field.- Parameters:
fieldName- non-null field name- Returns:
- possibly-null list of field values for the field.
-
getFieldPreset
Get the preset for a given field.- Parameters:
fieldName- non-null field name- Returns:
- possibly-null preset for the named field.
-