Subversion Repositories SmartDukaan

Rev

Rev 7814 | Rev 9280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7814 Rev 9218
Line 58... Line 58...
58
 *
58
 *
59
 * @author rajveer
59
 * @author rajveer
60
 *
60
 *
61
 */
61
 */
62
public class NewVUI {
62
public class NewVUI {
63
    private static final String ICON_JPG = "icon.jpg";
63
    public static final String ICON_JPG = "icon.jpg";
64
    private static final String THUMBNAIL_JPG = "thumbnail.jpg";
64
    public static final String THUMBNAIL_JPG = "thumbnail.jpg";
65
    private static final String DEFAULT_JPG = "default.jpg";
65
    public static final String DEFAULT_JPG = "default.jpg";
66
    private static final String SPACE = " ";
66
    private static final String SPACE = " ";
67
    private static final String DOT = ".";
67
    private static final String DOT = ".";
68
    private static final String ESCAPED_DOT = "\\.";
68
    private static final String ESCAPED_DOT = "\\.";
69
    private static final String HYPHON = "-";
69
    private static final String HYPHON = "-";
70
    private static Log log = LogFactory.getLog(NewVUI.class);
70
    private static Log log = LogFactory.getLog(NewVUI.class);
Line 606... Line 606...
606
     */
606
     */
607
    private void getMostComparedProducts(ExpandedEntity expEntity,
607
    private void getMostComparedProducts(ExpandedEntity expEntity,
608
            String exportPath) throws Exception {
608
            String exportPath) throws Exception {
609
        long catalogId = expEntity.getID();
609
        long catalogId = expEntity.getID();
610
 
610
 
611
        Map<Long, Long> comparedPhones = CreationUtils.getComparisonStats()
611
        Map<Long, Long> comparedPhones = CreationUtils.getComparisonStats().get(catalogId);
612
                .get(catalogId);
-
 
613
 
612
 
614
        StringBuffer sb = new StringBuffer();
613
        StringBuffer sb = new StringBuffer();
615
        int maxCount = 10;
614
        int maxCount = 10;
616
        int count = 0;
615
        int count = 0;
617
        if (comparedPhones != null) {
616
        if (comparedPhones != null) {