com.atlassian.bamboo.deployments.environments.persistence
Class MutableEnvironmentImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.deployments.environments.persistence.MutableEnvironmentImpl
- All Implemented Interfaces:
- BambooIdProvider, BambooObject, InternalEnvironment, MutableEnvironment, Triggerable, DescriptionProvider, NameProvider, Cloneable
public class MutableEnvironmentImpl
- extends BambooEntityObject
- implements MutableEnvironment
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
MutableEnvironmentImpl
public MutableEnvironmentImpl()
getKey
@NotNull
public DeploymentKey getKey()
- Description copied from interface:
InternalEnvironment
- Key representing this environment. Keys have much less significance in deployments than in plans. Please consider
using
InternalEnvironment.getId()
instead.
- Specified by:
getKey
in interface InternalEnvironment
- Returns:
- key of this environment.
getName
@NotNull
public String getName()
- Specified by:
getName
in interface InternalEnvironment
- Specified by:
getName
in interface DescriptionProvider
- Specified by:
getName
in interface NameProvider
- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
setName
public void setName(String name)
- Specified by:
setName
in interface MutableEnvironment
getDescription
public String getDescription()
- Specified by:
getDescription
in interface InternalEnvironment
- Specified by:
getDescription
in interface DescriptionProvider
- Returns:
- Optional, longer description of the environment
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interface MutableEnvironment
getDeploymentProjectId
public long getDeploymentProjectId()
- Specified by:
getDeploymentProjectId
in interface InternalEnvironment
- Returns:
- id of the
DeploymentProject
which is owner of this environment
getTasksXmlData
public String getTasksXmlData()
- Specified by:
getTasksXmlData
in interface MutableEnvironment
setTasksXmlData
public void setTasksXmlData(String tasksXmlData)
- Specified by:
setTasksXmlData
in interface MutableEnvironment
getTriggersXmlData
public String getTriggersXmlData()
- Specified by:
getTriggersXmlData
in interface MutableEnvironment
setTriggersXmlData
public void setTriggersXmlData(String triggersXmlData)
- Specified by:
setTriggersXmlData
in interface MutableEnvironment
getRequirementSet
@NotNull
public RequirementSet getRequirementSet()
- Specified by:
getRequirementSet
in interface MutableEnvironment
setRequirementSet
public void setRequirementSet(RequirementSet requirementSet)
- Specified by:
setRequirementSet
in interface MutableEnvironment
getNotificationSet
@NotNull
public NotificationSet getNotificationSet()
- Specified by:
getNotificationSet
in interface MutableEnvironment
setNotificationSet
public void setNotificationSet(NotificationSet notificationSet)
- Specified by:
setNotificationSet
in interface MutableEnvironment
getImmutableEnvironment
@NotNull
public Environment getImmutableEnvironment()
- Description copied from interface:
MutableEnvironment
- Generate an immutable version based on this mutable version.
- Specified by:
getImmutableEnvironment
in interface MutableEnvironment
- Returns:
- immutable version of this environment.
getConfigurationState
public ConfigurationState getConfigurationState()
- Specified by:
getConfigurationState
in interface InternalEnvironment
- Returns:
- Enum representing how completed the configuration of this environments is.
setConfigurationState
public void setConfigurationState(ConfigurationState configurationState)
- Specified by:
setConfigurationState
in interface MutableEnvironment
getDeploymentProject
@NotNull
public MutableDeploymentProject getDeploymentProject()
- Specified by:
getDeploymentProject
in interface MutableEnvironment
setDeploymentProject
public void setDeploymentProject(MutableDeploymentProject deploymentProject)
- Specified by:
setDeploymentProject
in interface MutableEnvironment
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface Triggerable
- Returns:
- true iff automatic triggering is switched off for this object
getTriggerDefinitions
@NotNull
public com.google.common.collect.ImmutableList<TriggerDefinition> getTriggerDefinitions()
- Specified by:
getTriggerDefinitions
in interface Triggerable
- Returns:
- immutable list of all triggers defined for this object
getTriggers
@NotNull
public List<BuildStrategy> getTriggers()
- Description copied from interface:
Triggerable
- Returns triggers defined for this object as BuildStrategies. The result of this function is produced
by calling
Triggerable.getTriggerDefinitions()
and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.
- Specified by:
getTriggers
in interface Triggerable
- Returns:
- triggers defined for this object.
setPosition
public void setPosition(int position)
- Specified by:
setPosition
in interface MutableEnvironment
getPosition
public int getPosition()
- Specified by:
getPosition
in interface InternalEnvironment
- Returns:
- position of this environment in deployment project's environment list.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.