com.atlassian.confluence.links
Class ReferralLink

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.confluence.core.ConfluenceEntityObject
          extended by com.atlassian.confluence.links.AbstractLink
              extended by com.atlassian.confluence.links.ReferralLink
All Implemented Interfaces:
Serializable, Cloneable, Comparable
Direct Known Subclasses:
TrackbackLink

public class ReferralLink
extends AbstractLink
implements Comparable

Represents a link from a remote URL to a Confluence page

Note: The source page field actually represents the destination page in Confluence

See Also:
Serialized Form

Constructor Summary
ReferralLink()
           
 
Method Summary
 int compareTo(Object o)
          Order by hit-count, descending.
 boolean equals(Object o)
           
 String getUrl()
           
 int getViewCount()
           
 int hashCode()
           
 void incViewCount()
           
 void setUrl(String url)
           
 void setViewCount(int viewCount)
           
 
Methods inherited from class com.atlassian.confluence.links.AbstractLink
getLinkTitle, getSourceContent, setLinkTitle, setSourceContent
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, getRealClass, isPersistent, setCreatorName, setLastModifierName
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferralLink

public ReferralLink()
Method Detail

getViewCount

public int getViewCount()

setViewCount

public void setViewCount(int viewCount)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

incViewCount

public void incViewCount()

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractLink

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractLink

compareTo

public int compareTo(Object o)
Order by hit-count, descending. Otherwise order alphabetically by URL

Specified by:
compareTo in interface Comparable


Copyright © 2003-2012 Atlassian. All Rights Reserved.