public class

UserPathConverter

extends Object
implements PathConverter
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 '~'.

Summary

Fields
protected VelocityEngineResolver resolver
Public Constructors
UserPathConverter()
Public Methods
ConvertedPath getPath(String simplePath)
Returns a ConvertedPath based on the passed in path.
boolean handles(String simplePath)
Return true from this method if your path converter can convert the specified path.
void setPermissionManager(PermissionManager permissionManager)
void setResolver(VelocityEngineResolver resolver)
void setSpaceManager(SpaceManager spaceManager)
void setUserAccessor(UserAccessor userAccessor)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.servlet.simpledisplay.PathConverter

Fields

protected VelocityEngineResolver resolver

Public Constructors

public UserPathConverter ()

Public Methods

public ConvertedPath getPath (String simplePath)

Returns a ConvertedPath based on the passed in path.

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

public void setPermissionManager (PermissionManager permissionManager)

public void setResolver (VelocityEngineResolver resolver)

public void setSpaceManager (SpaceManager spaceManager)

public void setUserAccessor (UserAccessor userAccessor)