org.exoplatform.calendar.service
Class JCRPageList

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

public abstract class JCRPageList
extends java.lang.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  java.util.List<CalendarEvent> currentListPage_
           
protected  long currentPage_
           
 
Constructor Summary
JCRPageList(long pageSize)
           
 
Method Summary
protected  void checkAndSetPage(long page)
           
 java.util.List<CalendarEvent> currentPage(java.lang.String username)
           
abstract  java.util.List getAll()
           
 long getAvailable()
           
 long getAvailablePage()
           
 long getCurrentPage()
           
 java.util.List<CalendarEvent> getPage(long page, java.lang.String username)
           
 long getPageSize()
           
protected abstract  void populateCurrentPage(long page, java.lang.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 java.util.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 java.util.List<CalendarEvent> currentPage(java.lang.String username)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

populateCurrentPage

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

getPage

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

getAll

public abstract java.util.List getAll()
                               throws java.lang.Exception
Throws:
java.lang.Exception

checkAndSetPage

protected void checkAndSetPage(long page)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setAvailablePage

protected void setAvailablePage(long available)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.