| java.lang.Object |
| ↳ |
com.atlassian.confluence.servlet.simpledisplay.UserPathConverter |
Class Overview
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 '~'.
Fields
Public Constructors
public
UserPathConverter
()
Public Methods
Parameters
| simplePath
| the path relative to the servlet mapping |
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
public
boolean
handles
(String simplePath)
Return true from this method if your path converter can convert the specified path.
By default, the SimpleDisplayServlet will be mapped to '/display' which will be stripped off
the path before being passed to this method.
The first converter that returns true for a path will be used to perform the conversion.
Parameters
| simplePath
| the path relative to the servlet mapping |
Returns
- true if your path converter can handle this path