Subversion Repositories SmartDukaan

Rev

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

Rev 3561 Rev 3656
Line 71... Line 71...
71
	 */
71
	 */
72
	@Actions({
72
	@Actions({
73
		@Action("/all-mobile-phones"),
73
		@Action("/all-mobile-phones"),
74
		@Action("/all-mobile-accessories"),
74
		@Action("/all-mobile-accessories"),
75
		@Action("/all-tablets"),
75
		@Action("/all-tablets"),
-
 
76
		@Action("/all-laptops"),
76
		
77
		
77
		@Action("/business-phones"),
78
		@Action("/business-phones"),
78
		@Action("/high-end-multimedia-phones"),
79
		@Action("/high-end-multimedia-phones"),
79
		@Action("/low-end-multimedia-phones"),
80
		@Action("/low-end-multimedia-phones"),
80
		@Action("/basic-phones"),
81
		@Action("/basic-phones"),
Line 104... Line 105...
104
    public HttpHeaders show() throws SecurityException, IOException {
105
    public HttpHeaders show() throws SecurityException, IOException {
105
    	log.info("id=" + id);
106
    	log.info("id=" + id);
106
    	long categoryId = Long.parseLong(id);
107
    	long categoryId = Long.parseLong(id);
107
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(categoryId);
108
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(categoryId);
108
    	
109
    	
109
    	if( categoryId == Utils.MOBILE_PHONES_CATEGORY || categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || categoryId == Utils.TABLETS_CATEGORY ){
110
    	if (categoryId == Utils.MOBILE_PHONES_CATEGORY || categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || categoryId == Utils.TABLETS_CATEGORY ){
110
    		this.categoryTitle = "Mobile Price List India" + " | " + this.categoryName;
111
    		this.categoryTitle = categoryName + " Price List India" + " | " + this.categoryName;
-
 
112
    	}
111
    	}else{
113
    	else {
112
    		this.categoryTitle = this.categoryName.replace("Phones", "Mobile Phones");
114
    		this.categoryTitle = this.categoryName.replace("Phones", "Mobile Phones");
113
    	}
115
    	}
114
    	
-
 
115
    	
-
 
116
 
116
 
117
		String[] facetDefIDs = new String[] {"Category","F_50002","F_50001",  "F_50006", "F_50007" };
117
		String[] facetDefIDs = new String[] {"Category","F_50002","F_50001",  "F_50006", "F_50007" };
118
    	
118
    	
119
    	String[] facetLabels = new String[] {"Category","Price", "Brand", "Data Connectivity", "Camera Resolution" 	};
119
    	String[] facetLabels = new String[] {"Category","Price", "Brand", "Data Connectivity", "Camera Resolution" 	};
120
 
120
 
Line 232... Line 232...
232
    	return this.id;
232
    	return this.id;
233
    }
233
    }
234
    
234
    
235
    public String getCategoryName() {
235
    public String getCategoryName() {
236
    	return this.categoryName;
236
    	return this.categoryName;
237
    }	
237
    }
238
	
238
	
239
    public String getPageMetaDesc() {
239
    public String getPageMetaDesc() {
240
        return "Best price "
240
        return "Best price "
241
                + this.facetSelection.replaceAll("Phones", "")
241
                + this.facetSelection.replaceAll("Phones", "")
242
                + this.categoryName
242
                + this.categoryName
Line 320... Line 320...
320
	    	    }
320
	    	    }
321
			}
321
			}
322
    	}
322
    	}
323
		return snippets;
323
		return snippets;
324
    }
324
    }
325
 
-
 
326
}
325
}