Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amparo Oliver
th-app-java
Commits
638f36e4
Commit
638f36e4
authored
Nov 24, 2021
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize imports
parent
9b6a4bd0
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
108 additions
and
283 deletions
+108
-283
curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java
+5
-6
curriculumsearch/src/main/java/com/roshka/DTO/PostulanteListaDTO.java
+2
-2
curriculumsearch/src/main/java/com/roshka/configuration/CustomUserDetails.java
+2
-2
curriculumsearch/src/main/java/com/roshka/controller/CargoController.java
+3
-10
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
+3
-18
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+3
-23
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+13
-21
curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java
+0
-12
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
+6
-14
curriculumsearch/src/main/java/com/roshka/modelo/Cargo.java
+4
-12
curriculumsearch/src/main/java/com/roshka/modelo/Ciudad.java
+2
-12
curriculumsearch/src/main/java/com/roshka/modelo/ConvocatoriaCargo.java
+4
-14
curriculumsearch/src/main/java/com/roshka/modelo/DBFile.java
+2
-7
curriculumsearch/src/main/java/com/roshka/modelo/Departamento.java
+3
-10
curriculumsearch/src/main/java/com/roshka/modelo/EstadoConvocatoriaConverter.java
+2
-1
curriculumsearch/src/main/java/com/roshka/modelo/EstadoPostulanteConverter.java
+1
-2
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
+3
-6
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
+1
-12
curriculumsearch/src/main/java/com/roshka/modelo/Institucion.java
+0
-1
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
+2
-4
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
+4
-15
curriculumsearch/src/main/java/com/roshka/modelo/RRHHUser.java
+2
-2
curriculumsearch/src/main/java/com/roshka/modelo/ReferenciaPersonal.java
+3
-4
curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java
+3
-8
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumentoConverter.java
+1
-2
curriculumsearch/src/main/java/com/roshka/repositorio/CargoRepository.java
+2
-3
curriculumsearch/src/main/java/com/roshka/repositorio/CiudadRepository.java
+0
-1
curriculumsearch/src/main/java/com/roshka/repositorio/ConvocatoriaRepository.java
+2
-5
curriculumsearch/src/main/java/com/roshka/repositorio/DBFileRepository.java
+0
-1
curriculumsearch/src/main/java/com/roshka/repositorio/DepartamentoRepository.java
+0
-1
curriculumsearch/src/main/java/com/roshka/repositorio/EstudioRepository.java
+1
-2
curriculumsearch/src/main/java/com/roshka/repositorio/ExperienciaRepository.java
+1
-3
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
+4
-7
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteTecnologiaRepository.java
+1
-2
curriculumsearch/src/main/java/com/roshka/repositorio/TecnologiaRepository.java
+1
-4
curriculumsearch/src/main/java/com/roshka/service/PdfGenerator.java
+6
-16
curriculumsearch/src/main/java/com/roshka/utils/Helper.java
+4
-5
curriculumsearch/src/main/java/com/roshka/utils/PostulantesExcelExporter.java
+9
-11
curriculumsearch/src/main/webapp/img/fondoform.svg
+3
-2
No files found.
curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java
View file @
638f36e4
package
com
.
roshka
;
package
com
.
roshka
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.fasterxml.jackson.core.JsonParseException
;
import
com.fasterxml.jackson.core.JsonParseException
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.JsonMappingException
;
import
com.fasterxml.jackson.databind.JsonMappingException
;
...
@@ -12,7 +7,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
...
@@ -12,7 +7,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.fasterxml.jackson.databind.type.TypeFactory
;
import
com.fasterxml.jackson.databind.type.TypeFactory
;
import
com.roshka.modelo.*
;
import
com.roshka.modelo.*
;
import
com.roshka.repositorio.*
;
import
com.roshka.repositorio.*
;
import
org.hibernate.PersistentObjectException
;
import
org.hibernate.PersistentObjectException
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
...
@@ -23,6 +17,11 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -23,6 +17,11 @@ import org.springframework.data.jpa.repository.JpaRepository;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.ArrayList
;
import
java.util.List
;
@SpringBootApplication
@SpringBootApplication
@EnableJpaRepositories
(
"com.roshka.repositorio"
)
@EnableJpaRepositories
(
"com.roshka.repositorio"
)
@EntityScan
(
"com.roshka.modelo"
)
@EntityScan
(
"com.roshka.modelo"
)
...
...
curriculumsearch/src/main/java/com/roshka/DTO/PostulanteListaDTO.java
View file @
638f36e4
package
com
.
roshka
.
DTO
;
package
com
.
roshka
.
DTO
;
import
java.util.List
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.EstadoPostulante
;
import
com.roshka.modelo.EstadoPostulante
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
java.util.List
;
public
class
PostulanteListaDTO
{
public
class
PostulanteListaDTO
{
private
Long
id
;
private
Long
id
;
private
String
nombre
;
private
String
nombre
;
...
...
curriculumsearch/src/main/java/com/roshka/configuration/CustomUserDetails.java
View file @
638f36e4
package
com
.
roshka
.
configuration
;
package
com
.
roshka
.
configuration
;
import
java.util.Collection
;
import
com.roshka.modelo.RRHHUser
;
import
com.roshka.modelo.RRHHUser
;
import
org.springframework.security.core.GrantedAuthority
;
import
org.springframework.security.core.GrantedAuthority
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
java.util.Collection
;
public
class
CustomUserDetails
implements
UserDetails
{
public
class
CustomUserDetails
implements
UserDetails
{
private
RRHHUser
user
;
private
RRHHUser
user
;
...
...
curriculumsearch/src/main/java/com/roshka/controller/CargoController.java
View file @
638f36e4
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.util.List
;
import
javax.validation.Valid
;
import
com.roshka.modelo.Cargo
;
import
com.roshka.modelo.Cargo
;
import
com.roshka.repositorio.CargoRepository
;
import
com.roshka.repositorio.CargoRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -15,12 +11,9 @@ import org.springframework.data.domain.Sort;
...
@@ -15,12 +11,9 @@ import org.springframework.data.domain.Sort;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
javax.validation.Valid
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
@Controller
@Controller
public
class
CargoController
{
public
class
CargoController
{
...
...
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
View file @
638f36e4
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
com.roshka.modelo.Cargo
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.EstadoConvocatoria
;
import
com.roshka.modelo.EstadoConvocatoria
;
import
com.roshka.modelo.EstadoConvocatoriaConverter
;
import
com.roshka.repositorio.CargoRepository
;
import
com.roshka.repositorio.CargoRepository
;
import
com.roshka.repositorio.ConvocatoriaRepository
;
import
com.roshka.repositorio.ConvocatoriaRepository
;
import
org.apache.jasper.tagplugins.jstl.core.ForEach
;
import
org.dom4j.Branch
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.hibernate.type.IntegerType
;
import
org.hibernate.type.LongType
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.MessageSource
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
...
@@ -25,13 +12,11 @@ import org.springframework.data.domain.Sort;
...
@@ -25,13 +12,11 @@ import org.springframework.data.domain.Sort;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
java.util.Date
;
@Controller
@Controller
public
class
ConvocatoriaController
{
public
class
ConvocatoriaController
{
...
...
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
638f36e4
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.io.IOException
;
import
java.util.Date
;
import
javax.validation.ConstraintViolationException
;
import
com.roshka.modelo.*
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.roshka.modelo.EstadoCivil
;
import
com.roshka.modelo.*
;
import
com.roshka.modelo.Nacionalidad
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.TipoExperiencia
;
import
com.roshka.repositorio.*
;
import
com.roshka.repositorio.*
;
import
com.roshka.repositorio.CiudadRepository
;
import
com.roshka.repositorio.ConvocatoriaRepository
;
import
com.roshka.repositorio.DepartamentoRepository
;
import
com.roshka.repositorio.ExperienciaRepository
;
import
com.roshka.repositorio.InstitucionRepository
;
import
com.roshka.repositorio.PostulanteRepository
;
import
com.roshka.repositorio.TecnologiaRepository
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.Helper
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.hibernate.type.IntegerType
;
import
org.hibernate.type.LongType
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
...
@@ -34,13 +13,14 @@ import org.springframework.http.HttpStatus;
...
@@ -34,13 +13,14 @@ import org.springframework.http.HttpStatus;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.view.RedirectView
;
import
org.springframework.web.servlet.view.RedirectView
;
import
javax.validation.ConstraintViolationException
;
@Controller
@Controller
public
class
PostulanteController
{
public
class
PostulanteController
{
...
...
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
638f36e4
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.roshka.DTO.PostulanteListaDTO
;
import
com.roshka.DTO.PostulanteListaDTO
;
import
com.roshka.modelo.
*
;
import
com.roshka.modelo.
DBFile
;
import
com.roshka.modelo.EstadoPostulante
;
import
com.roshka.modelo.EstadoPostulante
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.repositorio.*
;
import
com.roshka.repositorio.*
;
import
com.roshka.repositorio.CiudadRepository
;
import
com.roshka.repositorio.ConvocatoriaRepository
;
import
com.roshka.repositorio.DepartamentoRepository
;
import
com.roshka.repositorio.ExperienciaRepository
;
import
com.roshka.repositorio.InstitucionRepository
;
import
com.roshka.repositorio.PostulanteRepository
;
import
com.roshka.repositorio.TecnologiaRepository
;
import
com.roshka.service.PdfGenerator
;
import
com.roshka.service.PdfGenerator
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.PostulantesExcelExporter
;
import
com.roshka.utils.PostulantesExcelExporter
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.hibernate.type.StringType
;
import
org.hibernate.type.StringType
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
@Controller
@Controller
...
...
curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java
View file @
638f36e4
...
@@ -7,32 +7,20 @@ import com.roshka.service.RRHHUserService;
...
@@ -7,32 +7,20 @@ import com.roshka.service.RRHHUserService;
import
net.bytebuddy.utility.RandomString
;
import
net.bytebuddy.utility.RandomString
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.mail.javamail.JavaMailSender
;
import
org.springframework.mail.javamail.MimeMessageHelper
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.userdetails.User
;
import
org.springframework.security.core.userdetails.UsernameNotFoundException
;
import
org.springframework.security.core.userdetails.UsernameNotFoundException
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.ResponseStatus
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.view.RedirectView
;
import
org.springframework.web.servlet.view.RedirectView
;
import
javax.mail.MessagingException
;
import
javax.mail.MessagingException
;
import
javax.mail.internet.MimeMessage
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.Executors
;
...
...
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
View file @
638f36e4
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.util.List
;
import
javax.validation.Valid
;
import
com.roshka.modelo.Tecnologia
;
import
com.roshka.modelo.Tecnologia
;
import
com.roshka.repositorio.TecnologiaRepository
;
import
com.roshka.repositorio.TecnologiaRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
@Controller
@Controller
public
class
TecnologiaController
{
public
class
TecnologiaController
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Cargo.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.List
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.OneToMany
;
import
javax.persistence.Table
;
import
javax.validation.constraints.NotBlank
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"cargo"
)
@Table
(
name
=
"cargo"
)
public
class
Cargo
{
public
class
Cargo
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Ciudad.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"ciudad"
)
@Table
(
name
=
"ciudad"
)
...
...
curriculumsearch/src/main/java/com/roshka/modelo/ConvocatoriaCargo.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.Date
;
import
java.util.List
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.ObjectIdGenerators
;
import
com.fasterxml.jackson.annotation.ObjectIdGenerators
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.Helper
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.util.Date
;
import
java.util.List
;
@Entity
@Entity
@Table
(
name
=
"convocatoria_cargo"
)
@Data
@Table
(
name
=
"convocatoria_cargo"
)
@Data
@JsonIdentityInfo
(
generator
=
ObjectIdGenerators
.
UUIDGenerator
.
class
,
property
=
"@UUID"
)
@JsonIdentityInfo
(
generator
=
ObjectIdGenerators
.
UUIDGenerator
.
class
,
property
=
"@UUID"
)
...
...
curriculumsearch/src/main/java/com/roshka/modelo/DBFile.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
import
javax.persistence.OneToOne
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.GenericGenerator
;
import
org.hibernate.annotations.GenericGenerator
;
import
javax.persistence.*
;
@Entity
@Entity
@Table
(
name
=
"files"
)
@Table
(
name
=
"files"
)
public
class
DBFile
{
public
class
DBFile
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Departamento.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.List
;
import
javax.persistence.CascadeType
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.OneToMany
;
import
javax.persistence.Table
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.util.List
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"departamento"
)
@Table
(
name
=
"departamento"
)
public
class
Departamento
{
public
class
Departamento
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/EstadoConvocatoriaConverter.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.Arrays
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.Converter
;
import
javax.persistence.Converter
;
import
java.util.Arrays
;
@Converter
(
autoApply
=
true
)
@Converter
(
autoApply
=
true
)
public
class
EstadoConvocatoriaConverter
implements
AttributeConverter
<
EstadoConvocatoria
,
String
>,
org
.
springframework
.
core
.
convert
.
converter
.
Converter
<
String
,
EstadoConvocatoria
>
{
public
class
EstadoConvocatoriaConverter
implements
AttributeConverter
<
EstadoConvocatoria
,
String
>,
org
.
springframework
.
core
.
convert
.
converter
.
Converter
<
String
,
EstadoConvocatoria
>
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/EstadoPostulanteConverter.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.Arrays
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.Converter
;
import
javax.persistence.Converter
;
import
java.util.Arrays
;
@Converter
(
autoApply
=
true
)
@Converter
(
autoApply
=
true
)
public
class
EstadoPostulanteConverter
implements
AttributeConverter
<
EstadoPostulante
,
String
>,
org
.
springframework
.
core
.
convert
.
converter
.
Converter
<
String
,
EstadoPostulante
>
{
public
class
EstadoPostulanteConverter
implements
AttributeConverter
<
EstadoPostulante
,
String
>,
org
.
springframework
.
core
.
convert
.
converter
.
Converter
<
String
,
EstadoPostulante
>
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.Dat
e
;
import
com.fasterxml.jackson.annotation.JsonBackReferenc
e
;
import
java.util.List
;
import
com.roshka.utils.Helper
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Past
;
import
javax.validation.constraints.Past
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.roshka.utils.Helper
;
@Entity
@Entity
@Table
(
name
=
"estudio"
)
@Table
(
name
=
"estudio"
)
public
class
Estudio
{
public
class
Estudio
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.Helper
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Past
;
import
javax.validation.constraints.Past
;
import
java.util.Date
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"experiencia"
)
@Table
(
name
=
"experiencia"
)
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Institucion.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.persistence.*
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.*
;
import
javax.validation.constraints.*
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.fasterxml.jackson.annotation.JsonManagedReference
;
import
com.fasterxml.jackson.annotation.ObjectIdGenerators
;
import
com.fasterxml.jackson.annotation.ObjectIdGenerators
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.Helper
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.validation.constraints.*
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.CascadeType
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.Min
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.Min
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"postulante_tecnologia"
,
@Table
(
name
=
"postulante_tecnologia"
,
uniqueConstraints
=
@UniqueConstraint
(
columnNames
={
"postulante_id"
,
"tecnologia_id"
}))
uniqueConstraints
=
@UniqueConstraint
(
columnNames
={
"postulante_id"
,
"tecnologia_id"
}))
...
...
curriculumsearch/src/main/java/com/roshka/modelo/RRHHUser.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.*
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"recursos_humanos_user"
)
@Table
(
name
=
"recursos_humanos_user"
)
public
class
RRHHUser
{
public
class
RRHHUser
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/ReferenciaPersonal.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"referencia_personal"
)
@Table
(
name
=
"referencia_personal"
)
public
class
ReferenciaPersonal
{
public
class
ReferenciaPersonal
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.validation.constraints.NotBlank
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
@Entity
@Data
@Entity
@Data
@Table
(
name
=
"tecnologia"
)
@Table
(
name
=
"tecnologia"
)
...
...
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumentoConverter.java
View file @
638f36e4
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
java.util.Arrays
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.Converter
;
import
javax.persistence.Converter
;
import
java.util.Arrays
;
@Converter
(
autoApply
=
true
)
@Converter
(
autoApply
=
true
)
public
class
TipoDocumentoConverter
implements
AttributeConverter
<
TipoDocumento
,
String
>
{
public
class
TipoDocumentoConverter
implements
AttributeConverter
<
TipoDocumento
,
String
>
{
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/CargoRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
java.util.List
;
import
com.roshka.modelo.Cargo
;
import
com.roshka.modelo.Cargo
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
public
interface
CargoRepository
extends
JpaRepository
<
Cargo
,
Long
>{
public
interface
CargoRepository
extends
JpaRepository
<
Cargo
,
Long
>{
public
Page
<
Cargo
>
findByNombreContainingIgnoreCase
(
String
nombre
,
Pageable
pageable
);
public
Page
<
Cargo
>
findByNombreContainingIgnoreCase
(
String
nombre
,
Pageable
pageable
);
@Query
(
value
=
"SELECT c FROM Cargo c WHERE c.id=?1"
)
@Query
(
value
=
"SELECT c FROM Cargo c WHERE c.id=?1"
)
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/CiudadRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Ciudad
;
import
com.roshka.modelo.Ciudad
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
public
interface
CiudadRepository
extends
JpaRepository
<
Ciudad
,
Long
>
{
public
interface
CiudadRepository
extends
JpaRepository
<
Ciudad
,
Long
>
{
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/ConvocatoriaRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
java.util.Date
;
import
java.util.List
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
com.roshka.modelo.EstadoConvocatoria
;
import
com.roshka.modelo.EstadoConvocatoria
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
public
interface
ConvocatoriaRepository
extends
JpaRepository
<
ConvocatoriaCargo
,
Long
>
{
public
interface
ConvocatoriaRepository
extends
JpaRepository
<
ConvocatoriaCargo
,
Long
>
{
@Query
(
value
=
"SELECT c FROM ConvocatoriaCargo c WHERE c.id=?1"
)
@Query
(
value
=
"SELECT c FROM ConvocatoriaCargo c WHERE c.id=?1"
)
public
ConvocatoriaCargo
findByIdConvocatoriaCargo
(
Long
id
);
public
ConvocatoriaCargo
findByIdConvocatoriaCargo
(
Long
id
);
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/DBFileRepository.java
View file @
638f36e4
...
@@ -2,7 +2,6 @@ package com.roshka.repositorio;
...
@@ -2,7 +2,6 @@ package com.roshka.repositorio;
import
com.roshka.modelo.DBFile
;
import
com.roshka.modelo.DBFile
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/DepartamentoRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Departamento
;
import
com.roshka.modelo.Departamento
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
public
interface
DepartamentoRepository
extends
JpaRepository
<
Departamento
,
Long
>
{
public
interface
DepartamentoRepository
extends
JpaRepository
<
Departamento
,
Long
>
{
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/EstudioRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Estudio
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
com.roshka.modelo.Estudio
;
import
java.util.List
;
import
java.util.List
;
public
interface
EstudioRepository
extends
JpaRepository
<
Estudio
,
Long
>{
public
interface
EstudioRepository
extends
JpaRepository
<
Estudio
,
Long
>{
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/ExperienciaRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Experiencia
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.util.List
;
import
java.util.List
;
import
com.roshka.modelo.Experiencia
;
public
interface
ExperienciaRepository
extends
JpaRepository
<
Experiencia
,
Long
>
{
public
interface
ExperienciaRepository
extends
JpaRepository
<
Experiencia
,
Long
>
{
public
List
<
Experiencia
>
findByCargoLike
(
String
cargo
);
public
List
<
Experiencia
>
findByCargoLike
(
String
cargo
);
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
java.util.List
;
import
com.roshka.modelo.EstadoPostulante
;
import
com.roshka.modelo.Postulante
;
import
javax.transaction.Transactional
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.hibernate.jpa.TypedParameterValue
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
...
@@ -11,9 +9,8 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -11,9 +9,8 @@ import org.springframework.data.jpa.repository.JpaRepository;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
com.roshka.modelo.ConvocatoriaCargo
;
import
javax.transaction.Transactional
;
import
com.roshka.modelo.EstadoPostulante
;
import
java.util.List
;
import
com.roshka.modelo.Postulante
;
public
interface
PostulanteRepository
extends
JpaRepository
<
Postulante
,
Long
>
{
public
interface
PostulanteRepository
extends
JpaRepository
<
Postulante
,
Long
>
{
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteTecnologiaRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.util.List
;
import
java.util.List
;
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/TecnologiaRepository.java
View file @
638f36e4
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Tecnologia
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
import
com.roshka.modelo.Tecnologia
;
public
interface
TecnologiaRepository
extends
JpaRepository
<
Tecnologia
,
Long
>
{
public
interface
TecnologiaRepository
extends
JpaRepository
<
Tecnologia
,
Long
>
{
public
Page
<
Tecnologia
>
findByNombreContainingIgnoreCase
(
String
nombre
,
Pageable
pageable
);
public
Page
<
Tecnologia
>
findByNombreContainingIgnoreCase
(
String
nombre
,
Pageable
pageable
);
...
...
curriculumsearch/src/main/java/com/roshka/service/PdfGenerator.java
View file @
638f36e4
package
com
.
roshka
.
service
;
package
com
.
roshka
.
service
;
import
java.io.ByteArrayOutputStream
;
import
com.itextpdf.text.*
;
import
java.util.Date
;
import
java.util.stream.Collectors
;
import
com.itextpdf.text.List
;
import
com.itextpdf.text.ListItem
;
import
org.springframework.stereotype.Component
;
import
com.itextpdf.text.Document
;
import
com.itextpdf.text.DocumentException
;
import
com.itextpdf.text.Element
;
import
com.itextpdf.text.Font
;
import
com.itextpdf.text.Paragraph
;
import
com.itextpdf.text.pdf.PdfWriter
;
import
com.itextpdf.text.pdf.PdfWriter
;
import
com.roshka.modelo.Estudio
;
import
com.roshka.modelo.Estudio
;
import
com.roshka.modelo.Experiencia
;
import
com.roshka.modelo.Experiencia
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.utils.Helper
;
import
com.roshka.utils.Helper
;
import
org.springframework.stereotype.Component
;
import
java.io.ByteArrayOutputStream
;
import
java.util.Date
;
import
java.util.stream.Collectors
;
@Component
(
"pdfGenerator"
)
@Component
(
"pdfGenerator"
)
public
class
PdfGenerator
{
public
class
PdfGenerator
{
...
...
curriculumsearch/src/main/java/com/roshka/utils/Helper.java
View file @
638f36e4
package
com
.
roshka
.
utils
;
package
com
.
roshka
.
utils
;
import
com.roshka.modelo.DBFile
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -9,11 +13,6 @@ import java.time.format.DateTimeFormatter;
...
@@ -9,11 +13,6 @@ import java.time.format.DateTimeFormatter;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
com.roshka.modelo.DBFile
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
public
class
Helper
{
public
class
Helper
{
/**
/**
* Se espera fecha en el formato yyyy-MM-dd
* Se espera fecha en el formato yyyy-MM-dd
...
...
curriculumsearch/src/main/java/com/roshka/utils/PostulantesExcelExporter.java
View file @
638f36e4
package
com
.
roshka
.
utils
;
package
com
.
roshka
.
utils
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
com.roshka.DTO.PostulanteListaDTO
;
import
com.roshka.DTO.PostulanteListaDTO
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
com.roshka.modelo.Tecnologia
;
import
org.apache.poi.ss.usermodel.*
;
import
org.apache.poi.ss.usermodel.*
;
import
org.apache.poi.xssf.usermodel.XSSFFont
;
import
org.apache.poi.xssf.usermodel.XSSFFont
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
public
class
PostulantesExcelExporter
{
public
class
PostulantesExcelExporter
{
private
XSSFWorkbook
workbook
;
private
XSSFWorkbook
workbook
;
private
XSSFSheet
sheet
;
private
XSSFSheet
sheet
;
...
...
curriculumsearch/src/main/webapp/img/fondoform.svg
View file @
638f36e4
<svg
xmlns=
'http://www.w3.org/2000/svg'
version=
'1.1'
xmlns:xlink=
'http://www.w3.org/1999/xlink'
xmlns:svgjs=
'http://svgjs.com/svgjs'
width=
'1440'
height=
'560'
preserveAspectRatio=
'none'
viewBox=
'0 0 1440 560'
><g
mask=
'url("#SvgjsMask1560")'
fill=
'none'
><rect
width=
'1440'
height=
'560'
x=
'0'
y=
'0'
fill=
'url(#SvgjsRadialGradient1561)'
></rect><path
d=
'M0 0L52.91 0L0 5.82z'
fill=
'rgba(255, 255, 255, .1)'
></path><path
d=
'M0 5.82L52.91 0L223.41 0L0 198.10999999999999z'
fill=
'rgba(255, 255, 255, .075)'
></path><path
d=
'M0 198.10999999999999L223.41 0L876.5699999999999 0L0 320.44z'
fill=
'rgba(255, 255, 255, .05)'
></path><path
d=
'M0 320.44L876.5699999999999 0L1264.6799999999998 0L0 414.01z'
fill=
'rgba(255, 255, 255, .025)'
></path><path
d=
'M1440 560L1266.7 560L1440 289.19z'
fill=
'rgba(0, 0, 0, .1)'
></path><path
d=
'M1440 289.19L1266.7 560L701.63 560L1440 233.49z'
fill=
'rgba(0, 0, 0, .075)'
></path><path
d=
'M1440 233.49L701.6299999999999 560L375.40999999999985 560L1440 115.81z'
fill=
'rgba(0, 0, 0, .05)'
></path><path
d=
'M1440 115.81L375.40999999999985 560L223.58999999999986 560L1440 34.019999999999996z'
fill=
'rgba(0, 0, 0, .025)'
></path></g><defs><mask
id=
'SvgjsMask1560'
><rect
width=
'1440'
height=
'560'
fill=
'white'
></rect></mask><radialGradient
cx=
'100%'
cy=
'100%'
r=
'1545.06'
gradientUnits=
'userSpaceOnUse'
id=
'SvgjsRadialGradient1561'
><stop
stop-color=
'rgba(9, 82, 158, 1)'
offset=
'1'
></stop><stop
stop-color=
'rgba(0, 69, 158, 0)'
offset=
'1'
></stop></radialGradient></defs></svg>
<svg
xmlns=
'http://www.w3.org/2000/svg'
version=
'1.1'
width=
'1440'
height=
'560'
preserveAspectRatio=
'none'
\ No newline at end of file
viewBox=
'0 0 1440 560'
><g
mask=
'url("#SvgjsMask1560")'
fill=
'none'
><rect
width=
'1440'
height=
'560'
x=
'0'
y=
'0'
fill=
'url(#SvgjsRadialGradient1561)'
></rect><path
d=
'M0 0L52.91 0L0 5.82z'
fill=
'rgba(255, 255, 255, .1)'
></path><path
d=
'M0 5.82L52.91 0L223.41 0L0 198.10999999999999z'
fill=
'rgba(255, 255, 255, .075)'
></path><path
d=
'M0 198.10999999999999L223.41 0L876.5699999999999 0L0 320.44z'
fill=
'rgba(255, 255, 255, .05)'
></path><path
d=
'M0 320.44L876.5699999999999 0L1264.6799999999998 0L0 414.01z'
fill=
'rgba(255, 255, 255, .025)'
></path><path
d=
'M1440 560L1266.7 560L1440 289.19z'
fill=
'rgba(0, 0, 0, .1)'
></path><path
d=
'M1440 289.19L1266.7 560L701.63 560L1440 233.49z'
fill=
'rgba(0, 0, 0, .075)'
></path><path
d=
'M1440 233.49L701.6299999999999 560L375.40999999999985 560L1440 115.81z'
fill=
'rgba(0, 0, 0, .05)'
></path><path
d=
'M1440 115.81L375.40999999999985 560L223.58999999999986 560L1440 34.019999999999996z'
fill=
'rgba(0, 0, 0, .025)'
></path></g><defs><mask
id=
'SvgjsMask1560'
><rect
width=
'1440'
height=
'560'
fill=
'white'
></rect></mask><radialGradient
cx=
'100%'
cy=
'100%'
r=
'1545.06'
gradientUnits=
'userSpaceOnUse'
id=
'SvgjsRadialGradient1561'
><stop
stop-color=
'rgba(9, 82, 158, 1)'
offset=
'1'
></stop><stop
stop-color=
'rgba(0, 69, 158, 0)'
offset=
'1'
></stop></radialGradient></defs></svg>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment