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
d10f6506
Commit
d10f6506
authored
3 years ago
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nuevos routes to security
parent
5fe7f612
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
20 deletions
+15
-20
curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java
+1
-0
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+2
-1
curriculumsearch/src/main/java/com/roshka/utils/PostulantesExcelExporter.java
+12
-19
No files found.
curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java
View file @
d10f6506
...
@@ -56,6 +56,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -56,6 +56,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.
mvcMatchers
(
"/tecnologia*"
).
authenticated
()
.
mvcMatchers
(
"/tecnologia*"
).
authenticated
()
.
mvcMatchers
(
"/postulantes"
,
"/postulantes/**"
).
authenticated
()
.
mvcMatchers
(
"/postulantes"
,
"/postulantes/**"
).
authenticated
()
.
mvcMatchers
(
"/edit-user-data"
).
authenticated
()
.
mvcMatchers
(
"/edit-user-data"
).
authenticated
()
.
mvcMatchers
(
"/postulantesExcel*"
).
authenticated
()
.
anyRequest
().
permitAll
()
.
anyRequest
().
permitAll
()
.
and
()
.
and
()
.
formLogin
()
.
formLogin
()
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
d10f6506
...
@@ -189,7 +189,7 @@ public class PostulanteRRHHController {
...
@@ -189,7 +189,7 @@ public class PostulanteRRHHController {
response
.
setHeader
(
headerKey
,
headerValue
);
response
.
setHeader
(
headerKey
,
headerValue
);
HashMap
<
String
,
String
>
filtros
=
new
HashMap
<
String
,
String
>();
HashMap
<
String
,
String
>
filtros
=
new
HashMap
<
String
,
String
>();
filtros
.
put
(
"nombre"
,
nombre
.
equals
(
""
)
?
"-"
:
nombre
);
filtros
.
put
(
"nombre"
,
nombre
==
null
?
"-"
:
nombre
);
filtros
.
put
(
"nivelIngles"
,
lvlEng
==
null
?
"-"
:
lvlEng
.
toString
());
filtros
.
put
(
"nivelIngles"
,
lvlEng
==
null
?
"-"
:
lvlEng
.
toString
());
filtros
.
put
(
"tecnologia"
,
tecId
==
null
?
"-"
:
tecRepo
.
findById
(
tecId
).
get
().
getNombre
());
filtros
.
put
(
"tecnologia"
,
tecId
==
null
?
"-"
:
tecRepo
.
findById
(
tecId
).
get
().
getNombre
());
filtros
.
put
(
"nivelTecnologia"
,
lvlTec
==
null
?
"-"
:
lvlTec
.
toString
());
filtros
.
put
(
"nivelTecnologia"
,
lvlTec
==
null
?
"-"
:
lvlTec
.
toString
());
...
@@ -197,6 +197,7 @@ public class PostulanteRRHHController {
...
@@ -197,6 +197,7 @@ public class PostulanteRRHHController {
filtros
.
put
(
"estado"
,
estado
==
null
?
"-"
:
estado
.
getEstado
());
filtros
.
put
(
"estado"
,
estado
==
null
?
"-"
:
estado
.
getEstado
());
filtros
.
put
(
"experienciaEnMeses"
,
expInMonths
==
null
?
"-"
:
expInMonths
.
toString
());
filtros
.
put
(
"experienciaEnMeses"
,
expInMonths
==
null
?
"-"
:
expInMonths
.
toString
());
filtros
.
put
(
"convocatoria"
,
convId
==
null
?
"-"
:
cargoRepo
.
findById
(
convId
).
get
().
getCargo
().
getNombre
());
filtros
.
put
(
"convocatoria"
,
convId
==
null
?
"-"
:
cargoRepo
.
findById
(
convId
).
get
().
getCargo
().
getNombre
());
filtros
.
put
(
"convocatoriaFecha"
,
convId
==
null
?
"-"
:
cargoRepo
.
findById
(
convId
).
get
().
getFechaInicio
().
toString
());
PostulantesExcelExporter
excelExporter
=
new
PostulantesExcelExporter
(
postulantesDTO
,
filtros
);
PostulantesExcelExporter
excelExporter
=
new
PostulantesExcelExporter
(
postulantesDTO
,
filtros
);
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/utils/PostulantesExcelExporter.java
View file @
d10f6506
...
@@ -59,34 +59,16 @@ public class PostulantesExcelExporter {
...
@@ -59,34 +59,16 @@ public class PostulantesExcelExporter {
createCell
(
row
,
5
,
"Institucion"
,
style
);
createCell
(
row
,
5
,
"Institucion"
,
style
);
createCell
(
row
,
6
,
"Estado"
,
style
);
createCell
(
row
,
6
,
"Estado"
,
style
);
createCell
(
row
,
7
,
"Convocatoria"
,
style
);
createCell
(
row
,
7
,
"Convocatoria"
,
style
);
createCell
(
row
,
8
,
"Fecha Inicio Convocatoria"
,
style
);
row
=
sheet
.
createRow
(
6
);
row
=
sheet
.
createRow
(
6
);
style
=
workbook
.
createCellStyle
();
font
=
workbook
.
createFont
();
font
.
setBold
(
true
);
font
.
setFontHeight
(
14
);
style
.
setFont
(
font
);
createCell
(
row
,
0
,
"Nombre"
,
style
);
createCell
(
row
,
0
,
"Nombre"
,
style
);
createCell
(
row
,
1
,
"Nivel de Ingles"
,
style
);
createCell
(
row
,
1
,
"Nivel de Ingles"
,
style
);
createCell
(
row
,
2
,
"Experiencia"
,
style
);
createCell
(
row
,
2
,
"Experiencia"
,
style
);
createCell
(
row
,
3
,
"Tecnologias"
,
style
);
createCell
(
row
,
3
,
"Tecnologias"
,
style
);
createCell
(
row
,
4
,
"Estado"
,
style
);
createCell
(
row
,
4
,
"Estado"
,
style
);
row
=
sheet
.
createRow
(
4
);
font
.
setBold
(
false
);
font
.
setFontHeight
(
12
);
style
.
setFont
(
font
);
createCell
(
row
,
0
,
filtros
.
get
(
"nombre"
),
style
);
createCell
(
row
,
1
,
filtros
.
get
(
"nivelIngles"
),
style
);
createCell
(
row
,
2
,
filtros
.
get
(
"experienciaEnMeses"
),
style
);
createCell
(
row
,
3
,
filtros
.
get
(
"tecnologia"
),
style
);
createCell
(
row
,
4
,
filtros
.
get
(
"nivelTecnologia"
),
style
);
createCell
(
row
,
5
,
filtros
.
get
(
"institucion"
),
style
);
createCell
(
row
,
6
,
filtros
.
get
(
"estado"
),
style
);
createCell
(
row
,
7
,
filtros
.
get
(
"convocatoria"
),
style
);
}
}
private
void
createCell
(
Row
row
,
int
columnCount
,
Object
value
,
CellStyle
style
)
{
private
void
createCell
(
Row
row
,
int
columnCount
,
Object
value
,
CellStyle
style
)
{
...
@@ -126,6 +108,17 @@ public class PostulantesExcelExporter {
...
@@ -126,6 +108,17 @@ public class PostulantesExcelExporter {
createCell
(
row
,
columnCount
++,
user
.
getEstado
().
getEstado
(),
style
);
createCell
(
row
,
columnCount
++,
user
.
getEstado
().
getEstado
(),
style
);
tecno
.
delete
(
0
,
tecno
.
length
()-
1
);
tecno
.
delete
(
0
,
tecno
.
length
()-
1
);
}
}
Row
row
=
sheet
.
createRow
(
4
);
createCell
(
row
,
0
,
filtros
.
get
(
"nombre"
),
style
);
createCell
(
row
,
1
,
filtros
.
get
(
"nivelIngles"
),
style
);
createCell
(
row
,
2
,
filtros
.
get
(
"experienciaEnMeses"
),
style
);
createCell
(
row
,
3
,
filtros
.
get
(
"tecnologia"
),
style
);
createCell
(
row
,
4
,
filtros
.
get
(
"nivelTecnologia"
),
style
);
createCell
(
row
,
5
,
filtros
.
get
(
"institucion"
),
style
);
createCell
(
row
,
6
,
filtros
.
get
(
"estado"
),
style
);
createCell
(
row
,
7
,
filtros
.
get
(
"convocatoria"
),
style
);
createCell
(
row
,
8
,
filtros
.
get
(
"convocatoriaFecha"
),
style
);
}
}
public
void
export
(
HttpServletResponse
response
)
throws
IOException
{
public
void
export
(
HttpServletResponse
response
)
throws
IOException
{
...
...
This diff is collapsed.
Click to expand it.
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