com.atlassian.bamboo.deployments.environments
Class EnvironmentWithConfigCounts
java.lang.Object
com.atlassian.bamboo.deployments.environments.EnvironmentWithConfigCounts
- All Implemented Interfaces:
- BambooIdProvider, Environment, InternalEnvironment, Triggerable, DescriptionProvider, NameProvider
public class EnvironmentWithConfigCounts
- extends Object
- implements Environment
Extended environment bean with some more data for UI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentWithConfigCounts
public EnvironmentWithConfigCounts(Environment environment,
int agentsNumber,
int notificationsNumber,
int variablesNumber)
getEnvironment
public Environment getEnvironment()
getTriggersNumberString
public String getTriggersNumberString()
getAgentsNumberString
public String getAgentsNumberString()
getNotificationsNumberString
public String getNotificationsNumberString()
getVariablesNumberString
public String getVariablesNumberString()
getTaskDefinitions
@NotNull
public List<TaskDefinition> getTaskDefinitions()
- Specified by:
getTaskDefinitions
in interface Environment
- Returns:
- an ordered list of taskDefinitions for this environment.
getOperations
public Operations getOperations()
- Description copied from interface:
Environment
Operations
object describing detailed permissions for environment
- Specified by:
getOperations
in interface Environment
- Returns:
getId
public long getId()
- Specified by:
getId
in interface BambooIdProvider
- Specified by:
getId
in interface InternalEnvironment
- Returns:
- unique identifier (in this case from database)
getKey
@NotNull
public DeploymentKey getKey()
- Description copied from interface:
InternalEnvironment
- Key representing this environment. Keys have much less significance in deployments than in plans. Please consider
using
InternalEnvironment.getId()
instead.
- Specified by:
getKey
in interface InternalEnvironment
- Returns:
- key of this environment.
getName
@NotNull
public String getName()
- Specified by:
getName
in interface InternalEnvironment
- Specified by:
getName
in interface DescriptionProvider
- Specified by:
getName
in interface NameProvider
- Returns:
- User friendly shortish name for this environment. Must be unique within a deployment project
getDescription
@Nullable
public String getDescription()
- Specified by:
getDescription
in interface InternalEnvironment
- Specified by:
getDescription
in interface DescriptionProvider
- Returns:
- Optional, longer description of the environment
getDeploymentProjectId
public long getDeploymentProjectId()
- Specified by:
getDeploymentProjectId
in interface InternalEnvironment
- Returns:
- id of the
DeploymentProject
which is owner of this environment
getConfigurationState
public ConfigurationState getConfigurationState()
- Specified by:
getConfigurationState
in interface InternalEnvironment
- Returns:
- Enum representing how completed the configuration of this environments is.
getPosition
public int getPosition()
- Specified by:
getPosition
in interface InternalEnvironment
- Returns:
- position of this environment in deployment project's environment list.
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface Triggerable
- Returns:
- true iff automatic triggering is switched off for this object
getTriggerDefinitions
@NotNull
public List<TriggerDefinition> getTriggerDefinitions()
- Specified by:
getTriggerDefinitions
in interface Triggerable
- Returns:
- immutable list of all triggers defined for this object
getTriggers
@NotNull
public List<BuildStrategy> getTriggers()
- Description copied from interface:
Triggerable
- Returns triggers defined for this object as BuildStrategies. The result of this function is produced
by calling
Triggerable.getTriggerDefinitions()
and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.
- Specified by:
getTriggers
in interface Triggerable
- Returns:
- triggers defined for this object.
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.