Class PagePathConverter
java.lang.Object
com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
com.atlassian.confluence.servlet.simpledisplay.PagePathConverter
- All Implemented Interfaces:
PathConverter
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class PagePathConverter
extends AbstractPathConverter
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
If the dark feature confluence.readable.url is enabled, redirect
/display/{space}/{page-slug} to /spaces/{space}/pages/{page-id}/{page-slug} which will eventually forwarded to viewpage.action
Otherwise, this path converter converts it into a viewpage action url. This converter expects exactly two fields:
- Space Key
- Page Title
-
Field Summary
Fields inherited from class com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
darkFeatureManager, NO_REDIRECT, pageManager, pathConverterManager, permissionManager, READABLE_URL_DARK_FEATURE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PagePathConverter
(PathConverterManager pathConverterManager, PageManagerInternal pageManager, PermissionManager permissionManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns aConvertedPath
based on the passed in path and query string.boolean
Methods inherited from class com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
currentUserCanEdit, destroy, hasPagePermission, isNotDraft, isSafeToRedirectAndRevealPageId, toQueryParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
Methods inherited from interface com.atlassian.confluence.servlet.simpledisplay.PathConverter
getPath, handles
-
Constructor Details
-
PagePathConverter
protected PagePathConverter(PathConverterManager pathConverterManager, PageManagerInternal pageManager, PermissionManager permissionManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
handles
- Specified by:
handles
in interfacePathConverter
-
getPath
Description copied from interface:PathConverter
Returns aConvertedPath
based on the passed in path and query string.- Specified by:
getPath
in interfacePathConverter
- Parameters:
path
- the path relative to the servlet mappingqueryString
- the query string- Returns:
- a
ConvertedPath
representing the path conversion
-