|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.deployments.environments.service.EnvironmentServiceImpl
public class EnvironmentServiceImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.deployments.environments.service.EnvironmentService |
---|
DEFAULT_ARTIFACT_TASK_NAME |
Constructor Summary | |
---|---|
EnvironmentServiceImpl(DeploymentProjectDao deploymentProjectDao,
EnvironmentDao environmentDao,
AuditLogService auditLogService,
com.opensymphony.xwork.TextProvider textProvider,
ValidationService validationService,
PlanScheduler planScheduler,
BambooAclUpdateHelper aclUpdateHelper,
BambooAuthenticationContext authenticationContext,
HibernateMutableAclService aclService,
BambooPermissionManager bambooPermissionManager,
RepositoryDefinitionDao repositoryDefinitionDao,
EnvironmentRepositoryLinkDao environmentRepositoryLinkDao,
DeploymentResultDeletionService deploymentResultDeletionService,
BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
VariableDefinitionDao variableDefinitionDao,
ScopedExclusionService scopedExclusionService)
|
Method Summary | |
---|---|
Environment |
addEnvironment(long deploymentProjectId,
java.lang.String name,
java.lang.String description)
Creates a new environment in the specified deployment project. |
void |
addNotification(long environmentId,
NotificationRule newRule)
Adds a new notification to the environment notifications |
void |
deleteNotification(long environmentId,
long notificationId)
Removes notification from the environment's notification set. |
Environment |
editEnvironment(long environmentId,
java.lang.String name,
java.lang.String description)
Edit the details of an existing environment |
java.lang.Iterable<Environment> |
getAllEnvironments()
Retrieve all Environment defined in the system. |
Environment |
getEnvironment(long environmentId)
Get specific environment by ID. |
RequirementSet |
getEnvironmentRequirementSet(long environmentId)
Retrieve Agent Requirement set for environment, if environment with id exists. |
java.util.List<Environment> |
getEnvironmentsForDeploymentProject(long deploymentProjectId)
Get all environments for a particular deployment project. |
java.util.List<EnvironmentRepositoryLink> |
getEnvironmentsUsingRepository(long repositoryId)
Retrieves |
NotificationSet |
getNotificationSet(long environmentId)
Retrieve notification set for environment, if environment with id exists. |
java.util.List<RepositoryDefinition> |
getRepositoryDefinitionsForEnvironment(Environment environment)
Retrieves all repositories used in environment source checkout tasks |
ErrorCollection |
moveEnvironmentDown(long deploymentProjectId,
long environmentId,
int currentPosition)
Moves an environment down the list |
ErrorCollection |
moveEnvironmentUp(long deploymentProjectId,
long environmentId,
int currentPosition)
Moves an environment up the list |
void |
restartAllTriggeringForDeploymentProject(long deploymentProjectId)
Restart all automatic triggering on every Environment related to a DeploymentProject |
void |
startAllTriggers(InternalEnvironment environment)
|
void |
stopAllTriggers(InternalEnvironment environment)
Stop all automatic triggering on InternalEnvironment |
void |
stopAllTriggersForDeploymentProject(long deploymentProjectId)
Stop all automatic triggering on every Environment related to a DeploymentProject |
void |
updateEnvironmentConfigurationState(long environmentId,
ConfigurationState configurationState)
Update the configurationState of this environment |
RepositoryDefinition |
updateRepositoryLinkInEnvironment(EnvironmentRepositoryLink environmentRepositoryLink,
RepositoryDataEntity newRepositoryEntity)
Update EnvironmentRepositoryLink data |
ErrorCollection |
validateAddEnvironment(long deploymentProjectId,
java.lang.String name,
java.lang.String description)
Validates values to be used for creating a new environment. |
ErrorCollection |
validateEditEnvironment(long environmentId,
java.lang.String name,
java.lang.String description)
Validates values to be used when editing existing environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentServiceImpl(DeploymentProjectDao deploymentProjectDao, EnvironmentDao environmentDao, AuditLogService auditLogService, com.opensymphony.xwork.TextProvider textProvider, ValidationService validationService, PlanScheduler planScheduler, BambooAclUpdateHelper aclUpdateHelper, BambooAuthenticationContext authenticationContext, HibernateMutableAclService aclService, BambooPermissionManager bambooPermissionManager, RepositoryDefinitionDao repositoryDefinitionDao, EnvironmentRepositoryLinkDao environmentRepositoryLinkDao, DeploymentResultDeletionService deploymentResultDeletionService, BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, VariableDefinitionDao variableDefinitionDao, ScopedExclusionService scopedExclusionService)
Method Detail |
---|
@NotNull public java.util.List<Environment> getEnvironmentsForDeploymentProject(long deploymentProjectId)
EnvironmentService
getEnvironmentsForDeploymentProject
in interface EnvironmentService
deploymentProjectId
- of the deployment project to get environments for
@Nullable public Environment getEnvironment(long environmentId)
EnvironmentService
getEnvironment
in interface EnvironmentService
environmentId
- ID to search for
@NotNull public java.lang.Iterable<Environment> getAllEnvironments()
EnvironmentService
Environment
defined in the system.
getAllEnvironments
in interface EnvironmentService
@NotNull public ErrorCollection validateAddEnvironment(long deploymentProjectId, @Nullable java.lang.String name, @Nullable java.lang.String description)
EnvironmentService
validateAddEnvironment
in interface EnvironmentService
@NotNull public Environment addEnvironment(long deploymentProjectId, @Nullable java.lang.String name, @Nullable java.lang.String description) throws WebValidationException
EnvironmentService
addEnvironment
in interface EnvironmentService
deploymentProjectId
- to create environment inname
- of the environment.description
- of the environment.
WebValidationException
@NotNull public ErrorCollection validateEditEnvironment(long environmentId, @Nullable java.lang.String name, @Nullable java.lang.String description)
EnvironmentService
validateEditEnvironment
in interface EnvironmentService
environmentId
- environment to editname
- of the environmentdescription
- of the environment
@NotNull public Environment editEnvironment(long environmentId, java.lang.String name, java.lang.String description) throws WebValidationException
EnvironmentService
editEnvironment
in interface EnvironmentService
environmentId
- environment to editname
- of the environmentdescription
- of the environment
WebValidationException
public void updateEnvironmentConfigurationState(long environmentId, @NotNull ConfigurationState configurationState)
EnvironmentService
updateEnvironmentConfigurationState
in interface EnvironmentService
environmentId
- of environment to updateconfigurationState
- new configuration state@Nullable public RequirementSet getEnvironmentRequirementSet(long environmentId)
EnvironmentService
getEnvironmentRequirementSet
in interface EnvironmentService
environmentId
- of environment
@NotNull public java.util.List<RepositoryDefinition> getRepositoryDefinitionsForEnvironment(@NotNull Environment environment)
EnvironmentService
getRepositoryDefinitionsForEnvironment
in interface EnvironmentService
public java.util.List<EnvironmentRepositoryLink> getEnvironmentsUsingRepository(long repositoryId)
EnvironmentService
getEnvironmentsUsingRepository
in interface EnvironmentService
public RepositoryDefinition updateRepositoryLinkInEnvironment(EnvironmentRepositoryLink environmentRepositoryLink, RepositoryDataEntity newRepositoryEntity)
EnvironmentService
EnvironmentRepositoryLink
data
updateRepositoryLinkInEnvironment
in interface EnvironmentService
public void addNotification(long environmentId, @NotNull NotificationRule newRule) throws WebValidationException
EnvironmentService
addNotification
in interface EnvironmentService
WebValidationException
public NotificationSet getNotificationSet(long environmentId)
EnvironmentService
getNotificationSet
in interface EnvironmentService
environmentId
- of environmentpublic void deleteNotification(long environmentId, long notificationId) throws WebValidationException
EnvironmentService
deleteNotification
in interface EnvironmentService
WebValidationException
public void stopAllTriggers(@NotNull InternalEnvironment environment)
EnvironmentService
InternalEnvironment
stopAllTriggers
in interface EnvironmentService
public void startAllTriggers(@NotNull InternalEnvironment environment)
public void stopAllTriggersForDeploymentProject(long deploymentProjectId)
EnvironmentService
Environment
related to a DeploymentProject
stopAllTriggersForDeploymentProject
in interface EnvironmentService
public void restartAllTriggeringForDeploymentProject(long deploymentProjectId)
EnvironmentService
Environment
related to a DeploymentProject
restartAllTriggeringForDeploymentProject
in interface EnvironmentService
public ErrorCollection moveEnvironmentUp(long deploymentProjectId, long environmentId, int currentPosition)
EnvironmentService
moveEnvironmentUp
in interface EnvironmentService
public ErrorCollection moveEnvironmentDown(long deploymentProjectId, long environmentId, int currentPosition)
EnvironmentService
moveEnvironmentDown
in interface EnvironmentService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |