| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import com.google.gson.Gson;
|
- |
|
| 4 |
import com.jcraft.jsch.*;
|
3 |
import com.jcraft.jsch.*;
|
| 5 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
4 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
| 6 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
5 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 7 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
6 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 8 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
7 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| Line 15... |
Line 14... |
| 15 |
import com.spice.profitmandi.dao.enumuration.catalog.OfferSchemeType;
|
14 |
import com.spice.profitmandi.dao.enumuration.catalog.OfferSchemeType;
|
| 16 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
15 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
| 17 |
import com.spice.profitmandi.dao.model.ItemCriteriaPayout;
|
16 |
import com.spice.profitmandi.dao.model.ItemCriteriaPayout;
|
| 18 |
import com.spice.profitmandi.dao.repository.catalog.*;
|
17 |
import com.spice.profitmandi.dao.repository.catalog.*;
|
| 19 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
18 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 20 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
- |
|
| 21 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
19 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 22 |
import com.spice.profitmandi.dao.repository.fofo.PartnerTypeChangeService;
|
- |
|
| 23 |
import com.spice.profitmandi.service.NotificationService;
|
20 |
import com.spice.profitmandi.service.NotificationService;
|
| 24 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
21 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 25 |
import com.spice.profitmandi.service.catalog.BrandsService;
|
22 |
import com.spice.profitmandi.service.catalog.BrandsService;
|
| 26 |
import com.spice.profitmandi.service.offers.ItemCriteria;
|
23 |
import com.spice.profitmandi.service.offers.ItemCriteria;
|
| 27 |
import com.spice.profitmandi.service.offers.OfferService;
|
24 |
import com.spice.profitmandi.service.offers.OfferService;
|
| Line 31... |
Line 28... |
| 31 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
28 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| 32 |
import org.apache.commons.io.FileUtils;
|
29 |
import org.apache.commons.io.FileUtils;
|
| 33 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
30 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
| 34 |
import org.apache.logging.log4j.LogManager;
|
31 |
import org.apache.logging.log4j.LogManager;
|
| 35 |
import org.apache.logging.log4j.Logger;
|
32 |
import org.apache.logging.log4j.Logger;
|
| 36 |
import org.apache.velocity.app.VelocityEngine;
|
- |
|
| 37 |
import org.springframework.beans.factory.annotation.Autowired;
|
33 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 38 |
import org.springframework.beans.factory.annotation.Value;
|
34 |
import org.springframework.beans.factory.annotation.Value;
|
| 39 |
import org.springframework.cache.CacheManager;
|
35 |
import org.springframework.cache.CacheManager;
|
| 40 |
import org.springframework.core.io.InputStreamResource;
|
36 |
import org.springframework.core.io.InputStreamResource;
|
| 41 |
import org.springframework.http.HttpHeaders;
|
37 |
import org.springframework.http.HttpHeaders;
|
| Line 93... |
Line 89... |
| 93 |
@Autowired
|
89 |
@Autowired
|
| 94 |
private ItemRepository itemRepository;
|
90 |
private ItemRepository itemRepository;
|
| 95 |
@Autowired
|
91 |
@Autowired
|
| 96 |
private MVCResponseSender mvcResponseSender;
|
92 |
private MVCResponseSender mvcResponseSender;
|
| 97 |
@Autowired
|
93 |
@Autowired
|
| 98 |
private Gson gson;
|
- |
|
| 99 |
@Autowired
|
- |
|
| 100 |
private RetailerService retailerService;
|
94 |
private RetailerService retailerService;
|
| 101 |
@Autowired
|
95 |
@Autowired
|
| 102 |
private Mongo mongoClient;
|
- |
|
| 103 |
@Autowired
|
- |
|
| 104 |
private NotificationService notificationService;
|
96 |
private NotificationService notificationService;
|
| 105 |
@Autowired
|
97 |
@Autowired
|
| 106 |
private CookiesProcessor cookiesProcessor;
|
98 |
private CookiesProcessor cookiesProcessor;
|
| 107 |
@Autowired
|
99 |
@Autowired
|
| 108 |
private OfferService offerService;
|
100 |
private OfferService offerService;
|
| 109 |
@Autowired
|
101 |
@Autowired
|
| 110 |
private CacheManager thirtyMinsTimeOutCacheManager;
|
- |
|
| 111 |
@Autowired
|
- |
|
| 112 |
private CacheManager oneDayCacheManager;
|
102 |
private CacheManager oneDayCacheManager;
|
| 113 |
@Autowired
|
- |
|
| 114 |
private PartnerTypeChangeService partnerTypeChangeService;
|
- |
|
| 115 |
@Autowired
|
- |
|
| 116 |
private com.spice.profitmandi.dao.repository.dtr.UserRepository dtrUserRepository;
|
- |
|
| 117 |
@Autowired
|
- |
|
| 118 |
private VelocityEngine velocityEngine;
|
- |
|
| 119 |
|
103 |
|
| 120 |
@Autowired
|
104 |
@Autowired
|
| 121 |
BrandsService brandsService;
|
105 |
BrandsService brandsService;
|
| 122 |
|
106 |
|
| 123 |
@Autowired
|
107 |
@Autowired
|