| Line 49... |
Line 49... |
| 49 |
LOGGER.info("roleNameString is {}", roleNamesString);
|
49 |
LOGGER.info("roleNameString is {}", roleNamesString);
|
| 50 |
LOGGER.info("fofoIdFound is {}", fofoIdFound);
|
50 |
LOGGER.info("fofoIdFound is {}", fofoIdFound);
|
| 51 |
LOGGER.info("emailIdFound is {}", emailIdFound);
|
51 |
LOGGER.info("emailIdFound is {}", emailIdFound);
|
| 52 |
LOGGER.error("Requested session is not valid");
|
52 |
LOGGER.error("Requested session is not valid");
|
| 53 |
throw new ProfitMandiBusinessException("", "", "");
|
53 |
throw new ProfitMandiBusinessException("", "", "");
|
| - |
|
54 |
}else if(request.getRequestURI().startsWith("/cron")){
|
| - |
|
55 |
LoginDetails fofoDetails = new LoginDetails();
|
| - |
|
56 |
return fofoDetails;
|
| 54 |
}else{
|
57 |
} else {
|
| 55 |
LoginDetails fofoDetails = new LoginDetails();
|
58 |
LoginDetails fofoDetails = new LoginDetails();
|
| 56 |
fofoDetails.setFofoId(Integer.parseInt(fofoIdFound));
|
59 |
fofoDetails.setFofoId(Integer.parseInt(fofoIdFound));
|
| 57 |
fofoDetails.setEmailId(emailIdFound);
|
60 |
fofoDetails.setEmailId(emailIdFound);
|
| 58 |
String[] roleNames = StringUtils.split(roleNamesString, ",");
|
61 |
String[] roleNames = StringUtils.split(roleNamesString, ",");
|
| 59 |
Set<RoleType> roleTypes = new HashSet<>();
|
62 |
Set<RoleType> roleTypes = new HashSet<>();
|
| 60 |
for(String roleName : roleNames){
|
63 |
for(String roleName : roleNames){
|
| 61 |
RoleType roleType = RoleType.valueOf(roleName);
|
64 |
RoleType roleType = RoleType.valueOf(roleName);
|
| 62 |
roleTypes.add(roleType);
|
65 |
roleTypes.add(roleType);
|
| 63 |
}
|
66 |
}
|
| 64 |
fofoDetails.setRoleTypes(roleTypes);
|
67 |
fofoDetails.setRoleTypes(roleTypes);
|
| 65 |
return fofoDetails;
|
68 |
return fofoDetails;
|
| 66 |
}
|
69 |
}
|
| 67 |
|
70 |
|
| 68 |
}
|
71 |
}
|
| 69 |
|
72 |
|
| 70 |
public void removeCookies(HttpServletRequest request, HttpServletResponse response) throws ProfitMandiBusinessException{
|
73 |
public void removeCookies(HttpServletRequest request, HttpServletResponse response) throws ProfitMandiBusinessException{
|