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
-
Method Summary
Modifier and TypeMethodDescription@NotNull MutableDeploymentProject
long
@NotNull Environment
Generate an immutable version based on this mutable version.@NotNull DeploymentKey
getKey()
Key representing this environment.@NotNull String
getName()
@NotNull NotificationSet
int
@NotNull ReleaseApprovalPrerequisite
@NotNull RequirementSet
Return 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.boolean
void
setConfigurationState
(ConfigurationState configurationState) void
setDeploymentProject
(MutableDeploymentProject deploymentProject) void
setDescription
(String description) void
void
setNotificationSet
(NotificationSet notificationSet) void
setPosition
(int position) void
setReleaseApprovalPrerequisite
(@NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite) void
setRequirementSet
(RequirementSet requirementSet) void
setTasksXmlData
(String tasksXmlData) void
setTriggersXmlData
(String triggersXmlData) toString()
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
-
Constructor Details
-
MutableEnvironmentImpl
public MutableEnvironmentImpl()
-
-
Method Details
-
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
- 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
- Specified by:
setName
in interfaceMutableEnvironment
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceInternalEnvironment
- Returns:
- Optional, longer description of the environment
-
setDescription
- 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
- Specified by:
getTasksXmlData
in interfaceMutableEnvironment
-
setTasksXmlData
- Specified by:
setTasksXmlData
in interfaceMutableEnvironment
-
getTriggersXmlData
- Specified by:
getTriggersXmlData
in interfaceMutableEnvironment
-
setTriggersXmlData
- Specified by:
setTriggersXmlData
in interfaceMutableEnvironment
-
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
- Specified by:
setRequirementSet
in interfaceMutableEnvironment
-
getNotificationSet
- Specified by:
getNotificationSet
in interfaceMutableEnvironment
-
setNotificationSet
- Specified by:
setNotificationSet
in interfaceMutableEnvironment
-
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
- Specified by:
getConfigurationState
in interfaceInternalEnvironment
- Returns:
- Enum representing how completed the configuration of this environments is.
-
setConfigurationState
- Specified by:
setConfigurationState
in interfaceMutableEnvironment
-
getDeploymentProject
- Specified by:
getDeploymentProject
in interfaceMutableEnvironment
-
setDeploymentProject
- 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
- Specified by:
getReleaseApprovalPrerequisite
in interfaceInternalEnvironment
-
setReleaseApprovalPrerequisite
public void setReleaseApprovalPrerequisite(@NotNull @NotNull ReleaseApprovalPrerequisite releaseApprovalPrerequisite) - Specified by:
setReleaseApprovalPrerequisite
in interfaceMutableEnvironment
-
getTriggerDefinitions
- Specified by:
getTriggerDefinitions
in interfaceTriggerable
- Returns:
- immutable list of all triggers defined for this object
-
getTaskDefinitions
- Specified by:
getTaskDefinitions
in interfaceTaskContainer
- Returns:
- an ordered list of taskDefinitions for this container.
-
getTaskDefinitionsSupplier
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplier
in interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplier
in interfaceInternalEnvironment
-
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.
-
toString
-