Class EnvironmentImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.EnvironmentImpl
- All Implemented Interfaces:
BambooIdProvider,EnvironmentStub,Environment,InternalEnvironment,TaskContainer,Triggerable,DescriptionProvider,NameProvider,Versionable
- Direct Known Subclasses:
DecoratedEnvironmentImpl
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentImpl(InternalEnvironment environment, Operations operations) EnvironmentImpl(MutableEnvironment mutableEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentImplenvironmentWithBasicData(MutableEnvironment env, Operations operations) booleanlonglonggetId()@NotNull DeploymentKeygetKey()Key representing this environment.@NotNull StringgetName()Operationsobject describing detailed permissions for environmentint@NotNull ReleaseApprovalPrerequisite@NotNull ImmutableRequirementSetReturn effective value ofImmutableRequirementSet, that is value that is considered when checking which agents and elastic images can deploy to this environment.@NotNull Supplier<ImmutableRequirementSet>Return (possibly lazy) supplier of the requirement set.@NotNull List<TaskDefinition>@NotNull Supplier<List<TaskDefinition>>Return (possibly lazy) supplier of tasks.@NotNull List<TriggerDefinition>@NotNull Supplier<List<TriggerDefinition>>Return (possibly lazy) supplier of triggers.@NotNull LongReturns the version number of this object.inthashCode()boolean
-
Constructor Details
-
EnvironmentImpl
-
EnvironmentImpl
-
-
Method Details
-
environmentWithBasicData
public static EnvironmentImpl environmentWithBasicData(MutableEnvironment env, Operations operations) -
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalEnvironment- Returns:
- unique identifier (in this case from database)
-
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceInternalEnvironment- Specified by:
getNamein interfaceNameProvider- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalEnvironment- Returns:
- Optional, longer description of the environment
-
getKey
Description copied from interface:InternalEnvironmentKey representing this environment. Keys have much less significance in deployments than in plans. Please consider usingInternalEnvironment.getId()instead.- Specified by:
getKeyin interfaceInternalEnvironment- Returns:
- key of this environment.
-
getConfigurationState
- Specified by:
getConfigurationStatein interfaceInternalEnvironment- Returns:
- Enum representing how completed the configuration of this environments is.
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspendedin interfaceTriggerable- Returns:
- true if automatic triggering is switched off for this object
-
getTaskDefinitions
- Specified by:
getTaskDefinitionsin interfaceEnvironment- Specified by:
getTaskDefinitionsin interfaceTaskContainer- Returns:
- an ordered list of taskDefinitions for this environment.
-
getTriggerDefinitions
- Specified by:
getTriggerDefinitionsin interfaceTriggerable- Returns:
- immutable list of all triggers defined for this object
-
getDeploymentProjectId
public long getDeploymentProjectId()- Specified by:
getDeploymentProjectIdin interfaceInternalEnvironment- Returns:
- id of the
DeploymentProjectwhich is owner of this environment
-
getOperations
Description copied from interface:EnvironmentOperationsobject describing detailed permissions for environment- Specified by:
getOperationsin interfaceEnvironment- Specified by:
getOperationsin interfaceEnvironmentStub
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceInternalEnvironment- Returns:
- position of this environment in deployment project's environment list.
-
getVersion
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
getRequirementSet
Description copied from interface:InternalEnvironmentReturn effective value ofImmutableRequirementSet, that is value that is considered when checking which agents and elastic images can deploy to this environment.- Specified by:
getRequirementSetin interfaceInternalEnvironment
-
getTaskDefinitionsSupplier
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplierin interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplierin interfaceInternalEnvironment
-
getRequirementSetSupplier
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of the requirement set.- Specified by:
getRequirementSetSupplierin interfaceInternalEnvironment
-
getReleaseApprovalPrerequisite
- Specified by:
getReleaseApprovalPrerequisitein interfaceInternalEnvironment
-
equals
-
hashCode
public int hashCode()
-