com.atlassian.bamboo.deployments.environments.persistence
Class MutableEnvironmentImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.deployments.environments.persistence.MutableEnvironmentImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, InternalEnvironment, MutableEnvironment, Triggerable, DescriptionProvider, NameProvider, java.lang.Cloneable

public class MutableEnvironmentImpl
extends BambooEntityObject
implements MutableEnvironment


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
MutableEnvironmentImpl()
           
 
Method Summary
 ConfigurationState getConfigurationState()
           
 MutableDeploymentProject getDeploymentProject()
           
 java.lang.String getDescription()
           
 Environment getImmutableEnvironment()
          Generate an immutable version based on this mutable version.
 DeploymentKey getKey()
          Key representing this environment.
 java.lang.String getName()
           
 NotificationSet getNotificationSet()
           
 int getPosition()
           
 RequirementSet getRequirementSet()
           
 java.lang.String getTasksXmlData()
           
 java.util.List<BuildStrategy> getTriggers()
           
 java.lang.String getTriggersXmlData()
           
 boolean isSuspended()
           
 void setConfigurationState(ConfigurationState configurationState)
           
 void setDeploymentProject(MutableDeploymentProject deploymentProject)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setNotificationSet(NotificationSet notificationSet)
           
 void setPosition(int position)
           
 void setRequirementSet(RequirementSet requirementSet)
           
 void setTasksXmlData(java.lang.String tasksXmlData)
           
 void setTriggersXmlData(java.lang.String triggersXmlData)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
equals, getId, hashCode, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, 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 Detail

MutableEnvironmentImpl

public MutableEnvironmentImpl()
Method Detail

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 java.lang.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(java.lang.String name)
Specified by:
setName in interface MutableEnvironment

getDescription

public java.lang.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(java.lang.String description)
Specified by:
setDescription in interface MutableEnvironment

getTasksXmlData

public java.lang.String getTasksXmlData()
Specified by:
getTasksXmlData in interface MutableEnvironment

setTasksXmlData

public void setTasksXmlData(java.lang.String tasksXmlData)
Specified by:
setTasksXmlData in interface MutableEnvironment

getTriggersXmlData

public java.lang.String getTriggersXmlData()
Specified by:
getTriggersXmlData in interface MutableEnvironment

setTriggersXmlData

public void setTriggersXmlData(java.lang.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

getTriggers

@NotNull
public java.util.List<BuildStrategy> getTriggers()
Specified by:
getTriggers in interface Triggerable
Returns:
all 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.