Subversion Repositories SmartDukaan

Rev

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

Rev 2652 Rev 2867
Line 42... Line 42...
42
	 * 
42
	 * 
43
	 */
43
	 */
44
	private String id;
44
	private String id;
45
	private String redirectUrl;
45
	private String redirectUrl;
46
	private long productId;
46
	private long productId;
-
 
47
	private boolean isMobile = false;
47
 
48
	
48
	public EntityController(){
49
	public EntityController(){
49
		super();
50
		super();
50
	}
51
	}
51
 
52
 
52
	// GET /*/1000001
53
	// GET /*/1000001
Line 107... Line 108...
107
		htmlSnippets.put("SLIDE_GUIDE", pageLoader.getSlideGuideHtml(productId));
108
		htmlSnippets.put("SLIDE_GUIDE", pageLoader.getSlideGuideHtml(productId));
108
		htmlSnippets.put("PAGE_TITLE", pageTitle.trim());
109
		htmlSnippets.put("PAGE_TITLE", pageTitle.trim());
109
		htmlSnippets.put("PAGE_METADESC", metaDescription);
110
		htmlSnippets.put("PAGE_METADESC", metaDescription);
110
		htmlSnippets.put("PAGE_METAKEYWORDS", metaKeywords);
111
		htmlSnippets.put("PAGE_METAKEYWORDS", metaKeywords);
111
		if(displayAccessories.equals("TRUE")){
112
		if(displayAccessories.equals("TRUE")){
112
			htmlSnippets.put("RELATED_ACCESSORIES", pageLoader.getAccessoriesHtml());
-
 
113
		}else{
113
			setMobile(true);
114
			htmlSnippets.put("RELATED_ACCESSORIES", "");
-
 
115
		}
114
		}
116
		
115
		
117
		try {
116
		try {
118
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
117
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
119
			Client client = userServiceClient.getClient();
118
			Client client = userServiceClient.getClient();
Line 187... Line 186...
187
	}
186
	}
188
	
187
	
189
	public String getRootUrl()	{
188
	public String getRootUrl()	{
190
		return htmlSnippets.get("ROOT_URL");
189
		return htmlSnippets.get("ROOT_URL");
191
	}
190
	}
-
 
191
 
-
 
192
	/**
-
 
193
	 * @param isMobile the isMobile to set
-
 
194
	 */
-
 
195
	public void setMobile(boolean isMobile) {
-
 
196
		this.isMobile = isMobile;
192
	
197
	}
-
 
198
 
-
 
199
	/**
-
 
200
	 * @return the isMobile
-
 
201
	 */
193
	public String getAccessoriesSnippet() {
202
	public boolean isMobile() {
194
		return htmlSnippets.get("RELATED_ACCESSORIES");
203
		return isMobile;
195
	}
204
	}
196
}
205
}
197
206