Class CompoundConfigurationService
java.lang.Object
org.qubership.atp.mia.service.history.impl.AbstractEntityHistoryService<CompoundConfiguration>
org.qubership.atp.mia.service.configuration.CompoundConfigurationService
- All Implemented Interfaces:
EntityHistoryService
@Service
public class CompoundConfigurationService
extends AbstractEntityHistoryService<CompoundConfiguration>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCompound(ProjectConfiguration projectConfiguration, CompoundDto compoundDto) Add compound.compoundsDto(List<CompoundConfiguration> compoundConfigurationList) Map list of CompoundConfiguration to list of CompoundShortDto.deleteCompound(ProjectConfiguration projectConfiguration, UUID compoundId) Delete compound.static LinkedList<CompoundConfiguration> filterCompounds(List<CompoundConfiguration> compounds, List<UUID> compoundsUuid) Filter compounds by UUIDs.getCompoundById(ProjectConfiguration projectConfiguration, UUID compoundId) Get compound by ID.restore(DateAuditorEntity entity) toDto(CompoundConfiguration compoundConfiguration) Map list of CompoundConfiguration to list of CompoundDto.updateCompound(ProjectConfiguration projectConfiguration, CompoundDto compoundDto) Update compound.
-
Constructor Details
-
CompoundConfigurationService
public CompoundConfigurationService()
-
-
Method Details
-
addCompound
Add compound.- Parameters:
projectConfiguration- projectConfigurationcompoundDto-CompoundDto- Returns:
CompoundDto
-
compoundsDto
Map list of CompoundConfiguration to list of CompoundShortDto.- Parameters:
compoundConfigurationList- list ofCompoundConfiguration- Returns:
- list of
CompoundShortDto
-
deleteCompound
public List<CompoundShortDto> deleteCompound(ProjectConfiguration projectConfiguration, UUID compoundId) Delete compound.- Parameters:
projectConfiguration- projectConfigurationcompoundId- compound ID- Returns:
- list of
CompoundDto
-
filterCompounds
public static LinkedList<CompoundConfiguration> filterCompounds(List<CompoundConfiguration> compounds, List<UUID> compoundsUuid) Filter compounds by UUIDs.- Parameters:
compounds- compoundscompoundsUuid- compounds UUIDs to filter- Returns:
- filtered compound.
-
toDto
Map list of CompoundConfiguration to list of CompoundDto.- Parameters:
compoundConfiguration- list ofCompoundConfiguration- Returns:
- list of
CompoundDto
-
updateCompound
public CompoundDto updateCompound(ProjectConfiguration projectConfiguration, CompoundDto compoundDto) Update compound.- Parameters:
projectConfiguration- projectConfigurationcompoundDto-CompoundDto- Returns:
CompoundDto
-
getCompoundById
public CompoundConfiguration getCompoundById(ProjectConfiguration projectConfiguration, UUID compoundId) Get compound by ID.- Parameters:
compoundId- project compound ID- Returns:
SectionConfiguration
-
get
- Specified by:
getin interfaceEntityHistoryService- Specified by:
getin classAbstractEntityHistoryService<CompoundConfiguration>
-
restore
- Specified by:
restorein interfaceEntityHistoryService- Specified by:
restorein classAbstractEntityHistoryService<CompoundConfiguration>
-