| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import javax.servlet.http.HttpServletRequest;
|
3 |
import javax.servlet.http.HttpServletRequest;
|
| 4 |
|
4 |
|
| 5 |
import org.slf4j.Logger;
|
5 |
import org.apache.logging.log4j.Logger;
|
| 6 |
import org.slf4j.LoggerFactory;
|
6 |
import org.apache.logging.log4j.LogManager;
|
| 7 |
import org.springframework.beans.factory.annotation.Autowired;
|
7 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 8 |
import org.springframework.http.ResponseEntity;
|
8 |
import org.springframework.http.ResponseEntity;
|
| 9 |
import org.springframework.stereotype.Controller;
|
9 |
import org.springframework.stereotype.Controller;
|
| 10 |
import org.springframework.transaction.annotation.Transactional;
|
10 |
import org.springframework.transaction.annotation.Transactional;
|
| 11 |
import org.springframework.web.bind.annotation.RequestMapping;
|
11 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| Line 28... |
Line 28... |
| 28 |
private MigrationUtil migrationUtil;
|
28 |
private MigrationUtil migrationUtil;
|
| 29 |
|
29 |
|
| 30 |
@Autowired
|
30 |
@Autowired
|
| 31 |
private ResponseSender<?> responseSender;
|
31 |
private ResponseSender<?> responseSender;
|
| 32 |
|
32 |
|
| 33 |
private static final Logger LOGGER=LoggerFactory.getLogger(MigrationController.class);
|
33 |
private static final Logger LOGGER=LogManager.getLogger(MigrationController.class);
|
| 34 |
|
34 |
|
| 35 |
@RequestMapping(value = ProfitMandiConstants.URL_ADMIN_MIGRATE_USER_TO_RETAILER, method = RequestMethod.GET)
|
35 |
@RequestMapping(value = ProfitMandiConstants.URL_ADMIN_MIGRATE_USER_TO_RETAILER, method = RequestMethod.GET)
|
| 36 |
@ApiImplicitParams({
|
36 |
@ApiImplicitParams({
|
| 37 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
37 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
| 38 |
public ResponseEntity<?> migrateUserToRetailer(HttpServletRequest request) {
|
38 |
public ResponseEntity<?> migrateUserToRetailer(HttpServletRequest request) {
|