Class EnvironmentServiceImpl
java.lang.Object
org.qubership.atp.environments.service.direct.impl.EnvironmentServiceImpl
- All Implemented Interfaces:
EnvironmentService,IdentifiedService<Environment>
@Service("environmentService")
public class EnvironmentServiceImpl
extends Object
implements EnvironmentService
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentServiceImpl(EnvironmentRepositoryImpl environmentRepository, SystemRepositoryImpl systemRepository, ConnectionRepositoryImpl connectionRepository, SystemService systemService, SystemCategoryRepositoryImpl systemCategoryRepository, DateTimeUtil dateTimeUtil, org.qubership.atp.auth.springbootstarter.ssl.Provider<org.qubership.atp.auth.springbootstarter.entities.UserInfo> userInfoProvider, ProjectAccessService projectAccessService, org.springframework.cache.CacheManager cacheManager, ValidationStrategyFactory validationStrategyFactory) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy(UUID id, UUID projectId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, List<String> tags) create(UUID projectId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, List<String> tags) create(UUID environmentId, CreateSystemDto systemDto) createSystem(UUID environmentId, System system) Creating a system with connections.voidbooleanexistsById(UUID id) findBySearchRequest(BaseSearchRequestDto searchRequest) getAll()getByNameAndProjectId(String name, UUID projectId) getByProjectId(UUID projectId) getBySourceIdAndProjectId(UUID sourceId, UUID projectId) getConnections(UUID environmentId) getEnvironmentsByFilterRequest(EnvironmentsWithFilterRequest request, Integer page, Integer size) getGroupedByTagEnvironments(UUID projectId) getHtmlVersionByEnvironments(List<UUID> environmentIds) getProjectIdByEnvironmentId(UUID environmentId) getProjectIdBySystemId(UUID systemId) getShortSystems(UUID environmentId) getSystems(UUID environmentId) getSystems(UUID environmentId, String systemType) getSystemsV2(UUID environmentId) getSystemsV2(UUID environmentId, String systemType) replicate(UUID projectId, UUID environmentId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, UUID sourceId, List<String> tags) temporary(UUID id, List<SystemTemporaryDto> systemList) voidupdate(UUID id, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID projectId, UUID categoryId, List<String> tags) voidupdate(Environment environment) validateTaTools(ValidateTaToolsRequest request)
-
Constructor Details
-
EnvironmentServiceImpl
@Autowired public EnvironmentServiceImpl(EnvironmentRepositoryImpl environmentRepository, SystemRepositoryImpl systemRepository, ConnectionRepositoryImpl connectionRepository, SystemService systemService, SystemCategoryRepositoryImpl systemCategoryRepository, DateTimeUtil dateTimeUtil, org.qubership.atp.auth.springbootstarter.ssl.Provider<org.qubership.atp.auth.springbootstarter.entities.UserInfo> userInfoProvider, ProjectAccessService projectAccessService, org.springframework.cache.CacheManager cacheManager, ValidationStrategyFactory validationStrategyFactory) Class constructor.
-
-
Method Details
-
get
- Specified by:
getin interfaceIdentifiedService<Environment>
-
getEnvironmentNameById
- Specified by:
getEnvironmentNameByIdin interfaceEnvironmentService
-
getOrElse
- Specified by:
getOrElsein interfaceEnvironmentService
-
existsById
- Specified by:
existsByIdin interfaceIdentifiedService<Environment>
-
getAll
- Specified by:
getAllin interfaceIdentifiedService<Environment>
-
getAll
- Specified by:
getAllin interfaceEnvironmentService
-
create
@Nonnull @Transactional public Environment create(UUID projectId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, List<String> tags) - Specified by:
createin interfaceEnvironmentService
-
create
- Specified by:
createin interfaceEnvironmentService
-
replicate
@Nonnull @Transactional public Environment replicate(@Nonnull UUID projectId, @Nonnull UUID environmentId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, UUID sourceId, List<String> tags) - Specified by:
replicatein interfaceEnvironmentService
-
copy
@Transactional public Environment copy(UUID id, UUID projectId, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID categoryId, List<String> tags) - Specified by:
copyin interfaceEnvironmentService
-
createSystem
Creating a system with connections.- Specified by:
createSystemin interfaceEnvironmentService
-
temporary
- Specified by:
temporaryin interfaceEnvironmentService
-
getProjectIdBySystemId
- Specified by:
getProjectIdBySystemIdin interfaceEnvironmentService
-
getProjectIdByEnvironmentId
- Specified by:
getProjectIdByEnvironmentIdin interfaceEnvironmentService
-
getByProjectId
- Specified by:
getByProjectIdin interfaceEnvironmentService
-
getByNameAndProjectId
- Specified by:
getByNameAndProjectIdin interfaceEnvironmentService
-
findBySearchRequest
- Specified by:
findBySearchRequestin interfaceEnvironmentService- Throws:
Exception
-
update
- Specified by:
updatein interfaceEnvironmentService
-
update
@Transactional public void update(UUID id, String name, String graylogName, String description, String ssmSolutionAlias, String ssmInstanceAlias, String consulEgressConfigPath, UUID projectId, UUID categoryId, List<String> tags) - Specified by:
updatein interfaceEnvironmentService
-
delete
- Specified by:
deletein interfaceEnvironmentService
-
getSystems
- Specified by:
getSystemsin interfaceEnvironmentService
-
getSystems
- Specified by:
getSystemsin interfaceEnvironmentService
-
getShortSystems
- Specified by:
getShortSystemsin interfaceEnvironmentService
-
getSystemsV2
- Specified by:
getSystemsV2in interfaceEnvironmentService
-
getSystemsV2
- Specified by:
getSystemsV2in interfaceEnvironmentService
-
getBySourceIdAndProjectId
- Specified by:
getBySourceIdAndProjectIdin interfaceEnvironmentService
-
getByIds
- Specified by:
getByIdsin interfaceEnvironmentService
-
getHtmlVersionByEnvironments
- Specified by:
getHtmlVersionByEnvironmentsin interfaceEnvironmentService
-
validateTaTools
- Specified by:
validateTaToolsin interfaceEnvironmentService
-
getConnections
- Specified by:
getConnectionsin interfaceEnvironmentService
-
getEnvironmentsByFilterRequest
public List<Environment> getEnvironmentsByFilterRequest(EnvironmentsWithFilterRequest request, Integer page, Integer size) - Specified by:
getEnvironmentsByFilterRequestin interfaceEnvironmentService
-
getGroupedByTagEnvironments
- Specified by:
getGroupedByTagEnvironmentsin interfaceEnvironmentService
-