Class SectionConfigurationService
java.lang.Object
org.qubership.atp.mia.service.history.impl.AbstractEntityHistoryService<SectionConfiguration>
org.qubership.atp.mia.service.configuration.SectionConfigurationService
- All Implemented Interfaces:
EntityHistoryService
@Service
public class SectionConfigurationService
extends AbstractEntityHistoryService<SectionConfiguration>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSection(ProjectConfiguration projectConfiguration, SectionDto sectionDto) Add section.deleteSection(ProjectConfiguration projectConfiguration, UUID sectionId) Delete section.static List<SectionConfiguration> filterSections(List<SectionConfiguration> sections, List<UUID> sectionsUuid) Filter sections by UUIDs.static List<SectionConfiguration> filterSectionsByIdOrSourceId(List<SectionConfiguration> sections, List<UUID> sectionsUuid) Filter sections by ID or source ID.findSectionByPath(UUID projectId, String miaPath) find section from miaPath, if section is not present then create too.restore(DateAuditorEntity entity) sectionsDto(List<SectionConfiguration> sectionConfigurationList) Map list of SectionConfiguration to list of SectionsDto.updateSection(ProjectConfiguration projectConfiguration, SectionDto sectionDto) Update section.
-
Constructor Details
-
SectionConfigurationService
public SectionConfigurationService()
-
-
Method Details
-
addSection
public List<SectionsDto> addSection(ProjectConfiguration projectConfiguration, SectionDto sectionDto) Add section.- Parameters:
projectConfiguration- projectConfigurationsectionDto-SectionDto- Returns:
- list of
SectionDtofrom root
-
deleteSection
Delete section.- Parameters:
projectConfiguration- projectConfigurationsectionId- section ID- Returns:
- list of
SectionDtofrom root
-
filterSections
public static List<SectionConfiguration> filterSections(List<SectionConfiguration> sections, List<UUID> sectionsUuid) Filter sections by UUIDs.- Parameters:
sections- section to be filtersectionsUuid- UUIDs of sections to filter- Returns:
- filtered sections.
-
filterSectionsByIdOrSourceId
public static List<SectionConfiguration> filterSectionsByIdOrSourceId(List<SectionConfiguration> sections, List<UUID> sectionsUuid) Filter sections by ID or source ID.- Parameters:
sections- section to be filtersectionsUuid- UUIDs of sections to filter- Returns:
- filtered sections.
-
findSectionByPath
find section from miaPath, if section is not present then create too.- Parameters:
projectId- project ID
-
sectionsDto
Map list of SectionConfiguration to list of SectionsDto.- Parameters:
sectionConfigurationList- list ofSectionConfiguration- Returns:
- list of
SectionsDto
-
updateSection
public List<SectionsDto> updateSection(ProjectConfiguration projectConfiguration, SectionDto sectionDto) Update section.- Parameters:
projectConfiguration- projectConfigurationsectionDto-SectionDto- Returns:
- list of
SectionDtofrom root
-
get
- Specified by:
getin interfaceEntityHistoryService- Specified by:
getin classAbstractEntityHistoryService<SectionConfiguration>
-
restore
- Specified by:
restorein interfaceEntityHistoryService- Specified by:
restorein classAbstractEntityHistoryService<SectionConfiguration>
-