com.atlassian.confluence.links
Class ReferralLink
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.links.AbstractLink
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
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
ReferralLink
public ReferralLink()
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