org.wso2.registry
Class LogEntryCollection

java.lang.Object
  extended by org.wso2.registry.LogEntryCollection

public class LogEntryCollection
extends java.lang.Object

The main purpose of this class is to handle pagination for log entries. From the registry API it will returns LogEntryCollection , and from the LogEntryCollection user can get all the logs or he can ask for log for a given range


Constructor Summary
LogEntryCollection()
           
 
Method Summary
 javax.sql.DataSource getDataSource()
           
 int getLogCount()
           
 LogEntry[] getLogEntries()
           
 LogEntry[] getLogEntries(int start, int pageLen)
           
 void setAction(int action)
           
 void setDataSource(javax.sql.DataSource dataSource)
           
 void setFrom(java.util.Date from)
           
 void setLogCount(int logCount)
           
 void setRecentFirst(boolean recentFirst)
           
 void setResourcePath(java.lang.String resourcePath)
           
 void setTo(java.util.Date to)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntryCollection

public LogEntryCollection()
Method Detail

getLogCount

public int getLogCount()

setLogCount

public void setLogCount(int logCount)

getLogEntries

public LogEntry[] getLogEntries()
                         throws RegistryException
Throws:
RegistryException

getLogEntries

public LogEntry[] getLogEntries(int start,
                                int pageLen)
                         throws RegistryException
Throws:
RegistryException

getDataSource

public javax.sql.DataSource getDataSource()

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)

setResourcePath

public void setResourcePath(java.lang.String resourcePath)

setAction

public void setAction(int action)

setUserName

public void setUserName(java.lang.String userName)

setFrom

public void setFrom(java.util.Date from)

setTo

public void setTo(java.util.Date to)

setRecentFirst

public void setRecentFirst(boolean recentFirst)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.