Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


oracle.wcps.property
Class PaginationContext

java.lang.Object
  extended by oracle.wcps.property.PaginationContext


public class PaginationContext
extends java.lang.Object

Represents an individual page's information of a paged list IPagedList. It contains start index and page size data.


Constructor Summary
PaginationContext()
           

 

Method Summary
 boolean equals(java.lang.Object o)
           
static PaginationContext getDefault()
          Creates this with 0 and 10 as default values for the start index and the page size.
 int getPageSize()
          Returns the size of a paged list.
 int getStartIndex()
          Returns the first element's index in a list of property service entities.
 java.lang.String getUri()
          For internal use
 java.lang.String getUri(int startIndex, int pageSize)
          For internal use
 int hashCode()
           
 PaginationContext withPageSize(int pageSize)
          Sets the given pageSize as a size of a paged list.
 PaginationContext withStartIndex(int startIndex)
          Sets the given startIndex as the index of the first element in a paged list.
 PaginationContext withTemplate(java.lang.String l)
          For internal use.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PaginationContext

public PaginationContext()

Method Detail

getStartIndex

public int getStartIndex()
Returns the first element's index in a list of property service entities.
Returns:
the index of first element in a list of property service entities.

getPageSize

public int getPageSize()
Returns the size of a paged list.
Returns:
the size of a paged list.

getUri

public java.lang.String getUri()
For internal use

getUri

public java.lang.String getUri(int startIndex,
                               int pageSize)
For internal use

withStartIndex

public PaginationContext withStartIndex(int startIndex)
Sets the given startIndex as the index of the first element in a paged list.
Parameters:
startIndex - the index of the first element in a paged list.
Returns:
this

withPageSize

public PaginationContext withPageSize(int pageSize)
Sets the given pageSize as a size of a paged list.
Parameters:
pageSize - the size of a paged list.
Returns:
this.

withTemplate

public PaginationContext withTemplate(java.lang.String l)
For internal use.

getDefault

public static PaginationContext getDefault()
Creates this with 0 and 10 as default values for the start index and the page size.
Returns:
a new instance of this with default values for the start index and the page size

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.