Package org.opencms.db
Class CmsUserTrackingResourceHandler
- java.lang.Object
-
- org.opencms.db.CmsUserTrackingResourceHandler
-
- All Implemented Interfaces:
I_CmsResourceInit
public class CmsUserTrackingResourceHandler extends java.lang.Object implements I_CmsResourceInit
This resource handler checks if a resource has to be marked as visited by the current user. It checks the value of theusertracking.markproperty.Possible values are:
online: The resource is marked only in the online projecttrue: The resource is marked in all projectsfalse: The resource is not marked at all
- Since:
- 8.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_USERTRACKING_MARKProperty that indicates if resources should be tracked, value has to betrue,falseoronline.static java.lang.StringVALUE_ONLINEConstant for the property valueonline.-
Fields inherited from interface org.opencms.main.I_CmsResourceInit
ATTR_ALTERNATIVE_CMS_OBJECT
-
-
Constructor Summary
Constructors Constructor Description CmsUserTrackingResourceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsResourceinitResource(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
-
Methods inherited from interface org.opencms.main.I_CmsResourceInit
getConfiguration, initParameters
-
-
-
-
Field Detail
-
PROPERTY_USERTRACKING_MARK
public static final java.lang.String PROPERTY_USERTRACKING_MARK
Property that indicates if resources should be tracked, value has to betrue,falseoronline.- See Also:
- Constant Field Values
-
VALUE_ONLINE
public static final java.lang.String VALUE_ONLINE
Constant for the property valueonline.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsUserTrackingResourceHandler
public CmsUserTrackingResourceHandler()
-
-
Method Detail
-
initResource
public CmsResource initResource(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
Description copied from interface:I_CmsResourceInitPossibility to modify or change the CmsFile with the CmsObject.Caution: reading parameters from the request, destroys special characters in all parameters, because the encoding for the request was not set yet.
- Specified by:
initResourcein interfaceI_CmsResourceInit- Parameters:
resource- the requested filecms- the current CmsObjectreq- the current requestres- the current response- Returns:
- a resource in the OpenCms VFS
- See Also:
I_CmsResourceInit.initResource(org.opencms.file.CmsResource, org.opencms.file.CmsObject, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-
-