Subversion Repositories SmartDukaan

Rev

Rev 462 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 462 Rev 536
Line 28... Line 28...
28
	private String id;
28
	private String id;
29
	
29
	
30
	//private String customer_id;
30
	//private String customer_id;
31
	
31
	
32
	private String entity_id;
32
	private String entity_id;
33
	private String htmlSnippet;
33
	private String htmlSnippet = null;
34
    // GET /test
34
    // GET /test
35
    public HttpHeaders index() throws UnsupportedEncodingException {
35
    public HttpHeaders index() throws UnsupportedEncodingException {
36
    	log.info("this.request=" + this.request);
36
    	log.info("this.request=" + this.request);
37
	
37
	
38
        return new DefaultHttpHeaders("show")
38
        return new DefaultHttpHeaders("show")
Line 55... Line 55...
55
		if(userinfo.isLoggedIn()){
55
		if(userinfo.isLoggedIn()){
56
			Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
56
			Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
57
			params.put(PageContentKeys.ENTITY_ID, itemIds);
57
			params.put(PageContentKeys.ENTITY_ID, itemIds);
58
			params.put(PageContentKeys.CUSTOMER_ID, userinfo.getUserId()+"");
58
			params.put(PageContentKeys.CUSTOMER_ID, userinfo.getUserId()+"");
59
			htmlSnippet = PageManager.getPageManager().getPageContents(PageEnum.MY_RESEARCH_PAGE, params).get("HTML");
59
			htmlSnippet = PageManager.getPageManager().getPageContents(PageEnum.MY_RESEARCH_PAGE, params).get("HTML");
60
		}else{
-
 
61
			htmlSnippet = "0";
-
 
62
		}
60
		}
63
		//return new DefaultHttpHeaders("index").disableCaching();
61
		//return new DefaultHttpHeaders("index").disableCaching();
64
		return new DefaultHttpHeaders("success");
62
		return new DefaultHttpHeaders("success");
65
	}
63
	}
66
	
64
	
Line 78... Line 76...
78
		}
76
		}
79
		return new DefaultHttpHeaders("success");
77
		return new DefaultHttpHeaders("success");
80
	}
78
	}
81
	
79
	
82
	public String getHtmlSnippet(){
80
	public String getHtmlSnippet(){
83
		if(htmlSnippet.compareTo("")==0){
81
		if(htmlSnippet == null){
84
			htmlSnippet = "1";
82
			htmlSnippet = "1";
85
		}
83
		}
86
		return htmlSnippet;
84
		return htmlSnippet;
87
	}
85
	}
88
	
86