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 -
Method Summary
Modifier and TypeMethodDescription@NotNull MutableDeploymentProjectlong@NotNull EnvironmentGenerate an immutable version based on this mutable version.@NotNull DeploymentKeygetKey()Key representing this environment.@NotNull StringgetName()@NotNull NotificationSetint@NotNull ReleaseApprovalPrerequisite@NotNull RequirementSetReturn effective value ofImmutableRequirementSet, that is value that is considered when checking which agents and elastic images can deploy to this environment.@NotNull Supplier<ImmutableRequirementSet>Return (possibly lazy) supplier of the requirement set.@NotNull List<TaskDefinition>@NotNull Supplier<List<TaskDefinition>>Return (possibly lazy) supplier of tasks.@NotNull List<TriggerDefinition>@NotNull Supplier<List<TriggerDefinition>>Return (possibly lazy) supplier of triggers.booleanvoidsetConfigurationState(ConfigurationState configurationState) voidsetDeploymentProject(MutableDeploymentProject deploymentProject) voidsetDescription(String description) voidvoidsetNotificationSet(NotificationSet notificationSet) voidsetPosition(int position) voidsetReleaseApprovalPrerequisite(@NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite) voidsetRequirementSet(RequirementSet requirementSet) voidsetTasksXmlData(String tasksXmlData) voidsetTriggersXmlData(String triggersXmlData) toString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.deployments.environments.InternalEnvironment
getId
-
Constructor Details
-
MutableEnvironmentImpl
public MutableEnvironmentImpl()
-
-
Method Details
-
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
- 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
- Specified by:
setNamein interfaceMutableEnvironment
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalEnvironment- Returns:
- Optional, longer description of the environment
-
setDescription
- Specified by:
setDescriptionin interfaceMutableEnvironment
-
getDeploymentProjectId
public long getDeploymentProjectId()- Specified by:
getDeploymentProjectIdin interfaceInternalEnvironment- Returns:
- id of the
DeploymentProjectwhich is owner of this environment
-
getTasksXmlData
- Specified by:
getTasksXmlDatain interfaceMutableEnvironment
-
setTasksXmlData
- Specified by:
setTasksXmlDatain interfaceMutableEnvironment
-
getTriggersXmlData
- Specified by:
getTriggersXmlDatain interfaceMutableEnvironment
-
setTriggersXmlData
- Specified by:
setTriggersXmlDatain interfaceMutableEnvironment
-
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
- Specified by:
setRequirementSetin interfaceMutableEnvironment
-
getNotificationSet
- Specified by:
getNotificationSetin interfaceMutableEnvironment
-
setNotificationSet
- Specified by:
setNotificationSetin interfaceMutableEnvironment
-
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
- Specified by:
getConfigurationStatein interfaceInternalEnvironment- Returns:
- Enum representing how completed the configuration of this environments is.
-
setConfigurationState
- Specified by:
setConfigurationStatein interfaceMutableEnvironment
-
getDeploymentProject
- Specified by:
getDeploymentProjectin interfaceMutableEnvironment
-
setDeploymentProject
- Specified by:
setDeploymentProjectin interfaceMutableEnvironment
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspendedin interfaceTriggerable- Returns:
- true if automatic triggering is switched off for this object
-
getReleaseApprovalPrerequisite
- Specified by:
getReleaseApprovalPrerequisitein interfaceInternalEnvironment
-
setReleaseApprovalPrerequisite
public void setReleaseApprovalPrerequisite(@NotNull @NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite) - Specified by:
setReleaseApprovalPrerequisitein interfaceMutableEnvironment
-
getTriggerDefinitions
- Specified by:
getTriggerDefinitionsin interfaceTriggerable- Returns:
- immutable list of all triggers defined for this object
-
getTaskDefinitions
- Specified by:
getTaskDefinitionsin interfaceTaskContainer- Returns:
- an ordered list of taskDefinitions for this container.
-
getTaskDefinitionsSupplier
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplierin interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplierin interfaceInternalEnvironment
-
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.
-
toString
-