|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsVisitedByFilter
public class CmsVisitedByFilter
Provides filters for getting resources visited by a user in a specified time range.
| Constructor Summary | |
|---|---|
CmsVisitedByFilter()
Constructor, without parameters. |
|
CmsVisitedByFilter(CmsObject cms)
Constructor, setting the user to the current user from the context. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsVisitedByFilter()
It is required to set the user manually if using this constructor.
public CmsVisitedByFilter(CmsObject cms)
cms - the current users context| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.ObjectObject.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 falsepublic 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 for
public 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 in class java.lang.ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||