|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.CmsUserTrackingResourceHandler
public class CmsUserTrackingResourceHandler
This resource handler checks if a resource has to be marked as visited by the current user.
It checks the value of the usertracking.mark
property.
Possible values are:
online
: The resource is marked only in the online project
true
: The resource is marked in all projects
false
: The resource is not marked at all
Field Summary | |
---|---|
static String |
PROPERTY_USERTRACKING_MARK
Property that indicates if resources should be tracked, value has to be true , false or online . |
static String |
VALUE_ONLINE
Constant for the property value online . |
Constructor Summary | |
---|---|
CmsUserTrackingResourceHandler()
|
Method Summary | |
---|---|
CmsResource |
initResource(CmsResource resource,
CmsObject cms,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Possibility to modify or change the CmsFile with the CmsObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_USERTRACKING_MARK
true
, false
or online
.
public static final String VALUE_ONLINE
online
.
Constructor Detail |
---|
public CmsUserTrackingResourceHandler()
Method Detail |
---|
public CmsResource initResource(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
I_CmsResourceInit
Caution: reading parameters from the request, destroys special characters in all parameters, because the encoding for the request was not set yet.
initResource
in interface I_CmsResourceInit
resource
- the requested filecms
- the current CmsObjectreq
- the current requestres
- the current response
I_CmsResourceInit.initResource(org.opencms.file.CmsResource, org.opencms.file.CmsObject, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |