public abstract class AbstractEnvironmentTriggerConfigurator extends Object implements TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
Modifier and Type | Field and Description |
---|---|
protected CachedPlanManager |
cachedPlanManager |
protected static String |
CFG_BRANCH_NAME |
protected static String |
CFG_BRANCH_SELECTION_OPTIONS |
protected static String |
CFG_PLAN_HAS_MULTIPLE_BRANCHES |
protected static String |
CFG_TRIGGERING_PLAN |
protected static String |
CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT |
protected static String |
DEPLOYMENT_PROJECT |
protected static String |
ENVIRONMENT |
protected static String |
ENVIRONMENT_ID |
protected com.atlassian.sal.api.message.I18nResolver |
i18nResolver |
Constructor and Description |
---|
AbstractEnvironmentTriggerConfigurator() |
Modifier and Type | Method and Description |
---|---|
protected String |
getBranchName(@Nullable String planKeyString)
This method provides initial data for branch picker control
|
@NotNull TriggerConfigurator.RepositorySelectionMode |
getRepositorySelectionMode()
Return
TriggerConfigurator.RepositorySelectionMode that is correct for the trigger. |
protected boolean |
hasDeploymentProjectPlanMultipleBranches(@NotNull DeploymentProject deploymentProject) |
protected boolean |
hasTheSameMasterPlanAsDeploymentProject(@NotNull DeploymentProject deploymentProject,
DeploymentTriggerBranchSelectionMode branchSelectionMode,
@NotNull String planKeyString) |
protected void |
populateContextWithBranchControlVariablesForDeployments(@NotNull DeploymentProject deploymentProject,
@NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode,
@NotNull String triggeringBranchKey,
@NotNull Map<String,Object> context) |
void |
setCachedPlanManager(CachedPlanManager cachedPlanManager)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setUiConfigSupport(UIConfigSupport uiConfigSupport)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateTriggerConfigMap, isRepositorySelectable, populateContextForCreate, populateContextForEdit, populateContextForView, validate
protected static final String DEPLOYMENT_PROJECT
protected static final String ENVIRONMENT
protected static final String ENVIRONMENT_ID
protected static final String CFG_PLAN_HAS_MULTIPLE_BRANCHES
protected static final String CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT
protected static final String CFG_BRANCH_SELECTION_OPTIONS
protected static final String CFG_BRANCH_NAME
protected static final String CFG_TRIGGERING_PLAN
@Inject protected com.atlassian.sal.api.message.I18nResolver i18nResolver
@Inject protected CachedPlanManager cachedPlanManager
public AbstractEnvironmentTriggerConfigurator()
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
@Deprecated public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
@Deprecated public void setUiConfigSupport(UIConfigSupport uiConfigSupport)
@Deprecated public void setCustomVariableContext(CustomVariableContext customVariableContext)
protected boolean hasTheSameMasterPlanAsDeploymentProject(@NotNull @NotNull DeploymentProject deploymentProject, DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull @NotNull String planKeyString)
protected boolean hasDeploymentProjectPlanMultipleBranches(@NotNull @NotNull DeploymentProject deploymentProject)
protected String getBranchName(@Nullable @Nullable String planKeyString)
planKeyString
- identifies planprotected void populateContextWithBranchControlVariablesForDeployments(@NotNull @NotNull DeploymentProject deploymentProject, @NotNull @NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull @NotNull String triggeringBranchKey, @NotNull @NotNull Map<String,Object> context)
@NotNull public @NotNull TriggerConfigurator.RepositorySelectionMode getRepositorySelectionMode()
TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
that is correct for the trigger. Depending on result, proper UI will be rendered and
appropriate data will be available when calling to TriggerDefinition.getTriggeringRepositories()
getRepositorySelectionMode
in interface TriggerConfigurator
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.