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 allEnvironmentdefined in the system without filling in operations permitted for the user.OperationsgetAvailableOperations(@NotNull InternalEnvironment environmentStub)OperationsgetAvailableOperations(@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:InternalEnvironmentServiceRetrieve allEnvironmentdefined in the system without filling in operations permitted for the user.- Specified by:
getAllEnvironmentsNoUserContextin interfaceInternalEnvironmentService
-
getEnvironmentsForDeploymentProject
@NotNull public @NotNull List<EnvironmentStub> getEnvironmentsForDeploymentProject(long deploymentProjectId)
Description copied from interface:InternalEnvironmentServiceGet all environments for a particular deployment project. Does not validate deployment project actually exists. Operations are lazily initialised.- Specified by:
getEnvironmentsForDeploymentProjectin 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:InternalEnvironmentServiceGet all environments for a particular deployment project. Does not validate deployment project actually exists.- Specified by:
getEnvironmentsForDeploymentProjectin 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:
getAvailableOperationsin interfaceInternalEnvironmentService
-
getAvailableOperations
public Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub, boolean assumeCanRead)
- Specified by:
getAvailableOperationsin interfaceInternalEnvironmentService
-
-