org.exoplatform.calendar.service
Class JCRPageList

java.lang.Object
  extended by org.exoplatform.calendar.service.JCRPageList
Direct Known Subclasses:
EventPageList, EventPageListQuery

public abstract class JCRPageList
extends Object

Since:
Oct 21, 2004
Version:
$Id: PageList.java,v 1.2 2004/10/25 03:36:58 tuan08 Exp $
Author:
Tuan Nguyen (tuan08@users.sourceforge.net)

Field Summary
protected  long available_
           
protected  long availablePage_
           
protected  List<CalendarEvent> currentListPage_
           
protected  long currentPage_
           
 
Constructor Summary
JCRPageList(long pageSize)
           
 
Method Summary
protected  void checkAndSetPage(long page)
           
 List<CalendarEvent> currentPage(String username)
           
abstract  List getAll()
           
 long getAvailable()
           
 long getAvailablePage()
           
 long getCurrentPage()
           
 List<CalendarEvent> getPage(long page, String username)
           
 long getPageSize()
           
protected abstract  void populateCurrentPage(long page, String username)
           
protected  void setAvailablePage(long available)
           
 void setPageSize(long pageSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

available_

protected long available_

availablePage_

protected long availablePage_

currentPage_

protected long currentPage_

currentListPage_

protected List<CalendarEvent> currentListPage_
Constructor Detail

JCRPageList

public JCRPageList(long pageSize)
Method Detail

getPageSize

public long getPageSize()

setPageSize

public void setPageSize(long pageSize)

getCurrentPage

public long getCurrentPage()

getAvailable

public long getAvailable()

getAvailablePage

public long getAvailablePage()

currentPage

public List<CalendarEvent> currentPage(String username)
                                throws Exception
Throws:
Exception

populateCurrentPage

protected abstract void populateCurrentPage(long page,
                                            String username)
                                     throws Exception
Throws:
Exception

getPage

public List<CalendarEvent> getPage(long page,
                                   String username)
                            throws Exception
Throws:
Exception

getAll

public abstract List getAll()
                     throws Exception
Throws:
Exception

checkAndSetPage

protected void checkAndSetPage(long page)
                        throws Exception
Throws:
Exception

setAvailablePage

protected void setAvailablePage(long available)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.