Class OutgoingLink

java.lang.Object
com.atlassian.core.bean.EntityObject
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:
  • Constructor Details

    • OutgoingLink

      public OutgoingLink()
      Default constructor
    • OutgoingLink

      public OutgoingLink(ContentEntityObject sourceContent, String destinationSpaceKey, String destinationPageTitle)
      Convenience constructor
      Parameters:
      sourceContent - content object that the link comes from
      destinationSpaceKey - space the link points to
      destinationPageTitle - page the link points to
  • Method Details

    • 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:
      equals in class AbstractLink
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractLink
    • compareTo

      public int compareTo(OutgoingLink other)
      Specified by:
      compareTo in interface Comparable<OutgoingLink>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.