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 BestSellersController extends BaseController {
26
public class BestSellersController extends BaseController {
27
	
27
	
28
	private static final long serialVersionUID = 3380274695464543863L;
28
	private static final long serialVersionUID = 3380274695464543863L;
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 91... Line 91...
91
    	return snippets;
91
    	return snippets;
92
    } 
92
    } 
93
    
93
    
94
	public void setId(String id) {
94
	public void setId(String id) {
95
		this.id = id;
95
		this.id = id;
96
		this.beginIndex = this.windowSize * (Long.parseLong(id)-1);
96
		this.beginIndex = windowSize * (Long.parseLong(id)-1);
97
	}
97
	}
98
 
98
 
99
	public String getId() {
99
	public String getId() {
100
		return id;
100
		return id;
101
	}
101
	}