Subversion Repositories SmartDukaan

Rev

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

Rev 11682 Rev 11686
Line 31... Line 31...
31
 * get private deals items from the catalog service
31
 * get private deals items from the catalog service
32
 * @author rajveer
32
 * @author rajveer
33
 *	
33
 *	
34
 */
34
 */
35
@InterceptorRefs({
35
@InterceptorRefs({
36
	@InterceptorRef("defaultStack"),
36
	    @InterceptorRef("myDefault"),
37
	@InterceptorRef("login")
37
	    @InterceptorRef("login")
38
})
38
})
39
@Results({
39
@Results({
40
	@Result(name = "redirect", location = "${redirectUrl}", type = "redirect", params={"statusCode", "301"})
40
	@Result(name = "redirect", location = "${redirectUrl}", type = "redirect", params={"statusCode", "301"})
41
})
41
})
42
 
42
 
Line 200... Line 200...
200
		return userinfo.isLoggedIn();
200
		return userinfo.isLoggedIn();
201
	}
201
	}
202
	public boolean isPrivatedealUser() throws TTransportException, TException{
202
	public boolean isPrivatedealUser() throws TTransportException, TException{
203
		try {
203
		try {
204
			uc = new UserClient().getClient();
204
			uc = new UserClient().getClient();
205
			return uc.isPrivateDealUser(super.getUserInfo().getUserId());
205
			return uc.isPrivateDealUser(userinfo.getUserId());
206
		} catch (TTransportException e) {
206
		} catch (TTransportException e) {
207
			log.error("Unable to get user service client.", e);	
207
			log.error("Unable to get user service client.", e);	
208
		}
208
		}
209
		return false;
209
		return false;
210
	}
210
	}