Class UserPathConverter
java.lang.Object
com.atlassian.confluence.servlet.simpledisplay.UserPathConverter
- All Implemented Interfaces:
PathConverter
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class UserPathConverter
extends Object
implements PathConverter, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
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
-
-
Method Details
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
handles
- Specified by:
handles
in interfacePathConverter
-
getPath
- 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
-