com.atlassian.bamboo.deployments.environments.service
Class EnvironmentTriggerServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.service.EnvironmentTriggerServiceImpl
- All Implemented Interfaces:
- EnvironmentTriggerService
public class EnvironmentTriggerServiceImpl
- extends java.lang.Object
- implements EnvironmentTriggerService
Method Summary |
BuildStrategy |
createEnvironmentTrigger(long environmentId,
java.lang.String userDescription,
java.util.Set<java.lang.Long> triggeringRepositories,
org.apache.commons.configuration.HierarchicalConfiguration configuration)
Creates a BuildStrategy and saves it in Environment configuration. |
void |
deleteEnvironmentTrigger(java.lang.Long environmentId,
long buildStrategyId)
|
BuildStrategy |
editEnvironmentTrigger(long environmentId,
long triggerId,
java.lang.String triggerDescription,
java.util.Set<java.lang.Long> triggeringRepositories,
BuildConfiguration buildConfiguration)
|
PlanKey |
getCalculatedTriggeringPlanKey(InternalEnvironment environment,
DeploymentTriggerBranchSelectionMode branchSelectionMode,
PlanKey customBranchKey)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentTriggerServiceImpl
public EnvironmentTriggerServiceImpl(BuildStrategyManager buildStrategyManager,
DeploymentProjectService deploymentProjectService,
EnvironmentDao environmentDao,
PlanScheduler planScheduler,
ScopedExclusionService scopedExclusionService,
com.opensymphony.xwork2.TextProvider textProvider)
createEnvironmentTrigger
public BuildStrategy createEnvironmentTrigger(long environmentId,
@NotNull
java.lang.String userDescription,
@NotNull
java.util.Set<java.lang.Long> triggeringRepositories,
@NotNull
org.apache.commons.configuration.HierarchicalConfiguration configuration)
throws java.lang.IllegalArgumentException
- Description copied from interface:
EnvironmentTriggerService
- Creates a
BuildStrategy
and saves it in Environment configuration.
- Specified by:
createEnvironmentTrigger
in interface EnvironmentTriggerService
- Throws:
java.lang.IllegalArgumentException
- if environmentId is invalid
editEnvironmentTrigger
public BuildStrategy editEnvironmentTrigger(long environmentId,
long triggerId,
java.lang.String triggerDescription,
java.util.Set<java.lang.Long> triggeringRepositories,
BuildConfiguration buildConfiguration)
- Specified by:
editEnvironmentTrigger
in interface EnvironmentTriggerService
deleteEnvironmentTrigger
public void deleteEnvironmentTrigger(@NotNull
java.lang.Long environmentId,
long buildStrategyId)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
- Specified by:
deleteEnvironmentTrigger
in interface EnvironmentTriggerService
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
getCalculatedTriggeringPlanKey
@NotNull
public PlanKey getCalculatedTriggeringPlanKey(@NotNull
InternalEnvironment environment,
@NotNull
DeploymentTriggerBranchSelectionMode branchSelectionMode,
@Nullable
PlanKey customBranchKey)
throws DeploymentException
- Specified by:
getCalculatedTriggeringPlanKey
in interface EnvironmentTriggerService
- Throws:
DeploymentException
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.