Class TriggerDefinitionExportHelper
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.TriggerDefinitionExportHelper
-
public class TriggerDefinitionExportHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description TriggerDefinitionExportHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateIfEnabled(@NotNull Triggerable environment, @NotNull TriggerDefinition triggerDefinition)voiddeactivate(@NotNull Triggerable environment, @NotNull TriggerDefinition triggerDefinition)TriggerDefinitionExportergetExporter(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties properties)@NotNull TriggerDefinitionimportTriggerDefinition(long id, @NotNull Triggerable triggerable, @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)@NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger<?,?>toSpecsEntity(@Nullable Set<Long> availableRepositories, @NotNull TriggerDefinition triggerDefinition, @NotNull Triggerable triggerable)voidvalidateTriggerProperties(@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @NotNull RssPermissions rssPermissions)voidvalidateTriggerProperties(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, @NotNull RssPermissions rssPermissions)
-
-
-
Method Detail
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger<?,?> toSpecsEntity(@Nullable @Nullable Set<Long> availableRepositories, @NotNull @NotNull TriggerDefinition triggerDefinition, @NotNull @NotNull Triggerable triggerable)
-
importTriggerDefinition
@NotNull public @NotNull TriggerDefinition importTriggerDefinition(long id, @NotNull @NotNull Triggerable triggerable, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
validateTriggerProperties
public void validateTriggerProperties(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, @NotNull @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
validateTriggerProperties
public void validateTriggerProperties(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @NotNull @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationExceptionYamlValidationException
-
deactivate
public void deactivate(@NotNull @NotNull Triggerable environment, @NotNull @NotNull TriggerDefinition triggerDefinition)
-
activateIfEnabled
public void activateIfEnabled(@NotNull @NotNull Triggerable environment, @NotNull @NotNull TriggerDefinition triggerDefinition)
-
getExporter
public TriggerDefinitionExporter getExporter(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties properties)
-
-