com.jalios.jcms.rest
Class PagerData

java.lang.Object
  extended by com.jalios.jcms.rest.PagerData
All Implemented Interfaces:
Iterable<Object>

public class PagerData
extends Object
implements Iterable<Object>

This object contains the business logic that takes parameters in j2eeRequest and create the pagerHandler associated. It is iterable, and the iteration is done through objects contained in the colelction set by setCollection() and for the scope computed by the parameters.

Since:
JCMS-6.0
Author:
dissert

Constructor Summary
PagerData(org.restlet.data.Request request, javax.servlet.http.HttpServletRequest j2eeRequest)
           
 
Method Summary
 String getCollectionTagName()
           
 String getItemTagName()
           
 int getPageSize()
           
 String getSort()
           
 int getStart()
           
 int getTotal()
           
 boolean hasRequestPagerData()
           
 boolean isCollection()
           
 boolean isReverse()
           
 Iterator iterator()
           
 void setCollection(Collection collection)
           
 void setCollectionTagName(String collectionTagName)
           
 void setItemTagName(String itemTagName)
           
 void setReverse(boolean reverse)
           
 void setSort(String sort)
           
 void setStart(int start)
           
 String toXmlString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagerData

public PagerData(org.restlet.data.Request request,
                 javax.servlet.http.HttpServletRequest j2eeRequest)
Method Detail

getPageSize

public int getPageSize()

hasRequestPagerData

public boolean hasRequestPagerData()

getStart

public int getStart()

setStart

public void setStart(int start)

getSort

public String getSort()

setSort

public void setSort(String sort)

isReverse

public boolean isReverse()

setReverse

public void setReverse(boolean reverse)

isCollection

public boolean isCollection()

setCollection

public void setCollection(Collection collection)

getCollectionTagName

public String getCollectionTagName()

setCollectionTagName

public void setCollectionTagName(String collectionTagName)

getItemTagName

public String getItemTagName()

setItemTagName

public void setItemTagName(String itemTagName)

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<Object>

toXmlString

public String toXmlString()

getTotal

public int getTotal()


Copyright © 2001-2010 Jalios SA. All Rights Reserved.