Class IndexedEnvironmentImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.index.IndexedEnvironmentImpl
- All Implemented Interfaces:
IndexedEnvironment
Represents the environment object indexed in lucene
-
Constructor Summary
ConstructorDescriptionIndexedEnvironmentImpl
(@NotNull InternalDeploymentProject internalDeploymentProject, @NotNull EnvironmentStatus environmentStatus, @Nullable PlanResultKey latestVersionPlanResultKey) IndexedEnvironmentImpl
(@NotNull InternalDeploymentProject project, @NotNull InternalEnvironment environment, @Nullable DeploymentResult latestResult, @Nullable PlanResultKey latestVersionPlanResultKey) -
Method Summary
-
Constructor Details
-
IndexedEnvironmentImpl
public IndexedEnvironmentImpl(@NotNull @NotNull InternalDeploymentProject project, @NotNull @NotNull InternalEnvironment environment, @Nullable @Nullable DeploymentResult latestResult, @Nullable @Nullable PlanResultKey latestVersionPlanResultKey) -
IndexedEnvironmentImpl
public IndexedEnvironmentImpl(@NotNull @NotNull InternalDeploymentProject internalDeploymentProject, @NotNull @NotNull EnvironmentStatus environmentStatus, @Nullable @Nullable PlanResultKey latestVersionPlanResultKey)
-
-
Method Details
-
getEnvironmentName
- Specified by:
getEnvironmentName
in interfaceIndexedEnvironment
- Returns:
- name of the environment
-
getEnvironmentDescription
- Specified by:
getEnvironmentDescription
in interfaceIndexedEnvironment
- Returns:
- description of the environment
-
getEnvironmentId
public long getEnvironmentId()- Specified by:
getEnvironmentId
in interfaceIndexedEnvironment
- Returns:
- if of the environment
-
getEnvironmentPosition
public int getEnvironmentPosition()- Specified by:
getEnvironmentPosition
in interfaceIndexedEnvironment
- Returns:
- visual position of the environment relative to other environments in the project
-
getProjectName
- Specified by:
getProjectName
in interfaceIndexedEnvironment
- Returns:
- name of the project the environment belongs to
-
getProjectId
public long getProjectId()- Specified by:
getProjectId
in interfaceIndexedEnvironment
- Returns:
- id of the project the environment belongs to
-
getCurrentVersionName
- Specified by:
getCurrentVersionName
in interfaceIndexedEnvironment
- Returns:
- the name of the current version on this environments
-
getCurrentVersionId
public long getCurrentVersionId()- Specified by:
getCurrentVersionId
in interfaceIndexedEnvironment
- Returns:
- the id of the current version on this environments, may be -1 if never deployed to OR if versino was deleted
-
getCurrentVersionPlanResultKey
- Specified by:
getCurrentVersionPlanResultKey
in interfaceIndexedEnvironment
- Returns:
- the plan result key of the result that the version, currently on this environment, was created from.
-
getCurrentState
- Specified by:
getCurrentState
in interfaceIndexedEnvironment
-
getLastDeployedDate
- Specified by:
getLastDeployedDate
in interfaceIndexedEnvironment
- Returns:
- the date at which environment was last deployed to
-