Class InternalEnvironmentServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.environments.service.internal.InternalEnvironmentServiceImpl
-
- All Implemented Interfaces:
InternalEnvironmentService
public class InternalEnvironmentServiceImpl extends Object implements InternalEnvironmentService
-
-
Constructor Summary
Constructors Constructor Description InternalEnvironmentServiceImpl(@NotNull EnvironmentDao environmentDao, @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<InternalEnvironment>
getAllEnvironmentsNoUserContext(int firstResult, int maxResults)
Retrieve allEnvironment
defined in the system without filling in operations permitted for the user.Operations
getAvailableOperations(@NotNull InternalEnvironment environmentStub)
Operations
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 Detail
-
InternalEnvironmentServiceImpl
@Inject public InternalEnvironmentServiceImpl(@NotNull @NotNull EnvironmentDao environmentDao, @NotNull @NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Detail
-
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
public Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub)
- Specified by:
getAvailableOperations
in interfaceInternalEnvironmentService
-
getAvailableOperations
public Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub, boolean assumeCanRead)
- Specified by:
getAvailableOperations
in interfaceInternalEnvironmentService
-
-