|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.referer.BlogRefererGroup
BlogRefererGroup
This plugin manages either a flavor based hitcounter or a group of referers
Constructor Summary | |
BlogRefererGroup(boolean ishitcount)
BlogRefererGroup constructor |
Method Summary | |
void |
addHitCount(java.util.Date date)
Add a hit count for a given date |
void |
addHitCount(java.util.Date date,
int count)
Add a hit count for the given date |
void |
addReferer(java.lang.String flavor,
java.lang.String url,
java.util.Date date)
Add a referer to this referer group |
void |
addReferer(java.lang.String flavor,
java.lang.String url,
java.util.Date date,
int total)
Add a referral to this group |
java.lang.Object |
get(java.lang.Object key)
Get a referer from the group for a given key (URL) |
java.util.Date |
getLastReferralDate()
Get the date of the last referel for a hitcounter |
int |
getReferralCount()
Get the total referer count |
boolean |
isHitCounter()
Check whether or not this blog referer group collects hits |
java.util.Set |
keySet()
Return the keys for the referer groups |
int |
size()
Return the number of referral groups |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlogRefererGroup(boolean ishitcount)
ishitcount
- Whether or not this is a hit counter groupMethod Detail |
public void addReferer(java.lang.String flavor, java.lang.String url, java.util.Date date)
flavor
- Flavorurl
- URLdate
- Date of the referralpublic void addHitCount(java.util.Date date)
date
- Date of referralpublic void addHitCount(java.util.Date date, int count)
date
- Datecount
- New hit countpublic void addReferer(java.lang.String flavor, java.lang.String url, java.util.Date date, int total)
flavor
- Flavorurl
- URLdate
- Datetotal
- Total number of hitspublic int size()
public java.lang.Object get(java.lang.Object key)
key
- Referer key
BlogReferer
for the given key (URL)public java.util.Set keySet()
public int getReferralCount()
public boolean isHitCounter()
public java.util.Date getLastReferralDate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |