public abstract class Trigger<T extends Trigger<T,P>,P extends TriggerProperties> extends EntityPropertiesBuilder<P>
This class contains common data only. In order to define a specific type of trigger one should use the specialised
implementation or, if such is not available, AnyTrigger
class.
Modifier and Type | Field and Description |
---|---|
protected Set<TriggerConditionProperties> |
conditions |
protected String |
description |
protected String |
name |
protected boolean |
triggerEnabled |
Modifier | Constructor and Description |
---|---|
protected |
Trigger() |
Modifier and Type | Method and Description |
---|---|
protected abstract P |
build() |
T |
conditions(TriggerCondition... conditions) |
T |
description(String description)
Sets the trigger description.
|
T |
enabled(boolean taskEnabled)
Enables/disables the trigger.
|
T |
name(String name)
Sets the name of this trigger.
|
protected boolean triggerEnabled
protected String name
protected String description
protected Set<TriggerConditionProperties> conditions
public T name(String name)
The name property must be specified by user
public T description(String description)
public T enabled(boolean taskEnabled)
public T conditions(TriggerCondition... conditions)
protected abstract P build()
build
in class EntityPropertiesBuilder<P extends TriggerProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.