Interface InternalEnvironmentService
- All Known Implementing Classes:
InternalEnvironmentServiceImpl
@Internal
@ExperimentalApi
public interface InternalEnvironmentService
Service to fetch
InternalEnvironment objects.
Unlike EnvironmentService, this service prioritises fetch performance over data completeness,
which might require special care on the part of the caller due to lazy loading happening on certain calls. (for instance: InternalEnvironment.getRequirementSet()
Since 11.0 you should use CachedEnvironmentService instead.- Since:
- 9.4
-
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.
-
Method Details
-
getAllEnvironmentsNoUserContext
@NotNull @NotNull List<InternalEnvironment> getAllEnvironmentsNoUserContext(int firstResult, int maxResults) Retrieve allEnvironmentdefined in the system without filling in operations permitted for the user. -
getEnvironmentsForDeploymentProject
@NotNull @NotNull List<EnvironmentStub> getEnvironmentsForDeploymentProject(long deploymentProjectId, boolean greedyOperations) Get all environments for a particular deployment project. Does not validate deployment project actually exists.- 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 @NotNull Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub) -
getAvailableOperations
@NotNull @NotNull Operations getAvailableOperations(@NotNull @NotNull InternalEnvironment environmentStub, boolean assumeCanRead)
-