| Line 18... |
Line 18... |
| 18 |
import org.apache.commons.io.IOUtils;
|
18 |
import org.apache.commons.io.IOUtils;
|
| 19 |
import org.apache.http.client.utils.URIBuilder;
|
19 |
import org.apache.http.client.utils.URIBuilder;
|
| 20 |
import org.apache.thrift.TException;
|
20 |
import org.apache.thrift.TException;
|
| 21 |
import org.apache.thrift.transport.TTransportException;
|
21 |
import org.apache.thrift.transport.TTransportException;
|
| 22 |
import org.json.JSONObject;
|
22 |
import org.json.JSONObject;
|
| 23 |
import org.slf4j.Logger;
|
23 |
import org.apache.logging.log4j.Logger;
|
| 24 |
import org.slf4j.LoggerFactory;
|
24 |
import org.apache.logging.log4j.LogManager;
|
| 25 |
import org.springframework.http.HttpHeaders;
|
25 |
import org.springframework.http.HttpHeaders;
|
| 26 |
import org.springframework.http.MediaType;
|
26 |
import org.springframework.http.MediaType;
|
| 27 |
|
27 |
|
| 28 |
import com.spice.profitmandi.common.enumuration.SchemeType;
|
28 |
import com.spice.profitmandi.common.enumuration.SchemeType;
|
| 29 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
29 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| Line 54... |
Line 54... |
| 54 |
|
54 |
|
| 55 |
|
55 |
|
| 56 |
|
56 |
|
| 57 |
public class Utils {
|
57 |
public class Utils {
|
| 58 |
|
58 |
|
| 59 |
private static final Logger logger = LoggerFactory.getLogger(Utils.class);
|
59 |
private static final Logger logger = LogManager.getLogger(Utils.class);
|
| 60 |
public static final String EXPORT_ENTITIES_PATH = getExportPath();
|
60 |
public static final String EXPORT_ENTITIES_PATH = getExportPath();
|
| 61 |
public static final String PRODUCT_PROPERTIES_SNIPPET = "ProductPropertiesSnippet.html";
|
61 |
public static final String PRODUCT_PROPERTIES_SNIPPET = "ProductPropertiesSnippet.html";
|
| 62 |
public static final String DOCUMENT_STORE = "/profitmandi/documents/";
|
62 |
public static final String DOCUMENT_STORE = "/profitmandi/documents/";
|
| 63 |
private static final Map<Integer, String> helpMap = new HashMap<>(6);
|
63 |
private static final Map<Integer, String> helpMap = new HashMap<>(6);
|
| 64 |
private static final Map<Integer, String> dthIdAliasMap = new HashMap<>(7);
|
64 |
private static final Map<Integer, String> dthIdAliasMap = new HashMap<>(7);
|