Subversion Repositories SmartDukaan

Rev

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

Rev 1377 Rev 1472
Line 71... Line 71...
71
	/**
71
	/**
72
	 * GET /abc/10004
72
	 * GET /abc/10004
73
	 * 
73
	 * 
74
	 */
74
	 */
75
	@Actions({
75
	@Actions({
-
 
76
		@Action("/all-mobile-phones"),
-
 
77
		@Action("/all-mobile-accessories"),
-
 
78
		
76
		@Action("/business-phones"),
79
		@Action("/business-phones"),
77
		@Action("/high-end-multimedia-phones"),
80
		@Action("/high-end-multimedia-phones"),
78
		@Action("/low-end-multimedia-phones"),
81
		@Action("/low-end-multimedia-phones"),
79
		@Action("/basic-phones"),
82
		@Action("/basic-phones"),
80
		
83
		
Line 91... Line 94...
91
		@Action("/category")
94
		@Action("/category")
92
	})
95
	})
93
	 
96
	 
94
    public HttpHeaders show() throws SecurityException, IOException {
97
    public HttpHeaders show() throws SecurityException, IOException {
95
    	log.info("id=" + id);
98
    	log.info("id=" + id);
-
 
99
    	long categoryId = Long.parseLong(id);
96
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(Long.parseLong(id));
100
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(categoryId);
-
 
101
    	
-
 
102
    	if( categoryId == MOBILE_PHONES_CATEGORY || categoryId == MOBILE_ACCESSORIES_CATEGORY ){
-
 
103
    		this.categoryTitle = "Mobile Price List India" + " | " + this.categoryName;
-
 
104
    	}else{
-
 
105
    		this.categoryTitle = this.categoryName.replace("Phones", "Mobile Phones");
-
 
106
    	}
-
 
107
    	
97
    	
108
    	
98
    	this.categoryTitle = this.categoryName.replace("Phones", "Mobile Phones");
-
 
99
 
109
 
100
		String[] facetDefIDs = new String[] {"Category","F_50002","F_50001",  "F_50006", "F_50007" };
110
		String[] facetDefIDs = new String[] {"Category","F_50002","F_50001",  "F_50006", "F_50007" };
101
    	
111
    	
102
    	String[] facetLabels = new String[] {"Category","Price", "Brand", "Data Connectivity", "Camera Resolution" 	};
112
    	String[] facetLabels = new String[] {"Category","Price", "Brand", "Data Connectivity", "Camera Resolution" 	};
103
 
113