public class CmsVisitedByFilter
extends java.lang.Object
构造器和说明 |
---|
CmsVisitedByFilter()
Constructor, without parameters.
|
CmsVisitedByFilter(CmsObject cms)
Constructor, setting the user to the current user from the context.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
long |
getFromDate()
Returns the date specifying the start point in time from which a resource was visited.
|
java.lang.String |
getParentPath()
Returns the parent root path to read visited resources from.
|
long |
getToDate()
Returns the date specifying the end point in time to which a resource was visited.
|
CmsUser |
getUser()
Returns the user to check the visited resources for.
|
boolean |
isIncludeSubFolders()
Returns if subfolders should be included to search for visited resources.
|
void |
setFromDate(long fromDate)
Sets the date specifying the start point in time from which a resource was visited.
|
void |
setIncludeSubfolders(boolean includeSubFolders)
Returns if subfolders should be included to search for visited resources.
|
void |
setParentPath(java.lang.String parentPath)
Sets the parent path to read visited resources from.
|
void |
setParentResource(CmsResource parentResource)
Sets the parent path to read visited resources from using the given resource as parent.
|
void |
setToDate(long toDate)
Sets the date specifying the end point in time to which a resource was visited.
|
void |
setUser(CmsUser user)
Sets the user to check the visited resources for.
|
void |
setVisitedDates(long fromDate,
long toDate)
Sets the start and end point in time in which a resource was visited.
|
java.lang.String |
toString()
Returns a user readable representation of the filter.
|
public CmsVisitedByFilter()
It is required to set the user manually if using this constructor.
public CmsVisitedByFilter(CmsObject cms)
cms
- the current users contextpublic java.lang.Object clone()
clone
在类中 java.lang.Object
Object.clone()
public long getFromDate()
public java.lang.String getParentPath()
public long getToDate()
public CmsUser getUser()
public boolean isIncludeSubFolders()
true
if subfolders should be included to search for visited resources, otherwise false
public void setFromDate(long fromDate)
fromDate
- the date specifying the start point in time from which a resource was visitedpublic void setIncludeSubfolders(boolean includeSubFolders)
includeSubFolders
- the flag to determine if subfolders should be includedpublic void setParentPath(java.lang.String parentPath)
This has to be the root path of the parent resource, not the site path.
parentPath
- the parent path to read visited resources frompublic void setParentResource(CmsResource parentResource)
parentResource
- the resource to use as parent resourcepublic void setToDate(long toDate)
toDate
- the date specifying the end point in time to which a resource was visitedpublic void setUser(CmsUser user)
user
- the user to check the visited resources forpublic void setVisitedDates(long fromDate, long toDate)
fromDate
- the date specifying the start point in time from which a resource was visitedtoDate
- the date specifying the end point in time to which a resource was visitedpublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()