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:InternalEnvironment
Key representing this environment. Keys have much less significance in deployments than in plans. Please consider usingInternalEnvironment.getId()
instead.- Specified by:
getKey
in interfaceInternalEnvironment
- Returns:
- key of this environment.
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceInternalEnvironment
- Specified by:
getName
in interfaceNameProvider
- 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 interfaceMutableEnvironment
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceInternalEnvironment
- Returns:
- Optional, longer description of the environment
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceMutableEnvironment
-
getDeploymentProjectId
public long getDeploymentProjectId()
- Specified by:
getDeploymentProjectId
in interfaceInternalEnvironment
- Returns:
- id of the
DeploymentProject
which is owner of this environment
-
getTasksXmlData
public String getTasksXmlData()
- Specified by:
getTasksXmlData
in interfaceMutableEnvironment
-
setTasksXmlData
public void setTasksXmlData(String tasksXmlData)
- Specified by:
setTasksXmlData
in interfaceMutableEnvironment
-
getTriggersXmlData
public String getTriggersXmlData()
- Specified by:
getTriggersXmlData
in interfaceMutableEnvironment
-
setTriggersXmlData
public void setTriggersXmlData(String triggersXmlData)
- Specified by:
setTriggersXmlData
in interfaceMutableEnvironment
-
getRequirementSet
@NotNull public @NotNull RequirementSet getRequirementSet()
Description copied from interface:InternalEnvironment
Return effective value ofImmutableRequirementSet
, that is value that is considered when checking which agents and elastic images can deploy to this environment.- Specified by:
getRequirementSet
in interfaceInternalEnvironment
- Specified by:
getRequirementSet
in interfaceMutableEnvironment
-
setRequirementSet
public void setRequirementSet(RequirementSet requirementSet)
- Specified by:
setRequirementSet
in interfaceMutableEnvironment
-
getNotificationSet
@NotNull public @NotNull NotificationSet getNotificationSet()
- Specified by:
getNotificationSet
in interfaceMutableEnvironment
-
setNotificationSet
public void setNotificationSet(NotificationSet notificationSet)
- Specified by:
setNotificationSet
in interfaceMutableEnvironment
-
getImmutableEnvironment
@NotNull public @NotNull Environment getImmutableEnvironment()
Description copied from interface:MutableEnvironment
Generate an immutable version based on this mutable version.- Specified by:
getImmutableEnvironment
in interfaceMutableEnvironment
- Returns:
- immutable version of this environment.
-
getConfigurationState
public ConfigurationState getConfigurationState()
- Specified by:
getConfigurationState
in interfaceInternalEnvironment
- Returns:
- Enum representing how completed the configuration of this environments is.
-
setConfigurationState
public void setConfigurationState(ConfigurationState configurationState)
- Specified by:
setConfigurationState
in interfaceMutableEnvironment
-
getDeploymentProject
@NotNull public @NotNull MutableDeploymentProject getDeploymentProject()
- Specified by:
getDeploymentProject
in interfaceMutableEnvironment
-
setDeploymentProject
public void setDeploymentProject(MutableDeploymentProject deploymentProject)
- Specified by:
setDeploymentProject
in interfaceMutableEnvironment
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interfaceTriggerable
- Returns:
- true if automatic triggering is switched off for this object
-
getReleaseApprovalPrerequisite
@NotNull public @NotNull ReleaseApprovalPrerequisite getReleaseApprovalPrerequisite()
- Specified by:
getReleaseApprovalPrerequisite
in interfaceInternalEnvironment
-
setReleaseApprovalPrerequisite
public void setReleaseApprovalPrerequisite(@NotNull @NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite)
- Specified by:
setReleaseApprovalPrerequisite
in interfaceMutableEnvironment
-
getTriggerDefinitions
@NotNull public @NotNull List<TriggerDefinition> getTriggerDefinitions()
- Specified by:
getTriggerDefinitions
in interfaceTriggerable
- Returns:
- immutable list of all triggers defined for this object
-
getTaskDefinitions
@NotNull public @NotNull List<TaskDefinition> getTaskDefinitions()
- Specified by:
getTaskDefinitions
in interfaceTaskContainer
- Returns:
- an ordered list of taskDefinitions for this container.
-
getTaskDefinitionsSupplier
@NotNull public @NotNull Supplier<List<TaskDefinition>> getTaskDefinitionsSupplier()
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplier
in interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
@NotNull public @NotNull Supplier<List<TriggerDefinition>> getTriggerDefinitionsSupplier()
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplier
in interfaceInternalEnvironment
-
getRequirementSetSupplier
@NotNull public @NotNull Supplier<ImmutableRequirementSet> getRequirementSetSupplier()
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of the requirement set.- Specified by:
getRequirementSetSupplier
in interfaceInternalEnvironment
-
setPosition
public void setPosition(int position)
- Specified by:
setPosition
in interfaceMutableEnvironment
-
getPosition
public int getPosition()
- Specified by:
getPosition
in interfaceInternalEnvironment
- Returns:
- position of this environment in deployment project's environment list.
-
-