Package com.atlassian.bamboo.trigger
Class TriggerDefinitionImpl
- java.lang.Object
-
- com.atlassian.bamboo.trigger.TriggerDefinitionImpl
-
- All Implemented Interfaces:
BambooIdProvider
,PluginKeyProvider
,TriggerDefinition
,NameProvider
,Serializable
public class TriggerDefinitionImpl extends Object implements TriggerDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TriggerDefinitionImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Map<String,String>
getConfiguration()
long
getId()
@NotNull String
getName()
@NotNull String
getPluginKey()
@NotNull Map<String,String>
getTriggerConditionsConfiguration()
Configuration ofBuildTriggerCondition
plugins related with this trigger.@NotNull Set<Long>
getTriggeringRepositories()
If trigger checks if repositories changed in order to decide weather build should be run, this method returns ids of the repositories that are checked.@Nullable String
getUserDescription()
boolean
isEnabled()
-
-
-
Method Detail
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getConfiguration
@NotNull public @NotNull Map<String,String> getConfiguration()
- Specified by:
getConfiguration
in interfaceTriggerDefinition
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
getUserDescription
@Nullable public @Nullable String getUserDescription()
- Specified by:
getUserDescription
in interfaceTriggerDefinition
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceNameProvider
-
getTriggeringRepositories
@NotNull public @NotNull Set<Long> getTriggeringRepositories()
Description copied from interface:TriggerDefinition
If trigger checks if repositories changed in order to decide weather build should be run, this method returns ids of the repositories that are checked. Otherwise it should return empty set. Applies to plans only.- Specified by:
getTriggeringRepositories
in interfaceTriggerDefinition
-
getTriggerConditionsConfiguration
@NotNull public @NotNull Map<String,String> getTriggerConditionsConfiguration()
Description copied from interface:TriggerDefinition
Configuration ofBuildTriggerCondition
plugins related with this trigger. Applies to plans only.- Specified by:
getTriggerConditionsConfiguration
in interfaceTriggerDefinition
- Returns:
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceTriggerDefinition
- Returns:
- true iff this trigger is active
-
-