Class EnvironmentWithConfigCounts
- java.lang.Object
-
- com.atlassian.bamboo.deployments.environments.EnvironmentWithConfigCounts
-
- All Implemented Interfaces:
BambooIdProvider,EnvironmentStub,InternalEnvironment,TaskContainer,Triggerable,DescriptionProvider,NameProvider
public class EnvironmentWithConfigCounts extends Object implements EnvironmentStub
Extended environment bean with some more data for UI. Might not contain all data.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentWithConfigCounts(InternalEnvironment environment, int numberOfCompatibleAgents, int notificationsNumber, int variablesNumber)
-
Method Summary
-
-
-
Constructor Detail
-
EnvironmentWithConfigCounts
public EnvironmentWithConfigCounts(InternalEnvironment environment, int numberOfCompatibleAgents, int notificationsNumber, int variablesNumber)
-
-
Method Detail
-
getEnvironment
public InternalEnvironment getEnvironment()
-
getNumberOfCompatibleAgents
public int getNumberOfCompatibleAgents()
-
getTriggersNumberString
public String getTriggersNumberString()
-
getNotificationsNumberString
public String getNotificationsNumberString()
-
getVariablesNumberString
public String getVariablesNumberString()
-
getTaskDefinitions
@NotNull public @NotNull List<TaskDefinition> getTaskDefinitions()
- Specified by:
getTaskDefinitionsin interfaceTaskContainer- Returns:
- an ordered list of taskDefinitions for this container.
-
getOperations
public Operations getOperations()
- Specified by:
getOperationsin interfaceEnvironmentStub
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalEnvironment- Returns:
- unique identifier (in this case from database)
-
getKey
@NotNull public @NotNull DeploymentKey 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.
-
getName
@NotNull public @NotNull String 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
@Nullable public @Nullable String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceInternalEnvironment- Returns:
- Optional, longer description of the environment
-
getDeploymentProjectId
public long getDeploymentProjectId()
- Specified by:
getDeploymentProjectIdin interfaceInternalEnvironment- Returns:
- id of the
DeploymentProjectwhich is owner of this environment
-
getConfigurationState
public ConfigurationState getConfigurationState()
- Specified by:
getConfigurationStatein interfaceInternalEnvironment- Returns:
- Enum representing how completed the configuration of this environments is.
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceInternalEnvironment- Returns:
- position of this environment in deployment project's environment list.
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceTriggerable- Returns:
- true if automatic triggering is switched off for this object
-
getTriggerDefinitions
@NotNull public @NotNull List<TriggerDefinition> getTriggerDefinitions()
- Specified by:
getTriggerDefinitionsin interfaceTriggerable- Returns:
- immutable list of all triggers defined for this object
-
getRequirementSet
@NotNull public @NotNull ImmutableRequirementSet 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
@NotNull public @NotNull Supplier<List<TaskDefinition>> getTaskDefinitionsSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of tasks.- Specified by:
getTaskDefinitionsSupplierin interfaceInternalEnvironment
-
getTriggerDefinitionsSupplier
@NotNull public @NotNull Supplier<List<TriggerDefinition>> getTriggerDefinitionsSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of triggers.- Specified by:
getTriggerDefinitionsSupplierin interfaceInternalEnvironment
-
getReleaseApprovalPrerequisite
@NotNull public @NotNull ReleaseApprovalPrerequisite getReleaseApprovalPrerequisite()
- Specified by:
getReleaseApprovalPrerequisitein interfaceInternalEnvironment
-
getRequirementSetSupplier
@NotNull public @NotNull Supplier<ImmutableRequirementSet> getRequirementSetSupplier()
Description copied from interface:InternalEnvironmentReturn (possibly lazy) supplier of the requirement set.- Specified by:
getRequirementSetSupplierin interfaceInternalEnvironment
-
-