Rev 22139 |
Rev 22860 |
Go to most recent revision |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 22139 |
amit.gupta |
1 |
package com.spice.profitmandi.web.util;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
|
|
|
4 |
import com.spice.profitmandi.web.model.LoginDetails;
|
|
|
5 |
|
|
|
6 |
public class Utils {
|
|
|
7 |
public static String getRedictUrlFromLogin (LoginDetails loginDetails) {
|
|
|
8 |
if(loginDetails.getRoleTypes().contains(RoleType.FOFO_ADMIN)) {
|
|
|
9 |
return "/fofo";
|
| 22533 |
ashik.ali |
10 |
} else if (loginDetails.getRoleTypes().contains(RoleType.RETAILER) && loginDetails.getRoleTypes().contains(RoleType.FOFO)) {
|
| 22139 |
amit.gupta |
11 |
return "/dashboard";
|
|
|
12 |
} else {
|
|
|
13 |
return "/register";
|
|
|
14 |
}
|
|
|
15 |
}
|
|
|
16 |
}
|