Class Trigger<T extends Trigger<T,P>,P extends TriggerProperties>
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.trigger.Trigger<T,P>
-
- Direct Known Subclasses:
AfterSuccessfulBuildPlanTrigger,AfterSuccessfulDeploymentTrigger,AfterSuccessfulStageTrigger,RepositoryBasedTrigger,ScheduledDeploymentTrigger,ScheduledTrigger,TagTrigger
public abstract class Trigger<T extends Trigger<T,P>,P extends TriggerProperties> extends EntityPropertiesBuilder<P>
Represents a definition of trigger.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,
AnyTriggerclass.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<TriggerConditionProperties>conditionsprotected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected booleantriggerEnabled
-
Constructor Summary
Constructors Modifier Constructor Description protectedTrigger()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Pbuild()Tconditions(TriggerCondition<? extends TriggerCondition<?,?>,? extends TriggerConditionProperties>... conditions)Tdescription(java.lang.String description)Sets the trigger description.Tenabled(boolean taskEnabled)Enables/disables the trigger.Tname(java.lang.String name)Sets the name of this trigger.
-
-
-
Field Detail
-
triggerEnabled
protected boolean triggerEnabled
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
conditions
protected java.util.Set<TriggerConditionProperties> conditions
-
-
Method Detail
-
name
public T name(java.lang.String name)
Sets the name of this trigger. Used as an visual identifier in Bamboo UI.The name property must be specified by user
-
description
public T description(java.lang.String description)
Sets the trigger description. Defaults to empty value.
-
enabled
public T enabled(boolean taskEnabled)
Enables/disables the trigger. Defaults to enabled state.
-
conditions
public T conditions(TriggerCondition<? extends TriggerCondition<?,?>,? extends TriggerConditionProperties>... conditions)
-
build
protected abstract P build()
- Specified by:
buildin classEntityPropertiesBuilder<P extends TriggerProperties>
-
-