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 Details

    • UserPathConverter

      public UserPathConverter()
  • Method Details

    • handles

      public boolean handles(String simplePath)
      Specified by:
      handles in interface PathConverter
    • getPath

      public ConvertedPath getPath(String path)
      Specified by:
      getPath in interface PathConverter
      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