com.atlassian.confluence.links.linktypes
Class UserProfileLink

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.UserProfileLink

public class UserProfileLink
extends AbstractContentEntityLink


Field Summary
static String PERSONAL_SPACE_USER_ICON
           
static String USER_ICON
           
 
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
UserProfileLink(com.atlassian.renderer.links.GenericLinkParser parser, UserAccessor userAccessor, PersonalInformationManager personalInformationManager)
           
 
Method Summary
 ContentEntityObject getDestinationContent()
           
 String getLinkAttributes()
           
static String getLinkPath(String username)
          This is a first attempt at consolidating all the places where we hard-code a link to a 'user' (as opposed to a deliberate link to the a profile or personal space).
 boolean hasDestination()
           
 
Methods inherited from class com.atlassian.confluence.links.linktypes.AbstractContentEntityLink
getLinkBody, 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, 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
 

Field Detail

USER_ICON

public static final String USER_ICON
See Also:
Constant Field Values

PERSONAL_SPACE_USER_ICON

public static final String PERSONAL_SPACE_USER_ICON
See Also:
Constant Field Values
Constructor Detail

UserProfileLink

public UserProfileLink(com.atlassian.renderer.links.GenericLinkParser parser,
                       UserAccessor userAccessor,
                       PersonalInformationManager personalInformationManager)
                throws ParseException
Throws:
ParseException
Method Detail

getLinkPath

public static String getLinkPath(String username)
This is a first attempt at consolidating all the places where we hard-code a link to a 'user' (as opposed to a deliberate link to the a profile or personal space). NOTE: Does not include context path


getDestinationContent

public ContentEntityObject getDestinationContent()
Specified by:
getDestinationContent in class AbstractContentEntityLink

hasDestination

public boolean hasDestination()
Overrides:
hasDestination in class AbstractContentEntityLink

getLinkAttributes

public String getLinkAttributes()
Overrides:
getLinkAttributes in class com.atlassian.renderer.links.Link


Copyright © 2003-2013 Atlassian. All Rights Reserved.