com.atlassian.confluence.links.linktypes
Class PageLink

java.lang.Object
  extended bycom.atlassian.renderer.links.Link
      extended bycom.atlassian.renderer.links.BaseLink
          extended bycom.atlassian.confluence.links.linktypes.AbstractContentEntityLink
              extended bycom.atlassian.confluence.links.linktypes.AbstractPageLink
                  extended bycom.atlassian.confluence.links.linktypes.PageLink

public class PageLink
extends AbstractPageLink


Field Summary
 
Fields inherited from class com.atlassian.confluence.links.linktypes.AbstractPageLink
anchor, destinationPage, spaceKey
 
Fields inherited from class com.atlassian.confluence.links.linktypes.AbstractContentEntityLink
entityName
 
Fields inherited from class com.atlassian.renderer.links.Link
iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url
 
Constructor Summary
PageLink(GenericLinkParser parser, PageContext pageContext, PageManager pageManager)
           
 
Method Summary
 ContentEntityObject getDestinationContent()
           
 boolean isOnSamePage(PageContext pageContext)
           
static PageLink makeTestLink(String linkText, PageContext context)
          Factory for making a link that can be used in tests
 
Methods inherited from class com.atlassian.confluence.links.linktypes.AbstractPageLink
getAnchor, getLinkBody, getPageTitle, getSpaceKey, setUrlAndTitle, toOutgoingLink
 
Methods inherited from class com.atlassian.confluence.links.linktypes.AbstractContentEntityLink
hasDestination
 
Methods inherited from class com.atlassian.renderer.links.BaseLink
equals, getOriginalParser, hashCode, setI18nTitle, setTitle
 
Methods inherited from class com.atlassian.renderer.links.Link
getIconName, getLinkAttributes, getOriginalLinkText, getTitle, getTitleArgs, getTitleKey, getUnpermittedLinkBody, getUrl, isRelativeUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLink

public PageLink(GenericLinkParser parser,
                PageContext pageContext,
                PageManager pageManager)
         throws ParseException
Method Detail

makeTestLink

public static PageLink makeTestLink(String linkText,
                                    PageContext context)
                             throws ParseException
Factory for making a link that can be used in tests

Throws:
ParseException

isOnSamePage

public boolean isOnSamePage(PageContext pageContext)
Specified by:
isOnSamePage in class AbstractPageLink

getDestinationContent

public ContentEntityObject getDestinationContent()
Overrides:
getDestinationContent in class AbstractPageLink


Confluence is developed by Atlassian.