public class DefaultReferralManager extends Object implements ReferralManager
Constructor and Description |
---|
DefaultReferralManager() |
Modifier and Type | Method and Description |
---|---|
int |
deleteReferrersWithPrefix(String urlPrefix)
potential for mass deletes in this operation.
|
List<ReferralLink> |
getHotReferrers(ContentEntityObject content,
int maxCount) |
void |
referToContent(com.atlassian.bonnie.Handle handle,
String referrer,
int hitCount)
Extracts the "referring URL" from the request and
(a) adds it as a ReferralLink to the content if it doesn't exist (b) increments the view count of that link if it already exists |
void |
saveReferralLink(ReferralLink link) |
void |
saveTrackback(com.atlassian.trackback.Trackback tb,
long entityId) |
void |
setAnyTypeDao(AnyTypeDao anyTypeDao) |
void |
setContentEntityManager(ContentEntityManager contentEntityManager) |
void |
setReferralDao(ReferralDao referralDao) |
void |
setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setTrackbackDao(TrackbackDao trackbackDao) |
public List<ReferralLink> getHotReferrers(ContentEntityObject content, int maxCount)
getHotReferrers
in interface ReferralManager
public void saveReferralLink(ReferralLink link)
saveReferralLink
in interface ReferralManager
public void saveTrackback(com.atlassian.trackback.Trackback tb, long entityId)
saveTrackback
in interface ReferralManager
public void referToContent(com.atlassian.bonnie.Handle handle, String referrer, int hitCount)
Note: URL will not be added if it is longer than 255 char, is null or getUrlIndex != 0
referToContent
in interface ReferralManager
public int deleteReferrersWithPrefix(String urlPrefix)
deleteReferrersWithPrefix
in interface ReferralManager
public void setReferralDao(ReferralDao referralDao)
public void setTrackbackDao(TrackbackDao trackbackDao)
public void setSettingsManager(SettingsManager settingsManager)
public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setAnyTypeDao(AnyTypeDao anyTypeDao)
Copyright © 2003–2016 Atlassian. All rights reserved.