public NotificationDto getNotificationDto()

in src/main/java/com/epam/digital/data/platform/notification/service/InboxNotificationLoader.java [41:53]


  public NotificationDto getNotificationDto(File dir) throws IOException {
    log.info("Processing inbox template {}", dir.getName());
    var indexFile = Path.of(dir.getPath(), TEMPLATE_CONTENT_FILE_NAME).toFile();
    var content = FileUtils.readFileToString(indexFile, StandardCharsets.UTF_8);

    var templateMetadataFile = Path.of(dir.getPath(), TEMPLATE_METADATA_FILE_NAME).toFile();

    return NotificationDto.builder()
        .content(content)
        .templateMetadataFile(templateMetadataFile)
        .channel(INBOX.getChannelName())
        .build();
  }