Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
743f91fa
Commit
743f91fa
authored
Apr 12, 2024
by
ManishKumar C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace UserInvitationService.java
parent
05f04ac9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
Amol/Manish Changes/UserInvitationService.java
Amol/Manish Changes/UserInvitationService.java
+30
-0
No files found.
Amol/Manish Changes/UserInvitationService.java
View file @
743f91fa
...
...
@@ -636,4 +636,34 @@ public class UserInvitationService {
return
Response
.
status
(
200
).
entity
(
resultJson
.
toString
()).
build
();
}
//Added by ManishK to set department,grade by default when profile is set on 03-APR-24[END]
//Added by ManishK to set stationCode by default on 12-APR-24[START]
@POST
@Path
(
"/getDefaultStanCode"
)
@Produces
(
MediaType
.
APPLICATION_JSON
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
Response
getDefaultStanCode
(
@Context
HttpServletRequest
request
)
throws
Exception
{
String
errString
=
""
,
loginCode
=
""
;
UserInfoBean
userInfo
=
(
UserInfoBean
)
request
.
getSession
().
getAttribute
(
"USER_INFO"
);
BaseLogger
.
log
(
"2"
,
userInfo
,
null
,
"In getDefaultStanCode method:userInfo:"
+
userInfo
);
JSONObject
resultJson
=
new
JSONObject
();
try
{
UserInvitationDAO
userInvitationDAO
=
new
UserInvitationDAO
(
userInfo
);
loginCode
=
userInfo
.
getLoginCode
();
BaseLogger
.
log
(
"2"
,
userInfo
,
null
,
"In getDefaultStanCode method:userInfo:loginCode"
+
loginCode
);
errString
=
userInvitationDAO
.
getDefaultStationCode
(
loginCode
,
userInfo
);
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
"In getDefaultStationCode userCode:"
+
errString
);
resultJson
.
put
(
"result"
,
errString
);
}
catch
(
Exception
e
)
{
resultJson
.
put
(
"result"
,
"error"
);
e
.
printStackTrace
();
throw
new
Exception
(
e
);
}
return
Response
.
status
(
200
).
entity
(
resultJson
.
toString
()).
build
();
}
//Added by ManishK to set stationCode by default on 12-APR-24[END]
}
\ 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