org.exoplatform.contact.service
Class JCRPageList

java.lang.Object
  extended by org.exoplatform.contact.service.JCRPageList
Direct Known Subclasses:
ContactPageList, DataPageList

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<Contact> currentListPage_
           
protected  long currentPage_
           
 
Constructor Summary
JCRPageList(long pageSize)
           
 
Method Summary
protected  void checkAndSetPage(long page)
           
 java.util.List<Contact> currentPage(java.lang.String username)
           
abstract  java.util.List<Contact> getAll()
           
 long getAvailable()
           
 long getAvailablePage()
           
 long getCurrentPage()
           
 java.util.List<Contact> 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 setContact(java.util.List<Contact> contacts, boolean isUpdate)
           
 void setCurrentPage(long page)
           
abstract  void setList(java.util.List<Contact> contacts)
           
 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<Contact> currentListPage_
Constructor Detail

JCRPageList

public JCRPageList(long pageSize)
Method Detail

getPageSize

public long getPageSize()

setPageSize

public void setPageSize(long pageSize)

setCurrentPage

public void setCurrentPage(long page)

getCurrentPage

public long getCurrentPage()

getAvailable

public long getAvailable()

getAvailablePage

public long getAvailablePage()

currentPage

public java.util.List<Contact> currentPage(java.lang.String username)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

setContact

public void setContact(java.util.List<Contact> contacts,
                       boolean isUpdate)
                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<Contact> getPage(long page,
                                       java.lang.String username)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getAll

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

setList

public abstract void setList(java.util.List<Contact> contacts)

checkAndSetPage

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

setAvailablePage

protected void setAvailablePage(long available)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.