| Line 19... |
Line 19... |
| 19 |
|
19 |
|
| 20 |
import java.io.BufferedWriter;
|
20 |
import java.io.BufferedWriter;
|
| 21 |
import java.io.File;
|
21 |
import java.io.File;
|
| 22 |
import java.io.FileInputStream;
|
22 |
import java.io.FileInputStream;
|
| 23 |
import java.io.FileOutputStream;
|
23 |
import java.io.FileOutputStream;
|
| 24 |
import java.io.FilenameFilter;
|
- |
|
| 25 |
import java.io.IOException;
|
24 |
import java.io.IOException;
|
| 26 |
import java.io.OutputStreamWriter;
|
25 |
import java.io.OutputStreamWriter;
|
| 27 |
import java.net.URLEncoder;
|
26 |
import java.net.URLEncoder;
|
| 28 |
import java.nio.channels.FileChannel;
|
27 |
import java.nio.channels.FileChannel;
|
| 29 |
import java.text.DecimalFormat;
|
28 |
import java.text.DecimalFormat;
|
| Line 700... |
Line 699... |
| 700 |
&& expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY) {
|
699 |
&& expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY) {
|
| 701 |
params.put("IS_MOBILE", "TRUE");
|
700 |
params.put("IS_MOBILE", "TRUE");
|
| 702 |
} else {
|
701 |
} else {
|
| 703 |
params.put("IS_MOBILE", "FALSE");
|
702 |
params.put("IS_MOBILE", "FALSE");
|
| 704 |
}
|
703 |
}
|
| - |
|
704 |
|
| - |
|
705 |
if (expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY) {
|
| - |
|
706 |
params.put("IS_COMPARABLE", "TRUE");
|
| - |
|
707 |
} else {
|
| - |
|
708 |
params.put("IS_COMPARABLE", "FALSE");
|
| - |
|
709 |
}
|
| - |
|
710 |
|
| 705 |
params.put("CATALOG_ID", expEntity.getID() + "");
|
711 |
params.put("CATALOG_ID", expEntity.getID() + "");
|
| 706 |
params.put("TAGLINE", tagline);
|
712 |
params.put("TAGLINE", tagline);
|
| 707 |
params.put("WARRANTY", warranty);
|
713 |
params.put("WARRANTY", warranty);
|
| 708 |
params.put("TINY_SNIPPET", tinySnippet);
|
714 |
params.put("TINY_SNIPPET", tinySnippet);
|
| 709 |
params.put("IMAGE_PREFIX", EntityUtils.getMediaPrefix(expEntity));
|
715 |
params.put("IMAGE_PREFIX", EntityUtils.getMediaPrefix(expEntity));
|
| Line 766... |
Line 772... |
| 766 |
filenames.add("SearchSnippet");
|
772 |
filenames.add("SearchSnippet");
|
| 767 |
filenames.add("CategorySnippet");
|
773 |
filenames.add("CategorySnippet");
|
| 768 |
filenames.add("SlideGuide");
|
774 |
filenames.add("SlideGuide");
|
| 769 |
filenames.add("MyResearchSnippet");
|
775 |
filenames.add("MyResearchSnippet");
|
| 770 |
filenames.add("AfterSales");
|
776 |
filenames.add("AfterSales");
|
| 771 |
if (expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY
|
777 |
if (expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY) {
|
| - |
|
778 |
|
| - |
|
779 |
// For laptops we do not have related accessories and most comparable
|
| 772 |
&& expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY) {
|
780 |
if(expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY) {
|
| 773 |
filenames.add("PhonesIOwnSnippet");
|
781 |
filenames.add("PhonesIOwnSnippet");
|
| - |
|
782 |
|
| - |
|
783 |
getRelatedAccessories(expEntity, exportPath);
|
| - |
|
784 |
getMostComparedProducts(expEntity, exportPath);
|
| - |
|
785 |
}
|
| 774 |
filenames.add("CompareProductSnippet");
|
786 |
filenames.add("CompareProductSnippet");
|
| 775 |
filenames.add("ComparisonSnippet");
|
787 |
filenames.add("ComparisonSnippet");
|
| 776 |
filenames.add("CompareProductSummarySnippet");
|
788 |
filenames.add("CompareProductSummarySnippet");
|
| 777 |
// This method wont use any velocity file, So calling directly
|
789 |
// This method wont use any velocity file, So calling directly
|
| 778 |
getSlidenamesSnippet(expEntity, exportPath);
|
790 |
getSlidenamesSnippet(expEntity, exportPath);
|
| 779 |
getRelatedAccessories(expEntity, exportPath);
|
- |
|
| 780 |
getMostComparedProducts(expEntity, exportPath);
|
- |
|
| 781 |
}
|
791 |
}
|
| 782 |
|
792 |
|
| 783 |
// This method wont use any velocity file, So calling directly
|
793 |
// This method wont use any velocity file, So calling directly
|
| 784 |
getProductPropertiesSnippet(expEntity, exportPath);
|
794 |
getProductPropertiesSnippet(expEntity, exportPath);
|
| 785 |
|
795 |
|