Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.ClickstreamRequest


    if (session.getAttribute(WebKeys.CMS_USER) != null && clickstream.getUserId() == null) {
      User user = (User) session.getAttribute(WebKeys.CMS_USER);
      setClickStreamUser(user.getUserId(), request);
    }

    ClickstreamRequest cr = ClickstreamRequestFactory.getClickstreamRequest(request, clickstream.getLastRequest());
    clickstream.setNumberOfRequests(clickstream.getNumberOfRequests() + 1);
    cr.setRequestOrder(clickstream.getNumberOfRequests());


    cr.setHostId(host.getIdentifier());
    cr.setAssociatedIdentifier(associatedIdentifier);


    // prevent dupe entries into the clickstream table - just retun if the user is on the same page
    if(clickstream.getClickstreamRequests() != null &&clickstream.getClickstreamRequests().size()>0){
      ClickstreamRequest last = clickstream.getClickstreamRequests().get(clickstream.getClickstreamRequests().size()-1);
      if(last != null && cr.getAssociatedIdentifier().equals( last.getAssociatedIdentifier())){
        return clickstream;
      }
    }

    clickstream.addClickstreamRequest(cr);
View Full Code Here


        Logger.error(ClickstreamRequestFactory.class, "Unable to retrieve current request host for URI  " + uri);
    }
   
        String hostIdentifier = host.getIdentifier();
       
        ClickstreamRequest cr = new ClickstreamRequest();
        cr.setProtocol(request.getProtocol());
        cr.setServerName(request.getServerName());
        cr.setServerPort(request.getServerPort());
        cr.setQueryString(request.getQueryString());
        cr.setRemoteUser(request.getRemoteUser());
        cr.setRequestURI(uri);
        cr.setLanguageId(languageId);
        cr.setTimestamp(timestamp);
        cr.setHostId(hostIdentifier);
        return cr;
    }
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.ClickstreamRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.