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 long
KEY_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 VariableDefinition
clone(@NotNull VariableDefinition input)
@Nullable Long
getDeploymentVersionId()
@Nullable Long
getEnvironmentId()
@NotNull String
getKey()
Variable key as defined in UIPlan
getPlan()
@Nullable Long
getProjectId()
@Nullable Plan
getRoot()
Returns the versioned root of the object.String
getValue()
Variable value as set in UIVariableType
getVariableType()
VariableType
shows the source of variable value as it was evaluated before build executionvoid
setDeploymentVersionId(@Nullable Long deploymentVersionId)
void
setEnvironmentId(@Nullable Long environmentId)
void
setKey(String key)
void
setPlan(Plan plan)
void
setProjectId(Long projectId)
void
setValue(String value)
void
setVariableType(VariableType variableType)
String
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.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:VariableDefinitionContext
Variable key as defined in UI- Specified by:
getKey
in interfaceVariableDefinitionContext
- Specified by:
getKey
in interfaceVariableDefinitionIdentifier
- Returns:
- variable key
-
setKey
public void setKey(String key)
- Specified by:
setKey
in interfaceVariableDefinitionContext
-
getValue
public String getValue()
Description copied from interface:VariableDefinitionContext
Variable value as set in UI- Specified by:
getValue
in interfaceVariableDefinitionContext
- Specified by:
getValue
in interfaceVariableDefinitionIdentifier
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfaceVariableDefinitionContext
-
getVariableType
public VariableType getVariableType()
Description copied from interface:VariableDefinitionContext
VariableType
shows the source of variable value as it was evaluated before build execution- Specified by:
getVariableType
in interfaceVariableDefinitionContext
- Specified by:
getVariableType
in interfaceVariableDefinitionIdentifier
- Returns:
-
setVariableType
public void setVariableType(VariableType variableType)
- Specified by:
setVariableType
in interfaceVariableDefinitionContext
-
getPlan
public Plan getPlan()
- Specified by:
getPlan
in interfaceVariableDefinition
- Returns:
- associated
Plan
or null if not ofVariableType.PLAN
type
-
setPlan
public void setPlan(Plan plan)
- Specified by:
setPlan
in interfaceVariableDefinition
-
getEnvironmentId
@Nullable public @Nullable Long getEnvironmentId()
- Specified by:
getEnvironmentId
in interfaceVariableDefinition
- Returns:
- id of associated Deployment Environment or null if not of
VariableType.ENVIRONMENT
type
-
setEnvironmentId
public void setEnvironmentId(@Nullable @Nullable Long environmentId)
- Specified by:
setEnvironmentId
in interfaceVariableDefinition
-
getDeploymentVersionId
@Nullable public @Nullable Long getDeploymentVersionId()
- Specified by:
getDeploymentVersionId
in interfaceVariableDefinition
- Returns:
- id of associated Deployment Version or null if not of
VariableType.VERSION
type
-
setDeploymentVersionId
public void setDeploymentVersionId(@Nullable @Nullable Long deploymentVersionId)
- Specified by:
setDeploymentVersionId
in interfaceVariableDefinition
-
getProjectId
@Nullable public @Nullable Long getProjectId()
- Specified by:
getProjectId
in interfaceVariableDefinition
- Returns:
- id of associated
Project
or null if not ofVariableType.PROJECT
type
-
setProjectId
public void setProjectId(Long projectId)
- Specified by:
setProjectId
in interfaceVariableDefinition
-
getRoot
@Nullable public @Nullable Plan getRoot()
Description copied from interface:VersionedEntityComponent
Returns the versioned root of the object.- Specified by:
getRoot
in interfaceVersionedEntityComponent<Plan>
- Returns:
- the root of the object
-
-