Class InternalEnvironmentServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.service.internal.InternalEnvironmentServiceImpl
- All Implemented Interfaces:
InternalEnvironmentService
-
Constructor Summary
ConstructorsConstructorDescriptionInternalEnvironmentServiceImpl(@NotNull EnvironmentDao environmentDao, @NotNull com.opensymphony.xwork2.TextProvider textProvider) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<InternalEnvironment>getAllEnvironmentsNoUserContext(int firstResult, int maxResults) Retrieve allEnvironmentdefined in the system without filling in operations permitted for the user.@NotNull OperationsgetAvailableOperations(@NotNull InternalEnvironment environmentStub) @NotNull OperationsgetAvailableOperations(@NotNull InternalEnvironment environmentStub, boolean assumeCanRead) @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: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, 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
@NotNull public @NotNull Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub) - Specified by:
getAvailableOperationsin interfaceInternalEnvironmentService
-
getAvailableOperations
@NotNull public @NotNull Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub, boolean assumeCanRead) - Specified by:
getAvailableOperationsin interfaceInternalEnvironmentService
-