Subversion Repositories SmartDukaan

Rev

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

Rev 2911 Rev 3126
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
3
import in.shop2020.datalogger.EventType;
3
import in.shop2020.datalogger.EventType;
4
import in.shop2020.serving.services.UserSessionInfo;
4
import in.shop2020.serving.services.UserSessionInfo;
5
import in.shop2020.thrift.clients.UserContextServiceClient;
5
import in.shop2020.thrift.clients.UserClient;
6
import in.shop2020.utils.DataLogger;
6
import in.shop2020.utils.DataLogger;
7
 
7
 
8
import java.util.Date;
8
import java.util.Date;
9
 
9
 
10
import org.apache.struts2.convention.annotation.Result;
10
import org.apache.struts2.convention.annotation.Result;
Line 48... Line 48...
48
    	
48
    	
49
    }
49
    }
50
        
50
        
51
 
51
 
52
    public boolean logoutUser(long userId) throws Exception{
52
    public boolean logoutUser(long userId) throws Exception{
53
		UserContextServiceClient userContextServiceClient =new UserContextServiceClient();
53
		UserClient userContextServiceClient =new UserClient();
54
		in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
54
		in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
55
		
55
		
56
		userClient.setUserAsLoggedOut(userId, (new Date()).getTime());
56
		userClient.setUserAsLoggedOut(userId, (new Date()).getTime());
57
    	return true;
57
    	return true;
58
    }
58
    }