Package com.atlassian.confluence.links
Class OutgoingLink
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
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
ConstructorsConstructorDescriptionDefault constructorOutgoingLink(ContentEntityObject sourceContent, String destinationSpaceKey, String destinationPageTitle) Convenience constructor -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(OutgoingLink other) booleanlonggetId()inthashCode()booleanisFrom(AbstractPage page) Is the link directed from a page, or from some of its contents (i.e.booleanvoidsetDestinationPageTitle(String destinationPageTitle) voidsetDestinationSpaceKey(String destinationSpaceKey) toString()Methods inherited from class com.atlassian.confluence.links.AbstractLink
getCreator, getLastModifier, getLinkTitle, getSourceContent, setLinkTitle, setSourceContentMethods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, getRealClass, isPersistent, setCreator, setLastModifierMethods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDateMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCurrentDate, 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
-
getId
public long getId()- Overrides:
getIdin classcom.atlassian.core.bean.EntityObject
-
getDestinationPageTitle
-
setDestinationPageTitle
-
getLowerDestinationPageTitle
-
getDestinationSpaceKey
-
setDestinationSpaceKey
-
getLowerDestinationSpaceKey
-
isUrlLink
public boolean isUrlLink() -
getUrlLink
-
equals
- Overrides:
equalsin classAbstractLink
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractLink
-
compareTo
- Specified by:
compareToin 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.
-