Package com.atlassian.confluence.links
Class OutgoingLink
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.confluence.core.ConfluenceEntityObject
-
- com.atlassian.confluence.links.AbstractLink
-
- com.atlassian.confluence.links.OutgoingLink
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<OutgoingLink>
public class OutgoingLink extends AbstractLink implements Comparable<OutgoingLink>
Represents a link from a source page to a destination.The destination can currently be:
- Another page in the same space
- A page in another space
- An external URL
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutgoingLink()Default constructorOutgoingLink(ContentEntityObject sourceContent, String destinationSpaceKey, String destinationPageTitle)Convenience constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OutgoingLink other)booleanequals(Object o)StringgetDestinationPageTitle()StringgetDestinationSpaceKey()StringgetLowerDestinationPageTitle()StringgetLowerDestinationSpaceKey()StringgetUrlLink()inthashCode()booleanisFrom(AbstractPage page)Is the link directed from a page, or from some of its contents (i.e.booleanisUrlLink()voidsetDestinationPageTitle(String destinationPageTitle)voidsetDestinationSpaceKey(String destinationSpaceKey)StringtoString()-
Methods inherited from class com.atlassian.confluence.links.AbstractLink
getLinkTitle, getSourceContent, setLinkTitle, setSourceContent
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
-
-
-
-
Constructor Detail
-
OutgoingLink
public OutgoingLink()
Default constructor
-
OutgoingLink
public OutgoingLink(ContentEntityObject sourceContent, String destinationSpaceKey, String destinationPageTitle)
Convenience constructor- Parameters:
sourceContent- content object that the link comes fromdestinationSpaceKey- space the link points todestinationPageTitle- page the link points to
-
-
Method Detail
-
getDestinationPageTitle
public String getDestinationPageTitle()
-
setDestinationPageTitle
public void setDestinationPageTitle(String destinationPageTitle)
-
getLowerDestinationPageTitle
public String getLowerDestinationPageTitle()
-
getDestinationSpaceKey
public String getDestinationSpaceKey()
-
setDestinationSpaceKey
public void setDestinationSpaceKey(String destinationSpaceKey)
-
getLowerDestinationSpaceKey
public String getLowerDestinationSpaceKey()
-
isUrlLink
public boolean isUrlLink()
-
getUrlLink
public String getUrlLink()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractLink
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractLink
-
compareTo
public int compareTo(OutgoingLink other)
- Specified by:
compareToin interfaceComparable<OutgoingLink>
-
isFrom
public boolean isFrom(AbstractPage page)
Is the link directed from a page, or from some of its contents (i.e. comments)? Used to filter out internal links from a page's links list.
-
-