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,TaskContainer,Triggerable,DescriptionProvider,NameProvider,Cloneable
@Entity public class MutableEnvironmentImpl extends BambooEntityObject implements MutableEnvironment
-
-
Constructor Summary
Constructors Constructor Description MutableEnvironmentImpl()
-
Method Summary
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.deployments.environments.InternalEnvironment
getId
-
-
-
-
Method Detail
-
getKey
@NotNull public @NotNull DeploymentKey getKey()
Description copied from interface:InternalEnvironmentKey representing this environment. Keys have much less significance in deployments than in plans. Please consider usingInternalEnvironment.getId()instead.- Specified by:
getKeyin interfaceInternalEnvironment- Returns:
- key of this environment.
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceInternalEnvironment- Specified by:
getNamein interfaceNameProvider- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceMutableEnvironment
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalEnvironment- Returns:
- Optional, longer description of the environment
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceMutableEnvironment
-
getDeploymentProjectId
public long getDeploymentProjectId()
- Specified by:
getDeploymentProjectIdin interfaceInternalEnvironment- Returns:
- id of the
DeploymentProjectwhich is owner of this environment
-
getTasksXmlData
public String getTasksXmlData()
- Specified by:
getTasksXmlDatain interfaceMutableEnvironment
-
setTasksXmlData
public void setTasksXmlData(String tasksXmlData)
- Specified by:
setTasksXmlDatain interfaceMutableEnvironment
-
getTriggersXmlData
public String getTriggersXmlData()
- Specified by:
getTriggersXmlDatain interfaceMutableEnvironment
-
setTriggersXmlData
public void setTriggersXmlData(String triggersXmlData)
- Specified by:
setTriggersXmlDatain interfaceMutableEnvironment
-
getRequirementSet
@NotNull public @NotNull RequirementSet getRequirementSet()
Description copied from interface:InternalEnvironmentReturn effective value ofImmutableRequirementSet, that is value that is considered when checking which agents and elastic images can deploy to this environment.- Specified by:
getRequirementSetin interfaceInternalEnvironment- Specified by:
getRequirementSetin interfaceMutableEnvironment
-
setRequirementSet
public void setRequirementSet(RequirementSet requirementSet)
- Specified by:
setRequirementSetin interfaceMutableEnvironment
-
getNotificationSet
@NotNull public @NotNull NotificationSet getNotificationSet()
- Specified by:
getNotificationSetin interfaceMutableEnvironment
-
setNotificationSet
public void setNotificationSet(NotificationSet notificationSet)
- Specified by:
setNotificationSetin interfaceMutableEnvironment
-
getImmutableEnvironment
@NotNull public @NotNull Environment getImmutableEnvironment()
Description copied from interface:MutableEnvironmentGenerate an immutable version based on this mutable version.- Specified by:
getImmutableEnvironmentin interfaceMutableEnvironment- Returns:
- immutable version of this environment.
-
getConfigurationState
public ConfigurationState getConfigurationState()
- Specified by:
getConfigurationStatein interfaceInternalEnvironment- Returns:
- Enum representing how completed the configuration of this environments is.
-
setConfigurationState
public void setConfigurationState(ConfigurationState configurationState)
- Specified by:
setConfigurationStatein interfaceMutableEnvironment
-
getDeploymentProject
@NotNull public @NotNull MutableDeploymentProject getDeploymentProject()
- Specified by:
getDeploymentProjectin interfaceMutableEnvironment
-
setDeploymentProject
public void setDeploymentProject(MutableDeploymentProject deploymentProject)
- Specified by:
setDeploymentProjectin interfaceMutableEnvironment
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceTriggerable- Returns:
- true if automatic triggering is switched off for this object
-
getReleaseApprovalPrerequisite
@NotNull public @NotNull ReleaseApprovalPrerequisite getReleaseApprovalPrerequisite()
- Specified by:
getReleaseApprovalPrerequisitein interfaceInternalEnvironment
-
setReleaseApprovalPrerequisite
public void setReleaseApprovalPrerequisite(@NotNull @NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite)- Specified by:
setReleaseApprovalPrerequisitein interfaceMutableEnvironment
-
getTriggerDefinitions
@NotNull public @NotNull List<TriggerDefinition> getTriggerDefinitions()
- Specified by:
getTriggerDefinitionsin interfaceTriggerable- Returns:
- immutable list of all triggers defined for this object
-
getTaskDefinitions
@NotNull public @NotNull List<TaskDefinition> getTaskDefinitions()
- Specified by:
getTaskDefinitionsin interfaceTaskContainer- Returns:
- an ordered list of taskDefinitions for this container.
-
getTaskDefinitionsSupplier
@NotNull public @NotNull Supplier<List<TaskDefinition>> getTaskDefinitionsSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplierin interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
@NotNull public @NotNull Supplier<List<TriggerDefinition>> getTriggerDefinitionsSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplierin interfaceInternalEnvironment
-
getRequirementSetSupplier
@NotNull public @NotNull Supplier<ImmutableRequirementSet> getRequirementSetSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of the requirement set.- Specified by:
getRequirementSetSupplierin interfaceInternalEnvironment
-
setPosition
public void setPosition(int position)
- Specified by:
setPositionin interfaceMutableEnvironment
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceInternalEnvironment- Returns:
- position of this environment in deployment project's environment list.
-
-