├── 01_SpringSecurity ├── src │ ├── main │ │ ├── resources │ │ │ └── application.properties │ │ └── java │ │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── DemoApplication.java │ └── test │ │ └── java │ │ └── com │ │ └── openwebinars │ │ └── rest │ │ └── DemoApplicationTests.java └── .mvn │ └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── 31_OAuth2Cliente ├── src │ ├── main │ │ ├── resources │ │ │ ├── application.properties │ │ │ └── static │ │ │ │ ├── style.css │ │ │ │ └── index.html │ │ └── java │ │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── Application.java │ └── test │ │ └── java │ │ └── com │ │ └── openwebinars │ │ └── rest │ │ └── ApplicationTests.java └── .mvn │ └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── 33_OAuth2_JWTBase ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 09_RefactorizaDtoBase ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 33_OAuth2_JWTCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 00_ProyectoBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── LoteCreateException.java │ │ │ ├── service │ │ │ ├── PedidoServicio.java │ │ │ └── CategoriaServicio.java │ │ │ └── upload │ │ │ └── StorageException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 05_ModeloUsuarioCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ └── model │ │ │ └── UserRole.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 07_UserDetailsServiceBase ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 09_RefactorizaDtoCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 18_JWTUsersBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ ├── service │ │ │ └── CategoriaServicio.java │ │ │ └── upload │ │ │ └── StorageException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 06_RepositorioServicioBase ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ └── model │ │ │ └── UserRole.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 08_ControladorRegistroBase ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 10_ProyectoBase2 ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ ├── service │ │ │ └── CategoriaServicio.java │ │ │ └── upload │ │ │ └── StorageException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 19_JWTProviderBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 20_JWTFilterBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 21_JWTModeloBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 30_OAuth2_CORSBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 31_OAuth2Servidor ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 32_OAuth2_BaseDatosCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 05_ModeloUsuarioBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── test │ └── java │ │ └── com │ │ └── openwebinars │ │ └── rest │ │ └── ApplicationTests.java │ └── main │ ├── resources │ └── application.properties │ └── java │ └── com │ └── openwebinars │ └── rest │ └── Application.java ├── 06_RepositorioServicioCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 07_UserDetailsServiceCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 08_ControladorRegistroCompleto ├── db │ └── basededatos.mv.db ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ └── users │ │ │ ├── model │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ └── UserEntityRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 16_JWTSeguridadBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── dto │ │ │ ├── EditProductoDTO.java │ │ │ └── CreateProductoDTO.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 17_JWTEntryPointBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 18_JWTUsersCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── dto │ │ │ ├── EditProductoDTO.java │ │ │ └── CreateProductoDTO.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 20_JWTFilterCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 21_JWTModeloCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 16_JWTSeguridadCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 17_JWTEntryPointCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── dto │ │ │ ├── EditProductoDTO.java │ │ │ └── CreateProductoDTO.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 19_JWTProviderCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 22_JWTControladorBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 22_JWTControladorCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ └── CategoriaRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 29_OAuth2_RecursosBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 30_OAuth2_CORSCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 32_OAuth2_BaseDatosBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ ├── error │ │ │ └── exceptions │ │ │ │ └── LoteCreateException.java │ │ │ └── service │ │ │ └── CategoriaServicio.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 11_AutenticacionBasicaBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 11_AutenticacionBasicaCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 13_AutBasicaCustomDeniedBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ └── CategoriaRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 28_OAuth2_AutenticacionBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 29_OAuth2_RecursosCompleta ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 12_AutBasicaRefactorizacionBase ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ ├── CategoriaRepositorio.java │ │ │ └── PedidoRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java ├── 12_AutBasicaRefactorizacionCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ └── main │ ├── java │ └── com │ │ └── openwebinars │ │ └── rest │ │ ├── users │ │ └── model │ │ │ └── UserRole.java │ │ ├── views │ │ └── ProductoViews.java │ │ ├── repos │ │ └── CategoriaRepositorio.java │ │ ├── dto │ │ ├── CreateProductoDTO.java │ │ └── EditProductoDTO.java │ │ └── error │ │ └── exceptions │ │ └── LoteCreateException.java │ └── resources │ └── application.properties ├── 13_AutBasicaCustomDeniedCompleto ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.properties │ │ └── maven-wrapper.jar └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── openwebinars │ │ │ └── rest │ │ │ ├── users │ │ │ ├── model │ │ │ │ └── UserRole.java │ │ │ └── repos │ │ │ │ └── UserEntityRepository.java │ │ │ ├── views │ │ │ └── ProductoViews.java │ │ │ ├── repos │ │ │ └── CategoriaRepositorio.java │ │ │ ├── dto │ │ │ ├── CreateProductoDTO.java │ │ │ └── EditProductoDTO.java │ │ │ └── error │ │ │ └── exceptions │ │ │ └── LoteCreateException.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── openwebinars │ └── rest │ └── ApplicationTests.java └── 28_OAuth2_AutenticacionCompleto ├── .mvn └── wrapper │ ├── maven-wrapper.properties │ └── maven-wrapper.jar └── src ├── main ├── java │ └── com │ │ └── openwebinars │ │ └── rest │ │ ├── users │ │ ├── model │ │ │ └── UserRole.java │ │ └── repos │ │ │ └── UserEntityRepository.java │ │ ├── views │ │ └── ProductoViews.java │ │ ├── repos │ │ ├── CategoriaRepositorio.java │ │ └── PedidoRepositorio.java │ │ ├── dto │ │ ├── CreateProductoDTO.java │ │ └── EditProductoDTO.java │ │ └── error │ │ └── exceptions │ │ └── LoteCreateException.java └── resources │ └── application.properties └── test └── java └── com └── openwebinars └── rest └── ApplicationTests.java /01_SpringSecurity/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /31_OAuth2Cliente/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8081 -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTBase/db/basededatos.mv.db -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/09_RefactorizaDtoBase/db/basededatos.mv.db -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /00_ProyectoBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/00_ProyectoBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/05_ModeloUsuarioCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/07_UserDetailsServiceBase/db/basededatos.mv.db -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/09_RefactorizaDtoCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /18_JWTUsersBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/18_JWTUsersBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /00_ProyectoBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /01_SpringSecurity/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/01_SpringSecurity/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /06_RepositorioServicioBase/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/06_RepositorioServicioBase/db/basededatos.mv.db -------------------------------------------------------------------------------- /08_ControladorRegistroBase/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/08_ControladorRegistroBase/db/basededatos.mv.db -------------------------------------------------------------------------------- /10_ProyectoBase2/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/10_ProyectoBase2/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /18_JWTUsersBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /19_JWTProviderBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/19_JWTProviderBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /20_JWTFilterBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/20_JWTFilterBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /21_JWTModeloBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/21_JWTModeloBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/30_OAuth2_CORSBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /31_OAuth2Cliente/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/31_OAuth2Cliente/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /31_OAuth2Cliente/src/main/resources/static/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 20px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | .navbar { 7 | margin-bottom: 20px; 8 | } -------------------------------------------------------------------------------- /31_OAuth2Servidor/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/31_OAuth2Servidor/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/32_OAuth2_BaseDatosCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /01_SpringSecurity/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /05_ModeloUsuarioBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/05_ModeloUsuarioBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /05_ModeloUsuarioBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/06_RepositorioServicioCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/07_UserDetailsServiceCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/db/basededatos.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/08_ControladorRegistroCompleto/db/basededatos.mv.db -------------------------------------------------------------------------------- /10_ProyectoBase2/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/16_JWTSeguridadBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /16_JWTSeguridadBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/17_JWTEntryPointBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /17_JWTEntryPointBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/18_JWTUsersCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /18_JWTUsersCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /19_JWTProviderBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /20_JWTFilterBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/20_JWTFilterCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /20_JWTFilterCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /21_JWTModeloBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/21_JWTModeloCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /21_JWTModeloCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /31_OAuth2Cliente/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/09_RefactorizaDtoBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/16_JWTSeguridadCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/19_JWTProviderCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /19_JWTProviderCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /22_JWTControladorBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/22_JWTControladorBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /22_JWTControladorBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/29_OAuth2_RecursosBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/30_OAuth2_CORSCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/32_OAuth2_BaseDatosBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/05_ModeloUsuarioCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /06_RepositorioServicioBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/07_UserDetailsServiceBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /08_ControladorRegistroBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/09_RefactorizaDtoCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/17_JWTEntryPointCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /22_JWTControladorCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/22_JWTControladorCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /06_RepositorioServicioBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/06_RepositorioServicioBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /08_ControladorRegistroBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/08_ControladorRegistroBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/11_AutenticacionBasicaBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/13_AutBasicaCustomDeniedBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/28_OAuth2_AutenticacionBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/29_OAuth2_RecursosCompleta/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/31_OAuth2Servidor/src/main/resources/application.properties -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/32_OAuth2_BaseDatosCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTBase/src/main/resources/application.properties -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/06_RepositorioServicioCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/07_UserDetailsServiceCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/08_ControladorRegistroCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/11_AutenticacionBasicaCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/30_OAuth2_CORSBase/src/main/resources/application.properties -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /06_RepositorioServicioBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /08_ControladorRegistroBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/12_AutBasicaRefactorizacionBase/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/13_AutBasicaCustomDeniedCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/28_OAuth2_AutenticacionCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/29_OAuth2_RecursosBase/src/main/resources/application.properties -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/30_OAuth2_CORSCompleto/src/main/resources/application.properties -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/33_OAuth2_JWTCompleto/src/main/resources/application.properties -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/12_AutBasicaRefactorizacionCompleto/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/32_OAuth2_BaseDatosBase/src/main/resources/application.properties -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/users/model/UserRole.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.model; 2 | 3 | public enum UserRole { 4 | 5 | USER, ADMIN 6 | 7 | } 8 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/29_OAuth2_RecursosCompleta/src/main/resources/application.properties -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/32_OAuth2_BaseDatosCompleto/src/main/resources/application.properties -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenWebinarsNet/secured-spring-rest-api/HEAD/28_OAuth2_AutenticacionCompleto/src/main/resources/application.properties -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/views/ProductoViews.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.views; 2 | 3 | public class ProductoViews { 4 | 5 | public interface Dto { } 6 | public interface DtoConPrecio extends Dto { } 7 | 8 | } 9 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.h2.console.enabled=true 3 | 4 | # Subida de ficheros 5 | upload.root-location=upload-dir 6 | 7 | 8 | spring.jackson.mapper.default-view-inclusion=true 9 | 10 | 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /31_OAuth2Cliente/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /05_ModeloUsuarioBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /01_SpringSecurity/src/test/java/com/openwebinars/rest/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /06_RepositorioServicioBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /08_ControladorRegistroBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/repos/PedidoRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | 7 | public interface PedidoRepositorio extends JpaRepository { 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/repos/CategoriaRepositorio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.repos; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | 7 | public interface CategoriaRepositorio extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/dto/CreateProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | @Getter @Setter 7 | public class CreateProductoDTO { 8 | 9 | private String nombre; 10 | 11 | private float precio; 12 | 13 | private long categoriaId; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/dto/EditProductoDTO.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.dto; 2 | 3 | import lombok.Builder; 4 | import lombok.Getter; 5 | import lombok.Setter; 6 | 7 | @Setter 8 | @Getter 9 | @Builder 10 | public class EditProductoDTO { 11 | 12 | private String nombre; 13 | private float precio; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /05_ModeloUsuarioBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /05_ModeloUsuarioCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /06_RepositorioServicioBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /08_ControladorRegistroBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/error/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true 15 | 16 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true 15 | 16 | -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # H2 y JPA 3 | 4 | spring.datasource.url=jdbc:h2:./db/basededatos 5 | spring.datasource.username=sa 6 | spring.datasource.password= 7 | spring.h2.console.enabled=true 8 | spring.jpa.hibernate.ddl-auto=create-drop 9 | spring.jpa.show-sql=true 10 | 11 | 12 | # Jackson 13 | 14 | spring.jackson.mapper.default-view-inclusion=true 15 | 16 | -------------------------------------------------------------------------------- /31_OAuth2Cliente/src/main/java/com/openwebinars/rest/Application.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /05_ModeloUsuarioBase/src/main/java/com/openwebinars/rest/Application.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /01_SpringSecurity/src/main/java/com/openwebinars/rest/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionCompleto/src/main/java/com/openwebinars/rest/error/exceptions/LoteCreateException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.error.exceptions; 2 | 3 | public class LoteCreateException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -6656042484402959674L; 9 | 10 | public LoteCreateException() { 11 | super("Error al crear un nuevo lote"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/service/PedidoServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Pedido; 6 | import com.openwebinars.rest.repos.PedidoRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class PedidoServicio extends BaseService { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /31_OAuth2Cliente/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /09_RefactorizaDtoBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /07_UserDetailsServiceBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /07_UserDetailsServiceCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /08_ControladorRegistroBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /09_RefactorizaDtoCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /16_JWTSeguridadBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /18_JWTUsersCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /19_JWTProviderBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /20_JWTFilterBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /21_JWTModeloBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /22_JWTControladorCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosCompleta/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /30_OAuth2_CORSBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /31_OAuth2Servidor/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /33_OAuth2_JWTBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /00_ProyectoBase/src/main/java/com/openwebinars/rest/upload/StorageException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.upload; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -5502351264978098291L; 9 | 10 | public StorageException(String message) { 11 | super(message); 12 | } 13 | 14 | public StorageException(String message, Throwable cause) { 15 | super(message, cause); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /06_RepositorioServicioCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /08_ControladorRegistroCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /11_AutenticacionBasicaCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /12_AutBasicaRefactorizacionBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedBase/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /13_AutBasicaCustomDeniedCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /16_JWTSeguridadCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /17_JWTEntryPointBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /17_JWTEntryPointCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /18_JWTUsersBase/src/main/java/com/openwebinars/rest/upload/StorageException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.upload; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -5502351264978098291L; 9 | 10 | public StorageException(String message) { 11 | super(message); 12 | } 13 | 14 | public StorageException(String message, Throwable cause) { 15 | super(message, cause); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /19_JWTProviderCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /20_JWTFilterCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /21_JWTModeloCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /22_JWTControladorBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/main/java/com/openwebinars/rest/users/repos/UserEntityRepository.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.users.repos; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import com.openwebinars.rest.users.model.UserEntity; 8 | 9 | public interface UserEntityRepository extends JpaRepository { 10 | 11 | Optional findByUsername(String username); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /28_OAuth2_AutenticacionCompleto/src/test/java/com/openwebinars/rest/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /29_OAuth2_RecursosBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /30_OAuth2_CORSCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /32_OAuth2_BaseDatosBase/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /33_OAuth2_JWTCompleto/src/main/java/com/openwebinars/rest/service/CategoriaServicio.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.openwebinars.rest.modelo.Categoria; 6 | import com.openwebinars.rest.repos.CategoriaRepositorio; 7 | import com.openwebinars.rest.service.base.BaseService; 8 | 9 | @Service 10 | public class CategoriaServicio extends BaseService{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /10_ProyectoBase2/src/main/java/com/openwebinars/rest/upload/StorageException.java: -------------------------------------------------------------------------------- 1 | package com.openwebinars.rest.upload; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = -5502351264978098291L; 9 | 10 | public StorageException(String message) { 11 | super(message); 12 | } 13 | 14 | public StorageException(String message, Throwable cause) { 15 | super(message, cause); 16 | } 17 | 18 | } --------------------------------------------------------------------------------