Commit 5062549f authored by Julien SADAOUI's avatar Julien SADAOUI
Browse files

spring-reactor: rename package

parent b0bfc2eb
......@@ -13,7 +13,7 @@ subprojects {
mavenCentral()
}
group = "com.ippon.codingdojo.reactive"
group = "fr.ippon.codingdojo.reactive"
version = "1.0"
......
package fr.ippon.codingdojo;
package fr.ippon.codingdojo.reactive;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package fr.ippon.codingdojo.config;
package fr.ippon.codingdojo.reactive.config;
import com.github.mongobee.Mongobee;
import com.mongodb.MongoClient;
......@@ -19,7 +19,7 @@ public class DatabaseConfiguration {
mongobee.setDbName(mongoProperties.getDatabase());
mongobee.setMongoTemplate(mongoTemplate);
// package to scan for migrations
mongobee.setChangeLogsScanPackage("fr.ippon.codingdojo.config.dbmigrations");
mongobee.setChangeLogsScanPackage("fr.ippon.codingdojo.reactive.config.dbmigrations");
mongobee.setEnabled(true);
return mongobee;
}
......
package fr.ippon.codingdojo.config;
package fr.ippon.codingdojo.reactive.config;
import fr.ippon.codingdojo.security.MongoReactiveUserDetailsService;
import fr.ippon.codingdojo.service.UserService;
import fr.ippon.codingdojo.reactive.security.MongoReactiveUserDetailsService;
import fr.ippon.codingdojo.reactive.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity;
......
package fr.ippon.codingdojo.config.dbmigrations;
package fr.ippon.codingdojo.reactive.config.dbmigrations;
import com.github.mongobee.changeset.ChangeLog;
import com.github.mongobee.changeset.ChangeSet;
import fr.ippon.codingdojo.domain.User;
import fr.ippon.codingdojo.reactive.domain.User;
import org.springframework.data.mongodb.core.MongoTemplate;
/**
......
package fr.ippon.codingdojo.domain;
package fr.ippon.codingdojo.reactive.domain;
import lombok.Builder;
import lombok.Data;
......
package fr.ippon.codingdojo.domain;
package fr.ippon.codingdojo.reactive.domain;
import java.math.BigDecimal;
import java.util.function.BiFunction;
......
package fr.ippon.codingdojo.domain;
package fr.ippon.codingdojo.reactive.domain;
import lombok.Builder;
import lombok.Value;
......
package fr.ippon.codingdojo.domain;
package fr.ippon.codingdojo.reactive.domain;
import lombok.Builder;
import lombok.Singular;
......
package fr.ippon.codingdojo.repository;
package fr.ippon.codingdojo.reactive.repository;
import fr.ippon.codingdojo.domain.Account;
import fr.ippon.codingdojo.reactive.domain.Account;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Mono;
......
package fr.ippon.codingdojo.repository;
package fr.ippon.codingdojo.reactive.repository;
import fr.ippon.codingdojo.domain.User;
import fr.ippon.codingdojo.reactive.domain.User;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
public interface UserRepository extends ReactiveMongoRepository<User, String> {
......
package fr.ippon.codingdojo.security;
package fr.ippon.codingdojo.reactive.security;
import fr.ippon.codingdojo.service.UserService;
import fr.ippon.codingdojo.reactive.service.UserService;
import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
......
package fr.ippon.codingdojo.service;
package fr.ippon.codingdojo.reactive.service;
import fr.ippon.codingdojo.domain.Account;
import fr.ippon.codingdojo.domain.Transaction;
import fr.ippon.codingdojo.reactive.domain.Account;
import fr.ippon.codingdojo.reactive.domain.Transaction;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
......
package fr.ippon.codingdojo.service;
package fr.ippon.codingdojo.reactive.service;
import fr.ippon.codingdojo.domain.User;
import fr.ippon.codingdojo.reactive.domain.User;
import reactor.core.publisher.Mono;
public interface UserService {
......
package fr.ippon.codingdojo.service.impl;
package fr.ippon.codingdojo.reactive.service.impl;
import fr.ippon.codingdojo.domain.Account;
import fr.ippon.codingdojo.domain.Operation;
import fr.ippon.codingdojo.domain.Transaction;
import fr.ippon.codingdojo.repository.AccountRepository;
import fr.ippon.codingdojo.service.AccountService;
import fr.ippon.codingdojo.reactive.domain.Account;
import fr.ippon.codingdojo.reactive.domain.Operation;
import fr.ippon.codingdojo.reactive.domain.Transaction;
import fr.ippon.codingdojo.reactive.repository.AccountRepository;
import fr.ippon.codingdojo.reactive.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
......
package fr.ippon.codingdojo.service.impl;
package fr.ippon.codingdojo.reactive.service.impl;
import fr.ippon.codingdojo.domain.User;
import fr.ippon.codingdojo.repository.UserRepository;
import fr.ippon.codingdojo.service.UserService;
import fr.ippon.codingdojo.reactive.domain.User;
import fr.ippon.codingdojo.reactive.repository.UserRepository;
import fr.ippon.codingdojo.reactive.service.UserService;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
import org.springframework.security.core.context.SecurityContext;
......
package fr.ippon.codingdojo.web;
package fr.ippon.codingdojo.reactive.web;
import fr.ippon.codingdojo.domain.Account;
import fr.ippon.codingdojo.service.AccountService;
import fr.ippon.codingdojo.service.UserService;
import fr.ippon.codingdojo.reactive.domain.Account;
import fr.ippon.codingdojo.reactive.service.AccountService;
import fr.ippon.codingdojo.reactive.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
......
package fr.ippon.codingdojo.web;
package fr.ippon.codingdojo.reactive.web;
import fr.ippon.codingdojo.domain.Transaction;
import fr.ippon.codingdojo.service.AccountService;
import fr.ippon.codingdojo.service.UserService;
import fr.ippon.codingdojo.reactive.domain.Transaction;
import fr.ippon.codingdojo.reactive.service.AccountService;
import fr.ippon.codingdojo.reactive.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
......
package fr.ippon.codingdojo.web;
package fr.ippon.codingdojo.reactive.web;
import fr.ippon.codingdojo.domain.Account;
import fr.ippon.codingdojo.reactive.domain.Account;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment