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
FieldsFields inherited from interface com.atlassian.bamboo.variable.VariableDefinitionIdentifier
ORDERING -
Constructor Summary
ConstructorsConstructorDescriptionVariableDefinitionImpl(String key, String value, Plan plan, VariableType variableType) -
Method Summary
Modifier and TypeMethodDescriptionstatic VariableDefinitionclone(@NotNull VariableDefinition input) @Nullable Long@Nullable Long@NotNull StringgetKey()Variable key as defined in UIgetPlan()@Nullable Long@Nullable PlangetRoot()Returns the versioned root of the object.getValue()Variable value as set in UIVariableTypeshows the source of variable value as it was evaluated before build executionvoidsetDeploymentVersionId(@Nullable Long deploymentVersionId) voidsetEnvironmentId(@Nullable Long environmentId) voidvoidvoidsetProjectId(Long projectId) voidvoidsetVariableType(VariableType variableType) toString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods 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:VariableDefinitionContextVariable key as defined in UI- Specified by:
getKeyin interfaceVariableDefinitionContext- Specified by:
getKeyin interfaceVariableDefinitionIdentifier- Returns:
- variable key
-
setKey
- Specified by:
setKeyin interfaceVariableDefinitionContext
-
getValue
Description copied from interface:VariableDefinitionContextVariable value as set in UI- Specified by:
getValuein interfaceVariableDefinitionContext- Specified by:
getValuein interfaceVariableDefinitionIdentifier
-
setValue
- Specified by:
setValuein interfaceVariableDefinitionContext
-
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
- Specified by:
setVariableTypein interfaceVariableDefinitionContext
-
getPlan
- Specified by:
getPlanin interfaceVariableDefinition- Returns:
- associated
Planor null if not ofVariableType.PLANtype
-
setPlan
- Specified by:
setPlanin interfaceVariableDefinition
-
getEnvironmentId
- Specified by:
getEnvironmentIdin interfaceVariableDefinition- Returns:
- id of associated Deployment Environment or null if not of
VariableType.ENVIRONMENTtype
-
setEnvironmentId
- Specified by:
setEnvironmentIdin interfaceVariableDefinition
-
getDeploymentVersionId
- Specified by:
getDeploymentVersionIdin interfaceVariableDefinition- Returns:
- id of associated Deployment Version or null if not of
VariableType.VERSIONtype
-
setDeploymentVersionId
- Specified by:
setDeploymentVersionIdin interfaceVariableDefinition
-
getProjectId
- Specified by:
getProjectIdin interfaceVariableDefinition- Returns:
- id of associated
Projector null if not ofVariableType.PROJECTtype
-
setProjectId
- Specified by:
setProjectIdin interfaceVariableDefinition
-
getRoot
Description copied from interface:VersionedEntityComponentReturns the versioned root of the object.- Specified by:
getRootin interfaceVersionedEntityComponent<Plan>- Returns:
- the root of the object
-
toString
-