public class Tracker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TRACKING_PARAM |
Constructor and Description |
---|
Tracker() |
Modifier and Type | Method and Description |
---|---|
void |
addTrack(Track track) |
void |
clearCache() |
Track[] |
getAllTrack(Date day)
get list of track access to a resource.
|
int |
getClickCount(StatContext statCtx)
get all session for a statCtx.
|
Track[] |
getClickTracks(Date from,
Date to) |
int |
getCountAccessNoTemplate(Date from,
Date to,
String path) |
Map<String,Integer> |
getLanguage(StatContext statCtx)
return a count of access by language
|
int[] |
getModes(StatContext statCtx)
return a count of access by mode 0 : view 1 : edit 2 : preview
|
Map<Integer,Integer> |
getPagesByDay(StatContext statCtx)
return click by day
|
Map<Integer,Integer> |
getPagesByHour(StatContext statCtx)
return click by day
|
String[][] |
getPagesTracking(StatContext statCtx) |
int |
getPathCountAccess(Date from,
Date to,
String path) |
int |
getPathCountAccess(int dayFromHere,
String path) |
Map<String,Integer> |
getReferer(StatContext statCtx)
get the referer count by name
|
int |
getResourceCountAccess(ContentContext ctx,
int dayFromHere,
StaticInfo staticInfo) |
int |
getResourcePathCountAccess(Date from,
Date to,
String path) |
Track[] |
getResourceTracks(Date from,
Date to) |
Map<Integer,Integer[]> |
getSession2ClickByMonth(StatContext statCtx,
GlobalContext globalContext) |
int |
getSession2ClickCount(StatContext statCtx)
get all session for a statCtx.
|
Map<Integer,Integer> |
getSessionByDay(StatContext statCtx)
return click by day
|
Map<Integer,Integer> |
getSessionByMonth(StatContext statCtx)
return session by month
|
int |
getSessionCount(StatContext statCtx)
get all session for a statCtx.
|
Map<String,double[]> |
getTimeTracking(StatContext statCtx)
return the time pass on a page ( time between the click on the page and
the next click in the same session )
|
static Tracker |
getTracker(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
Track[] |
getTracks(Date from,
Date to) |
Track[] |
getTracks(Date from,
Date to,
String path) |
Track[] |
getViewClickTracks(Date from,
Date to) |
Track[] |
getViewClickTracks(Date from,
Date to,
String path) |
static void |
trace(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String TRACKING_PARAM
public static final Tracker getTracker(GlobalContext globalContext, javax.servlet.http.HttpSession session) throws ServiceException
ServiceException
public void clearCache()
public static void trace(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public int getClickCount(StatContext statCtx)
statCtx
- public Map<String,Integer> getLanguage(StatContext statCtx)
public int[] getModes(StatContext statCtx)
public Map<Integer,Integer> getPagesByDay(StatContext statCtx)
statCtx
- statistic contextDAOException
public Map<Integer,Integer> getPagesByHour(StatContext statCtx)
statCtx
- statistic contextDAOException
public String[][] getPagesTracking(StatContext statCtx)
public int getPathCountAccess(int dayFromHere, String path)
public Map<String,Integer> getReferer(StatContext statCtx)
public Track[] getAllTrack(Date day)
public int getResourceCountAccess(ContentContext ctx, int dayFromHere, StaticInfo staticInfo) throws Exception
Exception
public int getSession2ClickCount(StatContext statCtx)
statCtx
- public Map<Integer,Integer> getSessionByDay(StatContext statCtx)
statCtx
- statistic contextDAOException
public Map<Integer,Integer> getSessionByMonth(StatContext statCtx)
statCtx
- statistic contextDAOException
public Map<Integer,Integer[]> getSession2ClickByMonth(StatContext statCtx, GlobalContext globalContext)
public int getSessionCount(StatContext statCtx)
statCtx
- public Map<String,double[]> getTimeTracking(StatContext statCtx)
DAOException
Copyright © 2012-2018. All Rights Reserved.