code: public void markResourceAsVisitedBy(CmsObject cms, String resourcePath, CmsUser user) throws CmsException {
  
          CmsResource resource = cms.readResource(resourcePath, CmsResourceFilter.ALL);
          markResourceAsVisitedBy(cms, resource, user);
      }
docs: Mark the given resource as visited by the user.<p>
  
  @param cms the current users context
  @param resourcePath the name of the resource to mark as visited
  @param user the user that visited the resource
  
  @throws CmsException if something goes wrong