Subversion Repositories SmartDukaan

Rev

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

Rev 9570 Rev 9601
Line 1... Line 1...
1
package in.shop2020.mobileapi.serving.controllers;
1
package in.shop2020.mobileapi.serving.controllers;
2
 
2
 
3
import in.shop2020.mobileapi.serving.interceptors.SourceAware;
-
 
4
import in.shop2020.mobileapi.serving.interceptors.TrackingInterceptor;
3
import in.shop2020.mobileapi.serving.interceptors.TrackingInterceptor;
5
import in.shop2020.mobileapi.serving.interceptors.UserAware;
4
import in.shop2020.mobileapi.serving.interceptors.UserAware;
6
import in.shop2020.mobileapi.serving.interceptors.UserInterceptor;
5
import in.shop2020.mobileapi.serving.interceptors.UserInterceptor;
7
import in.shop2020.mobileapi.serving.services.PageLoaderHandler;
6
import in.shop2020.mobileapi.serving.services.PageLoaderHandler;
8
import in.shop2020.mobileapi.serving.services.UserSessionInfo;
7
import in.shop2020.mobileapi.serving.services.UserSessionInfo;
Line 30... Line 29...
30
 * Base class for all user action handlers i.e. controllers
29
 * Base class for all user action handlers i.e. controllers
31
 * 
30
 * 
32
 * @author rajveer
31
 * @author rajveer
33
 */
32
 */
34
public abstract class BaseController extends ValidationAwareSupport implements
33
public abstract class BaseController extends ValidationAwareSupport implements
35
ServletResponseAware, ServletRequestAware, UserAware, SourceAware {
34
ServletResponseAware, ServletRequestAware, UserAware {
36
	/**
35
	/**
37
	 * 
36
	 * 
38
	 */
37
	 */
39
	private static final long serialVersionUID = 1L;
38
	private static final long serialVersionUID = 1L;
40
	protected Map<String, Cookie> cookiesMap = null;
39
	protected Map<String, Cookie> cookiesMap = null;
Line 50... Line 49...
50
 
49
 
51
	protected Map<String, String> htmlSnippets;
50
	protected Map<String, String> htmlSnippets;
52
 
51
 
53
	PageLoaderHandler pageLoader = null;
52
	PageLoaderHandler pageLoader = null;
54
 
53
 
55
	protected long sourceId;
-
 
56
 
-
 
57
	public static Map<String,List<Banner>> activeBanners = null;
54
	public static Map<String,List<Banner>> activeBanners = null;
58
	public static Map<String, List<BannerMap>> allBannersMap = null;
55
	public static Map<String, List<BannerMap>> allBannersMap = null;
59
 
56
 
60
	
57
	
61
 
58
 
Line 106... Line 103...
106
	@Override
103
	@Override
107
	public void setCookieDomainName(String domainName) {
104
	public void setCookieDomainName(String domainName) {
108
		this.domainName = domainName;
105
		this.domainName = domainName;
109
	}
106
	}
110
 
107
 
111
	@Override
-
 
112
	public void setSourceId(long sourceId){
-
 
113
		log.info("Setting source id "+sourceId);
-
 
114
		this.sourceId = sourceId;
-
 
115
	}
-
 
116
 
-
 
117
	public UserSessionInfo getUserInfo(){
108
	public UserSessionInfo getUserInfo(){
118
		return this.userinfo;
109
		return this.userinfo;
119
	}
110
	}
120
 
111
 
121
	@Override
112
	@Override