public final class CmsLogFilter extends java.lang.Object implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static CmsLogFilter |
ALL
To filter all.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final CmsLogFilter ALL
public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public CmsLogFilter excludeType(CmsLogEntryType type)
type - the relation type to excludepublic CmsLogFilter filterFrom(long from)
from - the starting date to filterpublic CmsLogFilter filterResource(CmsUUID structureId)
structureId - the structure id to filterpublic CmsLogFilter filterTo(long to)
to - the end date to filterpublic CmsLogFilter filterUser(CmsUUID userId)
userId - the user ID to filterpublic 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 includepublic boolean matchType(CmsLogEntryType type)
true if the given log entry type matches this filter.type - the log entry type to testtrue if the given log entry type matches this filterpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()