Class ProjectServiceImpl
java.lang.Object
org.qubership.atp.environments.service.direct.impl.ProjectServiceImpl
- All Implemented Interfaces:
IdentifiedService<Project>,ProjectService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProjectServiceImpl(ProjectRepositoryImpl projectRepository, EnvironmentRepositoryImpl environmentRepository, EnvironmentService environmentService, SystemService systemService, ConnectionService connectionService, DateTimeUtil dateTimeUtil, ContextRepository contextRepo, org.qubership.atp.auth.springbootstarter.ssl.Provider<org.qubership.atp.auth.springbootstarter.entities.UserInfo> userInfoProvider, org.qubership.atp.auth.springbootstarter.security.permissions.PolicyEnforcement policyEnforcement, ProjectAccessService projectAccessService) TODO Make javadoc documentation for this method. -
Method Summary
Modifier and TypeMethodDescriptioncreate(UUID projectId, EnvironmentDto environment, UUID categoryId) createAsIs(Project project) voidbooleanexistsById(UUID id) getAll()getAllEnvironments(UUID projectId) getConnectionNames(UUID projectId) getConnections(UUID projectId) getEnvironments(UUID projectId) getProjectsByHost(String host) getProjectsByRequest(ProjectSearchRequest request) getProjectWithSpecifiedEnvironments(UUID projectId, List<UUID> environmentIds) getShortByName(String name) getShortEnvironments(UUID projectId) getShortTools(UUID projectId) getSystemNames(UUID projectId) getSystemsByProjectId(UUID projectId) getSystemsByProjectIdAndCategoryName(UUID projectId, String categoryName) getTemporaryEnvironments(UUID projectId) voidvoid
-
Field Details
-
PROJECTS_CACHE_NAME
- See Also:
-
-
Constructor Details
-
ProjectServiceImpl
@Autowired public ProjectServiceImpl(ProjectRepositoryImpl projectRepository, EnvironmentRepositoryImpl environmentRepository, EnvironmentService environmentService, SystemService systemService, ConnectionService connectionService, DateTimeUtil dateTimeUtil, ContextRepository contextRepo, org.qubership.atp.auth.springbootstarter.ssl.Provider<org.qubership.atp.auth.springbootstarter.entities.UserInfo> userInfoProvider, org.qubership.atp.auth.springbootstarter.security.permissions.PolicyEnforcement policyEnforcement, ProjectAccessService projectAccessService) TODO Make javadoc documentation for this method.
-
-
Method Details
-
get
- Specified by:
getin interfaceIdentifiedService<Project>
-
getShort
- Specified by:
getShortin interfaceProjectService
-
getShortByName
- Specified by:
getShortByNamein interfaceProjectService
-
getProjectsByRequest
- Specified by:
getProjectsByRequestin interfaceProjectService
-
existsById
- Specified by:
existsByIdin interfaceIdentifiedService<Project>
-
getAll
- Specified by:
getAllin interfaceIdentifiedService<Project>
-
getAllShort
- Specified by:
getAllShortin interfaceProjectService
-
create
- Specified by:
createin interfaceProjectService
-
create
@Nonnull @Transactional public Environment create(UUID projectId, EnvironmentDto environment, UUID categoryId) - Specified by:
createin interfaceProjectService
-
replicate
@Nonnull public Project replicate(@Nonnull UUID projectId, @Nonnull String name, String shortName, String description, Long created) throws org.qubership.atp.auth.springbootstarter.exceptions.AtpException - Specified by:
replicatein interfaceProjectService- Throws:
org.qubership.atp.auth.springbootstarter.exceptions.AtpException
-
createAsIs
- Specified by:
createAsIsin interfaceProjectService
-
copy
@Nonnull @Transactional public Project copy(UUID id, String name, String shortName, String description) - Specified by:
copyin interfaceProjectService
-
update
- Specified by:
updatein interfaceProjectService
-
update
@Nonnull @CacheEvict(value="projects", key="#id") public void update(UUID id, String name, String shortName) - Specified by:
updatein interfaceProjectService
-
delete
- Specified by:
deletein interfaceProjectService
-
getEnvironments
- Specified by:
getEnvironmentsin interfaceProjectService
-
getShortEnvironments
- Specified by:
getShortEnvironmentsin interfaceProjectService
-
getTemporaryEnvironments
- Specified by:
getTemporaryEnvironmentsin interfaceProjectService
-
getAllEnvironments
- Specified by:
getAllEnvironmentsin interfaceProjectService
-
getTools
- Specified by:
getToolsin interfaceProjectService
-
getShortTools
- Specified by:
getShortToolsin interfaceProjectService
-
getSystemsByProjectId
- Specified by:
getSystemsByProjectIdin interfaceProjectService
-
getSystemsByProjectIdAndCategoryName
- Specified by:
getSystemsByProjectIdAndCategoryNamein interfaceProjectService
-
getConnections
- Specified by:
getConnectionsin interfaceProjectService
-
getSystemNames
- Specified by:
getSystemNamesin interfaceProjectService
-
getConnectionNames
- Specified by:
getConnectionNamesin interfaceProjectService
-
getProjectsByHost
- Specified by:
getProjectsByHostin interfaceProjectService
-
getProjectWithSpecifiedEnvironments
- Specified by:
getProjectWithSpecifiedEnvironmentsin interfaceProjectService
-