org.apache.jetspeed.security
Class JetspeedPrincipalResultList

java.lang.Object
  extended by org.apache.jetspeed.security.JetspeedPrincipalResultList
Direct Known Subclasses:
UserResultList

public class JetspeedPrincipalResultList
extends java.lang.Object

A container for principals that have been retrieved from storage with ranged queries. Additional to the principals itself it also contains the total size of the query result.

Author:
Joachim Mueller

Constructor Summary
JetspeedPrincipalResultList(java.util.List<? extends JetspeedPrincipal> results)
          Creates a result list, totalSize will be set to the lists size.
JetspeedPrincipalResultList(java.util.List<? extends JetspeedPrincipal> results, long totalSize)
           
 
Method Summary
 java.util.List<? extends JetspeedPrincipal> getResults()
          Get the principal results.
 long getTotalSize()
          Get the total size of search results.
 void setTotalSize(long totalSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetspeedPrincipalResultList

public JetspeedPrincipalResultList(java.util.List<? extends JetspeedPrincipal> results,
                                   long totalSize)

JetspeedPrincipalResultList

public JetspeedPrincipalResultList(java.util.List<? extends JetspeedPrincipal> results)
Creates a result list, totalSize will be set to the lists size.

Parameters:
results -
firstResult -
Method Detail

getTotalSize

public long getTotalSize()
Get the total size of search results. This can be higher than the number of returned principals.

Returns:

setTotalSize

public void setTotalSize(long totalSize)

getResults

public java.util.List<? extends JetspeedPrincipal> getResults()
Get the principal results.

Returns:


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.