Skip to content

Commit

Permalink
Rename maven project
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhanmirza committed Jan 16, 2024
1 parent 76ce5f3 commit b8f8fb4
Show file tree
Hide file tree
Showing 33 changed files with 79 additions and 78 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions SpringBooTex/pom.xml → SimplePdfGenAPI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>org.shuhamirza</groupId>
<artifactId>SpringBooTex</artifactId>
<artifactId>SimplePdfGenAPI</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SpringBooTex</name>
<description>SpringBooTex</description>
<name>SimplePdfGenAPI</name>
<description>Document Generation as a REST service.</description>
<properties>
<java.version>17</java.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.shuhanmirza.springbootex;
package org.shuhanmirza.simplepdfgenapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringBooTexApplication {
public class SimplePdfGenApplication {

public static void main(String[] args) {
SpringApplication.run(SpringBooTexApplication.class, args);
SpringApplication.run(SimplePdfGenApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import org.shuhanmirza.springbootex.dto.PdfBuildingInstruction;
import org.shuhanmirza.simplepdfgenapi.dto.PdfBuildingInstruction;
import reactor.core.publisher.Mono;

import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.pdfgenerator.HtmlTemplatePdfGenerator;
import org.shuhanmirza.springbootex.component.pdfgenerator.LatexTemplatePdfGenerator;
import org.shuhanmirza.springbootex.enums.TemplateType;
import org.shuhanmirza.simplepdfgenapi.component.pdfgenerator.HtmlTemplatePdfGenerator;
import org.shuhanmirza.simplepdfgenapi.component.pdfgenerator.LatexTemplatePdfGenerator;
import org.shuhanmirza.simplepdfgenapi.enums.TemplateType;
import org.springframework.stereotype.Component;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.jsonresponsebuilder.JsonResponseBuilder;
import org.shuhanmirza.springbootex.component.jsonresponsebuilder.OctetStreamResponseBuilder;
import org.shuhanmirza.springbootex.component.jsonresponsebuilder.PdfFileResponseBuilder;
import org.shuhanmirza.springbootex.enums.ResponseType;
import org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder.JsonResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder.OctetStreamResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder.PdfFileResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.enums.ResponseType;
import org.springframework.stereotype.Component;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.shuhanmirza.springbootex.component;
package org.shuhanmirza.simplepdfgenapi.component;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.templateextractor.Base64TemplateExtractor;
import org.shuhanmirza.springbootex.enums.TemplateSourceType;
import org.shuhanmirza.simplepdfgenapi.component.templateextractor.Base64TemplateExtractor;
import org.shuhanmirza.simplepdfgenapi.enums.TemplateSourceType;
import org.springframework.stereotype.Component;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.shuhanmirza.springbootex.component.jsonresponsebuilder;
package org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.ResponseBuilder;
import org.shuhanmirza.springbootex.dto.response.PdfGenerationResponse;
import org.shuhanmirza.springbootex.service.UtilityService;
import org.shuhanmirza.simplepdfgenapi.component.ResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.dto.response.PdfGenerationResponse;
import org.shuhanmirza.simplepdfgenapi.service.UtilityService;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.shuhanmirza.springbootex.component.jsonresponsebuilder;
package org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.ResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.component.ResponseBuilder;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.shuhanmirza.springbootex.component.jsonresponsebuilder;
package org.shuhanmirza.simplepdfgenapi.component.jsonresponsebuilder;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.ResponseBuilder;
import org.shuhanmirza.simplepdfgenapi.component.ResponseBuilder;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.shuhanmirza.springbootex.component.pdfgenerator;
package org.shuhanmirza.simplepdfgenapi.component.pdfgenerator;

import com.openhtmltopdf.pdfboxout.PdfRendererBuilder;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.PdfGenerator;
import org.shuhanmirza.springbootex.dto.FontFile;
import org.shuhanmirza.springbootex.dto.PdfBuildingInstruction;
import org.shuhanmirza.springbootex.service.UtilityService;
import org.shuhanmirza.springbootex.util.Utility;
import org.shuhanmirza.simplepdfgenapi.component.PdfGenerator;
import org.shuhanmirza.simplepdfgenapi.dto.FontFile;
import org.shuhanmirza.simplepdfgenapi.dto.PdfBuildingInstruction;
import org.shuhanmirza.simplepdfgenapi.service.UtilityService;
import org.shuhanmirza.simplepdfgenapi.util.Utility;
import org.springframework.stereotype.Component;
import org.thymeleaf.context.Context;
import org.thymeleaf.spring6.SpringTemplateEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.shuhanmirza.springbootex.component.pdfgenerator;
package org.shuhanmirza.simplepdfgenapi.component.pdfgenerator;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.shuhanmirza.springbootex.component.PdfGenerator;
import org.shuhanmirza.springbootex.dto.PdfBuildingInstruction;
import org.shuhanmirza.springbootex.service.UtilityService;
import org.shuhanmirza.springbootex.util.Utility;
import org.shuhanmirza.simplepdfgenapi.component.PdfGenerator;
import org.shuhanmirza.simplepdfgenapi.dto.PdfBuildingInstruction;
import org.shuhanmirza.simplepdfgenapi.service.UtilityService;
import org.shuhanmirza.simplepdfgenapi.util.Utility;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.shuhanmirza.springbootex.component.templateextractor;
package org.shuhanmirza.simplepdfgenapi.component.templateextractor;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.TemplateExtractor;
import org.shuhanmirza.simplepdfgenapi.component.TemplateExtractor;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.shuhanmirza.springbootex.controller;
package org.shuhanmirza.simplepdfgenapi.controller;

import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.dto.request.PdfGenerationRequest;
import org.shuhanmirza.springbootex.service.PdfGenerationService;
import org.shuhanmirza.simplepdfgenapi.dto.request.PdfGenerationRequest;
import org.shuhanmirza.simplepdfgenapi.service.PdfGenerationService;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.dto;
package org.shuhanmirza.simplepdfgenapi.dto;

import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.dto;
package org.shuhanmirza.simplepdfgenapi.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.dto.request;
package org.shuhanmirza.simplepdfgenapi.dto.request;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.shuhanmirza.springbootex.dto.request;
package org.shuhanmirza.simplepdfgenapi.dto.request;

import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.shuhanmirza.springbootex.enums.ResponseType;
import org.shuhanmirza.springbootex.enums.TemplateSourceType;
import org.shuhanmirza.springbootex.enums.TemplateType;
import org.shuhanmirza.simplepdfgenapi.enums.ResponseType;
import org.shuhanmirza.simplepdfgenapi.enums.TemplateSourceType;
import org.shuhanmirza.simplepdfgenapi.enums.TemplateType;

import java.util.HashMap;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.dto.response;
package org.shuhanmirza.simplepdfgenapi.dto.response;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.dto.response;
package org.shuhanmirza.simplepdfgenapi.dto.response;

import lombok.*;
import lombok.experimental.SuperBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.enums;
package org.shuhanmirza.simplepdfgenapi.enums;

/**
* @author Shuhan Mirza
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.enums;
package org.shuhanmirza.simplepdfgenapi.enums;

/**
* @author Shuhan Mirza
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.shuhanmirza.springbootex.enums;
package org.shuhanmirza.simplepdfgenapi.enums;

/**
* @author Shuhan Mirza
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.shuhanmirza.springbootex.service.Impl;
package org.shuhanmirza.simplepdfgenapi.service.Impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.shuhanmirza.springbootex.component.PdfGeneratorProvider;
import org.shuhanmirza.springbootex.component.ResponseBuilderProvider;
import org.shuhanmirza.springbootex.component.TemplateExtractorProvider;
import org.shuhanmirza.springbootex.dto.PdfBuildingInstruction;
import org.shuhanmirza.springbootex.dto.request.PdfGenerationRequest;
import org.shuhanmirza.springbootex.service.PdfGenerationService;
import org.shuhanmirza.simplepdfgenapi.component.PdfGeneratorProvider;
import org.shuhanmirza.simplepdfgenapi.component.ResponseBuilderProvider;
import org.shuhanmirza.simplepdfgenapi.component.TemplateExtractorProvider;
import org.shuhanmirza.simplepdfgenapi.dto.PdfBuildingInstruction;
import org.shuhanmirza.simplepdfgenapi.dto.request.PdfGenerationRequest;
import org.shuhanmirza.simplepdfgenapi.service.PdfGenerationService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.shuhanmirza.springbootex.service;
package org.shuhanmirza.simplepdfgenapi.service;

import org.shuhanmirza.springbootex.dto.request.PdfGenerationRequest;
import org.springframework.core.io.InputStreamResource;
import org.shuhanmirza.simplepdfgenapi.dto.request.PdfGenerationRequest;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.shuhanmirza.springbootex.service;
package org.shuhanmirza.simplepdfgenapi.service;

import jakarta.annotation.PostConstruct;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.jpountz.xxhash.XXHashFactory;
import org.apache.commons.io.FileUtils;
import org.shuhanmirza.springbootex.util.Utility;
import org.shuhanmirza.simplepdfgenapi.util.Utility;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.shuhanmirza.springbootex.util;
package org.shuhanmirza.simplepdfgenapi.util;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

/**
* @author Shuhan Mirza
Expand All @@ -13,7 +14,8 @@ private Utility() {
}

public static int XX_HASH_SEED = 0x6969abcd;
public static String APPLICATION_NAME = "SpringBooTex";
@Value("${spring.application.name}")
public static String APPLICATION_NAME;
public static String LATEX_FILE_INPUT = "main.tex";
public static String LATEX_FILE_OUTPUT = "main.pdf";
public static String HTML_FILE_OUTPUT = "main.pdf";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
server.port=10800
spring.application.name=SpringBooTex
spring.application.name=SimplePdfGenAPI
spring.thymeleaf.check-template-location=false
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.shuhanmirza.springbootex;
package org.shuhanmirza.simplepdfgenapi;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.shuhanmirza.springbootex.component.pdfgenerator.HtmlTemplatePdfGenerator;
import org.shuhanmirza.springbootex.component.pdfgenerator.LatexTemplatePdfGenerator;
import org.shuhanmirza.springbootex.dto.PdfBuildingInstruction;
import org.shuhanmirza.simplepdfgenapi.component.pdfgenerator.HtmlTemplatePdfGenerator;
import org.shuhanmirza.simplepdfgenapi.component.pdfgenerator.LatexTemplatePdfGenerator;
import org.shuhanmirza.simplepdfgenapi.dto.PdfBuildingInstruction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import reactor.core.publisher.Mono;
Expand All @@ -14,7 +14,7 @@

@SpringBootTest
@Slf4j
class SpringBooTexApplicationTests {
class SimplePdfGenApplicationTests {

@Autowired
private LatexTemplatePdfGenerator latexTemplatePdfGenerator;
Expand Down

0 comments on commit b8f8fb4

Please sign in to comment.