|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.log.CmsLogFilter
public final class CmsLogFilter
A filter to retrieve log entries.
| Field Summary | |
|---|---|
static CmsLogFilter |
ALL
To filter all. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
CmsLogFilter |
excludeType(CmsLogEntryType type)
Returns an extended filter with the given type restriction. |
CmsLogFilter |
filterFrom(long from)
Returns an extended filter with the starting date restriction. |
CmsLogFilter |
filterResource(CmsUUID structureId)
Returns an extended filter with the given resource restriction. |
CmsLogFilter |
filterTo(long to)
Returns an extended filter with the end date restriction. |
CmsLogFilter |
filterUser(CmsUUID userId)
Returns an extended filter with the given user ID restriction. |
long |
getDateFrom()
Returns the starting date restriction. |
long |
getDateTo()
Returns the end date restriction. |
java.util.Set<CmsLogEntryType> |
getExcludeTypes()
Returns the types to exclude. |
java.util.Set<CmsLogEntryType> |
getIncludeTypes()
Returns the types to include. |
CmsUUID |
getStructureId()
Returns the structure Id of the resource to filter. |
CmsUUID |
getUserId()
Returns the user ID restriction. |
CmsLogFilter |
includeType(CmsLogEntryType type)
Returns an extended filter with the given type restriction. |
boolean |
matchType(CmsLogEntryType type)
Returns true if the given log entry type matches this filter. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CmsLogFilter ALL
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public CmsLogFilter excludeType(CmsLogEntryType type)
type - the relation type to exclude
public CmsLogFilter filterFrom(long from)
from - the starting date to filter
public CmsLogFilter filterResource(CmsUUID structureId)
structureId - the structure id to filter
public CmsLogFilter filterTo(long to)
to - the end date to filter
public CmsLogFilter filterUser(CmsUUID userId)
userId - the user ID to filter
public long getDateFrom()
public long getDateTo()
public java.util.Set<CmsLogEntryType> getExcludeTypes()
public java.util.Set<CmsLogEntryType> getIncludeTypes()
public CmsUUID getStructureId()
public CmsUUID getUserId()
public CmsLogFilter includeType(CmsLogEntryType type)
type - the relation type to include
public boolean matchType(CmsLogEntryType type)
true if the given log entry type matches this filter.
type - the log entry type to test
true if the given log entry type matches this filterpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||