From ba7d491a5f29b1c8d481ea1f4dc0c9f0b1d7ebdc Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Fri, 5 Jul 2024 17:41:32 +0530 Subject: [PATCH 1/5] fix: java package name --- AUTHORS.pdf | Bin 0 -> 1720 bytes DEPENDENCIES_BACKEND | 4 +- INSTALL.pdf | Bin 0 -> 4020 bytes .../DemandCapacityMgmtBackendApplication.java | 2 +- .../appinfo/InfoConfiguration.java | 2 +- .../config/GlobalExceptionHandler.java | 2 +- .../config/openapi/OpenApiConfig.java | 9 +- .../controllers/AddressBookController.java | 19 +- .../controllers/AdminRulesetController.java | 21 +- .../controllers/AlertController.java | 16 +- .../CapacityGroupRuleSetController.java | 11 +- .../controllers/CapacityGroupsController.java | 15 +- .../controllers/CompanyController.java | 13 +- .../controllers/CompanyRuleSetController.java | 10 +- .../controllers/DemandCategoryController.java | 11 +- .../controllers/DemandController.java | 13 +- .../controllers/EDCController.java | 12 +- .../controllers/FavoriteController.java | 14 +- .../controllers/LoggingHistoryController.java | 23 +- .../controllers/SecurityTokenController.java | 10 +- .../controllers/StatusesController.java | 12 +- .../controllers/UnitMeasureController.java | 13 +- .../controllers/UserController.java | 14 +- .../WeekBasedCapacityGroupController.java | 18 +- .../WeekBasedMaterialController.java | 18 +- .../controllers/YearReportController.java | 34 +- .../entities/AddressBookRecordEntity.java | 5 +- .../entities/AlertEntity.java | 9 +- .../entities/ArchivedLogEntity.java | 11 +- .../entities/CapacityGroupEntity.java | 7 +- .../entities/CapacityGroupRuleSetEntity.java | 10 +- .../entities/CapacityTimeSeries.java | 5 +- .../entities/CompanyEntity.java | 5 +- .../entities/CompanyRuleSetEntity.java | 5 +- .../entities/DedicatedAlertEntity.java | 11 +- .../entities/DemandCategoryEntity.java | 5 +- .../entities/DemandSeries.java | 7 +- .../entities/DemandSeriesValues.java | 5 +- .../entities/FavoriteEntity.java | 9 +- .../entities/LinkDemandEntity.java | 5 +- ...nkedCapacityGroupMaterialDemandEntity.java | 5 +- .../entities/LoggingHistoryEntity.java | 11 +- .../entities/MaterialDemandEntity.java | 9 +- .../entities/Rule.java | 2 +- .../entities/StatusesEntity.java | 5 +- .../entities/TriggeredAlertEntity.java | 9 +- .../entities/UnitMeasureEntity.java | 5 +- .../entities/UserEntity.java | 7 +- .../WeekBasedCapacityGroupEntity.java | 9 +- .../WeekBasedMaterialDemandEntity.java | 9 +- .../bottlenecks/CategoryDeltaDto.java | 2 +- .../entities/bottlenecks/MonthReportDto.java | 6 +- .../entities/bottlenecks/WeekReportDto.java | 7 +- .../entities/bottlenecks/YearReportDto.java | 5 +- .../converters/ListToStringConverter.java | 6 +- .../converters/MaterialDemandConverter.java | 6 +- .../WeekBasedCapacityGroupConverter.java | 7 +- .../WeekBasedMaterialConverter.java | 8 +- .../entities/enums/AlertThresholdType.java | 2 +- .../enums/AlertsMonitoredObjects.java | 2 +- .../entities/enums/CapacityDeviation.java | 2 +- .../entities/enums/CapacityGroupStatus.java | 2 +- .../entities/enums/CompanyType.java | 2 +- .../entities/enums/EventObjectType.java | 2 +- .../entities/enums/EventStatus.java | 2 +- .../entities/enums/EventType.java | 2 +- .../entities/enums/FavoriteType.java | 2 +- .../entities/enums/MaterialDemandStatus.java | 2 +- .../entities/enums/Role.java | 2 +- .../entities/enums/StatusColor.java | 2 +- .../enums/UserSpecificEventStatus.java | 2 +- .../entities/json/entities/Capacity.java | 2 +- .../json/entities/DemandCategory.java | 2 +- .../json/entities/LikedDemandSeries.java | 2 +- .../entities/json/entities/User.java | 4 +- .../json/entities/WeekBasedCapacityGroup.java | 5 +- .../entities/WeekBasedMaterialDemand.java | 5 +- .../json/entities/WeekDemandSeries.java | 5 +- .../json/entities/WeekDemandSeriesValues.java | 5 +- .../exceptions/base/CustomException.java | 2 +- .../exceptions/base/ExceptionResponse.java | 2 +- .../base/ExceptionResponseImpl.java | 2 +- .../handler/RestExceptionHandler.java | 9 +- .../exceptions/type/BadRequestException.java | 4 +- .../type/InternalServerErrorException.java | 4 +- .../exceptions/type/NotFoundException.java | 4 +- .../models/MaterialCapacityQuantity.java | 2 +- .../repositories/AddressBookRepository.java | 9 +- .../repositories/AlertsRepository.java | 8 +- .../repositories/ArchivedLogsRepository.java | 4 +- .../repositories/CapacityGroupRepository.java | 9 +- .../CapacityGroupRuleSetRepository.java | 9 +- .../repositories/CompanyRepository.java | 9 +- .../CompanyRuleSetRepository.java | 9 +- .../DemandCategoryRepository.java | 7 +- .../repositories/DemandSeriesRepository.java | 19 +- .../repositories/FavoriteRepository.java | 11 +- .../repositories/LinkDemandRepository.java | 7 +- ...CapacityGroupMaterialDemandRepository.java | 11 +- .../LoggingHistoryRepository.java | 7 +- .../MaterialDemandRepository.java | 11 +- .../repositories/RulesetRepository.java | 4 +- .../repositories/StatusesRepository.java | 7 +- .../TriggeredAlertsRepository.java | 9 +- .../repositories/UnitMeasureRepository.java | 7 +- .../repositories/UserRepository.java | 7 +- .../WeekBasedCapacityGroupRepository.java | 7 +- .../WeekBasedMaterialDemandRepository.java | 7 +- ...ekBasedCapacityGroupSchedulerReceived.java | 4 +- .../WeekBasedMaterialSchedulerReceived.java | 7 +- .../send/WeekBasedCapacityGroupScheduler.java | 4 +- .../send/WeekBasedMaterialScheduler.java | 5 +- .../security/AppSecurityConfigProperties.java | 2 +- .../security/SecurityConfig.java | 7 +- .../security/WebClientConfig.java | 5 +- .../services/AddressBookService.java | 7 +- .../services/AlertService.java | 9 +- .../services/BottleneckManager.java | 5 +- .../services/CapacityGroupRuleSetService.java | 6 +- .../services/CapacityGroupService.java | 7 +- .../services/CompanyRuleSetService.java | 6 +- .../services/CompanyService.java | 7 +- .../services/DemandCategoryService.java | 7 +- .../services/DemandService.java | 9 +- .../services/EDCService.java | 9 +- .../services/FavoriteService.java | 8 +- .../services/GoldenRecordManager.java | 6 +- .../services/LinkDemandService.java | 5 +- .../services/LoggingHistoryService.java | 7 +- .../services/RulesetService.java | 9 +- .../services/SecurityTokenService.java | 6 +- .../services/StatusesService.java | 6 +- .../services/UnityOfMeasureService.java | 7 +- .../services/UserOperationsService.java | 7 +- .../WeekBasedCapacityGroupService.java | 11 +- .../services/WeekBasedMaterialService.java | 9 +- .../services/impl/AddressBookServiceImpl.java | 21 +- .../services/impl/AlertServiceImpl.java | 293 +++++++++++++++++ .../services/impl/BottleneckManagerImpl.java | 11 +- .../impl/CapacityGroupRuleSetServiceImpl.java | 17 +- .../impl/CapacityGroupServiceImpl.java | 40 +-- .../impl/CompanyRuleSetServiceImpl.java | 17 +- .../services/impl/CompanyServiceImpl.java | 28 +- .../impl/DemandCategoryServiceImpl.java | 19 +- .../services/impl/DemandServiceImpl.java | 273 +++++++--------- .../services/impl/EDCServiceImpl.java | 36 +-- .../services/impl/FavoriteServiceImpl.java | 24 +- .../impl/GoldenRecordManagerImpl.java | 13 +- .../services/impl/LinkDemandServiceImpl.java | 62 ++-- .../impl/LoggingHistoryServiceImpl.java | 51 ++- .../services/impl/RulesetServiceImpl.java | 21 +- .../impl/SecurityTokenServiceImpl.java | 41 ++- .../services/impl/StatusesServiceImpl.java | 20 +- .../impl/UnityOfMeasureServiceImpl.java | 19 +- .../impl/UserOperationsServiceImpl.java | 26 +- .../WeekBasedCapacityGroupServiceImpl.java | 121 ++++--- .../impl/WeekBasedMaterialServiceImpl.java | 145 ++++----- .../utils/BottleneckDetectorUtil.java | 137 ++++---- .../utils/CorsConfig.java | 2 +- .../utils/DataConverterUtil.java | 14 +- .../utils/UUIDUtil.java | 2 +- .../utils/UserUtil.java | 10 +- .../services/impl/AlertServiceImpl.java | 302 ------------------ demand-capacity-mgmt-specification/pom.xml | 10 +- .../src/main/resources/swagger.properties | 4 +- 165 files changed, 1384 insertions(+), 1378 deletions(-) create mode 100644 AUTHORS.pdf create mode 100644 INSTALL.pdf rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/DemandCapacityMgmtBackendApplication.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/appinfo/InfoConfiguration.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/config/GlobalExceptionHandler.java (96%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/config/openapi/OpenApiConfig.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/AddressBookController.java (77%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/AdminRulesetController.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/AlertController.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/CapacityGroupRuleSetController.java (79%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/CapacityGroupsController.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/CompanyController.java (80%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/CompanyRuleSetController.java (79%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/DemandCategoryController.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/DemandController.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/EDCController.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/FavoriteController.java (79%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/LoggingHistoryController.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/SecurityTokenController.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/StatusesController.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/UnitMeasureController.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/UserController.java (76%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/WeekBasedCapacityGroupController.java (78%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/WeekBasedMaterialController.java (78%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/controllers/YearReportController.java (59%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/AddressBookRecordEntity.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/AlertEntity.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/ArchivedLogEntity.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/CapacityGroupEntity.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/CapacityGroupRuleSetEntity.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/CapacityTimeSeries.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/CompanyEntity.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/CompanyRuleSetEntity.java (94%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/DedicatedAlertEntity.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/DemandCategoryEntity.java (94%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/DemandSeries.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/DemandSeriesValues.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/FavoriteEntity.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/LinkDemandEntity.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/LinkedCapacityGroupMaterialDemandEntity.java (96%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/LoggingHistoryEntity.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/MaterialDemandEntity.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/Rule.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/StatusesEntity.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/TriggeredAlertEntity.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/UnitMeasureEntity.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/UserEntity.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/WeekBasedCapacityGroupEntity.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/WeekBasedMaterialDemandEntity.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/bottlenecks/CategoryDeltaDto.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/bottlenecks/MonthReportDto.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/bottlenecks/WeekReportDto.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/bottlenecks/YearReportDto.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/converters/ListToStringConverter.java (90%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/converters/MaterialDemandConverter.java (79%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/converters/WeekBasedCapacityGroupConverter.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/converters/WeekBasedMaterialConverter.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/AlertThresholdType.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/AlertsMonitoredObjects.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/CapacityDeviation.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/CapacityGroupStatus.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/CompanyType.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/EventObjectType.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/EventStatus.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/EventType.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/FavoriteType.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/MaterialDemandStatus.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/Role.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/StatusColor.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/enums/UserSpecificEventStatus.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/Capacity.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/DemandCategory.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/LikedDemandSeries.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/User.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/WeekBasedCapacityGroup.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/WeekBasedMaterialDemand.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/WeekDemandSeries.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/entities/json/entities/WeekDemandSeriesValues.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/base/CustomException.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/base/ExceptionResponse.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/base/ExceptionResponseImpl.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/handler/RestExceptionHandler.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/type/BadRequestException.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/type/InternalServerErrorException.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/exceptions/type/NotFoundException.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/models/MaterialCapacityQuantity.java (97%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/AddressBookRepository.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/AlertsRepository.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/ArchivedLogsRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/CapacityGroupRepository.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/CapacityGroupRuleSetRepository.java (89%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/CompanyRepository.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/CompanyRuleSetRepository.java (89%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/DemandCategoryRepository.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/DemandSeriesRepository.java (76%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/FavoriteRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/LinkDemandRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/LinkedCapacityGroupMaterialDemandRepository.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/LoggingHistoryRepository.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/MaterialDemandRepository.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/RulesetRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/StatusesRepository.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/TriggeredAlertsRepository.java (71%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/UnitMeasureRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/UserRepository.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/WeekBasedCapacityGroupRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/repositories/WeekBasedMaterialDemandRepository.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/schedulers/received/WeekBasedMaterialSchedulerReceived.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/schedulers/send/WeekBasedCapacityGroupScheduler.java (87%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/schedulers/send/WeekBasedMaterialScheduler.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/security/AppSecurityConfigProperties.java (93%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/security/SecurityConfig.java (97%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/security/WebClientConfig.java (91%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/AddressBookService.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/AlertService.java (79%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/BottleneckManager.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/CapacityGroupRuleSetService.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/CapacityGroupService.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/CompanyRuleSetService.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/CompanyService.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/DemandCategoryService.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/DemandService.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/EDCService.java (94%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/FavoriteService.java (78%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/GoldenRecordManager.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/LinkDemandService.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/LoggingHistoryService.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/RulesetService.java (80%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/SecurityTokenService.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/StatusesService.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/UnityOfMeasureService.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/UserOperationsService.java (81%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/WeekBasedCapacityGroupService.java (77%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/WeekBasedMaterialService.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/AddressBookServiceImpl.java (82%) create mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/BottleneckManagerImpl.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/CapacityGroupRuleSetServiceImpl.java (82%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/CapacityGroupServiceImpl.java (92%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/CompanyRuleSetServiceImpl.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/CompanyServiceImpl.java (83%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/DemandCategoryServiceImpl.java (80%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/DemandServiceImpl.java (73%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/EDCServiceImpl.java (94%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/FavoriteServiceImpl.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/GoldenRecordManagerImpl.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/LinkDemandServiceImpl.java (55%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/LoggingHistoryServiceImpl.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/RulesetServiceImpl.java (86%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/SecurityTokenServiceImpl.java (88%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/StatusesServiceImpl.java (85%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/UnityOfMeasureServiceImpl.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/UserOperationsServiceImpl.java (76%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/WeekBasedCapacityGroupServiceImpl.java (58%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/services/impl/WeekBasedMaterialServiceImpl.java (55%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/utils/BottleneckDetectorUtil.java (84%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/utils/CorsConfig.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/utils/DataConverterUtil.java (89%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/utils/UUIDUtil.java (95%) rename demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/{demandcapacitymgmtbackend => backend}/utils/UserUtil.java (86%) delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AlertServiceImpl.java diff --git a/AUTHORS.pdf b/AUTHORS.pdf new file mode 100644 index 0000000000000000000000000000000000000000..31a3e33d0ee87aee13627f8a4f2b9493e148e9b6 GIT binary patch literal 1720 zcmb7FYitx%6sF~&oni~MViW>5#6C9L-I>{)$8H~6=swKS2V}dgl}*)Y_jZ|PcLrys zrQHU3DFsbMO=G3eSj($4H9(-EXj>u+KB$jUD~3X%LQN@1N+hvC8oaaYvNj|}@1J|_ zxo5s}&Ue3iCvA<*p(FJamiFuA?}jl75J0S|#d33T2k%#)gggA40&TEb^g_G{3O;2W zpbfOeA}bQ)0$9Vlue25lqr`&kf99Uf@|^5&uG-smy}eVjwqwOP>}u!u=SSAPb}%bD zXqs$1F=3XDOdkAr?!=13Yo`Y9{NY@FXR}^wTk%_JVM1Ap#XUYR4{UXouWzu;w~XG- z>zvcyu`EB~hs;Mo!iMRbP~*O!(#6iZQpyXH_A4qPhX?%WG{XG zt3~_r3H@K?8-gDmh!c8So}12}TCg~||4`%D>BKiLgH4yZM><|8JHMVP&F`u=4vdv2 zUyi?ZrmVzb?P^Zmb7J8al{W?^=H<=)dCsz5FerE2_QDb9J>M{Zq?sIjW;^ze@<5sZ_6-A=U zCCLg=FZ<@E?#>rX$FOyjQ+QAL1)|&avj5?h1FNK~L&gO{_3PZuE0i z6~*d%Qzpav%!P5RoWl7eQiZRey zg3d4!85-P*-ZF(3g@2Di;`G*4Ln)IF>oVK{sA>eH+gRb&M3nK5mKr2jgAsrvFyj6I z3{4wpPy?bqhCnJ%2N3T2%p@v)rjH~D#L!G1L6C^_nLd&*KNx4C(Vd$aN3iUJIY{w^m-v@q-zXbGsQp_ zLehdFAmfE5x~iICDKo(^Bt~+a-+RU=>Gu8Znctk{`MvM6{Gb2(yw7Xl$#JnElW2Mt ztxv8u=+PhqlJeH*+1bI4-r(j9e!dXGX2TAuFCQ;A82qh5a9lPYhQ(4oDh`n<@cAr+ zg}{n+XmBtlw+R=)B8dQtB!%E%;#sgYnC>0U!=q#v>@Jdo!cKt*utN@l9i?&sCRcqS zL9iFb#{(&J28qdlCOr9(Bsw#Q&DO&t0>VG~7e8G@VjPphE@BkNI2d0l z07fuLFdhPtnM^vHt-$3N8m1SSvBz&&@q-G3P49}0WUCn2zBPNr{@oAmWExCoWCv2k zRTa9|mzfwQb~V;_bPc?jWnCK~-*?!_yc1Sl@px+K#Wv58GMD`*-sc*6NoZ;>$;rww zT=paXKyWMnaP_;FAA79gFD2dV*?gI2Dw-wEI50vB_h=Vx>~*%b{dK(=)ibjvK2Fc5 z``}qZAK!aWPy77zt^VfyiPrb%tCRlVSO!eGn(~a}_S<%jTR|+&E%AUe2ptl zGM;Hiq{ebA3CC71rJduO-Je=gGqH=cw_|3gchyOQql_4fg$`4+8};q!D=*odsY#E> zxUykyc!3cTW+-gzPZU{zKqfa{Zl|mig#CzTK%snZ(YAsgu9e#h8aMf9JSE>?yv))& z3T|_SN!nUnFB78(w|*@+7W45`FFTB%9@CQhSG2|`)M$6zjpwNZUfU{;-M$waHBrnk zIFsaXBO{&u1sr=xAIsVz>4oul<*m~amfs+zIy!zyE>g>Lf`)Mil@o^h1 z4cuP$q%A5X0J~VSKJvFXPJA8d=a7%HXZpr zU7E3@Ws=gzpk1eaPQLq*lh?wl>ZaDj-H#Y>kMKR2yep;FD77X(ukU93-8OFGMt|Gc zw=36l>b$D)O)6eB@QPlxnCF)keZ_0_o~qIY=c>ABG}3s^6Kd67->6aZuGpEZ_iJ?qPPu<^KkdosNGwp0gpR%Ynue&kaq;}k zHTy)KiPTx4JLa@$(<639XK7}WRRm;^92+_Ib+ch=x%;l#og6KjF^&|;B>h9svsSH= zwj}||?32;uEfuqVKQu$U(|f zV(BLF@r}M&=4&dWQ_L+MrQj`7^g}Y6H~bgXulH)Y5_7JaS9WS+Y*BcgzHY+ZCgu23 zNAvgpq6PEtw$imvtU8ahxAN_$SL0ijJhUX$M$EH2_>kkVb7kCm@#_`Jm0OYG z#RQ;6#V_E}Gf}O=i|PM<^V)v=?O;6l2)?AU;X;wpta2hVtERcAXib`Ts|H=%8Ie>r z_WDm1+RUZ1Zoj2%UH-8rMzbgM{eSU!7XjdA92*KRY@ zXTDAGu_fciEC`4{*qJ!+$e?KY^V|o{cV)iY^@}%{WL^Jb%(}OeUl>3eIbiyb@0&LDW$j0khuv4p9=rFupgnI7&^)&7|MN*(z>NRwc72k=Os2Z` zN9IHGX5EQ;{z2J?bMjWVRJM#OGrLi~qV=><+glClk(ia56APw=OfwK~W(423YVR2E zxPPJJBHcH(^k&gvlX`{bRL8c8T+L~B4r%098FH+8j(gcXK;k~tX`E(Uqi1}gUGs9+ zpO(3Coa2JUMmtW3e~Pa^Ui4Rlbx#a}@40N$(~NgoZ}hp_-8s-!Sx%%r5`tcPBo?RCza# zlNHsp_|VHK$a~I2aiv~g(t7!lyT7do>f;&)EiPY`9Z+lOx8!d4iiHij7VFC{Iqdt~0UTQ!6-=sFle)R(4t2^l3A%@Xirsqs`-Xw$GH_gc<#XA&JjmXZ^x+ zI-{P9^=mpg*(Tz2g1J>qv9Imfmc#5+*Y`WUH|ZDdtC?)|v*^86eNRw*QEbB4e%I{V zx07w*(W2P)BK`ss*6i(n%B+#G;W&EY`5i-WCj1HzgcQfd>+ic)@=D0pQ7?(MU`d z1iFW%go9+Fu>cW?a4}}(1Udo<3VBN9I4Xt~g^L83^^kcmh45~upHR*Fo((#aMpBs= zRLene6!OAwxd@B+d%XZVECM3j9&Um_=6fb+RD?ufehEVbo;nPmOpdJ$7b!$IrhtS} zIpoZ7g4{p~gXJhLl1e@YMOGm*EGk0H_e@f043aG%zz}k(^r%g`NfZDw&`|;HBY+#U zF&H6PmF!{mhP991WQxL|k{H0DAhit#PdCUL4U>s6$XOzgNkxE=BO*~-Q8Q^MS48T* z7ZihOOF~pZIZ49-%P4AE3{qw=f6jcdNT$FbB996g%EutE9weam1jw$i0@$vw{_F=x z380gUNUp#K^9j47;B}B@!vY_+xV{OTj?hSe3qkOpOVpwGWiqjd|8)X~n;Qgo5CRoj z)uvT>`eK@xqDDitjy=M0u}Fd`)Yh14=Z9+;!IELT9O}{uP2|D4K&))o5mjKS7p^D_ zQ`mS(!%zwAECJ27ND>VDiX;vag=pyei*Li|_YXBYO2vYIpqMBg>Yx{k1d73m0EjhI z$cCaP!){zZt`&tuCNaS&WQalFVDWiAQTLV*hXx-7_8B{sB2Ye1u{0PSl0t*oAtopW z%hxcC!#o1o0JShH&U^|&p&@iCLPlszggFnPTT&5AYuE`KNQjm7|3`uPD+uRfax0Ol z^r~Wjcu^3UOZDSgt4TC0s7N^`)B~p~rXKS7f*5o%cvAOpy&u0f`Aq9wT!}~ek-F8tRFFsN|c-tG8XHbI4Cq? zRgM@(r+nixs6!x;Uyq|w$$ulW9p)b{M@3>xP8^KgBtj`fCKB!iyK$gEJ0X+Lq}d8l z7K?@O7<4j~Zi`SbDvC0MwkVUuVB0Zy7~lboPs1pvfQ<54e4dcU6CiXRgO5=$G8-Iz krBYB=fVV)ax9ArPBofdIlwmop$}AP|NYBE;*~3Nee+#ST0RR91 literal 0 HcmV?d00001 diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/DemandCapacityMgmtBackendApplication.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/DemandCapacityMgmtBackendApplication.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java index 3c82a060..53ce5a67 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/DemandCapacityMgmtBackendApplication.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend; +package org.eclipse.tractusx.demandcapacitymgmt.backend; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/appinfo/InfoConfiguration.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/appinfo/InfoConfiguration.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/appinfo/InfoConfiguration.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/appinfo/InfoConfiguration.java index 40e7c7bd..f67975eb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/appinfo/InfoConfiguration.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/appinfo/InfoConfiguration.java @@ -19,7 +19,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.appinfo; +package org.eclipse.tractusx.demandcapacitymgmt.backend.appinfo; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/GlobalExceptionHandler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/GlobalExceptionHandler.java similarity index 96% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/GlobalExceptionHandler.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/GlobalExceptionHandler.java index d32abb43..b77e9a1c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/GlobalExceptionHandler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/GlobalExceptionHandler.java @@ -19,7 +19,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.config; +package org.eclipse.tractusx.demandcapacitymgmt.backend.config; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.exception.ExceptionUtils; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/openapi/OpenApiConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/openapi/OpenApiConfig.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/openapi/OpenApiConfig.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/openapi/OpenApiConfig.java index 78ac19e4..7c3d2c4a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/openapi/OpenApiConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/config/openapi/OpenApiConfig.java @@ -19,7 +19,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.config.openapi; +package org.eclipse.tractusx.demandcapacitymgmt.backend.config.openapi; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; @@ -28,14 +28,15 @@ import io.swagger.v3.oas.models.security.OAuthFlows; import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.security.SecurityScheme; -import java.util.Collections; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.appinfo.InfoConfiguration; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.security.AppSecurityConfigProperties; +import org.eclipse.tractusx.demandcapacitymgmt.backend.appinfo.InfoConfiguration; +import org.eclipse.tractusx.demandcapacitymgmt.backend.security.AppSecurityConfigProperties; import org.springdoc.core.models.GroupedOpenApi; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import java.util.Collections; + @Configuration @AllArgsConstructor public class OpenApiConfig { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AddressBookController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java similarity index 77% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AddressBookController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java index f0500d7d..68defbcc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AddressBookController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java @@ -20,23 +20,22 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.AddressBookApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusesResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.AddressBookApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.AddressBookService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.AddressBookService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class AddressBookController implements AddressBookApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AdminRulesetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AdminRulesetController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java index 3056c8b6..9426d806 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AdminRulesetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java @@ -20,22 +20,23 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.RulesApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddRuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.RulesApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddRuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; -import java.util.Objects; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.RulesetService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.RulesetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; +import java.util.Objects; + @RestController @AllArgsConstructor public class AdminRulesetController implements RulesApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AlertController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AlertController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java index ad9c8cbe..cdd72798 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/AlertController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java @@ -19,19 +19,23 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.AlertsApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.api.AlertsApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.AlertRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.AlertResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.TriggeredAlertRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.TriggeredAlertResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.AlertService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.AlertService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor //@RequestMapping("/alerts") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupRuleSetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java similarity index 79% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupRuleSetController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java index 0350018e..53dfae6c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupRuleSetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java @@ -20,14 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.CgRulesetApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetResponse; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.api.CgRulesetApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetResponse; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CapacityGroupRuleSetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CapacityGroupRuleSetService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupsController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupsController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java index 867e881d..10329580 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CapacityGroupsController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java @@ -20,20 +20,21 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.CapacityGroupApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.api.CapacityGroupApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CapacityGroupService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CapacityGroupService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class CapacityGroupsController implements CapacityGroupApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java similarity index 80% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java index 8b7191aa..deea4ef3 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java @@ -20,19 +20,18 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.CompanyApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CompanyDto; -import java.util.List; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.api.CompanyApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.CompanyDto; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CompanyService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CompanyService; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class CompanyController implements CompanyApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyRuleSetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java similarity index 79% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyRuleSetController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java index 374be984..32439852 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/CompanyRuleSetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java @@ -20,13 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.CdRulesetApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.CdRulesetApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetResponse; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CompanyRuleSetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CompanyRuleSetService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandCategoryController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandCategoryController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java index b7ee6dfa..ca6e0e96 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandCategoryController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java @@ -20,17 +20,18 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.DemandCategoryApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.DemandCategoryResponse; -import java.util.List; +import eclipse.tractusx.demandcapacitymgm.specification.api.DemandCategoryApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.DemandCategoryResponse; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.DemandCategoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.DemandCategoryService; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class DemandCategoryController implements DemandCategoryApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java index b76c3867..dac5ad33 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/DemandController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java @@ -20,19 +20,20 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.DemandApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.api.DemandApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.DemandService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.DemandService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class DemandController implements DemandApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/EDCController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/EDCController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java index f91c45f2..a0d43f79 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/EDCController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java @@ -20,16 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.EdcApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; -import java.util.List; +import eclipse.tractusx.demandcapacitymgm.specification.api.EdcApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.EDCService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.EDCService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; -import reactor.core.publisher.Flux; + +import java.util.List; @RestController @AllArgsConstructor diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/FavoriteController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java similarity index 79% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/FavoriteController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java index 4130993c..281a03a3 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/FavoriteController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java @@ -20,16 +20,16 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.FavoriteApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.FavoriteRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.FavoriteResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.FavoriteApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.FavoriteRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.FavoriteResponse; import jakarta.servlet.http.HttpServletRequest; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.FavoriteType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.FavoriteService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.FavoriteType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.FavoriteService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/LoggingHistoryController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/LoggingHistoryController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java index 992d1408..38b6ee5d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/LoggingHistoryController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java @@ -20,21 +20,22 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.LoggingHistoryApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.ArchivedLoggingHistoryResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.LoggingHistoryRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.LoggingHistoryResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.LoggingHistoryApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.ArchivedLoggingHistoryResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class LoggingHistoryController implements LoggingHistoryApi { @@ -86,9 +87,9 @@ public ResponseEntity> filterLogs( String materialDemandId, String capacityGroupId ) throws Exception { - return ResponseEntity - .status(HttpStatus.OK) - .body(loggingHistoryService.filterLog(capacityGroupId, materialDemandId, event, startTime, endTime)); + return ResponseEntity.status(HttpStatus.OK).body( + loggingHistoryService.filterLog(capacityGroupId, materialDemandId, event, startTime, endTime) + ); } @Override diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/SecurityTokenController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/SecurityTokenController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java index 4a3d70e5..393cb5d1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/SecurityTokenController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java @@ -20,13 +20,13 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.KeycloakApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.IntrospectTokenResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.User; +import eclipse.tractusx.demandcapacitymgm.specification.api.KeycloakApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.IntrospectTokenResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.User; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.SecurityTokenService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.SecurityTokenService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/StatusesController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/StatusesController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java index 7aad5bbe..3d155d14 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/StatusesController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java @@ -20,15 +20,15 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.StatusesApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusesResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.StatusesApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusesResponse; import jakarta.servlet.http.HttpServletRequest; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.StatusesService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.StatusesService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UnitMeasureController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UnitMeasureController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java index 7f622d3e..2c939ce1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UnitMeasureController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.UnitMeasureApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UnitMeasure; -import java.util.List; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.api.UnitMeasureApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.UnitMeasure; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.UnityOfMeasureService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.UnityOfMeasureService; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; +import java.util.UUID; + @RestController @AllArgsConstructor public class UnitMeasureController implements UnitMeasureApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UserController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java similarity index 76% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UserController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java index d7736f87..6174d474 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/UserController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java @@ -19,19 +19,19 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.UserOperationsApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.UserOperationsApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.UserRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.UserResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.UserOperationsService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.UserOperationsService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class UserController implements UserOperationsApi { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedCapacityGroupController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java similarity index 78% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedCapacityGroupController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java index 0e5afead..2a49c284 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedCapacityGroupController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java @@ -20,20 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.WeekBasedCapacityGroupApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupDtoRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupDtoResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.WeekBasedCapacityGroupApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupDtoRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupDtoResponse; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedCapacityGroupService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedCapacityGroupService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class WeekBasedCapacityGroupController implements WeekBasedCapacityGroupApi { @@ -43,7 +44,8 @@ public class WeekBasedCapacityGroupController implements WeekBasedCapacityGroupA @Override public ResponseEntity> getWeekBasedCapacityGroup() { - List capacityGroupDefaultViewResponseList = weekBasedCapacityGroupService.getWeekBasedCapacityGroups(); + List capacityGroupDefaultViewResponseList = + weekBasedCapacityGroupService.getWeekBasedCapacityGroups(); return ResponseEntity.status(HttpStatus.OK).body(capacityGroupDefaultViewResponseList); } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedMaterialController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java similarity index 78% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedMaterialController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java index 1e5bc9e4..d2b7ba0c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/WeekBasedMaterialController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java @@ -20,20 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.WeekBasedMaterialDemandApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequestDto; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandResponseDto; +import eclipse.tractusx.demandcapacitymgm.specification.api.WeekBasedMaterialDemandApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandRequestDto; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandResponseDto; import jakarta.servlet.http.HttpServletRequest; -import java.util.List; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedMaterialService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedMaterialService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @AllArgsConstructor public class WeekBasedMaterialController implements WeekBasedMaterialDemandApi { @@ -43,7 +44,8 @@ public class WeekBasedMaterialController implements WeekBasedMaterialDemandApi { @Override public ResponseEntity> getWeekBasedMaterialDemand() { - List capacityGroupDefaultViewResponseList = weekBasedMaterialService.getWeekBasedMaterialDemands(); + List capacityGroupDefaultViewResponseList = + weekBasedMaterialService.getWeekBasedMaterialDemands(); return ResponseEntity.status(HttpStatus.OK).body(capacityGroupDefaultViewResponseList); } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/YearReportController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java similarity index 59% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/YearReportController.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java index 5539f140..8132f067 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/controllers/YearReportController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java @@ -20,15 +20,15 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.controllers; +package org.eclipse.tractusx.demandcapacitymgmt.backend.controllers; -import eclipse.tractusx.demand_capacity_mgmt_specification.api.YearReportApi; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.YearReportRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.YearReportResponse; +import eclipse.tractusx.demandcapacitymgm.specification.api.YearReportApi; +import eclipse.tractusx.demandcapacitymgm.specification.model.YearReportRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.YearReportResponse; import jakarta.servlet.http.HttpServletRequest; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl.BottleneckManagerImpl; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl.BottleneckManagerImpl; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; @@ -42,17 +42,15 @@ public class YearReportController implements YearReportApi { @Override public ResponseEntity generateYearReport(YearReportRequest yearReportRequest) throws Exception { - return ResponseEntity - .status(200) - .body( - bottleneckManager.generateYearReport( - UserUtil.getUserID(request), - yearReportRequest.getCgID(), - yearReportRequest.getStartDate(), - yearReportRequest.getEndDate(), - yearReportRequest.getRuled(), - yearReportRequest.getPercentage() - ) - ); + return ResponseEntity.status(200).body( + bottleneckManager.generateYearReport( + UserUtil.getUserID(request), + yearReportRequest.getCgID(), + yearReportRequest.getStartDate(), + yearReportRequest.getEndDate(), + yearReportRequest.getRuled(), + yearReportRequest.getPercentage() + ) + ); } } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AddressBookRecordEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AddressBookRecordEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java index b6c07517..b3cc3d1e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AddressBookRecordEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "address_book") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AlertEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java index 912143a3..4e0100e9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/AlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java @@ -19,14 +19,15 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; +import lombok.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertThresholdType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertsMonitoredObjects; + import java.util.List; import java.util.UUID; -import lombok.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertThresholdType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertsMonitoredObjects; @Entity @Table(name = "alerts") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/ArchivedLogEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/ArchivedLogEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java index 1df4206d..5d3bdbfe 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/ArchivedLogEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.annotation.Nullable; import jakarta.persistence.*; -import java.sql.Timestamp; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; + +import java.sql.Timestamp; +import java.util.UUID; @Entity @Table(name = "archived_log") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java index 3302ffbd..a65d749e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java @@ -20,14 +20,15 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; +import lombok.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; + import java.time.LocalDate; import java.util.List; import java.util.UUID; -import lombok.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; @Entity @Table(name = "capacity_group") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupRuleSetEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupRuleSetEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java index f8b11caa..b32ab6fb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityGroupRuleSetEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java @@ -20,15 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; -import jakarta.persistence.*; -import java.util.UUID; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "capacity_group_ruleset") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityTimeSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityTimeSeries.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java index 3cef4e99..68fbf9aa 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CapacityTimeSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.*; +import java.util.UUID; + @Entity @Table(name = "capacity_time_series") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java index f4057937..f02c7ced 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "company_base_data") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyRuleSetEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java similarity index 94% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyRuleSetEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java index e7c9fd2c..451fd3bb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CompanyRuleSetEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.Table; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "company_ruleset") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DedicatedAlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DedicatedAlertEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java index f4e46404..8974a0c0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DedicatedAlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java @@ -20,13 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; + import java.util.UUID; -import lombok.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; @Entity @Table(name = "dedicated_alerts") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandCategoryEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java similarity index 94% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandCategoryEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java index e981d9a4..4f15e312 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandCategoryEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "demand_category") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeries.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java index 39eba708..b7b47f42 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import jakarta.persistence.*; +import lombok.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters.ListToStringConverter; + import java.util.List; import java.util.UUID; -import lombok.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters.ListToStringConverter; @Entity @Table(name = "demand_series") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeriesValues.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeriesValues.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java index c69e3238..7905f7c9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandSeriesValues.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; +import lombok.*; + import java.time.LocalDate; import java.util.UUID; -import lombok.*; @Entity @Table(name = "demand_series_values") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/FavoriteEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/FavoriteEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java index 9ff16b42..c9ee730c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/FavoriteEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java @@ -20,16 +20,17 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.sql.Timestamp; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.FavoriteType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.FavoriteType; + +import java.sql.Timestamp; +import java.util.UUID; @Entity @Table(name = "favorites") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkDemandEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java index b83e06c6..0ef6d269 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "link_demand") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkedCapacityGroupMaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java similarity index 96% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkedCapacityGroupMaterialDemandEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java index 395754c6..5697316e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LinkedCapacityGroupMaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "link_capacitygroup_demandseries") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LoggingHistoryEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LoggingHistoryEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java index 6525299f..fd2db3f2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/LoggingHistoryEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.annotation.Nullable; import jakarta.persistence.*; -import java.sql.Timestamp; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; + +import java.sql.Timestamp; +import java.util.UUID; @Entity @Table(name = "logging_history") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/MaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/MaterialDemandEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java index 5b99c006..2557c5df 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/MaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java @@ -20,17 +20,18 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import jakarta.persistence.*; +import lombok.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.MaterialDemandStatus; + import java.time.LocalDateTime; import java.util.List; import java.util.UUID; -import lombok.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.MaterialDemandStatus; @Entity @Cacheable(false) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/Rule.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/Rule.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java index 69367da4..af87fdb7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/Rule.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/StatusesEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/StatusesEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java index 8b35d54a..49d18ef5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/StatusesEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "statuses") @Builder diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/TriggeredAlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/TriggeredAlertEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java index a00986b3..57eb0150 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/TriggeredAlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java @@ -19,16 +19,17 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertThresholdType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertsMonitoredObjects; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertThresholdType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertsMonitoredObjects; + +import java.util.UUID; @Entity @Table(name = "triggered_alerts") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UnitMeasureEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UnitMeasureEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java index 83d844f1..c92ab7a5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UnitMeasureEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.UUID; + @Entity @Table(name = "unit_of_measure") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UserEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UserEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java index f99547ff..4abc132e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/UserEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java @@ -20,15 +20,16 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; + +import java.util.UUID; @Entity @Table(name = "dcm_users") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedCapacityGroupEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedCapacityGroupEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java index 620c4141..082b2c9e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedCapacityGroupEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupRequest; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters.WeekBasedCapacityGroupConverter; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters.WeekBasedCapacityGroupConverter; import org.hibernate.annotations.ColumnTransformer; +import java.util.UUID; + @Entity @Table(name = "week_based_capacity") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedMaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedMaterialDemandEntity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java index e92ce0d8..d97e4990 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/WeekBasedMaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandRequest; import jakarta.persistence.*; -import java.util.UUID; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters.WeekBasedMaterialConverter; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters.WeekBasedMaterialConverter; import org.hibernate.annotations.ColumnTransformer; +import java.util.UUID; + @Entity @Table(name = "week_based_material_demand") @Data diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/CategoryDeltaDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/CategoryDeltaDto.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java index e7f505a2..47877d48 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/CategoryDeltaDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/MonthReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/MonthReportDto.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java index 008579cb..656ff5a1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/MonthReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java @@ -20,15 +20,15 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks; -import jakarta.persistence.*; -import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.List; + @Data @Builder @NoArgsConstructor diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/WeekReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/WeekReportDto.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java index c1d5afe2..679923f9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/WeekReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java @@ -20,14 +20,15 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks; -import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.DemandSeries; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DemandSeries; + +import java.util.List; @Data @Builder diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/YearReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/YearReportDto.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java index fb3b326e..4c3dff2c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/bottlenecks/YearReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java @@ -20,14 +20,15 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks; -import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.util.List; + @Data @Builder @NoArgsConstructor diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/ListToStringConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java similarity index 90% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/ListToStringConverter.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java index a8f8bbd7..15ba12ec 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/ListToStringConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java @@ -20,9 +20,11 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters; + +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; -import jakarta.persistence.*; import java.util.List; import java.util.Optional; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/MaterialDemandConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java similarity index 79% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/MaterialDemandConverter.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java index 93c3c130..16923b75 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/MaterialDemandConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.MaterialDemandResponse; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; +import eclipse.tractusx.demandcapacitymgm.specification.model.MaterialDemandResponse; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; public class MaterialDemandConverter { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedCapacityGroupConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedCapacityGroupConverter.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java index af32d488..3bef09b0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedCapacityGroupConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java @@ -20,11 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters; import com.google.gson.Gson; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupRequest; -import jakarta.persistence.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupRequest; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; @Converter(autoApply = true) public class WeekBasedCapacityGroupConverter implements AttributeConverter { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedMaterialConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedMaterialConverter.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java index b4081542..9d1246d1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/converters/WeekBasedMaterialConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java @@ -20,12 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.converters; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.converters; import com.google.gson.Gson; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequestDto; -import jakarta.persistence.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandRequest; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; @Converter(autoApply = true) public class WeekBasedMaterialConverter implements AttributeConverter { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertThresholdType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertThresholdType.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java index b9234f5c..b01afab0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertThresholdType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum AlertThresholdType { ABSOLUTE, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertsMonitoredObjects.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertsMonitoredObjects.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java index 4f130caa..9771647a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/AlertsMonitoredObjects.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum AlertsMonitoredObjects { ALL_DEMANDS, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityDeviation.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityDeviation.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java index ed9af709..8e21c04b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityDeviation.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum CapacityDeviation { BOTTLENECK(StatusColor.RED), diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityGroupStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityGroupStatus.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java index 6a35536c..735b6a50 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CapacityGroupStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum CapacityGroupStatus { DRAFT, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CompanyType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CompanyType.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java index ca07e688..0ae0429b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/CompanyType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum CompanyType { SUPPLIER, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventObjectType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventObjectType.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java index c756b52f..454ef670 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventObjectType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum EventObjectType { MATERIAL_DEMAND, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventStatus.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java index 92ce5234..71fb5bd5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum EventStatus { FAIL, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventType.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java index 219942fe..3b035ece 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/EventType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum EventType { GENERAL_EVENT, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/FavoriteType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/FavoriteType.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java index bb88f502..813f49b6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/FavoriteType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum FavoriteType { CAPACITY_GROUP, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/MaterialDemandStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/MaterialDemandStatus.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java index a1f60982..c25dcd85 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/MaterialDemandStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum MaterialDemandStatus { DRAFT, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/Role.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/Role.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java index 3a6d7ff5..685a2e4d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/Role.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum Role { CUSTOMER, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/StatusColor.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/StatusColor.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java index 7f91333a..ad15e606 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/StatusColor.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum StatusColor { RED, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/UserSpecificEventStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/UserSpecificEventStatus.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java index 89dffd67..649ee58f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/enums/UserSpecificEventStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums; public enum UserSpecificEventStatus { OPENED, diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/Capacity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/Capacity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java index ebf6da96..91aa5123 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/Capacity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; import lombok.Builder; import lombok.Data; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/DemandCategory.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/DemandCategory.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java index 51e28f78..06a9ee8e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/DemandCategory.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; import lombok.Builder; import lombok.Data; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/LikedDemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/LikedDemandSeries.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java index 59876b45..7528df09 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/LikedDemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; import lombok.Builder; import lombok.Data; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/User.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/User.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java index 379879d4..565f1021 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/User.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java @@ -20,11 +20,11 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; import lombok.Builder; import lombok.Data; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; @Data @Builder diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedCapacityGroup.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedCapacityGroup.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java index 70abb644..cdec999c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedCapacityGroup.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java @@ -20,12 +20,13 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; -import java.util.List; import lombok.Builder; import lombok.Data; +import java.util.List; + @Data @Builder public class WeekBasedCapacityGroup { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedMaterialDemand.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedMaterialDemand.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java index 4a314919..007e3683 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekBasedMaterialDemand.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java @@ -20,12 +20,13 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; -import java.util.List; import lombok.Builder; import lombok.Data; +import java.util.List; + @Data @Builder public class WeekBasedMaterialDemand { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeries.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java index 984072f4..8d26ca76 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java @@ -20,12 +20,13 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; -import java.util.List; import lombok.Builder; import lombok.Data; +import java.util.List; + @Data @Builder public class WeekDemandSeries { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeriesValues.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeriesValues.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java index 491bbf33..18a77239 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/json/entities/WeekDemandSeriesValues.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java @@ -20,12 +20,13 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.json.entities; +package org.eclipse.tractusx.demandcapacitymgmt.backend.entities.json.entities; -import java.time.LocalDateTime; import lombok.Builder; import lombok.Data; +import java.time.LocalDateTime; + @Data @Builder public class WeekDemandSeriesValues { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/CustomException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/CustomException.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java index b7baf43a..3c7b84ca 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/CustomException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base; public interface CustomException { String getCode(); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponse.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponse.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java index efb71e26..e0bebd7c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponse.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java @@ -20,6 +20,6 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base; public interface ExceptionResponse {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponseImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponseImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java index 711e2a24..e99ce77d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/base/ExceptionResponseImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base; public record ExceptionResponseImpl(String code, String lastDigits) implements ExceptionResponse { } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/handler/RestExceptionHandler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/handler/RestExceptionHandler.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java index e50a91cb..7f0c8cfd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/handler/RestExceptionHandler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java @@ -20,13 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.handler; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.handler; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base.ExceptionResponseImpl; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.InternalServerErrorException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base.ExceptionResponseImpl; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.BadRequestException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/BadRequestException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/BadRequestException.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java index 04a5870c..029dfe62 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/BadRequestException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java @@ -20,9 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base.CustomException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base.CustomException; public class BadRequestException extends RuntimeException implements CustomException { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/InternalServerErrorException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/InternalServerErrorException.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java index ca899152..83b5d0cd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/InternalServerErrorException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java @@ -20,9 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base.CustomException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base.CustomException; public class InternalServerErrorException extends RuntimeException implements CustomException { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/NotFoundException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/NotFoundException.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java index 1bf86a7b..7beeb632 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/exceptions/type/NotFoundException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java @@ -20,9 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type; +package org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.base.CustomException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.base.CustomException; public class NotFoundException extends RuntimeException implements CustomException { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/models/MaterialCapacityQuantity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java similarity index 97% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/models/MaterialCapacityQuantity.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java index 545584fc..8bddabf5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/models/MaterialCapacityQuantity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.models; +package org.eclipse.tractusx.demandcapacitymgmt.backend.models; import java.time.LocalDateTime; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AddressBookRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AddressBookRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java index a0d9a8c5..5a091e63 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AddressBookRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AddressBookRecordEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AddressBookRecordEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.lang.NonNull; import org.springframework.stereotype.Repository; +import java.util.List; +import java.util.UUID; + @Repository public interface AddressBookRepository extends JpaRepository { List findByNameOrCompanyId(@NonNull String name, @NonNull UUID companyId); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AlertsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AlertsRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java index 066b46ac..7a666d63 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/AlertsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java @@ -20,14 +20,14 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; + +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AlertEntity; +import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; import java.util.Optional; import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AlertEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.StatusesEntity; -import org.springframework.data.jpa.repository.JpaRepository; public interface AlertsRepository extends JpaRepository { Optional findByUserID(UUID userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/ArchivedLogsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/ArchivedLogsRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java index e9a70a98..553edb80 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/ArchivedLogsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java @@ -20,9 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.ArchivedLogEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.ArchivedLogEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java index 7595589a..7ddc539b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CapacityGroupEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.lang.NonNull; import org.springframework.stereotype.Repository; +import java.util.List; +import java.util.UUID; + @Repository public interface CapacityGroupRepository extends JpaRepository { List findByUserID(@NonNull UUID userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRuleSetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java similarity index 89% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRuleSetRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java index 6c8f92dc..4cd19c63 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CapacityGroupRuleSetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java @@ -20,11 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.Optional; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CapacityGroupRuleSetEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CapacityGroupRuleSetEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; @@ -32,6 +30,9 @@ import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; +import java.util.Optional; +import java.util.UUID; + @Repository public interface CapacityGroupRuleSetRepository extends JpaRepository { @Transactional diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java index 76392aad..0ac4aedc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java @@ -20,14 +20,15 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CompanyEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CompanyEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import java.util.List; +import java.util.UUID; + @Repository public interface CompanyRepository extends JpaRepository { List findTop5ByOrderByCountDesc(); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRuleSetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java similarity index 89% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRuleSetRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java index 8d4ead20..dbcbfa67 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CompanyRuleSetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java @@ -20,11 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.Optional; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CompanyRuleSetEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CompanyRuleSetEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; @@ -32,6 +30,9 @@ import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; +import java.util.Optional; +import java.util.UUID; + @Repository public interface CompanyRuleSetRepository extends JpaRepository { @Transactional diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandCategoryRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandCategoryRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java index 35aeeaeb..5852704a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandCategoryRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java @@ -20,10 +20,11 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.DemandCategoryEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DemandCategoryEntity; import org.springframework.data.jpa.repository.JpaRepository; +import java.util.UUID; + public interface DemandCategoryRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandSeriesRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java similarity index 76% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandSeriesRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java index 71b9808b..218c46b9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/DemandSeriesRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java @@ -20,20 +20,21 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.DemandSeries; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DemandSeries; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.lang.NonNull; +import java.util.List; +import java.util.UUID; + public interface DemandSeriesRepository extends JpaRepository { @Query( """ - select d from DemandSeries d - where d.customerLocation.id = ?1 and d.demandCategory.id = ?2 and d.materialDemand.materialNumberCustomer = ?3""" + select d from DemandSeries d + where d.customerLocation.id = ?1 and d.demandCategory.id = ?2 and d.materialDemand.materialNumberCustomer = ?3""" ) List ByCategoryIDCustomerIDMaterialNrCustomer( @NonNull UUID id, @@ -43,9 +44,9 @@ List ByCategoryIDCustomerIDMaterialNrCustomer( @Query( """ - select d from DemandSeries d - where d.capacityGroupId = ?1 and d.materialDemand.id = ?2 - """ + select d from DemandSeries d + where d.capacityGroupId = ?1 and d.materialDemand.id = ?2 + """ ) DemandSeries fetchByCGIDandMatID(@NonNull UUID id, @NonNull UUID id2); } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/FavoriteRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/FavoriteRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java index d5a1f5fb..bf6e70a6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/FavoriteRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java @@ -20,18 +20,19 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.FavoriteEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.FavoriteType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.FavoriteEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.FavoriteType; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.lang.NonNull; import org.springframework.transaction.annotation.Transactional; +import java.util.List; +import java.util.UUID; + public interface FavoriteRepository extends JpaRepository { @Transactional @Modifying diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkDemandRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java index 97d8a273..9b0e0d54 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.LinkDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.LinkDemandEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import java.util.UUID; + @Repository public interface LinkDemandRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkedCapacityGroupMaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkedCapacityGroupMaterialDemandRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java index 883734a4..6fe633ac 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LinkedCapacityGroupMaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java @@ -20,18 +20,19 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; import jakarta.transaction.Transactional; -import java.math.BigDecimal; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.LinkedCapacityGroupMaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.LinkedCapacityGroupMaterialDemandEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.lang.NonNull; import org.springframework.stereotype.Repository; +import java.math.BigDecimal; +import java.util.List; +import java.util.UUID; + @Repository public interface LinkedCapacityGroupMaterialDemandRepository extends JpaRepository { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LoggingHistoryRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LoggingHistoryRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java index 44c7926b..556090f2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/LoggingHistoryRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java @@ -20,15 +20,16 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.LoggingHistoryEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.LoggingHistoryEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.lang.NonNull; import org.springframework.stereotype.Repository; +import java.util.UUID; + @Repository public interface LoggingHistoryRepository extends JpaRepository { @Query("select l from LoggingHistoryEntity l where l.logID = ?1") diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/MaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/MaterialDemandRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java index 375a7b3a..a397ac9e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/MaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java @@ -20,17 +20,18 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; import jakarta.persistence.Cacheable; -import java.util.List; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.MaterialDemandStatus; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.MaterialDemandStatus; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; +import java.util.List; +import java.util.UUID; + @Repository @Cacheable(false) public interface MaterialDemandRepository extends JpaRepository { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/RulesetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/RulesetRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java index 2cc6d677..b4bebb41 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/RulesetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java @@ -20,9 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.Rule; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.Rule; import org.springframework.data.jpa.repository.JpaRepository; public interface RulesetRepository extends JpaRepository { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/StatusesRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/StatusesRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java index d2116bdf..01bf8e55 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/StatusesRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; + +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.StatusesEntity; +import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.StatusesEntity; -import org.springframework.data.jpa.repository.JpaRepository; public interface StatusesRepository extends JpaRepository { Optional findByUserID(UUID userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/TriggeredAlertsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java similarity index 71% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/TriggeredAlertsRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java index 2172f097..cd84516f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/TriggeredAlertsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java @@ -20,14 +20,9 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import java.util.Optional; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AlertEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.StatusesEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.TriggeredAlertEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.TriggeredAlertEntity; import org.springframework.data.jpa.repository.JpaRepository; public interface TriggeredAlertsRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UnitMeasureRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UnitMeasureRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java index c211dffa..97a78293 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UnitMeasureRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UnitMeasureEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UnitMeasureEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import java.util.UUID; + @Repository public interface UnitMeasureRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UserRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UserRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java index 53ec1a7f..15c9defa 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/UserRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java @@ -20,10 +20,11 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UserEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UserEntity; import org.springframework.data.jpa.repository.JpaRepository; +import java.util.UUID; + public interface UserRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedCapacityGroupRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedCapacityGroupRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java index ba633036..4cffdc32 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedCapacityGroupRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java @@ -20,13 +20,14 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedCapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedCapacityGroupEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import java.util.List; + @Repository public interface WeekBasedCapacityGroupRepository extends JpaRepository { List getAllByViewed(Boolean viewed); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedMaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedMaterialDemandRepository.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java index fe931733..e39ff8e8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/WeekBasedMaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java @@ -20,13 +20,14 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; +package org.eclipse.tractusx.demandcapacitymgmt.backend.repositories; -import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedMaterialDemandEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import java.util.List; + @Repository public interface WeekBasedMaterialDemandRepository extends JpaRepository { List getAllByViewed(Boolean viewed); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java index e66c5e48..eb5024e0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.schedulers.received; +package org.eclipse.tractusx.demandcapacitymgmt.backend.schedulers.received; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedCapacityGroupService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedCapacityGroupService; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedMaterialSchedulerReceived.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedMaterialSchedulerReceived.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java index e46e850c..c66c285e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/received/WeekBasedMaterialSchedulerReceived.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java @@ -20,14 +20,15 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.schedulers.received; +package org.eclipse.tractusx.demandcapacitymgmt.backend.schedulers.received; -import java.net.URISyntaxException; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedMaterialService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedMaterialService; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; +import java.net.URISyntaxException; + @Component @AllArgsConstructor public class WeekBasedMaterialSchedulerReceived { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedCapacityGroupScheduler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java similarity index 87% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedCapacityGroupScheduler.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java index 85cf7a1e..2cb4dc2b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedCapacityGroupScheduler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.schedulers.send; +package org.eclipse.tractusx.demandcapacitymgmt.backend.schedulers.send; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedCapacityGroupService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedCapacityGroupService; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedMaterialScheduler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedMaterialScheduler.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java index 41440e28..44191c04 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/schedulers/send/WeekBasedMaterialScheduler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java @@ -20,11 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.schedulers.send; +package org.eclipse.tractusx.demandcapacitymgmt.backend.schedulers.send; -import java.net.URISyntaxException; import lombok.AllArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedMaterialService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedMaterialService; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/AppSecurityConfigProperties.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/AppSecurityConfigProperties.java similarity index 93% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/AppSecurityConfigProperties.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/AppSecurityConfigProperties.java index 8cbde5a5..934426af 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/AppSecurityConfigProperties.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/AppSecurityConfigProperties.java @@ -19,7 +19,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.security; +package org.eclipse.tractusx.demandcapacitymgmt.backend.security; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/SecurityConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java similarity index 97% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/SecurityConfig.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java index cadd95b6..c9600d1d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/SecurityConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java @@ -20,10 +20,8 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.security; +package org.eclipse.tractusx.demandcapacitymgmt.backend.security; -import java.util.Arrays; -import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; @@ -37,6 +35,9 @@ import org.springframework.web.cors.CorsConfigurationSource; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; +import java.util.Arrays; +import java.util.List; + @Configuration @EnableWebSecurity public class SecurityConfig { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/WebClientConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java similarity index 91% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/WebClientConfig.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java index 5e8b05e5..77f65a77 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/WebClientConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java @@ -20,7 +20,7 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.security; +package org.eclipse.tractusx.demandcapacitymgmt.backend.security; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -33,8 +33,7 @@ public class WebClientConfig { @Bean public WebClient webClient() { - return WebClient - .builder() + return WebClient.builder() .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_FORM_URLENCODED_VALUE) .build(); } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AddressBookService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AddressBookService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java index 59841ea7..47d79ab9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AddressBookService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java @@ -20,10 +20,11 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookResponse; import java.util.List; public interface AddressBookService { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AlertService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java similarity index 79% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AlertService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java index 40cf9395..92dbcf50 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/AlertService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java @@ -20,11 +20,14 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.AlertRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.AlertResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.TriggeredAlertRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.TriggeredAlertResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.util.List; -import java.util.concurrent.atomic.AtomicReference; public interface AlertService { AlertResponse configureAlert(AlertRequest alertRequest); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/BottleneckManager.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/BottleneckManager.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java index 38c24a10..e84a0294 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/BottleneckManager.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java @@ -20,9 +20,10 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.YearReportResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.YearReportResponse; import java.time.LocalDate; public interface BottleneckManager { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupRuleSetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupRuleSetService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java index 42574d61..44554fe6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupRuleSetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetResponse; public interface CapacityGroupRuleSetService { CGRulesetResponse getCapacityGroupRuleSets(String cgID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java index 55a10f4b..48a758fc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CapacityGroupService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java @@ -20,11 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; public interface CapacityGroupService { CapacityGroupResponse createCapacityGroup(CapacityGroupRequest capacityGroupRequest, String userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyRuleSetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyRuleSetService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java index 6c52cf75..9acfa2e5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyRuleSetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetResponse; public interface CompanyRuleSetService { CDRulesetResponse getCompanyRuleSets(String companyID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java index b1902cd8..a488d485 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/CompanyService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.CompanyDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CompanyEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CompanyDto; import java.util.List; import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CompanyEntity; public interface CompanyService { CompanyDto createCompany(CompanyDto companyDto); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandCategoryService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandCategoryService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java index a30117db..4b042a53 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandCategoryService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.DemandCategoryResponse; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DemandCategoryEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.DemandCategoryResponse; import java.util.List; import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.DemandCategoryEntity; public interface DemandCategoryService { DemandCategoryEntity findById(UUID id); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java index d69f2885..566a1789 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/DemandService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.MaterialDemandStatus; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.MaterialDemandStatus; public interface DemandService { MaterialDemandResponse createDemand(MaterialDemandRequest materialDemandRequest, String userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/EDCService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java similarity index 94% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/EDCService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java index 0cc1cf4f..2ab6b7e4 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/EDCService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java @@ -19,14 +19,15 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; -import java.util.List; -import javax.xml.catalog.Catalog; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import javax.xml.catalog.Catalog; +import java.util.List; + public interface EDCService { Mono createAsset(AssetEntryNewDto dto); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/FavoriteService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java similarity index 78% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/FavoriteService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java index 6631dd43..d3f68595 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/FavoriteService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java @@ -20,11 +20,11 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.FavoriteRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.FavoriteResponse; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.FavoriteType; +import eclipse.tractusx.demandcapacitymgm.specification.model.FavoriteRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.FavoriteResponse; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.FavoriteType; public interface FavoriteService { FavoriteResponse getAllFavorites(String userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/GoldenRecordManager.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/GoldenRecordManager.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java index f024364f..9fa0fc78 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/GoldenRecordManager.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java @@ -20,10 +20,10 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookRequest; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AddressBookRecordEntity; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookRequest; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AddressBookRecordEntity; public interface GoldenRecordManager { AddressBookRecordEntity queryGoldenRecord(String recordQuery); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LinkDemandService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LinkDemandService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java index 807b892b..b3bf3676 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LinkDemandService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java @@ -20,10 +20,11 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedMaterialDemandEntity; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; public interface LinkDemandService { public void createLinkDemands(List weekBasedMaterialDemandEntities); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LoggingHistoryService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LoggingHistoryService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java index 0d2177a6..096e572d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/LoggingHistoryService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java @@ -20,9 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.ArchivedLoggingHistoryResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.util.List; public interface LoggingHistoryService { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/RulesetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java similarity index 80% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/RulesetService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java index 43557528..9eda9d78 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/RulesetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java @@ -20,11 +20,12 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.AddRuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddRuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleResponse; import java.util.List; public interface RulesetService { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/SecurityTokenService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/SecurityTokenService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java index 9dc2292f..93584404 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/SecurityTokenService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java @@ -20,10 +20,10 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.IntrospectTokenResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.User; +import eclipse.tractusx.demandcapacitymgm.specification.model.IntrospectTokenResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.User; import org.springframework.http.ResponseEntity; public interface SecurityTokenService { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/StatusesService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/StatusesService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java index 6f706125..be1ef5d8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/StatusesService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java @@ -20,10 +20,10 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusesResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusesResponse; public interface StatusesService { StatusesResponse postStatuses(StatusRequest statusRequest, String userID); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UnityOfMeasureService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UnityOfMeasureService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java index 2a28f0b3..767965e1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UnityOfMeasureService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.UnitMeasure; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UnitMeasureEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UnitMeasure; import java.util.List; import java.util.UUID; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UnitMeasureEntity; public interface UnityOfMeasureService { UnitMeasure findById(UUID id); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UserOperationsService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java similarity index 81% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UserOperationsService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java index 009e30bb..50fc61c1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/UserOperationsService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java @@ -19,10 +19,11 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.UserRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.UserResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserResponse; import java.util.List; public interface UserOperationsService { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedCapacityGroupService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java similarity index 77% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedCapacityGroupService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java index eba1cec2..e0b3da90 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedCapacityGroupService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java @@ -20,13 +20,14 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupDtoRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupDtoResponse; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedCapacityGroupEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupDtoRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupDtoResponse; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CapacityGroupEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedCapacityGroupEntity; public interface WeekBasedCapacityGroupService { void createWeekBasedCapacityGroup( diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedMaterialService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedMaterialService.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java index 6e5fba7f..2aca01af 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/WeekBasedMaterialService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java @@ -20,12 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services; + +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandRequestDto; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandResponseDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequestDto; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandResponseDto; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; public interface WeekBasedMaterialService { void createWeekBasedMaterial( diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AddressBookServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AddressBookServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java index ebe006cb..077787eb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AddressBookServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java @@ -20,21 +20,22 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookResponse; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AddressBookRecordEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.AddressBookRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.AddressBookService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.GoldenRecordManager; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookResponse; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AddressBookRecordEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.AddressBookRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.AddressBookService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.GoldenRecordManager; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java new file mode 100644 index 00000000..344c4039 --- /dev/null +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java @@ -0,0 +1,293 @@ +/* + * ****************************************************************************** + * Copyright (c) 2023 BMW AG + * Copyright (c) 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************* + */ +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AlertEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DedicatedAlertEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.TriggeredAlertEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertThresholdType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.AlertsMonitoredObjects; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.AlertsRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.TriggeredAlertsRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.AlertService; +import org.springframework.context.annotation.Lazy; +import org.springframework.stereotype.Service; + +import java.sql.Timestamp; +import java.time.LocalDateTime; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +@Lazy +@RequiredArgsConstructor +@Service +@Slf4j +public class AlertServiceImpl implements AlertService { + + private final AlertsRepository alertsRepository; + private final TriggeredAlertsRepository triggeredAlertsRepository; + + @Override + public AlertResponse configureAlert(AlertRequest alertRequest) { + AlertEntity alertEntity = convertDtoToEntity(alertRequest); + alertsRepository.save(alertEntity); + return convertAlertsResponseDto(alertEntity); + } + + @Override + public void triggerDemandAlertsIfNeeded( + String userID, + boolean isMaterialDemandChange, + double oldValue, + double newValue, + String materialDemandId + ) { + List alerts = alertsRepository.findAllByUserID(UUID.fromString(userID)); + alerts.forEach(alertEntity -> { + TriggeredAlertEntity triggeredAlertEntity = new TriggeredAlertEntity(); + triggeredAlertEntity.setId(UUID.randomUUID()); + triggeredAlertEntity.setAlertName(alertEntity.getAlertName()); + triggeredAlertEntity.setType(alertEntity.getType()); + triggeredAlertEntity.setUserID(alertEntity.getUserID()); + triggeredAlertEntity.setMonitoredObjects(alertEntity.getMonitoredObjects()); + triggeredAlertEntity.setThreshold(alertEntity.getThreshold()); + LocalDateTime currentLocalDateTime = LocalDateTime.now(); + triggeredAlertEntity.setCreated(Timestamp.valueOf(currentLocalDateTime).toString()); + if (isGlobalAlert(isMaterialDemandChange, alertEntity)) { + if (alertEntity.getType().equals(AlertThresholdType.RELATIVE)) { + double threshold = alertEntity.getThreshold() / 100; + double demandDelta = threshold * oldValue; + if (threshold >= 0 && (newValue - oldValue >= demandDelta)) { + fillTriggeredAlert( + triggeredAlertEntity, + "Increased by ", + alertEntity.getThreshold(), + true, + alertEntity + ); + } else if ((threshold < 0 && (newValue - oldValue <= demandDelta))) { + fillTriggeredAlert( + triggeredAlertEntity, + "Decreased by ", + alertEntity.getThreshold(), + true, + alertEntity + ); + } + } else if (alertEntity.getType().equals(AlertThresholdType.ABSOLUTE)) { + double threshold = alertEntity.getThreshold(); + if (threshold >= 0 && (newValue - oldValue >= threshold)) { + fillTriggeredAlert(triggeredAlertEntity, "Increased by ", threshold, false, alertEntity); + } else if ((threshold < 0 && (newValue - oldValue <= threshold))) { + fillTriggeredAlert(triggeredAlertEntity, "Decreased by ", threshold, false, alertEntity); + } + } + } else if (alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.DEDICATED)) { + alertEntity + .getDedicatedAlerts() + .forEach(dedicatedAlert -> { + if (Objects.equals(materialDemandId, dedicatedAlert.getObjectId().toString())) { + if (alertEntity.getType().equals(AlertThresholdType.ABSOLUTE)) { + double threshold = alertEntity.getThreshold(); + if (threshold >= 0 && (newValue - oldValue >= threshold)) { + fillTriggeredAlert( + triggeredAlertEntity, + "Increased by ", + threshold, + false, + alertEntity + ); + } else if ((threshold < 0 && (newValue - oldValue <= threshold))) { + fillTriggeredAlert( + triggeredAlertEntity, + "Decreased by ", + threshold, + false, + alertEntity + ); + } + } else { + double threshold = alertEntity.getThreshold() / 100; + double demandDelta = alertEntity.getThreshold() * oldValue; + if (threshold >= 0 && (newValue - oldValue >= demandDelta)) { + fillTriggeredAlert( + triggeredAlertEntity, + "Increased by ", + threshold, + true, + alertEntity + ); + } else if ((threshold < 0 && (newValue - oldValue <= demandDelta))) { + fillTriggeredAlert( + triggeredAlertEntity, + "Decreased by ", + threshold, + true, + alertEntity + ); + } + } + } + }); + } + }); + } + + private void fillTriggeredAlert( + TriggeredAlertEntity triggeredAlertEntity, + String message, + double threshold, + boolean isRelative, + AlertEntity alertEntity + ) { + triggeredAlertEntity.setDescription(message + threshold + (isRelative ? "%" : " units")); + alertEntity.setTriggeredTimes(alertEntity.getTriggeredTimes() + 1); + alertsRepository.save(alertEntity); + triggeredAlertsRepository.save(triggeredAlertEntity); + } + + private static boolean isGlobalAlert(boolean isMaterialDemandChange, AlertEntity alertEntity) { + return ( + alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_DEMANDS) || + (alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_CAPACITIES) && + !isMaterialDemandChange) || + alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_OBJECTS) + ); + } + + @Override + public List getAlerts(String userID) { + List alerts = alertsRepository.findAll(); + + getAlertByUserId(userID, alerts); + return alerts.stream().map(this::convertAlertsResponseDto).toList(); + } + + private static void getTriggeredAlertByUserId(String userID, List alerts) { + alerts + .stream() + .filter(alertEntity -> { + if (alertEntity.getUserID().toString().equals(userID)) { + alerts.add(alertEntity); + } + return false; + }); + } + + private static void getAlertByUserId(String userID, List alerts) { + alerts + .stream() + .filter(alertEntity -> { + if (alertEntity.getUserID().toString().equals(userID)) { + alerts.add(alertEntity); + } + return false; + }); + } + + @Override + public List getTriggeredAlerts(String userID) { + List alerts = triggeredAlertsRepository.findAll(); + getTriggeredAlertByUserId(userID, alerts); + return alerts.stream().map(this::convertTriggeredAlertsResponseDto).toList(); + } + + @Override + public TriggeredAlertResponse postTriggeredAlerts(TriggeredAlertRequest triggeredAlertRequest) { + return null; + } + + private AlertResponse convertAlertsResponseDto(AlertEntity alertEntity) { + List dedicatedAlerts = alertEntity + .getDedicatedAlerts() + .stream() + .map(this::enrichDedicateAlertResponse) + .toList(); + + AlertResponse responseDto = new AlertResponse(); + responseDto.setType(alertEntity.getType().name()); + responseDto.setAlertId("" + alertEntity.getId()); + responseDto.setAlertName(alertEntity.getAlertName()); + responseDto.setCreated(alertEntity.getCreated()); + responseDto.setMonitoredObjects(alertEntity.getMonitoredObjects().name()); + responseDto.setThreshold(String.valueOf(alertEntity.getThreshold())); + responseDto.setUser(alertEntity.getUserID().toString()); + //responseDto.setTriggerTimes(alertEntity.getTriggeredTimes()); + responseDto.setDedicatedAlerts(dedicatedAlerts); + return responseDto; + } + + DedicatedAlert enrichDedicateAlertResponse(DedicatedAlertEntity alertEntity) { + DedicatedAlert dedicatedAlert = new DedicatedAlert(); + dedicatedAlert.setId(alertEntity.getId().toString()); + dedicatedAlert.setType(alertEntity.getType().toString()); + dedicatedAlert.setObjectId(alertEntity.getObjectId().toString()); + return dedicatedAlert; + } + + private TriggeredAlertResponse convertTriggeredAlertsResponseDto(TriggeredAlertEntity alertEntity) { + TriggeredAlertResponse responseDto = new TriggeredAlertResponse(); + responseDto.setType(alertEntity.getType().name()); + responseDto.setAlertId("" + alertEntity.getId()); + responseDto.setAlertName(alertEntity.getAlertName()); + responseDto.setCreated(alertEntity.getCreated()); + responseDto.setDescription(alertEntity.getDescription()); + responseDto.setMonitoredObjects(alertEntity.getMonitoredObjects().name()); + responseDto.setThreshold(String.valueOf(alertEntity.getThreshold())); + responseDto.setUser(alertEntity.getUserID().toString()); + return responseDto; + } + + DedicatedAlertEntity convertDedicatedAlertsDtoToEntity(DedicatedAlert dedicatedAlert) { + return DedicatedAlertEntity.builder() + .id(UUID.randomUUID()) + .type(EventObjectType.valueOf(dedicatedAlert.getType())) + .objectId(UUID.fromString(dedicatedAlert.getObjectId())) + .build(); + } + + private AlertEntity convertDtoToEntity(AlertRequest alertRequest) { + List dedicatedAlertEntities = alertRequest + .getDedicatedAlerts() + .stream() + .map(this::convertDedicatedAlertsDtoToEntity) + .toList(); + LocalDateTime currentLocalDateTime = LocalDateTime.now(); + + return AlertEntity.builder() + .id(UUID.randomUUID()) + .alertName(alertRequest.getAlertName()) + .created(Timestamp.valueOf(currentLocalDateTime).toString()) + .monitoredObjects(AlertsMonitoredObjects.valueOf(alertRequest.getMonitoredObjects())) + .threshold(Double.parseDouble(alertRequest.getThreshold().toString())) + .triggeredTimes(0) + .userID(UUID.fromString(alertRequest.getUser())) + .type(AlertThresholdType.valueOf(alertRequest.getType())) + .dedicatedAlerts(dedicatedAlertEntities) + .build(); + } +} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/BottleneckManagerImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/BottleneckManagerImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java index 6ac9366e..eae4b855 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/BottleneckManagerImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java @@ -20,16 +20,17 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.YearReportResponse; -import java.time.LocalDate; +import eclipse.tractusx.demandcapacitymgm.specification.model.YearReportResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.BottleneckManager; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.BottleneckDetectorUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.BottleneckManager; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.BottleneckDetectorUtil; import org.springframework.stereotype.Service; +import java.time.LocalDate; + @RequiredArgsConstructor @Service @Slf4j diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupRuleSetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java similarity index 82% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupRuleSetServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java index 60297094..cea073c2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupRuleSetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java @@ -20,19 +20,20 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CGRulesetResponse; -import java.util.Optional; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CGRulesetResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CapacityGroupRuleSetEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.CapacityGroupRuleSetRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CapacityGroupRuleSetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CapacityGroupRuleSetEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.CapacityGroupRuleSetRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CapacityGroupRuleSetService; import org.springframework.stereotype.Service; +import java.util.Optional; +import java.util.UUID; + @RequiredArgsConstructor @Service @Slf4j diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java similarity index 92% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java index f7c8c749..39ea050a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CapacityGroupServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java @@ -20,9 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UUIDUtil; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.math.BigDecimal; import java.time.LocalDate; import java.time.format.DateTimeFormatter; @@ -31,17 +43,6 @@ import java.util.Optional; import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service @@ -261,13 +262,11 @@ private CapacityGroupEntity getCapacityGroupEntity(String capacityGroupId) { private CapacityGroupResponse convertCapacityGroupDto(CapacityGroupEntity capacityGroupEntity) { final CapacityGroupResponse responseDto = new CapacityGroupResponse(); - final CompanyDto customer = Optional - .ofNullable(capacityGroupEntity.getCustomer()) + final CompanyDto customer = Optional.ofNullable(capacityGroupEntity.getCustomer()) .map(companyService::convertEntityToDto) .orElse(null); - final CompanyDto supplier = Optional - .ofNullable(capacityGroupEntity.getSupplier()) + final CompanyDto supplier = Optional.ofNullable(capacityGroupEntity.getSupplier()) .map(companyService::convertEntityToDto) .orElse(null); @@ -285,9 +284,10 @@ private CapacityGroupResponse convertCapacityGroupDto(CapacityGroupEntity capaci ); responseDto.setCustomer(customer); responseDto.setSupplier(supplier); - List linkedCGMD = linkedCapacityGroupMaterialDemandRepository.findLinkedCapacityGroupMaterialDemandEntitiesByCapacityGroupID( - capacityGroupEntity.getId() - ); + List linkedCGMD = + linkedCapacityGroupMaterialDemandRepository.findLinkedCapacityGroupMaterialDemandEntitiesByCapacityGroupID( + capacityGroupEntity.getId() + ); List linkedDemands = new ArrayList<>(); for (LinkedCapacityGroupMaterialDemandEntity ent : linkedCGMD) { linkedDemands.add(ent.getMaterialDemandID()); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyRuleSetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyRuleSetServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java index 63e8e591..7e5a544b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyRuleSetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java @@ -20,19 +20,20 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CDRulesetResponse; -import java.util.Optional; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.CDRulesetResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CompanyRuleSetEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.CompanyRuleSetRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CompanyRuleSetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CompanyRuleSetEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.CompanyRuleSetRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CompanyRuleSetService; import org.springframework.stereotype.Service; +import java.util.Optional; +import java.util.UUID; + @RequiredArgsConstructor @Service @Slf4j diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java similarity index 83% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java index 4796ca29..19ca1592 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/CompanyServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java @@ -20,25 +20,25 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.CompanyDto; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryRequest; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CompanyEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.CompanyRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.CompanyService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.CompanyDto; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.LoggingHistoryRequest; -import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CompanyEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.CompanyRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.CompanyService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandCategoryServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java similarity index 80% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandCategoryServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java index f85a6278..f1f3cb18 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandCategoryServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java @@ -20,20 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.DemandCategoryResponse; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.DemandCategoryEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.DemandCategoryRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.DemandCategoryService; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.DemandCategoryResponse; import java.util.List; import java.util.Optional; import java.util.UUID; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.DemandCategoryEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.DemandCategoryRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.DemandCategoryService; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java similarity index 73% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java index 9cf4cab7..be728917 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/DemandServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java @@ -20,34 +20,31 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import jakarta.servlet.http.HttpServletRequest; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.MaterialDemandStatus; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.BadRequestException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.DataConverterUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UUIDUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; +import org.springframework.stereotype.Service; + import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.*; -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; -import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.MaterialDemandStatus; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.DataConverterUtil; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service @@ -148,21 +145,17 @@ public MaterialDemandResponse updateDemand( } linkedCapacityGroupMaterialDemandRepository .findAll() - .forEach( - linkedCapacityGroupMaterialDemandEntity -> { - if (demandId.equals(linkedCapacityGroupMaterialDemandEntity.getMaterialDemandID().toString())) { - Optional capacityGroupEntity = capacityGroupRepository.findById( - linkedCapacityGroupMaterialDemandEntity.getCapacityGroupID() - ); - capacityGroupEntity.ifPresent( - groupEntity -> { - groupEntity.setLinkStatus(EventType.LINKED); - capacityGroupRepository.save(capacityGroupEntity.get()); - } - ); - } - } - ); + .forEach(linkedCapacityGroupMaterialDemandEntity -> { + if (demandId.equals(linkedCapacityGroupMaterialDemandEntity.getMaterialDemandID().toString())) { + Optional capacityGroupEntity = capacityGroupRepository.findById( + linkedCapacityGroupMaterialDemandEntity.getCapacityGroupID() + ); + capacityGroupEntity.ifPresent(groupEntity -> { + groupEntity.setLinkStatus(EventType.LINKED); + capacityGroupRepository.save(capacityGroupEntity.get()); + }); + } + }); triggerDemandAlertsIfNeeded(demandId, userID, demand); @@ -181,57 +174,44 @@ private void triggerDemandAlertsIfNeeded(String demandId, String userID, Materia demand .getDemandSeries() - .forEach( - demandSeries -> { - demandSeries - .getDemandSeriesValues() - .forEach( - demandSeriesValues -> { - newDemandValues.add(demandSeriesValues.getDemand()); - } - ); - newDemandValuesMap.put(demandSeries.getDemandCategory().getId(), newDemandValues.stream().toList()); - newDemandValues.clear(); - } - ); + .forEach(demandSeries -> { + demandSeries + .getDemandSeriesValues() + .forEach(demandSeriesValues -> { + newDemandValues.add(demandSeriesValues.getDemand()); + }); + newDemandValuesMap.put(demandSeries.getDemandCategory().getId(), newDemandValues.stream().toList()); + newDemandValues.clear(); + }); materialDemandRepository .findById(UUID.fromString(demandId)) .get() .getDemandSeries() - .forEach( - demandSeries1 -> { - demandSeries1 - .getDemandSeriesValues() - .forEach( - demandSeriesValues -> { - oldDemandValues.add(demandSeriesValues.getDemand()); - } - ); - oldDemandValuesMap.put( - demandSeries1.getDemandCategory().getId(), - oldDemandValues.stream().toList() - ); - oldDemandValues.clear(); - } - ); - - newDemandValuesMap.forEach( - (newDemandKey, newValuesArray) -> { - int minSize = Math.min(newValuesArray.size(), oldDemandValuesMap.get(newDemandKey).size()); - for (int i = 0; i < minSize; i++) { - if (!Objects.equals(oldDemandValuesMap.get(newDemandKey).get(i), newValuesArray.get(i))) { - alertService.triggerDemandAlertsIfNeeded( - userID, - true, - oldDemandValuesMap.get(newDemandKey).get(i), - newValuesArray.get(i), - demandId - ); - } - } - } - ); + .forEach(demandSeries1 -> { + demandSeries1 + .getDemandSeriesValues() + .forEach(demandSeriesValues -> { + oldDemandValues.add(demandSeriesValues.getDemand()); + }); + oldDemandValuesMap.put(demandSeries1.getDemandCategory().getId(), oldDemandValues.stream().toList()); + oldDemandValues.clear(); + }); + + newDemandValuesMap.forEach((newDemandKey, newValuesArray) -> { + int minSize = Math.min(newValuesArray.size(), oldDemandValuesMap.get(newDemandKey).size()); + for (int i = 0; i < minSize; i++) { + if (!Objects.equals(oldDemandValuesMap.get(newDemandKey).get(i), newValuesArray.get(i))) { + alertService.triggerDemandAlertsIfNeeded( + userID, + true, + oldDemandValuesMap.get(newDemandKey).get(i), + newValuesArray.get(i), + demandId + ); + } + } + }); } private List getAllDemands() { @@ -374,19 +354,15 @@ private MaterialDemandResponse convertDemandResponseDto(MaterialDemandEntity mat if (materialDemandEntity.getLinkStatus() != null) { if ( - ( - materialDemandEntity.getLinkStatus().equals(EventType.TODO) || - (materialDemandEntity.getLinkStatus().equals(EventType.UN_LINKED)) && - user.getRole().equals(Role.CUSTOMER) - ) + (materialDemandEntity.getLinkStatus().equals(EventType.TODO) || + ((materialDemandEntity.getLinkStatus().equals(EventType.UN_LINKED)) && + user.getRole().equals(Role.CUSTOMER))) ) { responseDto.setLinkStatus(String.valueOf(EventType.UN_LINKED)); } else if ( - ( - materialDemandEntity.getLinkStatus().equals(EventType.TODO) || - (materialDemandEntity.getLinkStatus().equals(EventType.UN_LINKED)) && - user.getRole().equals(Role.SUPPLIER) - ) + (materialDemandEntity.getLinkStatus().equals(EventType.TODO) || + ((materialDemandEntity.getLinkStatus().equals(EventType.UN_LINKED)) && + user.getRole().equals(Role.SUPPLIER))) ) { responseDto.setLinkStatus(String.valueOf(EventType.TODO)); } else { @@ -423,51 +399,49 @@ private void validateMaterialDemandRequestFields(MaterialDemandRequest materialD materialDemandRequest .getMaterialDemandSeries() - .forEach( - materialDemandSeries -> { - if (!UUIDUtil.checkValidUUID(materialDemandSeries.getCustomerLocationId())) { - throw new BadRequestException("2", "13"); - } - if (!UUIDUtil.checkValidUUID(materialDemandSeries.getDemandCategoryId())) { - throw new BadRequestException("8", "22"); - } - - List dates = materialDemandSeries - .getDemandSeriesValues() - .stream() - .map( - materialDemandSeriesValue -> - DataConverterUtil.convertFromString(materialDemandSeriesValue.getCalendarWeek()) - ) - .toList(); - - if ( - Boolean.TRUE.equals(!DataConverterUtil.checkListAllMonday(dates)) || - Boolean.TRUE.equals(!DataConverterUtil.checkDatesSequence(dates)) - ) { - throw new BadRequestException("1", "11"); - } - - materialDemandSeries.getExpectedSupplierLocationId().forEach(UUIDUtil::checkValidUUID); - - List expectedSuppliersLocation = materialDemandSeries - .getExpectedSupplierLocationId() - .stream() - .map(UUIDUtil::generateUUIDFromString) - .toList(); - - List companyEntities = companyService.getCompanyIn(expectedSuppliersLocation); - - boolean hasAllCompanies = companyEntities - .stream() - .map(CompanyEntity::getId) - .allMatch(expectedSuppliersLocation::contains); - - if (!hasAllCompanies) { - throw new BadRequestException("1", "12"); - } - } - ); + .forEach(materialDemandSeries -> { + if (!UUIDUtil.checkValidUUID(materialDemandSeries.getCustomerLocationId())) { + throw new BadRequestException("2", "13"); + } + if (!UUIDUtil.checkValidUUID(materialDemandSeries.getDemandCategoryId())) { + throw new BadRequestException("8", "22"); + } + + List dates = materialDemandSeries + .getDemandSeriesValues() + .stream() + .map( + materialDemandSeriesValue -> + DataConverterUtil.convertFromString(materialDemandSeriesValue.getCalendarWeek()) + ) + .toList(); + + if ( + Boolean.TRUE.equals(!DataConverterUtil.checkListAllMonday(dates)) || + Boolean.TRUE.equals(!DataConverterUtil.checkDatesSequence(dates)) + ) { + throw new BadRequestException("1", "11"); + } + + materialDemandSeries.getExpectedSupplierLocationId().forEach(UUIDUtil::checkValidUUID); + + List expectedSuppliersLocation = materialDemandSeries + .getExpectedSupplierLocationId() + .stream() + .map(UUIDUtil::generateUUIDFromString) + .toList(); + + List companyEntities = companyService.getCompanyIn(expectedSuppliersLocation); + + boolean hasAllCompanies = companyEntities + .stream() + .map(CompanyEntity::getId) + .allMatch(expectedSuppliersLocation::contains); + + if (!hasAllCompanies) { + throw new BadRequestException("1", "12"); + } + }); } private MaterialDemandEntity convertDtoToEntity(MaterialDemandRequest materialDemandRequest, String id) { @@ -486,19 +460,16 @@ private MaterialDemandEntity convertDtoToEntity(MaterialDemandRequest materialDe List demandSeriesList = materialDemandRequest .getMaterialDemandSeries() .stream() - .map( - materialDemandSeries -> { - DemandCategoryEntity demandCategory = demandCategoryService.findById( - UUIDUtil.generateUUIDFromString(materialDemandSeries.getDemandCategoryId()) - ); - materialDemandSeries.setId(materialDemandSeries.getDemandCategoryId()); - return enrichDemandSeries(materialDemandSeries, customerEntity, demandCategory); - } - ) + .map(materialDemandSeries -> { + DemandCategoryEntity demandCategory = demandCategoryService.findById( + UUIDUtil.generateUUIDFromString(materialDemandSeries.getDemandCategoryId()) + ); + materialDemandSeries.setId(materialDemandSeries.getDemandCategoryId()); + return enrichDemandSeries(materialDemandSeries, customerEntity, demandCategory); + }) .toList(); - return MaterialDemandEntity - .builder() + return MaterialDemandEntity.builder() .materialDescriptionCustomer(materialDemandRequest.getMaterialDescriptionCustomer()) .materialNumberCustomer(materialDemandRequest.getMaterialNumberCustomer()) .materialNumberSupplier(materialDemandRequest.getMaterialNumberSupplier()) @@ -519,8 +490,7 @@ private DemandSeries enrichDemandSeries( materialDemandSeries.getDemandSeriesValues() ); - return DemandSeries - .builder() + return DemandSeries.builder() .expectedSupplierLocation(materialDemandSeries.getExpectedSupplierLocationId()) .id(UUID.fromString(materialDemandSeries.getId())) .customerLocation(customerEntity) @@ -534,8 +504,7 @@ private List enrichDemandSeriesValues(List - DemandSeriesValues - .builder() + DemandSeriesValues.builder() .demand(materialDemandSeriesValue.getDemand().doubleValue()) .calendarWeek(LocalDate.parse(materialDemandSeriesValue.getCalendarWeek())) .build() diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/EDCServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java similarity index 94% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/EDCServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java index 4de5a27b..cec1a35d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/EDCServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java @@ -20,18 +20,15 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import io.github.cdimascio.dotenv.Dotenv; -import java.time.Duration; -import java.time.Instant; -import java.util.List; -import javax.xml.catalog.Catalog; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.EDCService; -import org.springframework.http.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.EDCService; +import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; import org.springframework.stereotype.Service; import org.springframework.web.reactive.function.BodyInserters; import org.springframework.web.reactive.function.client.WebClient; @@ -39,6 +36,11 @@ import reactor.core.publisher.Mono; import reactor.util.retry.Retry; +import javax.xml.catalog.Catalog; +import java.time.Duration; +import java.time.Instant; +import java.util.List; + @RequiredArgsConstructor @Service @Slf4j @@ -70,8 +72,7 @@ public Mono getToken() { @Override public Mono getAccessToken() { - WebClient client = WebClient - .builder() + WebClient client = WebClient.builder() .baseUrl(tokenEndpoint) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_FORM_URLENCODED_VALUE) .build(); @@ -79,20 +80,17 @@ public Mono getAccessToken() { return client .post() .body( - BodyInserters - .fromFormData("grant_type", grantType) + BodyInserters.fromFormData("grant_type", grantType) .with("client_id", clientId) .with("client_secret", clientSecret) ) .retrieve() .bodyToMono(AccessTokenResponse.class) - .doOnSuccess( - response -> { - accessToken = response.getAccessToken(); - // Set token expiration time (assuming response provides expiresIn in seconds) - tokenExpiration = Instant.now().plusSeconds(response.getExpiresIn().longValue()); - } - ); + .doOnSuccess(response -> { + accessToken = response.getAccessToken(); + // Set token expiration time (assuming response provides expiresIn in seconds) + tokenExpiration = Instant.now().plusSeconds(response.getExpiresIn().longValue()); + }); } private boolean isTokenExpired() { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/FavoriteServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/FavoriteServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java index 7bcb00fa..2fa78077 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/FavoriteServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java @@ -20,9 +20,18 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.FavoriteType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.FavoriteService; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDate; @@ -30,14 +39,6 @@ import java.util.List; import java.util.Optional; import java.util.UUID; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.FavoriteType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.FavoriteService; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service @@ -286,8 +287,7 @@ public void deleteFavorite(String userID, String favoriteID) { } private FavoriteEntity generateFavoriteEntity(FavoriteRequest request, String cookieUserID) { - return FavoriteEntity - .builder() + return FavoriteEntity.builder() .userID(UUID.fromString(cookieUserID)) .favorited_at(Timestamp.from(Instant.now())) .favoriteId(UUID.fromString(request.getFavoriteId())) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/GoldenRecordManagerImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/GoldenRecordManagerImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java index 9eb1d00b..6279ba4a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/GoldenRecordManagerImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java @@ -20,17 +20,18 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddressBookRequest; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddressBookRequest; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.AddressBookRecordEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.AddressBookRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.GoldenRecordManager; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.AddressBookRecordEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.AddressBookRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.GoldenRecordManager; import org.springframework.stereotype.Service; +import java.util.UUID; + @Slf4j @Service @RequiredArgsConstructor diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LinkDemandServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java similarity index 55% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LinkDemandServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java index 489915df..b2548225 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LinkDemandServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java @@ -20,23 +20,24 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.LoggingHistoryRequest; -import java.util.LinkedList; -import java.util.List; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.LoggingHistoryRequest; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.LinkDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.LinkDemandRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LinkDemandService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.LinkDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedMaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.LinkDemandRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LinkDemandService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; import org.springframework.stereotype.Service; +import java.util.LinkedList; +import java.util.List; +import java.util.UUID; + @RequiredArgsConstructor @Service @Slf4j @@ -50,13 +51,11 @@ public class LinkDemandServiceImpl implements LinkDemandService { public void createLinkDemands(List weekBasedMaterialDemandEntities) { List linkDemandEntityList = new LinkedList<>(); - weekBasedMaterialDemandEntities.forEach( - weekBasedMaterialDemand -> { - List linkDemandEntity = convertFromWeekBasedMaterial(weekBasedMaterialDemand); + weekBasedMaterialDemandEntities.forEach(weekBasedMaterialDemand -> { + List linkDemandEntity = convertFromWeekBasedMaterial(weekBasedMaterialDemand); - linkDemandEntityList.addAll(linkDemandEntity); - } - ); + linkDemandEntityList.addAll(linkDemandEntity); + }); postLogs(); linkDemandRepository.saveAll(linkDemandEntityList); } @@ -75,21 +74,18 @@ private List convertFromWeekBasedMaterial(WeekBasedMaterialDem .getWeekBasedMaterialDemand() .getDemandSeries() .stream() - .map( - demandWeekSeriesDto -> - LinkDemandEntity - .builder() - .linked(false) //Id =id - .demandCategoryId(demandWeekSeriesDto.getDemandCategory().getId()) - .weekBasedMaterialDemand(weekBasedMaterialDemand) - .materialNumberSupplier( - weekBasedMaterialDemand.getWeekBasedMaterialDemand().getMaterialNumberSupplier() - ) - .materialNumberCustomer( - weekBasedMaterialDemand.getWeekBasedMaterialDemand().getMaterialNumberCustomer() - ) - .build() - ) + .map(demandWeekSeriesDto -> + LinkDemandEntity.builder() + .linked(false) //Id =id + .demandCategoryId(demandWeekSeriesDto.getDemandCategory().getId()) + .weekBasedMaterialDemand(weekBasedMaterialDemand) + .materialNumberSupplier( + weekBasedMaterialDemand.getWeekBasedMaterialDemand().getMaterialNumberSupplier() + ) + .materialNumberCustomer( + weekBasedMaterialDemand.getWeekBasedMaterialDemand().getMaterialNumberCustomer() + ) + .build()) .toList(); } } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LoggingHistoryServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LoggingHistoryServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java index 64e2d2dd..b16e1ddf 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/LoggingHistoryServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java @@ -20,28 +20,29 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import jakarta.servlet.http.HttpServletRequest; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.ArchivedLogEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.LoggingHistoryEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UserEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.ArchivedLogsRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.LoggingHistoryRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.UserRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.FavoriteService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UserUtil; +import org.springframework.stereotype.Service; + import java.sql.Timestamp; import java.time.LocalDateTime; import java.util.*; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.ArchivedLogEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.LoggingHistoryEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UserEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.ArchivedLogsRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.LoggingHistoryRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.UserRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.FavoriteService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UserUtil; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service @@ -156,22 +157,20 @@ private ArchivedLogEntity convertDtoToArchivedEntity(LoggingHistoryRequest loggi // @Override public List getLoggingHistoryByCapacityId(String capacityGroupId) { List loggingHistoryResponses = getAllLoggingHistory(); - loggingHistoryResponses = - loggingHistoryResponses - .stream() - .filter(log -> (Objects.equals(log.getCapacityGroupId(), capacityGroupId))) - .collect(Collectors.toList()); + loggingHistoryResponses = loggingHistoryResponses + .stream() + .filter(log -> (Objects.equals(log.getCapacityGroupId(), capacityGroupId))) + .collect(Collectors.toList()); return loggingHistoryResponses; } // @Override public List getLoggingHistoryByMaterialDemandId(String materialDemandId) { List loggingHistoryResponses = getAllLoggingHistory(); - loggingHistoryResponses = - loggingHistoryResponses - .stream() - .filter(log -> Objects.equals(log.getMaterialDemandId(), materialDemandId)) - .collect(Collectors.toList()); + loggingHistoryResponses = loggingHistoryResponses + .stream() + .filter(log -> Objects.equals(log.getMaterialDemandId(), materialDemandId)) + .collect(Collectors.toList()); return loggingHistoryResponses; } diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/RulesetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/RulesetServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java index 546eee1b..24343bd1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/RulesetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java @@ -20,21 +20,22 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.AddRuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.RuleResponse; -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; +import eclipse.tractusx.demandcapacitymgm.specification.model.AddRuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.RuleResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.Rule; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.RulesetRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.RulesetService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.Rule; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.RulesetRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.RulesetService; import org.springframework.stereotype.Service; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + @RequiredArgsConstructor @Service @Slf4j diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/SecurityTokenServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java similarity index 88% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/SecurityTokenServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java index e2c07cac..013d4ffe 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/SecurityTokenServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java @@ -20,22 +20,21 @@ * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; import com.auth0.jwt.JWT; import com.auth0.jwt.interfaces.Claim; import com.auth0.jwt.interfaces.DecodedJWT; import com.fasterxml.uuid.Logger; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.IntrospectTokenResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.Role; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.TokenResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.User; -import java.util.*; +import eclipse.tractusx.demandcapacitymgm.specification.model.IntrospectTokenResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.Role; +import eclipse.tractusx.demandcapacitymgm.specification.model.TokenResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.User; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UserEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.UserRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.SecurityTokenService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UserEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.UserRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.SecurityTokenService; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatusCode; @@ -47,6 +46,8 @@ import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; +import java.util.*; + @RequiredArgsConstructor @Service @Slf4j @@ -200,13 +201,11 @@ private User fetchUser(TokenResponse token) { String userID = decodedJWT.getSubject(); UserEntity entity = userRepository .findById(UUID.fromString(userID)) - .orElseGet( - () -> { - UserEntity newUserEntity = generateUser(userID, decodedJWT); - userRepository.save(newUserEntity); - return newUserEntity; - } - ); + .orElseGet(() -> { + UserEntity newUserEntity = generateUser(userID, decodedJWT); + userRepository.save(newUserEntity); + return newUserEntity; + }); return convertUserEntity(entity, token.getAccessToken(), token.getRefreshToken(), token.getExpiresIn()); } @@ -223,8 +222,7 @@ private UserEntity generateUser(String userID, DecodedJWT decodedJWT) { ); Claim rolesClaim = decodedJWT.getClaim("realm_access"); - Map realmAccessMap = Optional - .ofNullable(rolesClaim) + Map realmAccessMap = Optional.ofNullable(rolesClaim) .map(Claim::asMap) .orElse(Collections.emptyMap()); @@ -236,9 +234,10 @@ private UserEntity generateUser(String userID, DecodedJWT decodedJWT) { if (roleObj instanceof String) { String roleStr = (String) roleObj; try { - org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role role = org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role.valueOf( - roleStr - ); + org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role role = + org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role.valueOf( + roleStr + ); newUserEntity.setRole(role); break; } catch (Exception e) { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/StatusesServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java similarity index 85% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/StatusesServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java index 9cbbd72c..968337c2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/StatusesServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java @@ -20,20 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.StatusesResponse; -import java.util.Optional; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.StatusesResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.StatusesEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.StatusesRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.StatusesService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.StatusesEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.StatusesRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.StatusesService; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; +import java.util.Optional; +import java.util.UUID; + @Lazy @RequiredArgsConstructor @Service @@ -43,8 +44,7 @@ public class StatusesServiceImpl implements StatusesService { private final StatusesRepository statusesRepository; private StatusesEntity convertDtoToEntity(StatusRequest statusRequest, String userID) { - return StatusesEntity - .builder() + return StatusesEntity.builder() .userID(UUID.fromString(userID)) .todosCount(statusRequest.getTodos()) .generalCount(statusRequest.getGeneral()) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UnityOfMeasureServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UnityOfMeasureServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java index be5b5da6..4dbb33dd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UnityOfMeasureServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java @@ -20,20 +20,21 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.UnitMeasure; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UnitMeasureEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.BadRequestException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.UnitMeasureRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.UnityOfMeasureService; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UnitMeasure; import java.util.List; import java.util.Optional; import java.util.UUID; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UnitMeasureEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.UnitMeasureRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.UnityOfMeasureService; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UserOperationsServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java similarity index 76% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UserOperationsServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java index efe32e9c..92d81edd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/UserOperationsServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java @@ -19,21 +19,22 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************* */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; + +import eclipse.tractusx.demandcapacitymgm.specification.model.UserRequest; +import eclipse.tractusx.demandcapacitymgm.specification.model.UserResponse; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.UserEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.UserRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.UserOperationsService; +import org.springframework.stereotype.Service; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserRequest; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.UserResponse; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UserEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.UserRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.UserOperationsService; -import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service @@ -71,9 +72,8 @@ private UserResponse convertToDto(UserEntity entity) { user.setUserID(entity.getId().toString()); user.setEmail(entity.getEmail()); user.setName(entity.getName()); - eclipse.tractusx.demand_capacity_mgmt_specification.model.Role role = eclipse.tractusx.demand_capacity_mgmt_specification.model.Role.fromValue( - entity.getRole().name() - ); + eclipse.tractusx.demandcapacitymgm.specification.model.Role role = + eclipse.tractusx.demandcapacitymgm.specification.model.Role.fromValue(entity.getRole().name()); user.setRole(role); user.setUsername(entity.getUsername()); user.setCompanyID(String.valueOf(entity.getCompanyID())); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java similarity index 58% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java index c0f763b8..e5f82dfb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java @@ -20,28 +20,29 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; -import java.util.List; -import java.util.Optional; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CapacityGroupEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedCapacityGroupEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.NotFoundException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.MaterialDemandRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.WeekBasedCapacityGroupRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedCapacityGroupService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.DataConverterUtil; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.CapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedCapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.NotFoundException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.MaterialDemandRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.WeekBasedCapacityGroupRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedCapacityGroupService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.DataConverterUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UUIDUtil; import org.springframework.stereotype.Service; +import java.util.List; +import java.util.Optional; +import java.util.UUID; + @RequiredArgsConstructor @Service @Slf4j @@ -58,16 +59,14 @@ public void createWeekBasedCapacityGroup( List weekBasedCapacityGroupRequestList, String userID ) { - weekBasedCapacityGroupRequestList.forEach( - weekBasedCapacityGroupRequest -> { - validateFields(weekBasedCapacityGroupRequest.getWeekBasedCapacityGroupRequest()); - WeekBasedCapacityGroupEntity weekBasedCapacityGroup = convertEntity( - weekBasedCapacityGroupRequest.getWeekBasedCapacityGroupRequest() - ); - postLogs(weekBasedCapacityGroup.getId().toString()); - weekBasedCapacityGroupRepository.save(weekBasedCapacityGroup); - } - ); + weekBasedCapacityGroupRequestList.forEach(weekBasedCapacityGroupRequest -> { + validateFields(weekBasedCapacityGroupRequest.getWeekBasedCapacityGroupRequest()); + WeekBasedCapacityGroupEntity weekBasedCapacityGroup = convertEntity( + weekBasedCapacityGroupRequest.getWeekBasedCapacityGroupRequest() + ); + postLogs(weekBasedCapacityGroup.getId().toString()); + weekBasedCapacityGroupRepository.save(weekBasedCapacityGroup); + }); } private void postLogs(String weekBasedCapacityGroupId) { @@ -83,48 +82,42 @@ private void postLogs(String weekBasedCapacityGroupId) { @Override public void receiveWeekBasedCapacityGroup() { try { - List weekBasedCapacityGroupEntities = weekBasedCapacityGroupRepository.getAllByViewed( - false - ); + List weekBasedCapacityGroupEntities = + weekBasedCapacityGroupRepository.getAllByViewed(false); - weekBasedCapacityGroupEntities.forEach( - weekBasedCapacityGroupEntity -> { - WeekBasedCapacityGroupRequest weekBasedCapacityGroup = weekBasedCapacityGroupEntity.getWeekBasedCapacityGroup(); + weekBasedCapacityGroupEntities.forEach(weekBasedCapacityGroupEntity -> { + WeekBasedCapacityGroupRequest weekBasedCapacityGroup = + weekBasedCapacityGroupEntity.getWeekBasedCapacityGroup(); - if (weekBasedCapacityGroup != null) { - List likedDemandSeriesList = weekBasedCapacityGroup.getLinkedDemandSeries(); + if (weekBasedCapacityGroup != null) { + List likedDemandSeriesList = + weekBasedCapacityGroup.getLinkedDemandSeries(); - if (likedDemandSeriesList != null) { - for (LinkedDemandSeriesRequest likedDemandSeries : likedDemandSeriesList) { - String materialNumberCustomer = likedDemandSeries.getMaterialNumberCustomer(); - String customerLocation = likedDemandSeries.getCustomerLocation(); - String demandCategoryCode = likedDemandSeries.getDemandCategory().getDemandCategory(); + if (likedDemandSeriesList != null) { + for (LinkedDemandSeriesRequest likedDemandSeries : likedDemandSeriesList) { + String materialNumberCustomer = likedDemandSeries.getMaterialNumberCustomer(); + String customerLocation = likedDemandSeries.getCustomerLocation(); + String demandCategoryCode = likedDemandSeries.getDemandCategory().getDemandCategory(); - List matchingDemands = materialDemandRepository.findAllByMaterialNumberCustomerAndDemandSeriesCustomerLocationAndDemandCategory( + List matchingDemands = + materialDemandRepository.findAllByMaterialNumberCustomerAndDemandSeriesCustomerLocationAndDemandCategory( materialNumberCustomer, customerLocation, demandCategoryCode ); - matchingDemands.forEach( - materialDemandEntity -> - materialDemandEntity - .getDemandSeries() - .forEach( - demandSeries -> { - demandSeries.setCapacityGroupId( - weekBasedCapacityGroup.getCapacityGroupId() - ); - } - ) - ); - - materialDemandRepository.saveAll(matchingDemands); - } - } - } - } - ); + matchingDemands.forEach(materialDemandEntity -> + materialDemandEntity + .getDemandSeries() + .forEach(demandSeries -> { + demandSeries.setCapacityGroupId(weekBasedCapacityGroup.getCapacityGroupId()); + })); + + materialDemandRepository.saveAll(matchingDemands); + } + } + } + }); // updateStatus(); TODO: remove the comment when the EDC is ready } catch (Exception e) { //Probably sql initialize error here. @@ -188,9 +181,8 @@ private WeekBasedCapacityGroupDtoResponse convertToWeekBasedCapacityGroupDto( @Override public WeekBasedCapacityGroupEntity findById(String capacityGroupId) { - Optional weekBasedCapacityGroupEntityOptional = weekBasedCapacityGroupRepository.findById( - Integer.getInteger(capacityGroupId) - ); + Optional weekBasedCapacityGroupEntityOptional = + weekBasedCapacityGroupRepository.findById(Integer.getInteger(capacityGroupId)); if (weekBasedCapacityGroupEntityOptional.isEmpty()) { throw new NotFoundException("4", "04"); @@ -206,8 +198,7 @@ private void validateFields(WeekBasedCapacityGroupRequest weekBasedCapacityGroup } private WeekBasedCapacityGroupEntity convertEntity(WeekBasedCapacityGroupRequest weekBasedCapacityGroupRequest) { - return WeekBasedCapacityGroupEntity - .builder() + return WeekBasedCapacityGroupEntity.builder() .id(UUID.randomUUID()) .weekBasedCapacityGroup(weekBasedCapacityGroupRequest) .viewed(false) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java similarity index 55% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java index f56b6704..daa381f8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java @@ -20,26 +20,27 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; +package org.eclipse.tractusx.demandcapacitymgmt.backend.services.impl; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; -import java.util.LinkedList; -import java.util.List; -import java.util.UUID; +import eclipse.tractusx.demandcapacitymgm.specification.model.*; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.type.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.WeekBasedMaterialDemandRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LoggingHistoryService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedMaterialService; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.DataConverterUtil; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.MaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedMaterialDemandEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.exceptions.type.BadRequestException; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.WeekBasedMaterialDemandRepository; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.LoggingHistoryService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.WeekBasedMaterialService; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.DataConverterUtil; +import org.eclipse.tractusx.demandcapacitymgmt.backend.utils.UUIDUtil; import org.springframework.stereotype.Service; +import java.util.LinkedList; +import java.util.List; +import java.util.UUID; + @RequiredArgsConstructor @Service @Slf4j @@ -55,21 +56,21 @@ public void createWeekBasedMaterial( List weekBasedMaterialDemandRequestDtoList, String userID ) { - oldWeekBasedMaterialDemands = - DataConverterUtil.convertToWeekBasedMaterialDemandDtoList(weekBasedMaterialDemandRepository.findAll()); - weekBasedMaterialDemandRequestDtoList.forEach( - weekBasedMaterialDemandRequestDto -> { - validateFields(weekBasedMaterialDemandRequestDto); - - WeekBasedMaterialDemandEntity weekBasedMaterialDemand = convertEntity( - weekBasedMaterialDemandRequestDto.getWeekBasedMaterialDemandRequest() - ); - postLogs(weekBasedMaterialDemand.getId().toString()); - weekBasedMaterialDemandRepository.save(weekBasedMaterialDemand); - } + oldWeekBasedMaterialDemands = DataConverterUtil.convertToWeekBasedMaterialDemandDtoList( + weekBasedMaterialDemandRepository.findAll() + ); + weekBasedMaterialDemandRequestDtoList.forEach(weekBasedMaterialDemandRequestDto -> { + validateFields(weekBasedMaterialDemandRequestDto); + + WeekBasedMaterialDemandEntity weekBasedMaterialDemand = convertEntity( + weekBasedMaterialDemandRequestDto.getWeekBasedMaterialDemandRequest() + ); + postLogs(weekBasedMaterialDemand.getId().toString()); + weekBasedMaterialDemandRepository.save(weekBasedMaterialDemand); + }); + newWeekBasedMaterialDemands = DataConverterUtil.convertToWeekBasedMaterialDemandDtoList( + weekBasedMaterialDemandRepository.findAll() ); - newWeekBasedMaterialDemands = - DataConverterUtil.convertToWeekBasedMaterialDemandDtoList(weekBasedMaterialDemandRepository.findAll()); } private void postLogs(String weekBasedMaterialDemandId) { @@ -89,9 +90,8 @@ public void sendWeekBasedMaterial() {} @Override public void receiveWeekBasedMaterial() { - List weekBasedMaterialDemandEntities = weekBasedMaterialDemandRepository.getAllByViewed( - false - ); + List weekBasedMaterialDemandEntities = + weekBasedMaterialDemandRepository.getAllByViewed(false); } @Override @@ -121,15 +121,17 @@ public WeekBasedMaterialDemandResponseDto updateWeekBasedMaterial( WeekBasedMaterialDemandRequestDto weekBasedCapacityGroupRequest, String userID ) { - oldWeekBasedMaterialDemands = - DataConverterUtil.convertToWeekBasedMaterialDemandDtoList(weekBasedMaterialDemandRepository.findAll()); + oldWeekBasedMaterialDemands = DataConverterUtil.convertToWeekBasedMaterialDemandDtoList( + weekBasedMaterialDemandRepository.findAll() + ); WeekBasedMaterialDemandEntity weekBasedCapacityGroupEntity = convertWeekMaterialDemandToEntity( weekBasedCapacityGroupRequest ); weekBasedCapacityGroupEntity.setId(UUID.fromString(id)); weekBasedCapacityGroupEntity = weekBasedMaterialDemandRepository.save(weekBasedCapacityGroupEntity); - newWeekBasedMaterialDemands = - DataConverterUtil.convertToWeekBasedMaterialDemandDtoList(weekBasedMaterialDemandRepository.findAll()); + newWeekBasedMaterialDemands = DataConverterUtil.convertToWeekBasedMaterialDemandDtoList( + weekBasedMaterialDemandRepository.findAll() + ); return convertToWeekBasedCapacityGroupDto(weekBasedCapacityGroupEntity); } @@ -155,40 +157,34 @@ public void createWeekBasedMaterialRequestFromEntity(MaterialDemandEntity materi materialDemandEntity .getDemandSeries() - .forEach( - demandSeries -> { - DemandWeekSeriesDto demandWeekSeriesDto = new DemandWeekSeriesDto(); + .forEach(demandSeries -> { + DemandWeekSeriesDto demandWeekSeriesDto = new DemandWeekSeriesDto(); - demandWeekSeriesDto.setCustomerLocation(demandSeries.getCustomerLocation().getBpn()); - demandWeekSeriesDto.setExpectedSupplierLocation( - demandSeries.getExpectedSupplierLocation().toString() - ); + demandWeekSeriesDto.setCustomerLocation(demandSeries.getCustomerLocation().getBpn()); + demandWeekSeriesDto.setExpectedSupplierLocation(demandSeries.getExpectedSupplierLocation().toString()); - DemandSeriesCategoryDto demandSeriesCategoryDto = new DemandSeriesCategoryDto(); - demandSeriesCategoryDto.setId(demandSeries.getDemandCategory().getId().toString()); + DemandSeriesCategoryDto demandSeriesCategoryDto = new DemandSeriesCategoryDto(); + demandSeriesCategoryDto.setId(demandSeries.getDemandCategory().getId().toString()); - demandWeekSeriesDto.setDemandCategory(demandSeriesCategoryDto); + demandWeekSeriesDto.setDemandCategory(demandSeriesCategoryDto); - List demandSeriesDtos = demandSeries - .getDemandSeriesValues() - .stream() - .map( - demandSeriesValues -> { - DemandSeriesDto demandSeriesDto = new DemandSeriesDto(); + List demandSeriesDtos = demandSeries + .getDemandSeriesValues() + .stream() + .map(demandSeriesValues -> { + DemandSeriesDto demandSeriesDto = new DemandSeriesDto(); - demandSeriesDto.setCalendarWeek(demandSeriesValues.getCalendarWeek().toString()); - demandSeriesValues.setDemand(demandSeriesValues.getDemand()); + demandSeriesDto.setCalendarWeek(demandSeriesValues.getCalendarWeek().toString()); + demandSeriesValues.setDemand(demandSeriesValues.getDemand()); - return demandSeriesDto; - } - ) - .toList(); + return demandSeriesDto; + }) + .toList(); - demandWeekSeriesDto.setDemands(demandSeriesDtos); + demandWeekSeriesDto.setDemands(demandSeriesDtos); - demandWeekSeriesDtoList.add(demandWeekSeriesDto); - } - ); + demandWeekSeriesDtoList.add(demandWeekSeriesDto); + }); } private void validateFields(WeekBasedMaterialDemandRequestDto weekBasedMaterialDemandRequestDto) { @@ -203,25 +199,18 @@ private void validateFields(WeekBasedMaterialDemandRequestDto weekBasedMaterialD weekBasedMaterialDemandRequestDto .getWeekBasedMaterialDemandRequest() .getDemandSeries() - .forEach( - demandWeekSeriesDto -> - demandWeekSeriesDto - .getDemands() - .forEach( - demandSeriesDto -> { - if ( - Boolean.FALSE.equals(DataConverterUtil.itsMonday(demandSeriesDto.getCalendarWeek())) - ) { - throw new BadRequestException("1", "11"); - } - } - ) - ); + .forEach(demandWeekSeriesDto -> + demandWeekSeriesDto + .getDemands() + .forEach(demandSeriesDto -> { + if (Boolean.FALSE.equals(DataConverterUtil.itsMonday(demandSeriesDto.getCalendarWeek()))) { + throw new BadRequestException("1", "11"); + } + })); } private WeekBasedMaterialDemandEntity convertEntity(WeekBasedMaterialDemandRequest weekBasedMaterialDemandRequest) { - return WeekBasedMaterialDemandEntity - .builder() + return WeekBasedMaterialDemandEntity.builder() .id(UUID.randomUUID()) .weekBasedMaterialDemand(weekBasedMaterialDemandRequest) .viewed(false) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/BottleneckDetectorUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java similarity index 84% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/BottleneckDetectorUtil.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java index d13800b3..a4bafceb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/BottleneckDetectorUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java @@ -20,9 +20,23 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils; +package org.eclipse.tractusx.demandcapacitymgmt.backend.utils; + +import eclipse.tractusx.demandcapacitymgm.specification.model.*; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang3.tuple.Pair; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks.CategoryDeltaDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks.MonthReportDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks.WeekReportDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.bottlenecks.YearReportDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventObjectType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.EventType; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; +import org.eclipse.tractusx.demandcapacitymgmt.backend.repositories.*; +import org.eclipse.tractusx.demandcapacitymgmt.backend.services.BottleneckManager; +import org.springframework.stereotype.Component; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; import java.sql.Timestamp; import java.time.DayOfWeek; import java.time.LocalDate; @@ -31,19 +45,6 @@ import java.time.temporal.WeekFields; import java.util.*; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; -import org.apache.commons.lang3.tuple.Pair; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks.CategoryDeltaDto; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks.MonthReportDto; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks.WeekReportDto; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.bottlenecks.YearReportDto; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.BottleneckManager; -import org.springframework.stereotype.Component; @RequiredArgsConstructor @Component @@ -65,18 +66,16 @@ public class BottleneckDetectorUtil implements BottleneckManager { public void calculateTodos(String userID) { userRepository .findById(UUID.fromString(userID)) - .ifPresent( - user -> { - List demands = fetchDemandsBasedOnRole(user, userID); + .ifPresent(user -> { + List demands = fetchDemandsBasedOnRole(user, userID); - StatusesEntity statusesEntity = statusesRepository - .findByUserID(UUID.fromString(userID)) - .orElseGet(() -> generateNewEntity(userID)); + StatusesEntity statusesEntity = statusesRepository + .findByUserID(UUID.fromString(userID)) + .orElseGet(() -> generateNewEntity(userID)); - statusesEntity.setTodosCount(demands.size()); - statusesRepository.save(statusesEntity); - } - ); + statusesEntity.setTodosCount(demands.size()); + statusesRepository.save(statusesEntity); + }); } private StatusesEntity generateNewEntity(String userID) { @@ -87,31 +86,26 @@ private List fetchDemandsBasedOnRole(UserEntity user, Stri List demands = new ArrayList<>(); if (user.getRole().equals(Role.CUSTOMER)) { - demands = - materialDemandRepository - .findAll() //TODO SUPPLIER AQUI findbysupplierID - .stream() - .filter( - d -> - d - .getDemandSeries() - .stream() - .allMatch( - series -> - series - .getDemandSeriesValues() - .stream() - .allMatch(value -> value.getDemand() == 0) - ) - ) - .collect(Collectors.toList()); + demands = materialDemandRepository + .findAll() //TODO SUPPLIER AQUI findbysupplierID + .stream() + .filter( + d -> + d + .getDemandSeries() + .stream() + .allMatch( + series -> + series.getDemandSeriesValues().stream().allMatch(value -> value.getDemand() == 0) + ) + ) + .collect(Collectors.toList()); } else if (user.getRole().equals(Role.SUPPLIER)) { - demands = - materialDemandRepository - .findAll() //TODO CUSTOMER AQUI findbycustomerID - .stream() - .filter(d -> d.getLinkStatus() == EventType.UN_LINKED) - .collect(Collectors.toList()); + demands = materialDemandRepository + .findAll() //TODO CUSTOMER AQUI findbycustomerID + .stream() + .filter(d -> d.getLinkStatus() == EventType.UN_LINKED) + .collect(Collectors.toList()); } return demands; } @@ -404,9 +398,8 @@ public YearReportResponse generateYearReport( for (int year = startDate.getYear(); year <= endDate.getYear(); year++) { YearReportDto yearReport = new YearReportDto(); CapacityGroupEntity cgs = capacityGroupRepository.findById(UUID.fromString(capacityGroupID)).get(); - List matchedEntities = matchedDemandsRepository.findByCapacityGroupID( - cgs.getId() - ); + List matchedEntities = + matchedDemandsRepository.findByCapacityGroupID(cgs.getId()); yearReport.setYear(year); yearReport.setCapacityGroupId(capacityGroupID); yearReport.setTotalWeeksCurrentYear(getWeeksInYear(year)); @@ -532,29 +525,25 @@ private List getDemandsForWeek( Optional materialDemandOpt = materialDemandRepository.findById( entity.getMaterialDemandID() ); - materialDemandOpt.ifPresent( - materialDemand -> { - for (DemandSeries demandSeries : materialDemand.getDemandSeries()) { - // Filter the demand series values based on the weekOfYear and year - List filteredValues = demandSeries - .getDemandSeriesValues() - .stream() - .filter( - dsv -> { - LocalDate demandDate = dsv.getCalendarWeek(); - return ( - demandDate.get(WeekFields.of(Locale.getDefault()).weekOfWeekBasedYear()) == - weekOfYear && - demandDate.getYear() == year - ); - } - ) - .toList(); - - weekDemandValues.addAll(filteredValues); - } + materialDemandOpt.ifPresent(materialDemand -> { + for (DemandSeries demandSeries : materialDemand.getDemandSeries()) { + // Filter the demand series values based on the weekOfYear and year + List filteredValues = demandSeries + .getDemandSeriesValues() + .stream() + .filter(dsv -> { + LocalDate demandDate = dsv.getCalendarWeek(); + return ( + demandDate.get(WeekFields.of(Locale.getDefault()).weekOfWeekBasedYear()) == + weekOfYear && + demandDate.getYear() == year + ); + }) + .toList(); + + weekDemandValues.addAll(filteredValues); } - ); + }); } return weekDemandValues; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/CorsConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/CorsConfig.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java index 655458da..1751c049 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/CorsConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils; +package org.eclipse.tractusx.demandcapacitymgmt.backend.utils; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/DataConverterUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java similarity index 89% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/DataConverterUtil.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java index 626514c9..22e9277b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/DataConverterUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java @@ -20,10 +20,13 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils; +package org.eclipse.tractusx.demandcapacitymgmt.backend.utils; + +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedCapacityGroupDtoResponse; +import eclipse.tractusx.demandcapacitymgm.specification.model.WeekBasedMaterialDemandResponseDto; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedCapacityGroupEntity; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.WeekBasedMaterialDemandEntity; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupDtoResponse; -import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandResponseDto; import java.time.DayOfWeek; import java.time.LocalDate; import java.time.LocalDateTime; @@ -31,8 +34,6 @@ import java.time.temporal.ChronoField; import java.util.ArrayList; import java.util.List; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedCapacityGroupEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; public class DataConverterUtil { @@ -60,8 +61,7 @@ public static Boolean checkDatesSequence(List dates) { LocalDateTime nextDateTime = dates.get(i + 1); if ( nextDateTime.getLong(ChronoField.ALIGNED_WEEK_OF_YEAR) != - currentDateTime.getLong(ChronoField.ALIGNED_WEEK_OF_YEAR) + - 1 + currentDateTime.getLong(ChronoField.ALIGNED_WEEK_OF_YEAR) + 1 ) { isSequentialWeeks = false; break; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UUIDUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java similarity index 95% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UUIDUtil.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java index b670e0d5..fb81b55c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UUIDUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java @@ -20,7 +20,7 @@ * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils; +package org.eclipse.tractusx.demandcapacitymgmt.backend.utils; import java.util.UUID; import java.util.regex.Pattern; diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UserUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java similarity index 86% rename from demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UserUtil.java rename to demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java index 24f5bc40..d838c3a6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/utils/UserUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java @@ -19,17 +19,16 @@ * SPDX-License-Identifier: Apache-2.0 * ******************************************************************************** */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils; +package org.eclipse.tractusx.demandcapacitymgmt.backend.utils; import com.auth0.jwt.JWT; import com.auth0.jwt.interfaces.Claim; import com.auth0.jwt.interfaces.DecodedJWT; import com.fasterxml.uuid.Logger; import jakarta.servlet.http.HttpServletRequest; +import org.eclipse.tractusx.demandcapacitymgmt.backend.entities.enums.Role; + import java.util.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.UserEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.Role; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.UserRepository; public class UserUtil { @@ -54,8 +53,7 @@ public static Role getUserRole(HttpServletRequest request) { try { DecodedJWT decodedJWT = JWT.decode(Objects.requireNonNull(getTokenFromHeader(request))); Claim rolesClaim = decodedJWT.getClaim("realm_access"); - Map realmAccessMap = Optional - .ofNullable(rolesClaim) + Map realmAccessMap = Optional.ofNullable(rolesClaim) .map(Claim::asMap) .orElse(Collections.emptyMap()); diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AlertServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AlertServiceImpl.java deleted file mode 100644 index 269c2e5f..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/AlertServiceImpl.java +++ /dev/null @@ -1,302 +0,0 @@ -/* - * ****************************************************************************** - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************* - */ -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; - -import eclipse.tractusx.demand_capacity_mgmt_specification.model.*; -import java.sql.Timestamp; -import java.time.LocalDateTime; -import java.util.List; -import java.util.Objects; -import java.util.UUID; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.*; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertThresholdType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.AlertsMonitoredObjects; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.enums.EventObjectType; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.AlertsRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.TriggeredAlertsRepository; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.AlertService; -import org.springframework.context.annotation.Lazy; -import org.springframework.stereotype.Service; - -@Lazy -@RequiredArgsConstructor -@Service -@Slf4j -public class AlertServiceImpl implements AlertService { - - private final AlertsRepository alertsRepository; - private final TriggeredAlertsRepository triggeredAlertsRepository; - - @Override - public AlertResponse configureAlert(AlertRequest alertRequest) { - AlertEntity alertEntity = convertDtoToEntity(alertRequest); - alertsRepository.save(alertEntity); - return convertAlertsResponseDto(alertEntity); - } - - @Override - public void triggerDemandAlertsIfNeeded( - String userID, - boolean isMaterialDemandChange, - double oldValue, - double newValue, - String materialDemandId - ) { - List alerts = alertsRepository.findAllByUserID(UUID.fromString(userID)); - alerts.forEach( - alertEntity -> { - TriggeredAlertEntity triggeredAlertEntity = new TriggeredAlertEntity(); - triggeredAlertEntity.setId(UUID.randomUUID()); - triggeredAlertEntity.setAlertName(alertEntity.getAlertName()); - triggeredAlertEntity.setType(alertEntity.getType()); - triggeredAlertEntity.setUserID(alertEntity.getUserID()); - triggeredAlertEntity.setMonitoredObjects(alertEntity.getMonitoredObjects()); - triggeredAlertEntity.setThreshold(alertEntity.getThreshold()); - LocalDateTime currentLocalDateTime = LocalDateTime.now(); - triggeredAlertEntity.setCreated(Timestamp.valueOf(currentLocalDateTime).toString()); - if (isGlobalAlert(isMaterialDemandChange, alertEntity)) { - if (alertEntity.getType().equals(AlertThresholdType.RELATIVE)) { - double threshold = alertEntity.getThreshold() / 100; - double demandDelta = threshold * oldValue; - if (threshold >= 0 && (newValue - oldValue >= demandDelta)) { - fillTriggeredAlert( - triggeredAlertEntity, - "Increased by ", - alertEntity.getThreshold(), - true, - alertEntity - ); - } else if ((threshold < 0 && (newValue - oldValue <= demandDelta))) { - fillTriggeredAlert( - triggeredAlertEntity, - "Decreased by ", - alertEntity.getThreshold(), - true, - alertEntity - ); - } - } else if (alertEntity.getType().equals(AlertThresholdType.ABSOLUTE)) { - double threshold = alertEntity.getThreshold(); - if (threshold >= 0 && (newValue - oldValue >= threshold)) { - fillTriggeredAlert(triggeredAlertEntity, "Increased by ", threshold, false, alertEntity); - } else if ((threshold < 0 && (newValue - oldValue <= threshold))) { - fillTriggeredAlert(triggeredAlertEntity, "Decreased by ", threshold, false, alertEntity); - } - } - } else if (alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.DEDICATED)) { - alertEntity - .getDedicatedAlerts() - .forEach( - dedicatedAlert -> { - if (Objects.equals(materialDemandId, dedicatedAlert.getObjectId().toString())) { - if (alertEntity.getType().equals(AlertThresholdType.ABSOLUTE)) { - double threshold = alertEntity.getThreshold(); - if (threshold >= 0 && (newValue - oldValue >= threshold)) { - fillTriggeredAlert( - triggeredAlertEntity, - "Increased by ", - threshold, - false, - alertEntity - ); - } else if ((threshold < 0 && (newValue - oldValue <= threshold))) { - fillTriggeredAlert( - triggeredAlertEntity, - "Decreased by ", - threshold, - false, - alertEntity - ); - } - } else { - double threshold = alertEntity.getThreshold() / 100; - double demandDelta = alertEntity.getThreshold() * oldValue; - if (threshold >= 0 && (newValue - oldValue >= demandDelta)) { - fillTriggeredAlert( - triggeredAlertEntity, - "Increased by ", - threshold, - true, - alertEntity - ); - } else if ((threshold < 0 && (newValue - oldValue <= demandDelta))) { - fillTriggeredAlert( - triggeredAlertEntity, - "Decreased by ", - threshold, - true, - alertEntity - ); - } - } - } - } - ); - } - } - ); - } - - private void fillTriggeredAlert( - TriggeredAlertEntity triggeredAlertEntity, - String message, - double threshold, - boolean isRelative, - AlertEntity alertEntity - ) { - triggeredAlertEntity.setDescription(message + threshold + (isRelative ? "%" : " units")); - alertEntity.setTriggeredTimes(alertEntity.getTriggeredTimes() + 1); - alertsRepository.save(alertEntity); - triggeredAlertsRepository.save(triggeredAlertEntity); - } - - private static boolean isGlobalAlert(boolean isMaterialDemandChange, AlertEntity alertEntity) { - return ( - alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_DEMANDS) || - ( - alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_CAPACITIES) && - !isMaterialDemandChange - ) || - alertEntity.getMonitoredObjects().equals(AlertsMonitoredObjects.ALL_OBJECTS) - ); - } - - @Override - public List getAlerts(String userID) { - List alerts = alertsRepository.findAll(); - - getAlertByUserId(userID, alerts); - return alerts.stream().map(this::convertAlertsResponseDto).toList(); - } - - private static void getTriggeredAlertByUserId(String userID, List alerts) { - alerts - .stream() - .filter( - alertEntity -> { - if (alertEntity.getUserID().toString().equals(userID)) { - alerts.add(alertEntity); - } - return false; - } - ); - } - - private static void getAlertByUserId(String userID, List alerts) { - alerts - .stream() - .filter( - alertEntity -> { - if (alertEntity.getUserID().toString().equals(userID)) { - alerts.add(alertEntity); - } - return false; - } - ); - } - - @Override - public List getTriggeredAlerts(String userID) { - List alerts = triggeredAlertsRepository.findAll(); - getTriggeredAlertByUserId(userID, alerts); - return alerts.stream().map(this::convertTriggeredAlertsResponseDto).toList(); - } - - @Override - public TriggeredAlertResponse postTriggeredAlerts(TriggeredAlertRequest triggeredAlertRequest) { - return null; - } - - private AlertResponse convertAlertsResponseDto(AlertEntity alertEntity) { - List dedicatedAlerts = alertEntity - .getDedicatedAlerts() - .stream() - .map(this::enrichDedicateAlertResponse) - .toList(); - - AlertResponse responseDto = new AlertResponse(); - responseDto.setType(alertEntity.getType().name()); - responseDto.setAlertId("" + alertEntity.getId()); - responseDto.setAlertName(alertEntity.getAlertName()); - responseDto.setCreated(alertEntity.getCreated()); - responseDto.setMonitoredObjects(alertEntity.getMonitoredObjects().name()); - responseDto.setThreshold(String.valueOf(alertEntity.getThreshold())); - responseDto.setUser(alertEntity.getUserID().toString()); - //responseDto.setTriggerTimes(alertEntity.getTriggeredTimes()); - responseDto.setDedicatedAlerts(dedicatedAlerts); - return responseDto; - } - - DedicatedAlert enrichDedicateAlertResponse(DedicatedAlertEntity alertEntity) { - DedicatedAlert dedicatedAlert = new DedicatedAlert(); - dedicatedAlert.setId(alertEntity.getId().toString()); - dedicatedAlert.setType(alertEntity.getType().toString()); - dedicatedAlert.setObjectId(alertEntity.getObjectId().toString()); - return dedicatedAlert; - } - - private TriggeredAlertResponse convertTriggeredAlertsResponseDto(TriggeredAlertEntity alertEntity) { - TriggeredAlertResponse responseDto = new TriggeredAlertResponse(); - responseDto.setType(alertEntity.getType().name()); - responseDto.setAlertId("" + alertEntity.getId()); - responseDto.setAlertName(alertEntity.getAlertName()); - responseDto.setCreated(alertEntity.getCreated()); - responseDto.setDescription(alertEntity.getDescription()); - responseDto.setMonitoredObjects(alertEntity.getMonitoredObjects().name()); - responseDto.setThreshold(String.valueOf(alertEntity.getThreshold())); - responseDto.setUser(alertEntity.getUserID().toString()); - return responseDto; - } - - DedicatedAlertEntity convertDedicatedAlertsDtoToEntity(DedicatedAlert dedicatedAlert) { - return DedicatedAlertEntity - .builder() - .id(UUID.randomUUID()) - .type(EventObjectType.valueOf(dedicatedAlert.getType())) - .objectId(UUID.fromString(dedicatedAlert.getObjectId())) - .build(); - } - - private AlertEntity convertDtoToEntity(AlertRequest alertRequest) { - List dedicatedAlertEntities = alertRequest - .getDedicatedAlerts() - .stream() - .map(this::convertDedicatedAlertsDtoToEntity) - .toList(); - LocalDateTime currentLocalDateTime = LocalDateTime.now(); - - return AlertEntity - .builder() - .id(UUID.randomUUID()) - .alertName(alertRequest.getAlertName()) - .created(Timestamp.valueOf(currentLocalDateTime).toString()) - .monitoredObjects(AlertsMonitoredObjects.valueOf(alertRequest.getMonitoredObjects())) - .threshold(Double.parseDouble(alertRequest.getThreshold().toString())) - .triggeredTimes(0) - .userID(UUID.fromString(alertRequest.getUser())) - .type(AlertThresholdType.valueOf(alertRequest.getType())) - .dedicatedAlerts(dedicatedAlertEntities) - .build(); - } -} diff --git a/demand-capacity-mgmt-specification/pom.xml b/demand-capacity-mgmt-specification/pom.xml index a44ec3c6..01be9610 100644 --- a/demand-capacity-mgmt-specification/pom.xml +++ b/demand-capacity-mgmt-specification/pom.xml @@ -44,14 +44,16 @@ 17 UTF-8 UTF-8 - eclipse.tractusx.demand-capacity-mgmt-specification.api - eclipse.tractusx.demand-capacity-mgmt-specification.model + eclipse.tractusx.demandcapacitymgm.specification.api + eclipse.tractusx.demandcapacitymgm.specification.model 2.2.8 0.2.4 6.2.1 - eclipse.tractusx.demand-capacity-mgmt-specification.server - eclipse.tractusx.demand-capacity-mgmt-specification.client + eclipse.tractusx.demandcapacitymgm.specification.server + + eclipse.tractusx.demandcapacitymgm.specification.client + diff --git a/demand-capacity-mgmt-specification/src/main/resources/swagger.properties b/demand-capacity-mgmt-specification/src/main/resources/swagger.properties index 3b304c9e..10ab34ce 100644 --- a/demand-capacity-mgmt-specification/src/main/resources/swagger.properties +++ b/demand-capacity-mgmt-specification/src/main/resources/swagger.properties @@ -22,5 +22,5 @@ swagger.yaml.path=src/main/resources swagger.modelNameSuffix= -swagger.basePackage=org.eclipse.tractusx-specification.api -swagger.modelPackage=org.eclipse.tractusx-specification.api.model \ No newline at end of file +swagger.basePackage=org.eclipse.tractusx.demandcapacitymgm.specification.api +swagger.modelPackage=org.eclipse.tractusx.demandcapacitymgm.api.model From c843ef7d389a344f0c92ce6bfe6bc42c8c302e25 Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Fri, 5 Jul 2024 17:46:00 +0530 Subject: [PATCH 2/5] fix: deleted files --- AUTHORS.pdf | Bin 1720 -> 0 bytes INSTALL.pdf | Bin 4020 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 AUTHORS.pdf delete mode 100644 INSTALL.pdf diff --git a/AUTHORS.pdf b/AUTHORS.pdf deleted file mode 100644 index 31a3e33d0ee87aee13627f8a4f2b9493e148e9b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1720 zcmb7FYitx%6sF~&oni~MViW>5#6C9L-I>{)$8H~6=swKS2V}dgl}*)Y_jZ|PcLrys zrQHU3DFsbMO=G3eSj($4H9(-EXj>u+KB$jUD~3X%LQN@1N+hvC8oaaYvNj|}@1J|_ zxo5s}&Ue3iCvA<*p(FJamiFuA?}jl75J0S|#d33T2k%#)gggA40&TEb^g_G{3O;2W zpbfOeA}bQ)0$9Vlue25lqr`&kf99Uf@|^5&uG-smy}eVjwqwOP>}u!u=SSAPb}%bD zXqs$1F=3XDOdkAr?!=13Yo`Y9{NY@FXR}^wTk%_JVM1Ap#XUYR4{UXouWzu;w~XG- z>zvcyu`EB~hs;Mo!iMRbP~*O!(#6iZQpyXH_A4qPhX?%WG{XG zt3~_r3H@K?8-gDmh!c8So}12}TCg~||4`%D>BKiLgH4yZM><|8JHMVP&F`u=4vdv2 zUyi?ZrmVzb?P^Zmb7J8al{W?^=H<=)dCsz5FerE2_QDb9J>M{Zq?sIjW;^ze@<5sZ_6-A=U zCCLg=FZ<@E?#>rX$FOyjQ+QAL1)|&avj5?h1FNK~L&gO{_3PZuE0i z6~*d%Qzpav%!P5RoWl7eQiZRey zg3d4!85-P*-ZF(3g@2Di;`G*4Ln)IF>oVK{sA>eH+gRb&M3nK5mKr2jgAsrvFyj6I z3{4wpPy?bqhCnJ%2N3T2%p@v)rjH~D#L!G1L6C^_nLd&*KNx4C(Vd$aN3iUJIY{w^m-v@q-zXbGsQp_ zLehdFAmfE5x~iICDKo(^Bt~+a-+RU=>Gu8Znctk{`MvM6{Gb2(yw7Xl$#JnElW2Mt ztxv8u=+PhqlJeH*+1bI4-r(j9e!dXGX2TAuFCQ;A82qh5a9lPYhQ(4oDh`n<@cAr+ zg}{n+XmBtlw+R=)B8dQtB!%E%;#sgYnC>0U!=q#v>@Jdo!cKt*utN@l9i?&sCRcqS zL9iFb#{(&J28qdlCOr9(Bsw#Q&DO&t0>VG~7e8G@VjPphE@BkNI2d0l z07fuLFdhPtnM^vHt-$3N8m1SSvBz&&@q-G3P49}0WUCn2zBPNr{@oAmWExCoWCv2k zRTa9|mzfwQb~V;_bPc?jWnCK~-*?!_yc1Sl@px+K#Wv58GMD`*-sc*6NoZ;>$;rww zT=paXKyWMnaP_;FAA79gFD2dV*?gI2Dw-wEI50vB_h=Vx>~*%b{dK(=)ibjvK2Fc5 z``}qZAK!aWPy77zt^VfyiPrb%tCRlVSO!eGn(~a}_S<%jTR|+&E%AUe2ptl zGM;Hiq{ebA3CC71rJduO-Je=gGqH=cw_|3gchyOQql_4fg$`4+8};q!D=*odsY#E> zxUykyc!3cTW+-gzPZU{zKqfa{Zl|mig#CzTK%snZ(YAsgu9e#h8aMf9JSE>?yv))& z3T|_SN!nUnFB78(w|*@+7W45`FFTB%9@CQhSG2|`)M$6zjpwNZUfU{;-M$waHBrnk zIFsaXBO{&u1sr=xAIsVz>4oul<*m~amfs+zIy!zyE>g>Lf`)Mil@o^h1 z4cuP$q%A5X0J~VSKJvFXPJA8d=a7%HXZpr zU7E3@Ws=gzpk1eaPQLq*lh?wl>ZaDj-H#Y>kMKR2yep;FD77X(ukU93-8OFGMt|Gc zw=36l>b$D)O)6eB@QPlxnCF)keZ_0_o~qIY=c>ABG}3s^6Kd67->6aZuGpEZ_iJ?qPPu<^KkdosNGwp0gpR%Ynue&kaq;}k zHTy)KiPTx4JLa@$(<639XK7}WRRm;^92+_Ib+ch=x%;l#og6KjF^&|;B>h9svsSH= zwj}||?32;uEfuqVKQu$U(|f zV(BLF@r}M&=4&dWQ_L+MrQj`7^g}Y6H~bgXulH)Y5_7JaS9WS+Y*BcgzHY+ZCgu23 zNAvgpq6PEtw$imvtU8ahxAN_$SL0ijJhUX$M$EH2_>kkVb7kCm@#_`Jm0OYG z#RQ;6#V_E}Gf}O=i|PM<^V)v=?O;6l2)?AU;X;wpta2hVtERcAXib`Ts|H=%8Ie>r z_WDm1+RUZ1Zoj2%UH-8rMzbgM{eSU!7XjdA92*KRY@ zXTDAGu_fciEC`4{*qJ!+$e?KY^V|o{cV)iY^@}%{WL^Jb%(}OeUl>3eIbiyb@0&LDW$j0khuv4p9=rFupgnI7&^)&7|MN*(z>NRwc72k=Os2Z` zN9IHGX5EQ;{z2J?bMjWVRJM#OGrLi~qV=><+glClk(ia56APw=OfwK~W(423YVR2E zxPPJJBHcH(^k&gvlX`{bRL8c8T+L~B4r%098FH+8j(gcXK;k~tX`E(Uqi1}gUGs9+ zpO(3Coa2JUMmtW3e~Pa^Ui4Rlbx#a}@40N$(~NgoZ}hp_-8s-!Sx%%r5`tcPBo?RCza# zlNHsp_|VHK$a~I2aiv~g(t7!lyT7do>f;&)EiPY`9Z+lOx8!d4iiHij7VFC{Iqdt~0UTQ!6-=sFle)R(4t2^l3A%@Xirsqs`-Xw$GH_gc<#XA&JjmXZ^x+ zI-{P9^=mpg*(Tz2g1J>qv9Imfmc#5+*Y`WUH|ZDdtC?)|v*^86eNRw*QEbB4e%I{V zx07w*(W2P)BK`ss*6i(n%B+#G;W&EY`5i-WCj1HzgcQfd>+ic)@=D0pQ7?(MU`d z1iFW%go9+Fu>cW?a4}}(1Udo<3VBN9I4Xt~g^L83^^kcmh45~upHR*Fo((#aMpBs= zRLene6!OAwxd@B+d%XZVECM3j9&Um_=6fb+RD?ufehEVbo;nPmOpdJ$7b!$IrhtS} zIpoZ7g4{p~gXJhLl1e@YMOGm*EGk0H_e@f043aG%zz}k(^r%g`NfZDw&`|;HBY+#U zF&H6PmF!{mhP991WQxL|k{H0DAhit#PdCUL4U>s6$XOzgNkxE=BO*~-Q8Q^MS48T* z7ZihOOF~pZIZ49-%P4AE3{qw=f6jcdNT$FbB996g%EutE9weam1jw$i0@$vw{_F=x z380gUNUp#K^9j47;B}B@!vY_+xV{OTj?hSe3qkOpOVpwGWiqjd|8)X~n;Qgo5CRoj z)uvT>`eK@xqDDitjy=M0u}Fd`)Yh14=Z9+;!IELT9O}{uP2|D4K&))o5mjKS7p^D_ zQ`mS(!%zwAECJ27ND>VDiX;vag=pyei*Li|_YXBYO2vYIpqMBg>Yx{k1d73m0EjhI z$cCaP!){zZt`&tuCNaS&WQalFVDWiAQTLV*hXx-7_8B{sB2Ye1u{0PSl0t*oAtopW z%hxcC!#o1o0JShH&U^|&p&@iCLPlszggFnPTT&5AYuE`KNQjm7|3`uPD+uRfax0Ol z^r~Wjcu^3UOZDSgt4TC0s7N^`)B~p~rXKS7f*5o%cvAOpy&u0f`Aq9wT!}~ek-F8tRFFsN|c-tG8XHbI4Cq? zRgM@(r+nixs6!x;Uyq|w$$ulW9p)b{M@3>xP8^KgBtj`fCKB!iyK$gEJ0X+Lq}d8l z7K?@O7<4j~Zi`SbDvC0MwkVUuVB0Zy7~lboPs1pvfQ<54e4dcU6CiXRgO5=$G8-Iz krBYB=fVV)ax9ArPBofdIlwmop$}AP|NYBE;*~3Nee+#ST0RR91 From 8830aed6bf37497ac3e834cbae0e3e6f8a1c27d1 Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Fri, 5 Jul 2024 17:49:51 +0530 Subject: [PATCH 3/5] fix: year in copyeright --- .../backend/DemandCapacityMgmtBackendApplication.java | 2 +- .../backend/controllers/AddressBookController.java | 2 +- .../backend/controllers/AdminRulesetController.java | 2 +- .../demandcapacitymgmt/backend/controllers/AlertController.java | 2 +- .../backend/controllers/CapacityGroupRuleSetController.java | 2 +- .../backend/controllers/CapacityGroupsController.java | 2 +- .../backend/controllers/CompanyController.java | 2 +- .../backend/controllers/CompanyRuleSetController.java | 2 +- .../backend/controllers/DemandCategoryController.java | 2 +- .../backend/controllers/DemandController.java | 2 +- .../demandcapacitymgmt/backend/controllers/EDCController.java | 2 +- .../backend/controllers/FavoriteController.java | 2 +- .../backend/controllers/LoggingHistoryController.java | 2 +- .../backend/controllers/SecurityTokenController.java | 2 +- .../backend/controllers/StatusesController.java | 2 +- .../backend/controllers/UnitMeasureController.java | 2 +- .../demandcapacitymgmt/backend/controllers/UserController.java | 2 +- .../backend/controllers/WeekBasedCapacityGroupController.java | 2 +- .../backend/controllers/WeekBasedMaterialController.java | 2 +- .../backend/controllers/YearReportController.java | 2 +- .../backend/entities/AddressBookRecordEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/AlertEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/ArchivedLogEntity.java | 2 +- .../backend/entities/CapacityGroupEntity.java | 2 +- .../backend/entities/CapacityGroupRuleSetEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/CapacityTimeSeries.java | 2 +- .../demandcapacitymgmt/backend/entities/CompanyEntity.java | 2 +- .../backend/entities/CompanyRuleSetEntity.java | 2 +- .../backend/entities/DedicatedAlertEntity.java | 2 +- .../backend/entities/DemandCategoryEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/DemandSeries.java | 2 +- .../demandcapacitymgmt/backend/entities/DemandSeriesValues.java | 2 +- .../demandcapacitymgmt/backend/entities/FavoriteEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/LinkDemandEntity.java | 2 +- .../entities/LinkedCapacityGroupMaterialDemandEntity.java | 2 +- .../backend/entities/LoggingHistoryEntity.java | 2 +- .../backend/entities/MaterialDemandEntity.java | 2 +- .../tractusx/demandcapacitymgmt/backend/entities/Rule.java | 2 +- .../demandcapacitymgmt/backend/entities/StatusesEntity.java | 2 +- .../backend/entities/TriggeredAlertEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/UnitMeasureEntity.java | 2 +- .../demandcapacitymgmt/backend/entities/UserEntity.java | 2 +- .../backend/entities/WeekBasedCapacityGroupEntity.java | 2 +- .../backend/entities/WeekBasedMaterialDemandEntity.java | 2 +- .../backend/entities/bottlenecks/CategoryDeltaDto.java | 2 +- .../backend/entities/bottlenecks/MonthReportDto.java | 2 +- .../backend/entities/bottlenecks/WeekReportDto.java | 2 +- .../backend/entities/bottlenecks/YearReportDto.java | 2 +- .../backend/entities/converters/ListToStringConverter.java | 2 +- .../backend/entities/converters/MaterialDemandConverter.java | 2 +- .../entities/converters/WeekBasedCapacityGroupConverter.java | 2 +- .../backend/entities/converters/WeekBasedMaterialConverter.java | 2 +- .../backend/entities/enums/AlertThresholdType.java | 2 +- .../backend/entities/enums/AlertsMonitoredObjects.java | 2 +- .../backend/entities/enums/CapacityDeviation.java | 2 +- .../backend/entities/enums/CapacityGroupStatus.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/CompanyType.java | 2 +- .../backend/entities/enums/EventObjectType.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/EventStatus.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/EventType.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/FavoriteType.java | 2 +- .../backend/entities/enums/MaterialDemandStatus.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/Role.java | 2 +- .../demandcapacitymgmt/backend/entities/enums/StatusColor.java | 2 +- .../backend/entities/enums/UserSpecificEventStatus.java | 2 +- .../backend/entities/json/entities/Capacity.java | 2 +- .../backend/entities/json/entities/DemandCategory.java | 2 +- .../backend/entities/json/entities/LikedDemandSeries.java | 2 +- .../demandcapacitymgmt/backend/entities/json/entities/User.java | 2 +- .../backend/entities/json/entities/WeekBasedCapacityGroup.java | 2 +- .../backend/entities/json/entities/WeekBasedMaterialDemand.java | 2 +- .../backend/entities/json/entities/WeekDemandSeries.java | 2 +- .../backend/entities/json/entities/WeekDemandSeriesValues.java | 2 +- .../backend/exceptions/base/CustomException.java | 2 +- .../backend/exceptions/base/ExceptionResponse.java | 2 +- .../backend/exceptions/base/ExceptionResponseImpl.java | 2 +- .../backend/exceptions/handler/RestExceptionHandler.java | 2 +- .../backend/exceptions/type/BadRequestException.java | 2 +- .../backend/exceptions/type/InternalServerErrorException.java | 2 +- .../backend/exceptions/type/NotFoundException.java | 2 +- .../backend/models/MaterialCapacityQuantity.java | 2 +- .../backend/repositories/AddressBookRepository.java | 2 +- .../backend/repositories/AlertsRepository.java | 2 +- .../backend/repositories/ArchivedLogsRepository.java | 2 +- .../backend/repositories/CapacityGroupRepository.java | 2 +- .../backend/repositories/CapacityGroupRuleSetRepository.java | 2 +- .../backend/repositories/CompanyRepository.java | 2 +- .../backend/repositories/CompanyRuleSetRepository.java | 2 +- .../backend/repositories/DemandCategoryRepository.java | 2 +- .../backend/repositories/DemandSeriesRepository.java | 2 +- .../backend/repositories/FavoriteRepository.java | 2 +- .../backend/repositories/LinkDemandRepository.java | 2 +- .../LinkedCapacityGroupMaterialDemandRepository.java | 2 +- .../backend/repositories/LoggingHistoryRepository.java | 2 +- .../backend/repositories/MaterialDemandRepository.java | 2 +- .../backend/repositories/RulesetRepository.java | 2 +- .../backend/repositories/StatusesRepository.java | 2 +- .../backend/repositories/TriggeredAlertsRepository.java | 2 +- .../backend/repositories/UnitMeasureRepository.java | 2 +- .../demandcapacitymgmt/backend/repositories/UserRepository.java | 2 +- .../backend/repositories/WeekBasedCapacityGroupRepository.java | 2 +- .../backend/repositories/WeekBasedMaterialDemandRepository.java | 2 +- .../received/WeekBasedCapacityGroupSchedulerReceived.java | 2 +- .../schedulers/received/WeekBasedMaterialSchedulerReceived.java | 2 +- .../schedulers/send/WeekBasedCapacityGroupScheduler.java | 2 +- .../backend/schedulers/send/WeekBasedMaterialScheduler.java | 2 +- .../demandcapacitymgmt/backend/security/SecurityConfig.java | 2 +- .../demandcapacitymgmt/backend/security/WebClientConfig.java | 2 +- .../demandcapacitymgmt/backend/services/AddressBookService.java | 2 +- .../demandcapacitymgmt/backend/services/AlertService.java | 2 +- .../demandcapacitymgmt/backend/services/BottleneckManager.java | 2 +- .../backend/services/CapacityGroupRuleSetService.java | 2 +- .../backend/services/CapacityGroupService.java | 2 +- .../backend/services/CompanyRuleSetService.java | 2 +- .../demandcapacitymgmt/backend/services/CompanyService.java | 2 +- .../backend/services/DemandCategoryService.java | 2 +- .../demandcapacitymgmt/backend/services/DemandService.java | 2 +- .../demandcapacitymgmt/backend/services/EDCService.java | 2 +- .../demandcapacitymgmt/backend/services/FavoriteService.java | 2 +- .../backend/services/GoldenRecordManager.java | 2 +- .../demandcapacitymgmt/backend/services/LinkDemandService.java | 2 +- .../backend/services/LoggingHistoryService.java | 2 +- .../demandcapacitymgmt/backend/services/RulesetService.java | 2 +- .../backend/services/SecurityTokenService.java | 2 +- .../demandcapacitymgmt/backend/services/StatusesService.java | 2 +- .../backend/services/UnityOfMeasureService.java | 2 +- .../backend/services/UserOperationsService.java | 2 +- .../backend/services/WeekBasedCapacityGroupService.java | 2 +- .../backend/services/WeekBasedMaterialService.java | 2 +- .../backend/services/impl/AddressBookServiceImpl.java | 2 +- .../backend/services/impl/AlertServiceImpl.java | 2 +- .../backend/services/impl/BottleneckManagerImpl.java | 2 +- .../backend/services/impl/CapacityGroupRuleSetServiceImpl.java | 2 +- .../backend/services/impl/CapacityGroupServiceImpl.java | 2 +- .../backend/services/impl/CompanyRuleSetServiceImpl.java | 2 +- .../backend/services/impl/CompanyServiceImpl.java | 2 +- .../backend/services/impl/DemandCategoryServiceImpl.java | 2 +- .../backend/services/impl/DemandServiceImpl.java | 2 +- .../backend/services/impl/EDCServiceImpl.java | 2 +- .../backend/services/impl/FavoriteServiceImpl.java | 2 +- .../backend/services/impl/GoldenRecordManagerImpl.java | 2 +- .../backend/services/impl/LinkDemandServiceImpl.java | 2 +- .../backend/services/impl/LoggingHistoryServiceImpl.java | 2 +- .../backend/services/impl/RulesetServiceImpl.java | 2 +- .../backend/services/impl/SecurityTokenServiceImpl.java | 2 +- .../backend/services/impl/StatusesServiceImpl.java | 2 +- .../backend/services/impl/UnityOfMeasureServiceImpl.java | 2 +- .../backend/services/impl/UserOperationsServiceImpl.java | 2 +- .../services/impl/WeekBasedCapacityGroupServiceImpl.java | 2 +- .../backend/services/impl/WeekBasedMaterialServiceImpl.java | 2 +- .../backend/utils/BottleneckDetectorUtil.java | 2 +- .../tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java | 2 +- .../demandcapacitymgmt/backend/utils/DataConverterUtil.java | 2 +- .../tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java | 2 +- .../tractusx/demandcapacitymgmt/backend/utils/UserUtil.java | 2 +- 155 files changed, 155 insertions(+), 155 deletions(-) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java index 53ce5a67..e6dc6d9e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/DemandCapacityMgmtBackendApplication.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java index 68defbcc..a03e09d7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AddressBookController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java index 9426d806..e254ab8b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AdminRulesetController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java index cdd72798..562b01bb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/AlertController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java index 53dfae6c..5b5bbb23 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupRuleSetController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java index 10329580..56dfc2f8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CapacityGroupsController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java index deea4ef3..00ddb1c7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java index 32439852..4e4ce31d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/CompanyRuleSetController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java index ca6e0e96..135db99f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandCategoryController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java index dac5ad33..5e9e5d96 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/DemandController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java index a0d43f79..f04e2921 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/EDCController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java index 281a03a3..301d1c82 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/FavoriteController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java index 38b6ee5d..bacec18a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/LoggingHistoryController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java index 393cb5d1..71bcabe2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/SecurityTokenController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java index 3d155d14..ac575099 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/StatusesController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java index 2c939ce1..1be4a952 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UnitMeasureController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java index 6174d474..0a666979 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/UserController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java index 2a49c284..cef429fb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedCapacityGroupController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java index d2b7ba0c..45813177 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/WeekBasedMaterialController.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java index 8132f067..a72d3d36 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/controllers/YearReportController.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java index b3cc3d1e..9eea4ae5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AddressBookRecordEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java index 4e0100e9..025d764f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/AlertEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java index 5d3bdbfe..211c55ea 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/ArchivedLogEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java index a65d749e..5213df51 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java index b32ab6fb..e62b182a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityGroupRuleSetEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java index 68fbf9aa..2594b2dd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CapacityTimeSeries.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java index f02c7ced..189a12fc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java index 451fd3bb..1943f114 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/CompanyRuleSetEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java index 8974a0c0..e3ccb200 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DedicatedAlertEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java index 4f15e312..52af44a2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandCategoryEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java index b7b47f42..2e706b44 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeries.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java index 7905f7c9..516a2131 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/DemandSeriesValues.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java index c9ee730c..41acddd7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/FavoriteEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java index 0ef6d269..2e3fc4ae 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkDemandEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java index 5697316e..0c4cd98b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LinkedCapacityGroupMaterialDemandEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java index fd2db3f2..246fb50b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/LoggingHistoryEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java index 2557c5df..0e6484c0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/MaterialDemandEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java index af87fdb7..7c88c8b7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/Rule.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java index 49d18ef5..85f3c72d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/StatusesEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java index 57eb0150..7c20f027 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/TriggeredAlertEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java index c92ab7a5..42380016 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UnitMeasureEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java index 4abc132e..7c9cff29 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/UserEntity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java index 082b2c9e..3a468ad7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedCapacityGroupEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java index d97e4990..da1c5fef 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/WeekBasedMaterialDemandEntity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java index 47877d48..2b0864ba 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/CategoryDeltaDto.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java index 656ff5a1..9fdd679c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/MonthReportDto.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java index 679923f9..c81d6c9d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/WeekReportDto.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java index 4c3dff2c..e89ff205 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/bottlenecks/YearReportDto.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java index 15ba12ec..d8ea1347 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/ListToStringConverter.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java index 16923b75..cb802ea9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/MaterialDemandConverter.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java index 3bef09b0..ede61fc5 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedCapacityGroupConverter.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java index 9d1246d1..8f183d6e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/converters/WeekBasedMaterialConverter.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java index b01afab0..739a3c40 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertThresholdType.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java index 9771647a..27c0bccc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/AlertsMonitoredObjects.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java index 8e21c04b..92676694 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityDeviation.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java index 735b6a50..79b9dfd6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CapacityGroupStatus.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java index 0ae0429b..80b1875d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/CompanyType.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java index 454ef670..7106d7fd 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventObjectType.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java index 71fb5bd5..5795de25 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventStatus.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java index 3b035ece..98c809d2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/EventType.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java index 813f49b6..f83c7e7d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/FavoriteType.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java index c25dcd85..b6a26038 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/MaterialDemandStatus.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java index 685a2e4d..e04f13e8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/Role.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java index ad15e606..97144611 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/StatusColor.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java index 649ee58f..86ab6eb0 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/enums/UserSpecificEventStatus.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java index 91aa5123..4de71571 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/Capacity.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java index 06a9ee8e..f1a36d40 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/DemandCategory.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java index 7528df09..fcc528c7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/LikedDemandSeries.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java index 565f1021..670ac153 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/User.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java index cdec999c..a3280629 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedCapacityGroup.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java index 007e3683..22f41754 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekBasedMaterialDemand.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java index 8d26ca76..1ca79d49 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeries.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java index 18a77239..9b8d9b06 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/entities/json/entities/WeekDemandSeriesValues.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java index 3c7b84ca..4f7bdd72 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/CustomException.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java index e0bebd7c..c668db75 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponse.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java index e99ce77d..ae30c08c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/base/ExceptionResponseImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java index 7f0c8cfd..9487c74a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/handler/RestExceptionHandler.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java index 029dfe62..116dc817 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/BadRequestException.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java index 83b5d0cd..3b44bc8e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/InternalServerErrorException.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java index 7beeb632..bebba98f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/exceptions/type/NotFoundException.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java index 8bddabf5..143d2efb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/models/MaterialCapacityQuantity.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java index 5a091e63..247bc0f3 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AddressBookRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java index 7a666d63..4a7f2db8 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/AlertsRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java index 553edb80..2b7167f6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/ArchivedLogsRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java index 7ddc539b..87090762 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java index 4cd19c63..681e8430 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CapacityGroupRuleSetRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java index 0ac4aedc..956d85f9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java index dbcbfa67..d5f9bfab 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/CompanyRuleSetRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java index 5852704a..1c52221f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandCategoryRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java index 218c46b9..ecaffb84 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/DemandSeriesRepository.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java index bf6e70a6..81a8ec16 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/FavoriteRepository.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java index 9b0e0d54..5c8ebdea 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkDemandRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java index 6fe633ac..97940f5e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LinkedCapacityGroupMaterialDemandRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java index 556090f2..99f536b3 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/LoggingHistoryRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java index a397ac9e..af401d01 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/MaterialDemandRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java index b4bebb41..1637387b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/RulesetRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java index 01bf8e55..8c782c48 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/StatusesRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java index cd84516f..f6f59105 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/TriggeredAlertsRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java index 97a78293..db1683a9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UnitMeasureRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java index 15c9defa..f99ad9e2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/UserRepository.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java index 4cffdc32..1090dd3e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedCapacityGroupRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java index e39ff8e8..669672f6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/repositories/WeekBasedMaterialDemandRepository.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java index eb5024e0..592fcb78 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedCapacityGroupSchedulerReceived.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java index c66c285e..d031716f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/received/WeekBasedMaterialSchedulerReceived.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java index 2cb4dc2b..bd693beb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedCapacityGroupScheduler.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java index 44191c04..6ece9974 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/schedulers/send/WeekBasedMaterialScheduler.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java index c9600d1d..aded0fe9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/SecurityConfig.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java index 77f65a77..00589bca 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/security/WebClientConfig.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java index 47d79ab9..006f8052 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AddressBookService.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java index 92dbcf50..4393e613 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/AlertService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java index e84a0294..78eb195d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/BottleneckManager.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java index 44554fe6..33bc5819 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupRuleSetService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java index 48a758fc..b20c4965 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CapacityGroupService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java index 9acfa2e5..5ae90887 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyRuleSetService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java index a488d485..87299216 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/CompanyService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java index 4b042a53..68294538 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandCategoryService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java index 566a1789..40bac205 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/DemandService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java index 2ab6b7e4..c4cbb870 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/EDCService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java index d3f68595..e76fac36 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/FavoriteService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java index 9fa0fc78..517e4967 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/GoldenRecordManager.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java index b3bf3676..1b43e548 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LinkDemandService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java index 096e572d..8025c45b 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/LoggingHistoryService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java index 9eda9d78..eef71aaf 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/RulesetService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java index 93584404..4402f1d2 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/SecurityTokenService.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java index be1ef5d8..48a113d1 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/StatusesService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java index 767965e1..a70a6149 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UnityOfMeasureService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java index 50fc61c1..64c5859d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/UserOperationsService.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java index e0b3da90..157a850e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedCapacityGroupService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java index 2aca01af..5063e2ee 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/WeekBasedMaterialService.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java index 077787eb..65188a8d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AddressBookServiceImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java index 344c4039..f84e66eb 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/AlertServiceImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java index eae4b855..c1f82aab 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/BottleneckManagerImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java index cea073c2..83e127a6 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupRuleSetServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java index 39ea050a..9ab6eee7 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CapacityGroupServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java index 7e5a544b..20678539 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyRuleSetServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java index 19ca1592..bffb284c 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/CompanyServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java index f1f3cb18..63e92c13 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandCategoryServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java index be728917..5ed99c8e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/DemandServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java index cec1a35d..baf03008 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/EDCServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java index 2fa78077..2fc1299d 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/FavoriteServiceImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java index 6279ba4a..13f7df70 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/GoldenRecordManagerImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java index b2548225..1d3d645e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LinkDemandServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java index b16e1ddf..2e445d7a 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/LoggingHistoryServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java index 24343bd1..4486516f 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/RulesetServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java index 013d4ffe..8cf3c842 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/SecurityTokenServiceImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java index 968337c2..69a508af 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/StatusesServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java index 4dbb33dd..52883dae 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UnityOfMeasureServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java index 92d81edd..4803acdc 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/UserOperationsServiceImpl.java @@ -1,7 +1,7 @@ /* * ****************************************************************************** * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java index e5f82dfb..e34d7d25 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedCapacityGroupServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java index daa381f8..69b4c088 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/services/impl/WeekBasedMaterialServiceImpl.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java index a4bafceb..914d6883 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/BottleneckDetectorUtil.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java index 1751c049..acd465f9 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/CorsConfig.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java index 22e9277b..4c1d8f2e 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/DataConverterUtil.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java index fb81b55c..c6b25108 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UUIDUtil.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java index d838c3a6..fa4089fe 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/backend/utils/UserUtil.java @@ -1,7 +1,7 @@ /* * ******************************************************************************* * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation + * Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. From a6521603330e6742ae9c680d7ebabfdadf0ce60a Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Fri, 5 Jul 2024 17:51:16 +0530 Subject: [PATCH 4/5] fix: year in copyeright header --- demand-capacity-mgmt-specification/pom.xml | 2 +- .../src/main/resources/swagger.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demand-capacity-mgmt-specification/pom.xml b/demand-capacity-mgmt-specification/pom.xml index 01be9610..9f6b23b5 100644 --- a/demand-capacity-mgmt-specification/pom.xml +++ b/demand-capacity-mgmt-specification/pom.xml @@ -2,7 +2,7 @@