Subversion Repositories SmartDukaan

Rev

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

Rev 2453 Rev 2943
Line 26... Line 26...
26
public class BestDealsController extends BaseController {
26
public class BestDealsController extends BaseController {
27
	
27
	
28
	private static final long serialVersionUID = -6862524269260661024L;
28
	private static final long serialVersionUID = -6862524269260661024L;
29
	
29
	
30
	private static Logger log = Logger.getLogger(Class.class);
30
	private static Logger log = Logger.getLogger(Class.class);
31
	private final int windowSize = 20;
31
	private static final int windowSize = 20;
32
	
32
	
33
	private long beginIndex = 0;
33
	private long beginIndex = 0;
34
	
34
	
35
	private long totalItems;
35
	private long totalItems;
36
	
36
	
Line 97... Line 97...
97
    	return snippets;
97
    	return snippets;
98
    }
98
    }
99
    
99
    
100
	public void setId(String id) {
100
	public void setId(String id) {
101
		this.id = id;
101
		this.id = id;
102
		this.beginIndex = this.windowSize * (Long.parseLong(id)-1);
102
		this.beginIndex = windowSize * (Long.parseLong(id)-1);
103
	}
103
	}
104
 
104
 
105
	public String getId() {
105
	public String getId() {
106
		return id;
106
		return id;
107
	}
107
	}