Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
Grievance
Commits
100f914e
Commit
100f914e
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
create user and activate/deactivate user
parent
a2bfb15c
main
Escalate_ticket_send_mail_to_raiser
UAT
UPHRH_7903_mobile_otp
UPHRH_quartz_scheduler
admin_config_changes
github/fork/vky25/patch-1
rahu_test
shishir_dynamic_schedular
shishir_ticket_statistics_by_user
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+9
-1
.../upsmf/grievance/service/impl/IntegrationServiceImpl.java
with
9 additions
and
1 deletion
+9
-1
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+
9
−
1
View file @
100f914e
...
...
@@ -305,6 +305,14 @@ public class IntegrationServiceImpl implements IntegrationService {
try
{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
String
departmentName
=
userDto
.
getAttributes
().
get
(
"departmentName"
);
List
<
Department
>
departmentList
=
new
ArrayList
<>();
if
(
departmentName
!=
null
)
{
departmentList
=
Department
.
getById
(
Integer
.
valueOf
(
departmentName
));
if
(
departmentList
!=
null
&&
!
departmentList
.
isEmpty
())
{
userDto
.
getAttributes
().
put
(
"departmentName"
,
departmentList
.
get
(
0
).
getCode
());
}
}
ObjectMapper
mapper
=
new
ObjectMapper
();
JsonNode
root
=
mapper
.
createObjectNode
();
JsonNode
jsonNodeObject
=
mapper
.
convertValue
(
userDto
,
JsonNode
.
class
);
...
...
@@ -347,7 +355,7 @@ public class IntegrationServiceImpl implements IntegrationService {
// updating user department mapping
if
(
userDto
.
getAttributes
()!=
null
&&
!
userDto
.
getAttributes
().
isEmpty
()
&&
userDto
.
getAttributes
().
containsKey
(
"departmentName"
))
{
String
departmentName
=
userDto
.
getAttributes
().
get
(
"departmentName"
);
List
<
Department
>
departmentList
=
Department
.
getBy
Id
(
Integer
.
valueOf
(
departmentName
));
List
<
Department
>
departmentList
=
Department
.
getBy
Code
(
String
.
valueOf
(
departmentName
));
if
(
departmentList
!=
null
&&
!
departmentList
.
isEmpty
())
{
org
.
upsmf
.
grievance
.
model
.
Department
userDepartment
=
departmentRepository
.
findByUserId
(
userDetails
.
getId
());
if
(
userDepartment
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets