|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsVisitedByFilter
org.opencms.db.CmsSubscriptionFilter
public class CmsSubscriptionFilter
Provides filters for getting resources subscribed by a user or group in a specified time range.
| Constructor Summary | |
|---|---|
CmsSubscriptionFilter()
Constructor, without parameters. |
|
CmsSubscriptionFilter(CmsObject cms)
Constructor, setting the user to the current user from the context. |
|
CmsSubscriptionFilter(CmsObject cms,
boolean addUserGroups)
Constructor, setting the user to the current user from the context. |
|
| Method Summary | |
|---|---|
void |
addGroup(CmsGroup group)
Adds a group to the list of groups to check subscribed resources for. |
java.lang.Object |
clone()
|
java.util.List<CmsGroup> |
getGroups()
Returns the groups to check subscribed resources for. |
CmsSubscriptionReadMode |
getMode()
Returns the mode to read subscribed resources. |
void |
setGroups(java.util.List<CmsGroup> groups)
Sets the groups to check subscribed resources for. |
void |
setMode(CmsSubscriptionReadMode mode)
Sets the mode to read subscribed resources. |
void |
setUserGroups(CmsObject cms)
Sets the groups of the user currently set in this filter as the list of groups to check subscribed resources for. |
java.lang.String |
toString()
Returns a user readable representation of the filter. |
| Methods inherited from class org.opencms.db.CmsVisitedByFilter |
|---|
getFromDate, getParentPath, getToDate, getUser, isIncludeSubFolders, setFromDate, setIncludeSubfolders, setParentPath, setParentResource, setToDate, setUser, setVisitedDates |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSubscriptionFilter()
It is required to set the user or group manually if using this constructor.
public CmsSubscriptionFilter(CmsObject cms)
cms - the current users context
public CmsSubscriptionFilter(CmsObject cms,
boolean addUserGroups)
cms - the current users contextaddUserGroups - determines if the groups of the current user should be added to the list of groups of the filter| Method Detail |
|---|
public void addGroup(CmsGroup group)
group - the group to addpublic java.lang.Object clone()
clone in class CmsVisitedByFilterObject.clone()public java.util.List<CmsGroup> getGroups()
public CmsSubscriptionReadMode getMode()
public void setGroups(java.util.List<CmsGroup> groups)
groups - the groups to check subscribed resources forpublic void setMode(CmsSubscriptionReadMode mode)
mode - the mode to read subscribed resourcespublic void setUserGroups(CmsObject cms)
cms - the current users contextpublic java.lang.String toString()
toString in class CmsVisitedByFilterObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||