Class AnyTrigger
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.trigger.Trigger<T,P>
-
- com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger<AnyTrigger,AnyTriggerProperties>
-
- com.atlassian.bamboo.specs.api.builders.trigger.AnyTrigger
-
public class AnyTrigger extends RepositoryBasedTrigger<AnyTrigger,AnyTriggerProperties>
Represents a trigger of any type.Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation of a given trigger is not available.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
RepositoryBasedTrigger.TriggeringRepositoriesType
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
selectedTriggeringRepositories, triggeringRepositoriesType
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, name, triggerEnabled
-
-
Constructor Summary
Constructors Constructor Description AnyTrigger(@NotNull AtlassianModule atlassianModule)Specifies a trigger of given type.AnyTrigger(@NotNull AnyTrigger other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnyTriggerPropertiesbuild()AnyTriggerconfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)Appends the generic configuration to the trigger.-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
allAvailableTriggeringRepositories, selectedTriggeringRepositories, triggeringRepositoriesType
-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, enabled, name
-
-
-
-
Constructor Detail
-
AnyTrigger
public AnyTrigger(@NotNull @NotNull AtlassianModule atlassianModule) throws PropertiesValidationExceptionSpecifies a trigger of given type.- Parameters:
atlassianModule- type of the trigger identified by its plugin module key- Throws:
PropertiesValidationException- See Also:
AtlassianModule
-
AnyTrigger
public AnyTrigger(@NotNull @NotNull AnyTrigger other) throws PropertiesValidationException- Throws:
PropertiesValidationException
-
-
Method Detail
-
configuration
public AnyTrigger configuration(java.util.Map<java.lang.String,java.lang.String> configuration)
Appends the generic configuration to the trigger.Trigger configuration typically contains data like: polling period, cron expression etc.
The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
-
build
protected AnyTriggerProperties build() throws PropertiesValidationException
- Specified by:
buildin classTrigger<AnyTrigger,AnyTriggerProperties>- Throws:
PropertiesValidationException
-
-