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
ConstructorsConstructorDescriptionIndexedEnvironmentImpl(@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:
getEnvironmentNamein interfaceIndexedEnvironment- Returns:
- name of the environment
-
getEnvironmentDescription
- Specified by:
getEnvironmentDescriptionin interfaceIndexedEnvironment- Returns:
- description of the environment
-
getEnvironmentId
public long getEnvironmentId()- Specified by:
getEnvironmentIdin interfaceIndexedEnvironment- Returns:
- if of the environment
-
getEnvironmentPosition
public int getEnvironmentPosition()- Specified by:
getEnvironmentPositionin interfaceIndexedEnvironment- Returns:
- visual position of the environment relative to other environments in the project
-
getProjectName
- Specified by:
getProjectNamein interfaceIndexedEnvironment- Returns:
- name of the project the environment belongs to
-
getProjectId
public long getProjectId()- Specified by:
getProjectIdin interfaceIndexedEnvironment- Returns:
- id of the project the environment belongs to
-
getCurrentVersionName
- Specified by:
getCurrentVersionNamein interfaceIndexedEnvironment- Returns:
- the name of the current version on this environments
-
getCurrentVersionId
public long getCurrentVersionId()- Specified by:
getCurrentVersionIdin 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:
getCurrentVersionPlanResultKeyin interfaceIndexedEnvironment- Returns:
- the plan result key of the result that the version, currently on this environment, was created from.
-
getCurrentState
- Specified by:
getCurrentStatein interfaceIndexedEnvironment
-
getLastDeployedDate
- Specified by:
getLastDeployedDatein interfaceIndexedEnvironment- Returns:
- the date at which environment was last deployed to
-