|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.LogEntryCollection
public class LogEntryCollection
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 | |
---|---|
DataAccessManager |
getDataAccessManager()
Get the data access manager associated with the log entry. |
int |
getLogCount()
Get the count of the log entries. |
LogEntry[] |
getLogEntries()
Returns an array of log entries filtered by the provided information. |
LogEntry[] |
getLogEntries(int start,
int pageLen)
Returns an array of log entries filtered by the provided information and in the provided range. |
void |
setAction(int action)
Method to set the action to filter with. |
void |
setDataAccessManager(DataAccessManager dataAccessManager)
Set the data access manager associated with the log entry. |
void |
setFrom(java.util.Date from)
Method to set the from date to filter with. |
void |
setLogCount(int logCount)
Method to set the count of the log entries. |
void |
setRecentFirst(boolean recentFirst)
Set whether the returned entries should be ordered so the recent one is appeared first. |
void |
setResourcePath(java.lang.String resourcePath)
Method to set the resource path to filter with. |
void |
setTo(java.util.Date to)
Method to set the to date to filter with. |
void |
setUserName(java.lang.String userName)
Method to set the user name to filter with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogEntryCollection()
Method Detail |
---|
public int getLogCount()
public void setLogCount(int logCount)
logCount
- the count of the log entriespublic LogEntry[] getLogEntries() throws RegistryException
RegistryException
- throws if the operation fail.public LogEntry[] getLogEntries(int start, int pageLen) throws RegistryException
start
- the start of the range.pageLen
- number of items to return.
RegistryException
- throws if the operation fail.public DataAccessManager getDataAccessManager()
public void setDataAccessManager(DataAccessManager dataAccessManager)
dataAccessManager
- the data access manager.public void setResourcePath(java.lang.String resourcePath)
resourcePath
- the resource path.public void setAction(int action)
action
- the action.public void setUserName(java.lang.String userName)
userName
- the user name.public void setFrom(java.util.Date from)
from
- the from date.public void setTo(java.util.Date to)
to
- the 'to' date.public void setRecentFirst(boolean recentFirst)
recentFirst
- whether the returned entries should be ordered or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |