com.atlassian.confluence.links.linktypes
Class PageLink

java.lang.Object
  extended by com.atlassian.renderer.links.Link
      extended by com.atlassian.renderer.links.BaseLink
          extended by com.atlassian.confluence.links.linktypes.AbstractContentEntityLink
              extended by com.atlassian.confluence.links.linktypes.AbstractPageLink
                  extended by com.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
aliasSpecified, iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url, wikiDestination, wikiTitle
 
Constructor Summary
PageLink(com.atlassian.renderer.links.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
generateAnchor, generateUniqueAnchor, getAnchor, getLinkBody, getPageTitle, getSpaceKey, setUrlAndTitle, toOutgoingLink
 
Methods inherited from class com.atlassian.confluence.links.linktypes.AbstractContentEntityLink
hasDestination, isNoLinkBodyProvided
 
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, getWikiDestination, getWikiTitle, isAliasSpecified, isRelativeUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLink

public PageLink(com.atlassian.renderer.links.GenericLinkParser parser,
                PageContext pageContext,
                PageManager pageManager)
         throws ParseException
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


Copyright © 2003-2012 Atlassian. All Rights Reserved.