| Line 36... |
Line 36... |
| 36 |
import com.spice.profitmandi.dao.repository.RoleRepository;
|
36 |
import com.spice.profitmandi.dao.repository.RoleRepository;
|
| 37 |
import com.spice.profitmandi.dao.repository.UserAccountRepository;
|
37 |
import com.spice.profitmandi.dao.repository.UserAccountRepository;
|
| 38 |
import com.spice.profitmandi.dao.repository.UserCart;
|
38 |
import com.spice.profitmandi.dao.repository.UserCart;
|
| 39 |
import com.spice.profitmandi.dao.repository.UserRepository;
|
39 |
import com.spice.profitmandi.dao.repository.UserRepository;
|
| 40 |
import com.spice.profitmandi.dao.repository.UserRoleRepository;
|
40 |
import com.spice.profitmandi.dao.repository.UserRoleRepository;
|
| - |
|
41 |
import com.spice.profitmandi.dao.util.UserToRetailerMigrationUtil;
|
| 41 |
import com.spice.profitmandi.web.enumuration.UserStatus;
|
42 |
import com.spice.profitmandi.web.enumuration.UserStatus;
|
| 42 |
import com.spice.profitmandi.web.model.ProfitMandiResponse;
|
43 |
import com.spice.profitmandi.web.model.ProfitMandiResponse;
|
| 43 |
import com.spice.profitmandi.web.model.ResponseStatus;
|
44 |
import com.spice.profitmandi.web.model.ResponseStatus;
|
| 44 |
import com.spice.profitmandi.web.processor.GoogleLoginProcessor;
|
45 |
import com.spice.profitmandi.web.processor.GoogleLoginProcessor;
|
| 45 |
import com.spice.profitmandi.web.req.UserAddRoleRequest;
|
46 |
import com.spice.profitmandi.web.req.UserAddRoleRequest;
|
| Line 82... |
Line 83... |
| 82 |
@Autowired
|
83 |
@Autowired
|
| 83 |
PermissionRepository permissionRepository;
|
84 |
PermissionRepository permissionRepository;
|
| 84 |
|
85 |
|
| 85 |
@Autowired
|
86 |
@Autowired
|
| 86 |
GoogleLoginProcessor googleLoginProcessor;
|
87 |
GoogleLoginProcessor googleLoginProcessor;
|
| - |
|
88 |
|
| - |
|
89 |
@Autowired
|
| - |
|
90 |
UserToRetailerMigrationUtil userToRetailerMigrationUtil;
|
| 87 |
|
91 |
|
| 88 |
@SuppressWarnings("unchecked")
|
92 |
@SuppressWarnings("unchecked")
|
| 89 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
|
93 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
|
| 90 |
public ResponseEntity<?> googleLogin(HttpServletRequest request) {
|
94 |
public ResponseEntity<?> googleLogin(HttpServletRequest request) {
|
| 91 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
95 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
| Line 335... |
Line 339... |
| 335 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
339 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
| 336 |
}
|
340 |
}
|
| 337 |
return responseSender.ok(responseMap);
|
341 |
return responseSender.ok(responseMap);
|
| 338 |
|
342 |
|
| 339 |
}
|
343 |
}
|
| - |
|
344 |
|
| - |
|
345 |
@RequestMapping(value = ProfitMandiConstants.URL_ADMIN_MIGRATE, method = RequestMethod.GET)
|
| - |
|
346 |
public ResponseEntity<?> migrate(HttpServletRequest request) {
|
| - |
|
347 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
| - |
|
348 |
userToRetailerMigrationUtil.migrate();
|
| - |
|
349 |
return responseSender.ok(ResponseCodeHolder.getMessage("OK_1000"));
|
| - |
|
350 |
}
|
| 340 |
}
|
351 |
}
|