refactor: rename package to org.booklore

This commit is contained in:
acx10
2026-02-02 00:02:12 -07:00
parent 17fef505cb
commit 91c0382527
875 changed files with 3890 additions and 3915 deletions
@@ -1,11 +0,0 @@
package com.adityachandel.booklore.mapper;
import com.adityachandel.booklore.model.dto.CustomFontDto;
import com.adityachandel.booklore.model.entity.CustomFontEntity;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
public interface CustomFontMapper {
CustomFontDto toDto(CustomFontEntity entity);
}
@@ -1,4 +0,0 @@
package com.adityachandel.booklore.model.dto.kobo;
public interface Entitlement {
}
@@ -1,5 +0,0 @@
package com.adityachandel.booklore.model.enums;
public enum Lock {
LOCK, UNLOCK
}
@@ -1,9 +0,0 @@
package com.adityachandel.booklore.model.websocket;
import com.adityachandel.booklore.model.dto.Book;
import lombok.Data;
@Data
public class BookAddNotification {
private Book addedBook;
}
@@ -1,16 +0,0 @@
package com.adityachandel.booklore.service.fileprocessor;
import com.adityachandel.booklore.model.FileProcessResult;
import com.adityachandel.booklore.model.dto.settings.LibraryFile;
import com.adityachandel.booklore.model.entity.BookEntity;
import com.adityachandel.booklore.model.enums.BookFileType;
import java.util.List;
public interface BookFileProcessor {
List<BookFileType> getSupportedTypes();
FileProcessResult processFile(LibraryFile libraryFile);
boolean generateCover(BookEntity bookEntity);
}
@@ -1,11 +0,0 @@
package com.adityachandel.booklore.service.metadata;
import com.adityachandel.booklore.model.dto.CoverImage;
import com.adityachandel.booklore.model.dto.request.CoverFetchRequest;
import java.util.List;
public interface BookCoverProvider {
List<CoverImage> getCovers(CoverFetchRequest request);
}
@@ -1,8 +0,0 @@
package com.adityachandel.booklore.service.metadata;
import com.adityachandel.booklore.model.dto.BookMetadata;
@FunctionalInterface
interface FieldValueExtractor {
String extract(BookMetadata metadata);
}
@@ -1,4 +0,0 @@
package com.adityachandel.booklore.service.metadata;
public class UserPermissionService {
}
@@ -1,14 +0,0 @@
package com.adityachandel.booklore.service.metadata.parser;
import com.adityachandel.booklore.model.dto.Book;
import com.adityachandel.booklore.model.dto.BookMetadata;
import com.adityachandel.booklore.model.dto.request.FetchMetadataRequest;
import java.util.List;
public interface BookParser {
List<BookMetadata> fetchMetadata(Book book, FetchMetadataRequest fetchMetadataRequest);
BookMetadata fetchTopMetadata(Book book, FetchMetadataRequest fetchMetadataRequest);
}
@@ -1,19 +0,0 @@
package com.adityachandel.booklore.task.tasks;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.request.TaskCreateRequest;
import com.adityachandel.booklore.model.dto.response.TaskCreateResponse;
import com.adityachandel.booklore.model.enums.TaskType;
public interface Task {
TaskCreateResponse execute(TaskCreateRequest request);
TaskType getTaskType();
default String getMetadata() {
return null;
}
void validatePermissions(BookLoreUser user, TaskCreateRequest request);
}
@@ -1,4 +1,4 @@
package com.adityachandel.booklore;
package org.booklore;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -6,7 +6,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import com.adityachandel.booklore.config.BookmarkProperties;
import org.booklore.config.BookmarkProperties;
@EnableScheduling
@EnableAsync
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import lombok.Getter;
import lombok.Setter;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.model.enums.MetadataProvider;
import com.adityachandel.booklore.service.metadata.parser.*;
import org.booklore.model.enums.MetadataProvider;
import org.booklore.service.metadata.parser.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ser.BeanPropertyWriter;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.context.KomgaCleanContext;
import org.booklore.context.KomgaCleanContext;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.BeanPropertyWriter;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.MultipartConfigElement;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.service.task.TaskService;
import org.booklore.service.task.TaskService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import jakarta.persistence.EntityManagerFactory;
import org.springframework.context.annotation.Bean;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.interceptor.KomgaCleanInterceptor;
import com.adityachandel.booklore.interceptor.KomgaEnabledInterceptor;
import com.adityachandel.booklore.interceptor.OpdsEnabledInterceptor;
import org.booklore.interceptor.KomgaCleanInterceptor;
import org.booklore.interceptor.KomgaEnabledInterceptor;
import org.booklore.interceptor.OpdsEnabledInterceptor;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config;
package org.booklore.config;
import com.adityachandel.booklore.config.security.interceptor.WebSocketAuthInterceptor;
import org.booklore.config.security.interceptor.WebSocketAuthInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.ChannelRegistration;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config.security;
package org.booklore.config.security;
import com.adityachandel.booklore.config.security.filter.ImageCachingFilter;
import org.booklore.config.security.filter.ImageCachingFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.config.security;
package org.booklore.config.security;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.service.security.JwtSecretService;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.service.security.JwtSecretService;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.JwtException;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.config.security;
package org.booklore.config.security;
import com.adityachandel.booklore.config.AppProperties;
import com.adityachandel.booklore.config.security.filter.*;
import com.adityachandel.booklore.config.security.service.OpdsUserDetailsService;
import org.booklore.config.AppProperties;
import org.booklore.config.security.filter.*;
import org.booklore.config.security.service.OpdsUserDetailsService;
import jakarta.servlet.DispatcherType;
import jakarta.servlet.http.HttpServletResponse;
import lombok.AllArgsConstructor;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.config.security;
package org.booklore.config.security;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.repository.ShelfRepository;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.repository.ShelfRepository;
import lombok.AllArgsConstructor;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config.security.annotation;
package org.booklore.config.security.annotation;
import java.lang.annotation.*;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config.security.annotation;
package org.booklore.config.security.annotation;
import java.lang.annotation.*;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.config.security.aspect;
package org.booklore.config.security.aspect;
import com.adityachandel.booklore.config.security.service.AuthenticationService;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.entity.BookEntity;
import com.adityachandel.booklore.repository.BookRepository;
import org.booklore.config.security.service.AuthenticationService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.exception.ApiError;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.entity.BookEntity;
import org.booklore.repository.BookRepository;
import lombok.RequiredArgsConstructor;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
@@ -26,7 +26,7 @@ public class BookAccessAspect {
private final AuthenticationService authenticationService;
private final BookRepository bookRepository;
@Before("@annotation(com.adityachandel.booklore.config.security.annotation.CheckBookAccess)")
@Before("@annotation(org.booklore.config.security.annotation.CheckBookAccess)")
public void checkBookAccess(JoinPoint joinPoint) {
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
Method method = methodSignature.getMethod();
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.config.security.aspect;
package org.booklore.config.security.aspect;
import com.adityachandel.booklore.config.security.service.AuthenticationService;
import com.adityachandel.booklore.config.security.annotation.CheckLibraryAccess;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import org.booklore.config.security.service.AuthenticationService;
import org.booklore.config.security.annotation.CheckLibraryAccess;
import org.booklore.exception.ApiError;
import org.booklore.model.dto.BookLoreUser;
import lombok.RequiredArgsConstructor;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
@@ -23,7 +23,7 @@ public class LibraryAccessAspect {
private static final Pattern NUMERIC_PATTERN = Pattern.compile("\\d+");
private final AuthenticationService authenticationService;
@Before("@annotation(com.adityachandel.booklore.config.security.annotation.CheckLibraryAccess)")
@Before("@annotation(org.booklore.config.security.annotation.CheckLibraryAccess)")
public void checkLibraryAccess(JoinPoint joinPoint) {
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
Method method = methodSignature.getMethod();
@@ -1,14 +1,14 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,14 +1,14 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,10 +1,10 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Component;
@@ -1,10 +1,10 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Component;
@@ -1,17 +1,17 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.settings.OidcAutoProvisionDetails;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import com.adityachandel.booklore.service.user.UserProvisioningService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.exception.ApiError;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.settings.OidcAutoProvisionDetails;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import org.booklore.service.user.UserProvisioningService;
import com.nimbusds.jwt.JWTClaimsSet;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
@@ -1,14 +1,14 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
@@ -1,12 +1,12 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.model.entity.UserPermissionsEntity;
import com.adityachandel.booklore.repository.UserRepository;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.model.entity.UserPermissionsEntity;
import org.booklore.repository.UserRepository;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.userdetails.UserAuthenticationDetails;
import com.adityachandel.booklore.mapper.custom.BookLoreUserTransformer;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.entity.UserPermissionsEntity;
import com.adityachandel.booklore.repository.KoboUserSettingsRepository;
import com.adityachandel.booklore.repository.UserRepository;
import org.booklore.config.security.userdetails.UserAuthenticationDetails;
import org.booklore.mapper.custom.BookLoreUserTransformer;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.entity.UserPermissionsEntity;
import org.booklore.repository.KoboUserSettingsRepository;
import org.booklore.repository.UserRepository;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.config.security.filter;
package org.booklore.config.security.filter;
import com.adityachandel.booklore.config.security.userdetails.KoreaderUserDetails;
import com.adityachandel.booklore.repository.KoreaderUserRepository;
import org.booklore.config.security.userdetails.KoreaderUserDetails;
import org.booklore.repository.KoreaderUserRepository;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.config.security.interceptor;
package org.booklore.config.security.interceptor;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.service.DynamicOidcJwtProcessor;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.service.DynamicOidcJwtProcessor;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.service.appsettings.AppSettingService;
import com.nimbusds.jwt.JWTClaimsSet;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -1,21 +1,21 @@
package com.adityachandel.booklore.config.security.service;
package org.booklore.config.security.service;
import com.adityachandel.booklore.config.AppProperties;
import com.adityachandel.booklore.config.security.JwtUtils;
import com.adityachandel.booklore.config.security.userdetails.OpdsUserDetails;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.request.UserLoginRequest;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.model.entity.RefreshTokenEntity;
import com.adityachandel.booklore.model.enums.ProvisioningMethod;
import com.adityachandel.booklore.model.enums.UserPermission;
import com.adityachandel.booklore.repository.RefreshTokenRepository;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.user.DefaultSettingInitializer;
import com.adityachandel.booklore.service.user.UserProvisioningService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.booklore.config.AppProperties;
import org.booklore.config.security.JwtUtils;
import org.booklore.config.security.userdetails.OpdsUserDetails;
import org.booklore.exception.ApiError;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.request.UserLoginRequest;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.model.entity.RefreshTokenEntity;
import org.booklore.model.enums.ProvisioningMethod;
import org.booklore.model.enums.UserPermission;
import org.booklore.repository.RefreshTokenRepository;
import org.booklore.repository.UserRepository;
import org.booklore.service.user.DefaultSettingInitializer;
import org.booklore.service.user.UserProvisioningService;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.config.security.service;
package org.booklore.config.security.service;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.service.appsettings.AppSettingService;
import com.nimbusds.jose.JWSAlgorithm;
import com.nimbusds.jose.jwk.source.DefaultJWKSetCache;
import com.nimbusds.jose.jwk.source.JWKSource;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.config.security.service;
package org.booklore.config.security.service;
import com.adityachandel.booklore.config.security.userdetails.OpdsUserDetails;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.mapper.OpdsUserV2Mapper;
import com.adityachandel.booklore.model.dto.OpdsUserV2;
import com.adityachandel.booklore.model.entity.OpdsUserV2Entity;
import com.adityachandel.booklore.repository.OpdsUserV2Repository;
import org.booklore.config.security.userdetails.OpdsUserDetails;
import org.booklore.exception.ApiError;
import org.booklore.mapper.OpdsUserV2Mapper;
import org.booklore.model.dto.OpdsUserV2;
import org.booklore.model.entity.OpdsUserV2Entity;
import org.booklore.repository.OpdsUserV2Repository;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config.security.userdetails;
package org.booklore.config.security.userdetails;
import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.config.security.userdetails;
package org.booklore.config.security.userdetails;
import com.adityachandel.booklore.model.dto.OpdsUserV2;
import org.booklore.model.dto.OpdsUserV2;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.config.security.userdetails;
package org.booklore.config.security.userdetails;
import jakarta.servlet.http.HttpServletRequest;
import lombok.Getter;
@@ -1,4 +1,4 @@
package com.adityachandel.booklore.context;
package org.booklore.context;
/**
* ThreadLocal context to track whether the Komga API "clean" mode is enabled.
@@ -1,10 +1,10 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.model.dto.BookFile;
import com.adityachandel.booklore.model.enums.BookFileType;
import com.adityachandel.booklore.service.file.AdditionalFileService;
import com.adityachandel.booklore.service.upload.FileUploadService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.model.dto.BookFile;
import org.booklore.model.enums.BookFileType;
import org.booklore.service.file.AdditionalFileService;
import org.booklore.service.upload.FileUploadService;
import lombok.AllArgsConstructor;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.Annotation;
import com.adityachandel.booklore.model.dto.CreateAnnotationRequest;
import com.adityachandel.booklore.model.dto.UpdateAnnotationRequest;
import com.adityachandel.booklore.service.book.AnnotationService;
import org.booklore.model.dto.Annotation;
import org.booklore.model.dto.CreateAnnotationRequest;
import org.booklore.model.dto.UpdateAnnotationRequest;
import org.booklore.service.book.AnnotationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.settings.AppSettingKey;
import com.adityachandel.booklore.model.dto.settings.AppSettings;
import com.adityachandel.booklore.model.dto.settings.SettingRequest;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.model.dto.settings.AppSettingKey;
import org.booklore.model.dto.settings.AppSettings;
import org.booklore.model.dto.settings.SettingRequest;
import org.booklore.service.appsettings.AppSettingService;
import com.fasterxml.jackson.core.JsonProcessingException;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.model.dto.response.AudiobookInfo;
import com.adityachandel.booklore.service.reader.AudiobookReaderService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.model.dto.response.AudiobookInfo;
import org.booklore.service.reader.AudiobookReaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,14 +1,14 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.AppProperties;
import com.adityachandel.booklore.config.security.service.AuthenticationService;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.model.dto.UserCreateRequest;
import com.adityachandel.booklore.model.dto.request.RefreshTokenRequest;
import com.adityachandel.booklore.model.dto.request.UserLoginRequest;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.user.UserProvisioningService;
import org.booklore.config.AppProperties;
import org.booklore.config.security.service.AuthenticationService;
import org.booklore.exception.ApiError;
import org.booklore.model.dto.UserCreateRequest;
import org.booklore.model.dto.request.RefreshTokenRequest;
import org.booklore.model.dto.request.UserLoginRequest;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.user.UserProvisioningService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.service.AuthorService;
import org.booklore.service.AuthorService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,27 +1,27 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.model.dto.Book;
import com.adityachandel.booklore.model.dto.BookRecommendation;
import com.adityachandel.booklore.model.dto.BookViewerSettings;
import com.adityachandel.booklore.model.dto.request.AttachBookFileRequest;
import com.adityachandel.booklore.model.dto.request.CreatePhysicalBookRequest;
import com.adityachandel.booklore.model.dto.request.PersonalRatingUpdateRequest;
import com.adityachandel.booklore.model.dto.request.ReadProgressRequest;
import com.adityachandel.booklore.model.dto.request.ReadStatusUpdateRequest;
import com.adityachandel.booklore.model.dto.request.ShelvesAssignmentRequest;
import com.adityachandel.booklore.model.dto.response.BookDeletionResponse;
import com.adityachandel.booklore.model.dto.response.BookStatusUpdateResponse;
import com.adityachandel.booklore.model.dto.response.PersonalRatingUpdateResponse;
import com.adityachandel.booklore.model.enums.ResetProgressType;
import com.adityachandel.booklore.service.book.BookFileAttachmentService;
import com.adityachandel.booklore.service.book.BookService;
import com.adityachandel.booklore.service.book.BookUpdateService;
import com.adityachandel.booklore.service.book.PhysicalBookService;
import com.adityachandel.booklore.service.metadata.BookMetadataService;
import com.adityachandel.booklore.service.progress.ReadingProgressService;
import com.adityachandel.booklore.service.recommender.BookRecommendationService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.exception.ApiError;
import org.booklore.model.dto.Book;
import org.booklore.model.dto.BookRecommendation;
import org.booklore.model.dto.BookViewerSettings;
import org.booklore.model.dto.request.AttachBookFileRequest;
import org.booklore.model.dto.request.CreatePhysicalBookRequest;
import org.booklore.model.dto.request.PersonalRatingUpdateRequest;
import org.booklore.model.dto.request.ReadProgressRequest;
import org.booklore.model.dto.request.ReadStatusUpdateRequest;
import org.booklore.model.dto.request.ShelvesAssignmentRequest;
import org.booklore.model.dto.response.BookDeletionResponse;
import org.booklore.model.dto.response.BookStatusUpdateResponse;
import org.booklore.model.dto.response.PersonalRatingUpdateResponse;
import org.booklore.model.enums.ResetProgressType;
import org.booklore.service.book.BookFileAttachmentService;
import org.booklore.service.book.BookService;
import org.booklore.service.book.BookUpdateService;
import org.booklore.service.book.PhysicalBookService;
import org.booklore.service.metadata.BookMetadataService;
import org.booklore.service.progress.ReadingProgressService;
import org.booklore.service.recommender.BookRecommendationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.model.dto.CoverImage;
import com.adityachandel.booklore.model.dto.request.BulkBookIdsRequest;
import com.adityachandel.booklore.model.dto.request.CoverFetchRequest;
import com.adityachandel.booklore.service.metadata.BookCoverService;
import com.adityachandel.booklore.service.metadata.DuckDuckGoCoverService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.model.dto.CoverImage;
import org.booklore.model.dto.request.BulkBookIdsRequest;
import org.booklore.model.dto.request.CoverFetchRequest;
import org.booklore.service.metadata.BookCoverService;
import org.booklore.service.metadata.DuckDuckGoCoverService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookMark;
import com.adityachandel.booklore.model.dto.CreateBookMarkRequest;
import com.adityachandel.booklore.model.dto.UpdateBookMarkRequest;
import com.adityachandel.booklore.service.book.BookMarkService;
import org.booklore.model.dto.BookMark;
import org.booklore.model.dto.CreateBookMarkRequest;
import org.booklore.model.dto.UpdateBookMarkRequest;
import org.booklore.service.book.BookMarkService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.service.book.BookService;
import com.adityachandel.booklore.service.bookdrop.BookDropService;
import com.adityachandel.booklore.service.reader.CbxReaderService;
import com.adityachandel.booklore.service.reader.PdfReaderService;
import org.booklore.service.book.BookService;
import org.booklore.service.bookdrop.BookDropService;
import org.booklore.service.reader.CbxReaderService;
import org.booklore.service.reader.PdfReaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookNote;
import com.adityachandel.booklore.model.dto.CreateBookNoteRequest;
import com.adityachandel.booklore.service.book.BookNoteService;
import org.booklore.model.dto.BookNote;
import org.booklore.model.dto.CreateBookNoteRequest;
import org.booklore.service.book.BookNoteService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookNoteV2;
import com.adityachandel.booklore.model.dto.CreateBookNoteV2Request;
import com.adityachandel.booklore.model.dto.UpdateBookNoteV2Request;
import com.adityachandel.booklore.service.book.BookNoteV2Service;
import org.booklore.model.dto.BookNoteV2;
import org.booklore.model.dto.CreateBookNoteV2Request;
import org.booklore.model.dto.UpdateBookNoteV2Request;
import org.booklore.service.book.BookNoteV2Service;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookReview;
import com.adityachandel.booklore.service.book.BookReviewService;
import org.booklore.model.dto.BookReview;
import org.booklore.service.book.BookReviewService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,18 +1,18 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookdropFile;
import com.adityachandel.booklore.model.dto.BookdropFileNotification;
import com.adityachandel.booklore.model.dto.request.BookdropBulkEditRequest;
import com.adityachandel.booklore.model.dto.request.BookdropFinalizeRequest;
import com.adityachandel.booklore.model.dto.request.BookdropPatternExtractRequest;
import com.adityachandel.booklore.model.dto.request.BookdropSelectionRequest;
import com.adityachandel.booklore.model.dto.response.BookdropBulkEditResult;
import com.adityachandel.booklore.model.dto.response.BookdropFinalizeResult;
import com.adityachandel.booklore.model.dto.response.BookdropPatternExtractResult;
import com.adityachandel.booklore.service.bookdrop.BookDropService;
import com.adityachandel.booklore.service.bookdrop.BookdropBulkEditService;
import com.adityachandel.booklore.service.bookdrop.BookdropMonitoringService;
import com.adityachandel.booklore.service.bookdrop.FilenamePatternExtractor;
import org.booklore.model.dto.BookdropFile;
import org.booklore.model.dto.BookdropFileNotification;
import org.booklore.model.dto.request.BookdropBulkEditRequest;
import org.booklore.model.dto.request.BookdropFinalizeRequest;
import org.booklore.model.dto.request.BookdropPatternExtractRequest;
import org.booklore.model.dto.request.BookdropSelectionRequest;
import org.booklore.model.dto.response.BookdropBulkEditResult;
import org.booklore.model.dto.response.BookdropFinalizeResult;
import org.booklore.model.dto.response.BookdropPatternExtractResult;
import org.booklore.service.bookdrop.BookDropService;
import org.booklore.service.bookdrop.BookdropBulkEditService;
import org.booklore.service.bookdrop.BookdropMonitoringService;
import org.booklore.service.bookdrop.FilenamePatternExtractor;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.response.CbxPageInfo;
import com.adityachandel.booklore.service.reader.CbxReaderService;
import org.booklore.model.dto.response.CbxPageInfo;
import org.booklore.service.reader.CbxReaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,10 +1,10 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.service.AuthenticationService;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.CustomFontDto;
import com.adityachandel.booklore.model.enums.FontFormat;
import com.adityachandel.booklore.service.customfont.CustomFontService;
import org.booklore.config.security.service.AuthenticationService;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.CustomFontDto;
import org.booklore.model.enums.FontFormat;
import org.booklore.service.customfont.CustomFontService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.EmailProviderV2;
import com.adityachandel.booklore.model.dto.request.CreateEmailProviderRequest;
import com.adityachandel.booklore.service.email.EmailProviderV2Service;
import org.booklore.model.dto.EmailProviderV2;
import org.booklore.model.dto.request.CreateEmailProviderRequest;
import org.booklore.service.email.EmailProviderV2Service;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.EmailRecipientV2;
import com.adityachandel.booklore.model.dto.request.CreateEmailRecipientRequest;
import com.adityachandel.booklore.service.email.EmailRecipientV2Service;
import org.booklore.model.dto.EmailRecipientV2;
import org.booklore.model.dto.request.CreateEmailRecipientRequest;
import org.booklore.service.email.EmailRecipientV2Service;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.response.EpubBookInfo;
import com.adityachandel.booklore.service.reader.EpubReaderService;
import org.booklore.model.dto.response.EpubBookInfo;
import org.booklore.service.reader.EpubReaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.request.FileMoveRequest;
import com.adityachandel.booklore.service.file.FileMoveService;
import org.booklore.model.dto.request.FileMoveRequest;
import org.booklore.service.file.FileMoveService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.Book;
import com.adityachandel.booklore.service.upload.FileUploadService;
import org.booklore.model.dto.Book;
import org.booklore.service.upload.FileUploadService;
import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.HardcoverSyncSettings;
import com.adityachandel.booklore.service.hardcover.HardcoverSyncSettingsService;
import org.booklore.model.dto.HardcoverSyncSettings;
import org.booklore.service.hardcover.HardcoverSyncSettingsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.HealthcheckResponse;
import com.adityachandel.booklore.model.dto.response.SuccessResponse;
import org.booklore.model.dto.HealthcheckResponse;
import org.booklore.model.dto.response.SuccessResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.request.SvgIconBatchRequest;
import com.adityachandel.booklore.model.dto.request.SvgIconCreateRequest;
import com.adityachandel.booklore.model.dto.response.SvgIconBatchResponse;
import com.adityachandel.booklore.service.IconService;
import org.booklore.model.dto.request.SvgIconBatchRequest;
import org.booklore.model.dto.request.SvgIconCreateRequest;
import org.booklore.model.dto.response.SvgIconBatchResponse;
import org.booklore.service.IconService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,15 +1,15 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.Shelf;
import com.adityachandel.booklore.model.dto.kobo.KoboAuthentication;
import com.adityachandel.booklore.model.dto.kobo.KoboReadingStateWrapper;
import com.adityachandel.booklore.model.dto.kobo.KoboResources;
import com.adityachandel.booklore.model.dto.kobo.KoboTestResponse;
import com.adityachandel.booklore.service.ShelfService;
import com.adityachandel.booklore.service.book.BookDownloadService;
import com.adityachandel.booklore.service.book.BookService;
import com.adityachandel.booklore.service.kobo.*;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.Shelf;
import org.booklore.model.dto.kobo.KoboAuthentication;
import org.booklore.model.dto.kobo.KoboReadingStateWrapper;
import org.booklore.model.dto.kobo.KoboResources;
import org.booklore.model.dto.kobo.KoboTestResponse;
import org.booklore.service.ShelfService;
import org.booklore.service.book.BookDownloadService;
import org.booklore.service.book.BookService;
import org.booklore.service.kobo.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import io.swagger.v3.oas.annotations.Operation;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.KoboSyncSettings;
import com.adityachandel.booklore.service.kobo.KoboSettingsService;
import org.booklore.model.dto.KoboSyncSettings;
import org.booklore.service.kobo.KoboSettingsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.JacksonConfig;
import com.adityachandel.booklore.mapper.komga.KomgaMapper;
import com.adityachandel.booklore.model.dto.komga.*;
import com.adityachandel.booklore.service.book.BookService;
import com.adityachandel.booklore.service.komga.KomgaService;
import com.adityachandel.booklore.service.opds.OpdsUserV2Service;
import org.booklore.config.JacksonConfig;
import org.booklore.mapper.komga.KomgaMapper;
import org.booklore.model.dto.komga.*;
import org.booklore.service.book.BookService;
import org.booklore.service.komga.KomgaService;
import org.booklore.service.opds.OpdsUserV2Service;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.progress.KoreaderProgress;
import com.adityachandel.booklore.service.koreader.KoreaderService;
import org.booklore.model.dto.progress.KoreaderProgress;
import org.booklore.service.koreader.KoreaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.KoreaderUser;
import com.adityachandel.booklore.service.koreader.KoreaderUserService;
import org.booklore.model.dto.KoreaderUser;
import org.booklore.service.koreader.KoreaderUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,10 +1,10 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckLibraryAccess;
import com.adityachandel.booklore.model.dto.Book;
import com.adityachandel.booklore.model.dto.Library;
import com.adityachandel.booklore.model.dto.request.CreateLibraryRequest;
import com.adityachandel.booklore.service.library.LibraryService;
import org.booklore.config.security.annotation.CheckLibraryAccess;
import org.booklore.model.dto.Book;
import org.booklore.model.dto.Library;
import org.booklore.model.dto.request.CreateLibraryRequest;
import org.booklore.service.library.LibraryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.MagicShelf;
import com.adityachandel.booklore.service.MagicShelfService;
import org.booklore.model.dto.MagicShelf;
import org.booklore.service.MagicShelfService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,19 +1,19 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.annotation.CheckBookAccess;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.mapper.BookMetadataMapper;
import com.adityachandel.booklore.model.MetadataUpdateContext;
import com.adityachandel.booklore.model.MetadataUpdateWrapper;
import com.adityachandel.booklore.model.dto.BookMetadata;
import com.adityachandel.booklore.model.dto.request.*;
import com.adityachandel.booklore.model.entity.BookEntity;
import com.adityachandel.booklore.model.enums.MetadataReplaceMode;
import com.adityachandel.booklore.repository.BookRepository;
import com.adityachandel.booklore.service.metadata.BookMetadataService;
import com.adityachandel.booklore.service.metadata.BookMetadataUpdater;
import com.adityachandel.booklore.service.metadata.MetadataManagementService;
import com.adityachandel.booklore.service.metadata.MetadataMatchService;
import org.booklore.config.security.annotation.CheckBookAccess;
import org.booklore.exception.ApiError;
import org.booklore.mapper.BookMetadataMapper;
import org.booklore.model.MetadataUpdateContext;
import org.booklore.model.MetadataUpdateWrapper;
import org.booklore.model.dto.BookMetadata;
import org.booklore.model.dto.request.*;
import org.booklore.model.entity.BookEntity;
import org.booklore.model.enums.MetadataReplaceMode;
import org.booklore.repository.BookRepository;
import org.booklore.service.metadata.BookMetadataService;
import org.booklore.service.metadata.BookMetadataUpdater;
import org.booklore.service.metadata.MetadataManagementService;
import org.booklore.service.metadata.MetadataMatchService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.MetadataBatchProgressNotification;
import com.adityachandel.booklore.model.dto.response.MetadataTaskDetailsResponse;
import com.adityachandel.booklore.service.metadata.MetadataTaskService;
import org.booklore.model.dto.MetadataBatchProgressNotification;
import org.booklore.model.dto.response.MetadataTaskDetailsResponse;
import org.booklore.service.metadata.MetadataTaskService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,14 +1,14 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.config.security.service.AuthenticationService;
import com.adityachandel.booklore.exception.ApiError;
import com.adityachandel.booklore.exception.APIException;
import com.adityachandel.booklore.model.dto.settings.OidcAutoProvisionDetails;
import com.adityachandel.booklore.model.dto.settings.OidcProviderDetails;
import com.adityachandel.booklore.model.entity.BookLoreUserEntity;
import com.adityachandel.booklore.repository.UserRepository;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import com.adityachandel.booklore.service.user.UserProvisioningService;
import org.booklore.config.security.service.AuthenticationService;
import org.booklore.exception.ApiError;
import org.booklore.exception.APIException;
import org.booklore.model.dto.settings.OidcAutoProvisionDetails;
import org.booklore.model.dto.settings.OidcProviderDetails;
import org.booklore.model.entity.BookLoreUserEntity;
import org.booklore.repository.UserRepository;
import org.booklore.service.appsettings.AppSettingService;
import org.booklore.service.user.UserProvisioningService;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.nimbusds.jwt.JWTClaimsSet;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.service.book.BookDownloadService;
import com.adityachandel.booklore.service.book.BookService;
import com.adityachandel.booklore.service.opds.OpdsFeedService;
import org.booklore.service.book.BookDownloadService;
import org.booklore.service.book.BookService;
import org.booklore.service.opds.OpdsFeedService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.OpdsUserV2;
import com.adityachandel.booklore.model.dto.request.OpdsUserV2CreateRequest;
import com.adityachandel.booklore.model.dto.request.OpdsUserV2UpdateRequest;
import com.adityachandel.booklore.service.opds.OpdsUserV2Service;
import org.booklore.model.dto.OpdsUserV2;
import org.booklore.model.dto.request.OpdsUserV2CreateRequest;
import org.booklore.model.dto.request.OpdsUserV2UpdateRequest;
import org.booklore.service.opds.OpdsUserV2Service;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,6 +1,6 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.service.file.PathService;
import org.booklore.service.file.PathService;
import lombok.AllArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.response.PdfBookInfo;
import com.adityachandel.booklore.service.reader.PdfReaderService;
import org.booklore.model.dto.response.PdfBookInfo;
import org.booklore.service.reader.PdfReaderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.settings.PublicAppSetting;
import com.adityachandel.booklore.service.appsettings.AppSettingService;
import org.booklore.model.dto.settings.PublicAppSetting;
import org.booklore.service.appsettings.AppSettingService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.request.ReadingSessionRequest;
import com.adityachandel.booklore.model.dto.response.ReadingSessionResponse;
import com.adityachandel.booklore.service.ReadingSessionService;
import org.booklore.model.dto.request.ReadingSessionRequest;
import org.booklore.model.dto.response.ReadingSessionResponse;
import org.booklore.service.ReadingSessionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.request.SendBookByEmailRequest;
import com.adityachandel.booklore.service.email.SendEmailV2Service;
import org.booklore.model.dto.request.SendBookByEmailRequest;
import org.booklore.service.email.SendEmailV2Service;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.exception.ErrorResponse;
import com.adityachandel.booklore.model.dto.request.InitialUserRequest;
import com.adityachandel.booklore.model.dto.response.SuccessResponse;
import com.adityachandel.booklore.service.user.UserProvisioningService;
import org.booklore.exception.ErrorResponse;
import org.booklore.model.dto.request.InitialUserRequest;
import org.booklore.model.dto.response.SuccessResponse;
import org.booklore.service.user.UserProvisioningService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,9 +1,9 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.Book;
import com.adityachandel.booklore.model.dto.Shelf;
import com.adityachandel.booklore.model.dto.request.ShelfCreateRequest;
import com.adityachandel.booklore.service.ShelfService;
import org.booklore.model.dto.Book;
import org.booklore.model.dto.Shelf;
import org.booklore.model.dto.request.ShelfCreateRequest;
import org.booklore.service.ShelfService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,17 +1,17 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.TaskInfo;
import com.adityachandel.booklore.model.dto.request.TaskCreateRequest;
import com.adityachandel.booklore.model.dto.request.TaskCronConfigRequest;
import com.adityachandel.booklore.model.dto.response.CronConfig;
import com.adityachandel.booklore.model.dto.response.TaskCancelResponse;
import com.adityachandel.booklore.model.dto.response.TaskCreateResponse;
import com.adityachandel.booklore.model.dto.response.TasksHistoryResponse;
import com.adityachandel.booklore.model.enums.TaskType;
import com.adityachandel.booklore.service.task.TaskCronService;
import com.adityachandel.booklore.service.task.TaskHistoryService;
import com.adityachandel.booklore.service.task.TaskService;
import com.adityachandel.booklore.task.TaskStatus;
import org.booklore.model.dto.TaskInfo;
import org.booklore.model.dto.request.TaskCreateRequest;
import org.booklore.model.dto.request.TaskCronConfigRequest;
import org.booklore.model.dto.response.CronConfig;
import org.booklore.model.dto.response.TaskCancelResponse;
import org.booklore.model.dto.response.TaskCreateResponse;
import org.booklore.model.dto.response.TasksHistoryResponse;
import org.booklore.model.enums.TaskType;
import org.booklore.service.task.TaskCronService;
import org.booklore.service.task.TaskHistoryService;
import org.booklore.service.task.TaskService;
import org.booklore.task.TaskStatus;
import lombok.AllArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -1,11 +1,11 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.request.ChangePasswordRequest;
import com.adityachandel.booklore.model.dto.request.ChangeUserPasswordRequest;
import com.adityachandel.booklore.model.dto.request.UpdateUserSettingRequest;
import com.adityachandel.booklore.model.dto.BookLoreUser;
import com.adityachandel.booklore.model.dto.request.UserUpdateRequest;
import com.adityachandel.booklore.service.user.UserService;
import org.booklore.model.dto.request.ChangePasswordRequest;
import org.booklore.model.dto.request.ChangeUserPasswordRequest;
import org.booklore.model.dto.request.UpdateUserSettingRequest;
import org.booklore.model.dto.BookLoreUser;
import org.booklore.model.dto.request.UserUpdateRequest;
import org.booklore.service.user.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -1,7 +1,7 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.response.*;
import com.adityachandel.booklore.service.ReadingSessionService;
import org.booklore.model.dto.response.*;
import org.booklore.service.ReadingSessionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
@@ -1,8 +1,8 @@
package com.adityachandel.booklore.controller;
package org.booklore.controller;
import com.adityachandel.booklore.model.dto.ReleaseNote;
import com.adityachandel.booklore.model.dto.VersionInfo;
import com.adityachandel.booklore.service.VersionService;
import org.booklore.model.dto.ReleaseNote;
import org.booklore.model.dto.VersionInfo;
import org.booklore.service.VersionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;

Some files were not shown because too many files have changed in this diff Show More