|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IJobSpec
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 | |
|---|---|
static interface |
IJobSpec.IJobSpecField
Interface onto the main jobspec field specifier. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.perforce.p4java.core.IServerResource |
|---|
canRefresh, canUpdate, refresh, setServer, update, update, update |
| Method Detail |
|---|
List<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 name
String getFieldPreset(String fieldName)
fieldName - non-null field name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||