Package com.atlassian.bamboo.variable
Class VariableDefinitionImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.variable.VariableDefinitionImpl
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,VariableDefinition,VariableDefinitionContext,VariableDefinitionIdentifier,VersionedEntityComponent<Plan>,Serializable,Cloneable
@Entity public class VariableDefinitionImpl extends BambooEntityObject implements VariableDefinition
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longKEY_MAX_LENGTH-
Fields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING
-
-
Constructor Summary
Constructors Constructor Description VariableDefinitionImpl()VariableDefinitionImpl(VariableDefinition other)VariableDefinitionImpl(String key, String value, Plan plan, VariableType variableType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariableDefinitionclone(@NotNull VariableDefinition input)@Nullable LonggetDeploymentVersionId()@Nullable LonggetEnvironmentId()@NotNull StringgetKey()Variable key as defined in UIPlangetPlan()@Nullable LonggetProjectId()@Nullable PlangetRoot()Returns the versioned root of the object.StringgetValue()Variable value as set in UIVariableTypegetVariableType()VariableTypeshows the source of variable value as it was evaluated before build executionvoidsetDeploymentVersionId(@Nullable Long deploymentVersionId)voidsetEnvironmentId(@Nullable Long environmentId)voidsetKey(String key)voidsetPlan(Plan plan)voidsetProjectId(Long projectId)voidsetValue(String value)voidsetVariableType(VariableType variableType)StringtoString()-
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.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Field Detail
-
KEY_MAX_LENGTH
public static final long KEY_MAX_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VariableDefinitionImpl
public VariableDefinitionImpl()
-
VariableDefinitionImpl
public VariableDefinitionImpl(String key, String value, Plan plan, VariableType variableType)
-
VariableDefinitionImpl
public VariableDefinitionImpl(VariableDefinition other)
-
-
Method Detail
-
clone
public static VariableDefinition clone(@NotNull @NotNull VariableDefinition input)
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:VariableDefinitionContextVariable key as defined in UI- Specified by:
getKeyin interfaceVariableDefinitionContext- Specified by:
getKeyin interfaceVariableDefinitionIdentifier- Returns:
- variable key
-
setKey
public void setKey(String key)
- Specified by:
setKeyin interfaceVariableDefinitionContext
-
getValue
public String getValue()
Description copied from interface:VariableDefinitionContextVariable value as set in UI- Specified by:
getValuein interfaceVariableDefinitionContext- Specified by:
getValuein interfaceVariableDefinitionIdentifier
-
setValue
public void setValue(String value)
- Specified by:
setValuein interfaceVariableDefinitionContext
-
getVariableType
public VariableType getVariableType()
Description copied from interface:VariableDefinitionContextVariableTypeshows the source of variable value as it was evaluated before build execution- Specified by:
getVariableTypein interfaceVariableDefinitionContext- Specified by:
getVariableTypein interfaceVariableDefinitionIdentifier- Returns:
-
setVariableType
public void setVariableType(VariableType variableType)
- Specified by:
setVariableTypein interfaceVariableDefinitionContext
-
getPlan
public Plan getPlan()
- Specified by:
getPlanin interfaceVariableDefinition- Returns:
- associated
Planor null if not ofVariableType.PLANtype
-
setPlan
public void setPlan(Plan plan)
- Specified by:
setPlanin interfaceVariableDefinition
-
getEnvironmentId
@Nullable public @Nullable Long getEnvironmentId()
- Specified by:
getEnvironmentIdin interfaceVariableDefinition- Returns:
- id of associated Deployment Environment or null if not of
VariableType.ENVIRONMENTtype
-
setEnvironmentId
public void setEnvironmentId(@Nullable @Nullable Long environmentId)- Specified by:
setEnvironmentIdin interfaceVariableDefinition
-
getDeploymentVersionId
@Nullable public @Nullable Long getDeploymentVersionId()
- Specified by:
getDeploymentVersionIdin interfaceVariableDefinition- Returns:
- id of associated Deployment Version or null if not of
VariableType.VERSIONtype
-
setDeploymentVersionId
public void setDeploymentVersionId(@Nullable @Nullable Long deploymentVersionId)- Specified by:
setDeploymentVersionIdin interfaceVariableDefinition
-
getProjectId
@Nullable public @Nullable Long getProjectId()
- Specified by:
getProjectIdin interfaceVariableDefinition- Returns:
- id of associated
Projector null if not ofVariableType.PROJECTtype
-
setProjectId
public void setProjectId(Long projectId)
- Specified by:
setProjectIdin interfaceVariableDefinition
-
getRoot
@Nullable public @Nullable Plan getRoot()
Description copied from interface:VersionedEntityComponentReturns the versioned root of the object.- Specified by:
getRootin interfaceVersionedEntityComponent<Plan>- Returns:
- the root of the object
-
-