Class 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 Detail

      • UserPathConverter

        public UserPathConverter()
    • Method Detail

      • 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