| Line 38... |
Line 38... |
| 38 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
38 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 39 |
import com.spice.profitmandi.common.model.UserInfo;
|
39 |
import com.spice.profitmandi.common.model.UserInfo;
|
| 40 |
import com.spice.profitmandi.common.web.client.RestClient;
|
40 |
import com.spice.profitmandi.common.web.client.RestClient;
|
| 41 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
41 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| 42 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
42 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 43 |
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
|
- |
|
| 44 |
import com.spice.profitmandi.dao.model.UserCart;
|
43 |
import com.spice.profitmandi.dao.model.UserCart;
|
| 45 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
44 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 46 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
45 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
| 47 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
46 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 48 |
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
|
47 |
import com.spice.profitmandi.dao.repository.inventory.ItemAvailabilityCacheRepository;
|
| 49 |
import com.spice.profitmandi.service.RoleManagerService;
|
48 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 50 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
49 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 51 |
import com.spice.profitmandi.service.pricing.PricingService;
|
50 |
import com.spice.profitmandi.service.pricing.PricingService;
|
| 52 |
import com.spice.profitmandi.web.res.AvailabilityInfo;
|
51 |
import com.spice.profitmandi.web.res.AvailabilityInfo;
|
| 53 |
import com.spice.profitmandi.web.res.DealBrands;
|
52 |
import com.spice.profitmandi.web.res.DealBrands;
|
| 54 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
53 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
| Line 83... |
Line 82... |
| 83 |
private Mongo mongoClient;
|
82 |
private Mongo mongoClient;
|
| 84 |
|
83 |
|
| 85 |
@Autowired
|
84 |
@Autowired
|
| 86 |
private UserAccountRepository userAccountRepository;
|
85 |
private UserAccountRepository userAccountRepository;
|
| 87 |
|
86 |
|
| 88 |
@Autowired
|
- |
|
| 89 |
private ItemAvailabilityCacheRepository itemAvailabilityCacheRepository;
|
- |
|
| 90 |
|
87 |
|
| 91 |
@Autowired
|
88 |
@Autowired
|
| 92 |
private ResponseSender<?> responseSender;
|
89 |
private ResponseSender<?> responseSender;
|
| 93 |
|
90 |
|
| 94 |
@Autowired
|
91 |
@Autowired
|
| 95 |
private InventoryService inventoryService;
|
- |
|
| 96 |
|
- |
|
| 97 |
@Autowired
|
- |
|
| 98 |
private ItemRepository itemRepository;
|
92 |
private ItemRepository itemRepository;
|
| 99 |
|
93 |
|
| 100 |
@Autowired
|
94 |
@Autowired
|
| 101 |
private RoleManagerService roleManagerService;
|
95 |
private RoleManager roleManagerService;
|
| 102 |
|
96 |
|
| 103 |
|
97 |
|
| 104 |
List<String> filterableParams = Arrays.asList("brand");
|
98 |
List<String> filterableParams = Arrays.asList("brand");
|
| 105 |
|
99 |
|
| 106 |
@RequestMapping(value = ProfitMandiConstants.URL_DEALS, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
100 |
@RequestMapping(value = ProfitMandiConstants.URL_DEALS, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|