Class UserPathConverter
- java.lang.Object
-
- com.atlassian.confluence.servlet.simpledisplay.UserPathConverter
-
- All Implemented Interfaces:
PathConverter
public class UserPathConverter extends Object implements PathConverter
This path converter requests for a username to either their personal space (if they have one and the viewer has permission) or their user profile.This path converter expects one parameter, the username with a leading '~'.
-
-
Constructor Summary
Constructors Constructor Description UserPathConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvertedPath
getPath(String path)
boolean
handles(String simplePath)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.servlet.simpledisplay.PathConverter
getPath, handles
-
-
-
-
Method Detail
-
handles
public boolean handles(String simplePath)
- Specified by:
handles
in interfacePathConverter
-
getPath
public ConvertedPath getPath(String path)
- Specified by:
getPath
in interfacePathConverter
- Returns:
- returns path to home page of personal space if it exists (and the current user has permission to view it), otherwise send to old profile page
-
-