|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.strategy.BuildStrategyConfigurationServiceImpl
public class BuildStrategyConfigurationServiceImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategyConfigurationService |
---|
NEW_REPOSITORY_INDICATOR |
Constructor Summary | |
---|---|
BuildStrategyConfigurationServiceImpl(BuildDefinitionManager buildDefinitionManager,
BuildStrategyManager buildStrategyManager,
com.opensymphony.xwork.TextProvider textProvider,
PlanManager planManager,
AuditLogService auditLogService,
ScopedExclusionService scopedExclusionService)
|
Method Summary | |
---|---|
void |
addTriggeringRepository(Chain chain,
long repositoryId)
Updates all repository aware triggers of Chain by adding a new repository. |
BuildStrategy |
createBuildStrategy(PlanKey planKey,
java.lang.String userDescription,
java.util.Set<java.lang.Long> triggeringRepositories,
org.apache.commons.configuration.HierarchicalConfiguration configuration)
Creates a BuildStrategy and saves it in Chain configuration. |
void |
deleteBuildStrategy(PlanKey planKey,
long buildStrategyId)
Delete a given BuildStrategy from Chain configuration. |
BuildStrategy |
editBuildStrategy(PlanKey planKey,
long buildStrategyId,
java.lang.String userDescription,
java.util.Set<java.lang.Long> triggeringRepositories,
org.apache.commons.configuration.HierarchicalConfiguration configuration)
Update the details of specific build strategy |
protected BuildStrategy |
getBuildStrategyById(java.util.List<BuildStrategy> tasks,
long id)
|
void |
updateRepositoryIdsInTriggers(Chain chain,
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
Updates Chain configurations affected by repository edition. |
void |
updateRepositoryIdsInTriggers(Chain chain,
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges,
boolean withQuartzJobRestart)
Updates Chain configurations affected by repository edition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildStrategyConfigurationServiceImpl(@NotNull BuildDefinitionManager buildDefinitionManager, @NotNull BuildStrategyManager buildStrategyManager, @NotNull com.opensymphony.xwork.TextProvider textProvider, @NotNull PlanManager planManager, @NotNull AuditLogService auditLogService, @NotNull ScopedExclusionService scopedExclusionService)
Method Detail |
---|
@Nullable protected BuildStrategy getBuildStrategyById(@NotNull java.util.List<BuildStrategy> tasks, long id)
public BuildStrategy createBuildStrategy(@NotNull PlanKey planKey, @NotNull java.lang.String userDescription, @NotNull java.util.Set<java.lang.Long> triggeringRepositories, @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration) throws java.lang.IllegalArgumentException
BuildStrategyConfigurationService
BuildStrategy
and saves it in Chain configuration.
createBuildStrategy
in interface BuildStrategyConfigurationService
planKey
- of the plan to add the build strategy to, plan should be Chain
java.lang.IllegalArgumentException
- if planKey is invalid (e.g. doesn't exist or is not a Chain)public void deleteBuildStrategy(@NotNull PlanKey planKey, long buildStrategyId) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
BuildStrategyConfigurationService
BuildStrategy
from Chain
configuration.
deleteBuildStrategy
in interface BuildStrategyConfigurationService
planKey
- for the plan to delete the Build Strategy from.buildStrategyId
- of the Build Strategy to delete.
java.lang.IllegalArgumentException
- if planKey is invalid (e.g. doesn't exist or is not a Chain),
java.lang.IllegalStateException
- if the build strategy list has changed since submitting request, i.e the build strategy isn't there to delete anymore.public BuildStrategy editBuildStrategy(@NotNull PlanKey planKey, long buildStrategyId, @NotNull java.lang.String userDescription, @NotNull java.util.Set<java.lang.Long> triggeringRepositories, @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
BuildStrategyConfigurationService
editBuildStrategy
in interface BuildStrategyConfigurationService
planKey
- - the plan the build strategy belongs to, must be a chainbuildStrategyId
- - the taskDefinition to edit
BuildStrategy
with updates.
java.lang.IllegalArgumentException
- if planKey or taskId is invalid.
java.lang.IllegalStateException
- if if the build strategy list has changed since submitting request, i.e the build strategy isn't there to edit anymore.public void updateRepositoryIdsInTriggers(@NotNull Chain chain, java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges, boolean withQuartzJobRestart)
BuildStrategyConfigurationService
updateRepositoryIdsInTriggers
in interface BuildStrategyConfigurationService
repositoryIdsChanges
- mapping between old and new repositories idswithQuartzJobRestart
- indicates if respective polling jobs should be (re)startedpublic void updateRepositoryIdsInTriggers(@NotNull Chain chain, java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
BuildStrategyConfigurationService
updateRepositoryIdsInTriggers
in interface BuildStrategyConfigurationService
repositoryIdsChanges
- mapping between old and new repositories idspublic void addTriggeringRepository(@NotNull Chain chain, long repositoryId)
BuildStrategyConfigurationService
addTriggeringRepository
in interface BuildStrategyConfigurationService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |