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:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING
-
Constructor Summary
ConstructorDescriptionVariableDefinitionImpl
(String key, String value, Plan plan, VariableType variableType) -
Method Summary
Modifier and TypeMethodDescriptionstatic VariableDefinition
clone
(@NotNull VariableDefinition input) @Nullable Long
@Nullable Long
@NotNull String
getKey()
Variable key as defined in UIgetPlan()
@Nullable Long
@Nullable Plan
getRoot()
Returns the versioned root of the object.getValue()
Variable value as set in UIVariableType
shows the source of variable value as it was evaluated before build executionvoid
setDeploymentVersionId
(@Nullable Long deploymentVersionId) void
setEnvironmentId
(@Nullable Long environmentId) void
void
void
setProjectId
(Long projectId) void
void
setVariableType
(VariableType variableType) 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 Details
-
KEY_MAX_LENGTH
public static final long KEY_MAX_LENGTH- See Also:
-
-
Constructor Details
-
VariableDefinitionImpl
public VariableDefinitionImpl() -
VariableDefinitionImpl
-
VariableDefinitionImpl
-
-
Method Details
-
clone
-
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
- Specified by:
setKey
in interfaceVariableDefinitionContext
-
getValue
Description copied from interface:VariableDefinitionContext
Variable value as set in UI- Specified by:
getValue
in interfaceVariableDefinitionContext
- Specified by:
getValue
in interfaceVariableDefinitionIdentifier
-
setValue
- Specified by:
setValue
in interfaceVariableDefinitionContext
-
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
- Specified by:
setVariableType
in interfaceVariableDefinitionContext
-
getPlan
- Specified by:
getPlan
in interfaceVariableDefinition
- Returns:
- associated
Plan
or null if not ofVariableType.PLAN
type
-
setPlan
- Specified by:
setPlan
in interfaceVariableDefinition
-
getEnvironmentId
- Specified by:
getEnvironmentId
in interfaceVariableDefinition
- Returns:
- id of associated Deployment Environment or null if not of
VariableType.ENVIRONMENT
type
-
setEnvironmentId
- Specified by:
setEnvironmentId
in interfaceVariableDefinition
-
getDeploymentVersionId
- Specified by:
getDeploymentVersionId
in interfaceVariableDefinition
- Returns:
- id of associated Deployment Version or null if not of
VariableType.VERSION
type
-
setDeploymentVersionId
- Specified by:
setDeploymentVersionId
in interfaceVariableDefinition
-
getProjectId
- Specified by:
getProjectId
in interfaceVariableDefinition
- Returns:
- id of associated
Project
or null if not ofVariableType.PROJECT
type
-
setProjectId
- Specified by:
setProjectId
in interfaceVariableDefinition
-
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
-
toString
-