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:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
TrackbackLink

public class ReferralLink
extends AbstractLink
implements java.lang.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(java.lang.Object o)
          Order by hit-count, descending.
 boolean equals(java.lang.Object o)
           
 java.lang.String getUrl()
           
 int getViewCount()
           
 int hashCode()
           
 void incViewCount()
           
 void setUrl(java.lang.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 java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

incViewCount

public void incViewCount()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractLink

compareTo

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

Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2003-2010 Atlassian. All Rights Reserved.