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>
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 Summary
ConstructorDescriptionDefault constructorOutgoingLink
(ContentEntityObject sourceContent, String destinationSpaceKey, String destinationPageTitle) Convenience constructor -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(OutgoingLink other) boolean
int
hashCode()
boolean
isFrom
(AbstractPage page) Is the link directed from a page, or from some of its contents (i.e.boolean
void
setDestinationPageTitle
(String destinationPageTitle) void
setDestinationSpaceKey
(String destinationSpaceKey) toString()
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
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
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 fromdestinationSpaceKey
- space the link points todestinationPageTitle
- page the link points to
-
-
Method Details
-
getDestinationPageTitle
-
setDestinationPageTitle
-
getLowerDestinationPageTitle
-
getDestinationSpaceKey
-
setDestinationSpaceKey
-
getLowerDestinationSpaceKey
-
isUrlLink
public boolean isUrlLink() -
getUrlLink
-
equals
- Overrides:
equals
in classAbstractLink
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractLink
-
compareTo
- Specified by:
compareTo
in interfaceComparable<OutgoingLink>
-
toString
-
isFrom
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.
-