Commit c56faef8 authored by Norbert Komiňák's avatar Norbert Komiňák
Browse files

Added Javadocs to Configuration classes

parent 1c4b85c3
......@@ -2,9 +2,6 @@ package cz.fi.muni.pa165.flea.market.manager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* @author Norbert Kominak
......
......@@ -17,23 +17,24 @@ import cz.fi.muni.pa165.flea.market.manager.dto.user.LoginDTO;
import cz.fi.muni.pa165.flea.market.manager.dto.user.UserCreateDTO;
import cz.fi.muni.pa165.flea.market.manager.dto.user.UserDTO;
import cz.fi.muni.pa165.flea.market.manager.dto.user.UserUpdateDTO;
import cz.fi.muni.pa165.flea.market.manager.entity.MarketEvent;
import cz.fi.muni.pa165.flea.market.manager.entity.MarketLocation;
import cz.fi.muni.pa165.flea.market.manager.entity.Stand;
import cz.fi.muni.pa165.flea.market.manager.entity.StandType;
import cz.fi.muni.pa165.flea.market.manager.entity.User;
import cz.fi.muni.pa165.flea.market.manager.entity.*;
import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.dozer.loader.api.BeanMappingBuilder;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import java.util.Collections;
/**
* Configuration of dozer mapping
*
* @author Lucia Lopuchova
*/
@Import(PersistenceConfig.class)
@SpringBootConfiguration
public class ControllerConfig {
@Configuration
public class DozerMappingConfig {
@Bean
public Mapper dozer(){
......@@ -43,7 +44,7 @@ public class ControllerConfig {
return dozer;
}
public class DozerCustomConfig extends BeanMappingBuilder {
public static class DozerCustomConfig extends BeanMappingBuilder {
@Override
protected void configure() {
mapping(User.class, UserDTO.class);
......
......@@ -5,6 +5,11 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* Configuration of password encoder used to encode stored passwords
*
* @author Norbert Kominak
*/
@Configuration
public class PasswordEncoderConfig {
......
package cz.fi.muni.pa165.flea.market.manager.config;
/**
* Configuration of Rest API paths
*
* @author Norbert Kominak
*/
public class PathsConfig {
public final static String ROOT = "/pa165";
public final static String REST_ROOT = ROOT + "/rest";
......
......@@ -10,7 +10,6 @@ import org.springframework.security.authentication.AuthenticationCredentialsNotF
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
......
package cz.fi.muni.pa165.flea.market.manager.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Configuration of View Controllers
*
* @author Michal Cizek
*/
@Configuration
public class ViewControllerConfig implements WebMvcConfigurer {
@Override
......
Supports Markdown
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