Subversion Repositories SmartDukaan

Rev

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

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