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() |
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
protected com.atlassian.sal.api.message.I18nResolver i18nResolver
protected CachedPlanManager cachedPlanManager
public AbstractEnvironmentTriggerConfigurator()
public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
public void setUiConfigSupport(UIConfigSupport uiConfigSupport)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
protected boolean hasTheSameMasterPlanAsDeploymentProject(@NotNull DeploymentProject deploymentProject, DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String planKeyString)
protected boolean hasDeploymentProjectPlanMultipleBranches(@NotNull DeploymentProject deploymentProject)
protected String getBranchName(@Nullable String planKeyString)
planKeyString
- identifies planprotected void populateContextWithBranchControlVariablesForDeployments(@NotNull DeploymentProject deploymentProject, @NotNull DeploymentTriggerBranchSelectionMode branchSelectionMode, @NotNull String triggeringBranchKey, @NotNull Map<String,Object> context)
@NotNull public 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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.