Class InternalEnvironmentServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.service.internal.InternalEnvironmentServiceImpl
- All Implemented Interfaces:
InternalEnvironmentService
-
Constructor Summary
ConstructorDescriptionInternalEnvironmentServiceImpl
(@NotNull EnvironmentDao environmentDao, @NotNull com.opensymphony.xwork2.TextProvider textProvider) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<InternalEnvironment>
getAllEnvironmentsNoUserContext
(int firstResult, int maxResults) Retrieve allEnvironment
defined in the system without filling in operations permitted for the user.getAvailableOperations
(@NotNull InternalEnvironment environmentStub) getAvailableOperations
(@NotNull InternalEnvironment environmentStub, boolean assumeCanRead) @NotNull List<EnvironmentStub>
getEnvironmentsForDeploymentProject
(long deploymentProjectId) Get all environments for a particular deployment project.@NotNull List<EnvironmentStub>
getEnvironmentsForDeploymentProject
(long deploymentProjectId, boolean greedyOperations) Get all environments for a particular deployment project.
-
Constructor Details
-
InternalEnvironmentServiceImpl
@Inject public InternalEnvironmentServiceImpl(@NotNull @NotNull EnvironmentDao environmentDao, @NotNull @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Details
-
getAllEnvironmentsNoUserContext
@NotNull public @NotNull List<InternalEnvironment> getAllEnvironmentsNoUserContext(int firstResult, int maxResults) Description copied from interface:InternalEnvironmentService
Retrieve allEnvironment
defined in the system without filling in operations permitted for the user.- Specified by:
getAllEnvironmentsNoUserContext
in interfaceInternalEnvironmentService
-
getEnvironmentsForDeploymentProject
@NotNull public @NotNull List<EnvironmentStub> getEnvironmentsForDeploymentProject(long deploymentProjectId) Description copied from interface:InternalEnvironmentService
Get all environments for a particular deployment project. Does not validate deployment project actually exists. Operations are lazily initialised.- Specified by:
getEnvironmentsForDeploymentProject
in interfaceInternalEnvironmentService
- Parameters:
deploymentProjectId
- of the deployment project to get environments for- Returns:
- List of environments for a single deployment project. Sorted by position, name.
-
getEnvironmentsForDeploymentProject
@NotNull public @NotNull List<EnvironmentStub> getEnvironmentsForDeploymentProject(long deploymentProjectId, boolean greedyOperations) Description copied from interface:InternalEnvironmentService
Get all environments for a particular deployment project. Does not validate deployment project actually exists.- Specified by:
getEnvironmentsForDeploymentProject
in interfaceInternalEnvironmentService
- Parameters:
deploymentProjectId
- of the deployment project to get environments forgreedyOperations
- if true, the returned objects will have their 'operations' field initialised, lazy suppliers otherwise- Returns:
- List of environments for a single deployment project. Sorted by position, name.
-
getAvailableOperations
- Specified by:
getAvailableOperations
in interfaceInternalEnvironmentService
-
getAvailableOperations
public Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub, boolean assumeCanRead) - Specified by:
getAvailableOperations
in interfaceInternalEnvironmentService
-