public class TriggerEntry extends MapEntry implements ITriggerEntry
Note that the order of this trigger entry in the triggers table is part of the trigger entry key when pass to the server for updating the triggers table.
Triggers0 example1 change-submit //depot/... "echo %changelist%" Triggers1 example1 change-submit //depot/abc/... "echo %changelist%" Triggers2 example2 form-save client "echo %client%" Triggers3 example3 change-submit //depot/... "echo %changelist%" Triggers4 example4 change-submit //depot/... "echo %changelist%"
ITriggerEntry.TriggerTypeIMapEntry.EntryTypeelementPattern, elementPatternStr, left, order, right, typeEXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX| Constructor and Description |
|---|
TriggerEntry()
Default constructor.
|
TriggerEntry(int order,
String name,
ITriggerEntry.TriggerType triggerType,
String path,
String command)
Explicit-value constructor.
|
TriggerEntry(String triggerEntry,
int order)
Constructs a TriggerEntry from the passed-in trigger as a string and its
order.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand()
Gets the trigger command.
|
String |
getName()
Gets the trigger name.
|
String |
getPath()
For change and submit triggers, a file pattern to match files in the
changelist.
|
ITriggerEntry.TriggerType |
getTriggerType()
Gets the trigger type.
|
void |
setCommand(String command)
Sets the trigger command.
|
void |
setName(String name)
Sets the trigger name.
|
void |
setPath(String path)
For change and submit triggers, a file pattern to match files in the
changelist.
|
void |
setTriggerType(ITriggerEntry.TriggerType triggerType)
Sets the trigger type.
|
String |
toString()
An alias for this.toString(" ", true).
|
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toStringpublic TriggerEntry()
public TriggerEntry(int order,
String name,
ITriggerEntry.TriggerType triggerType,
String path,
String command)
public TriggerEntry(String triggerEntry, int order)
public String getName()
ITriggerEntrygetName in interface ITriggerEntryITriggerEntry.getName()public void setName(String name)
ITriggerEntrysetName in interface ITriggerEntryname - the trigger nameITriggerEntry.setName(java.lang.String)public ITriggerEntry.TriggerType getTriggerType()
ITriggerEntrygetTriggerType in interface ITriggerEntryITriggerEntry.getTriggerType()public void setTriggerType(ITriggerEntry.TriggerType triggerType)
ITriggerEntrysetTriggerType in interface ITriggerEntrytriggerType - the trigger typeITriggerEntry.setTriggerType(com.perforce.p4java.admin.ITriggerEntry.TriggerType)public String getPath()
ITriggerEntrygetPath in interface ITriggerEntryITriggerEntry.getPath()public void setPath(String path)
ITriggerEntrysetPath in interface ITriggerEntrypath - the depot file path pattern or form typeITriggerEntry.setPath(java.lang.String)public String getCommand()
ITriggerEntrygetCommand in interface ITriggerEntryITriggerEntry.getCommand()public void setCommand(String command)
ITriggerEntrysetCommand in interface ITriggerEntryITriggerEntry.setCommand(java.lang.String)Copyright © 2017 Perforce Software. All Rights Reserved.