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 classTriggerDefinitionImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Map<String,String>getConfiguration()longgetId()@NotNull StringgetName()@NotNull StringgetPluginKey()@NotNull Map<String,String>getTriggerConditionsConfiguration()Configuration ofBuildTriggerConditionplugins 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 StringgetUserDescription()booleanisEnabled()
-
-
-
Method Detail
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
getConfiguration
@NotNull public @NotNull Map<String,String> getConfiguration()
- Specified by:
getConfigurationin interfaceTriggerDefinition
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider
-
getUserDescription
@Nullable public @Nullable String getUserDescription()
- Specified by:
getUserDescriptionin interfaceTriggerDefinition
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfaceNameProvider
-
getTriggeringRepositories
@NotNull public @NotNull Set<Long> getTriggeringRepositories()
Description copied from interface:TriggerDefinitionIf 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:
getTriggeringRepositoriesin interfaceTriggerDefinition
-
getTriggerConditionsConfiguration
@NotNull public @NotNull Map<String,String> getTriggerConditionsConfiguration()
Description copied from interface:TriggerDefinitionConfiguration ofBuildTriggerConditionplugins related with this trigger. Applies to plans only.- Specified by:
getTriggerConditionsConfigurationin interfaceTriggerDefinition- Returns:
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceTriggerDefinition- Returns:
- true iff this trigger is active
-
-