Subversion Repositories SmartDukaan

Rev

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

Rev 11810 Rev 11872
Line 89... Line 89...
89
	public HttpHeaders show() {
89
	public HttpHeaders show() {
90
		try {
90
		try {
91
			if(userinfo.isPrivateDealUser()){
91
			if(userinfo.isPrivateDealUser()){
92
 
92
 
93
				EhcacheWrapper<String, Object> showcasePageSnippetsCache = new EhcacheWrapper<String, Object>(
93
				EhcacheWrapper<String, Object> showcasePageSnippetsCache = new EhcacheWrapper<String, Object>(
94
						EhcacheWrapper.SHOWCASE_PAGE_SNIPPET_CACHE_NAME, CacheManager.create());
94
						EhcacheWrapper.PRIVATE_DEAL_PAGE_SNIPPET_CACHE_NAME, CacheManager.create());
95
				if(sourceId == -1){
95
				if(sourceId == -1){
96
					this.snippets = (List<String>)showcasePageSnippetsCache.get(SHOWCASE_PRIVATE_DEALS_CACHE_KEY + beginIndex);
96
					this.snippets = (List<String>)showcasePageSnippetsCache.get(SHOWCASE_PRIVATE_DEALS_CACHE_KEY + beginIndex);
97
					this.totalItems = (Long)showcasePageSnippetsCache.get(SHOWCASE_PRIVATE_DEALS_COUNT_CACHE_KEY);
97
					this.totalItems = (Long)showcasePageSnippetsCache.get(SHOWCASE_PRIVATE_DEALS_COUNT_CACHE_KEY);
98
					if(this.snippets != null && !this.snippets.isEmpty() && this.totalItems > 0) {
98
					if(this.snippets != null && !this.snippets.isEmpty() && this.totalItems > 0) {
99
						if(getCurrentPage() > getTotalPages()){
99
						if(getCurrentPage() > getTotalPages()){