Class EnvironmentImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.EnvironmentImpl
- All Implemented Interfaces:
BambooIdProvider
,EnvironmentStub
,Environment
,InternalEnvironment
,TaskContainer
,Triggerable
,DescriptionProvider
,NameProvider
- Direct Known Subclasses:
DecoratedEnvironmentImpl
-
Constructor Summary
ConstructorDescriptionEnvironmentImpl
(Environment environment, Operations operations) EnvironmentImpl
(MutableEnvironment mutableEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentImpl
environmentWithBasicData
(MutableEnvironment env, Operations operations) boolean
long
long
getId()
@NotNull DeploymentKey
getKey()
Key representing this environment.@NotNull String
getName()
Operations
object describing detailed permissions for environmentint
@NotNull ReleaseApprovalPrerequisite
@NotNull ImmutableRequirementSet
Return 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.int
hashCode()
boolean
-
Constructor Details
-
EnvironmentImpl
-
EnvironmentImpl
-
-
Method Details
-
environmentWithBasicData
public static EnvironmentImpl environmentWithBasicData(MutableEnvironment env, Operations operations) -
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalEnvironment
- Returns:
- unique identifier (in this case from database)
-
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceInternalEnvironment
- Specified by:
getName
in interfaceNameProvider
- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceInternalEnvironment
- Returns:
- Optional, longer description of the environment
-
getKey
Description copied from interface:InternalEnvironment
Key representing this environment. Keys have much less significance in deployments than in plans. Please consider usingInternalEnvironment.getId()
instead.- Specified by:
getKey
in interfaceInternalEnvironment
- Returns:
- key of this environment.
-
getConfigurationState
- Specified by:
getConfigurationState
in interfaceInternalEnvironment
- Returns:
- Enum representing how completed the configuration of this environments is.
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspended
in interfaceTriggerable
- Returns:
- true if automatic triggering is switched off for this object
-
getTaskDefinitions
- Specified by:
getTaskDefinitions
in interfaceEnvironment
- Specified by:
getTaskDefinitions
in interfaceTaskContainer
- Returns:
- an ordered list of taskDefinitions for this environment.
-
getTriggerDefinitions
- Specified by:
getTriggerDefinitions
in interfaceTriggerable
- Returns:
- immutable list of all triggers defined for this object
-
getDeploymentProjectId
public long getDeploymentProjectId()- Specified by:
getDeploymentProjectId
in interfaceInternalEnvironment
- Returns:
- id of the
DeploymentProject
which is owner of this environment
-
getOperations
Description copied from interface:Environment
Operations
object describing detailed permissions for environment- Specified by:
getOperations
in interfaceEnvironment
- Specified by:
getOperations
in interfaceEnvironmentStub
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceInternalEnvironment
- Returns:
- position of this environment in deployment project's environment list.
-
getRequirementSet
Description copied from interface:InternalEnvironment
Return effective value ofImmutableRequirementSet
, that is value that is considered when checking which agents and elastic images can deploy to this environment.- Specified by:
getRequirementSet
in interfaceInternalEnvironment
-
getTaskDefinitionsSupplier
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplier
in interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplier
in interfaceInternalEnvironment
-
getRequirementSetSupplier
Description copied from interface:InternalEnvironment
Return (possibly lazy) supplier of the requirement set.- Specified by:
getRequirementSetSupplier
in interfaceInternalEnvironment
-
getReleaseApprovalPrerequisite
- Specified by:
getReleaseApprovalPrerequisite
in interfaceInternalEnvironment
-
equals
-
hashCode
public int hashCode()
-