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
ConstructorsModifierConstructorDescriptionprotectedPagePathConverter(PathConverterManager pathConverterManager, PageManagerInternal pageManager, PermissionManager permissionManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns aConvertedPathbased on the passed in path and query string.booleanMethods inherited from class com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
currentUserCanEdit, destroy, hasPagePermission, isNotDraft, isSafeToRedirectAndRevealPageId, toQueryParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods 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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
handles
- Specified by:
handlesin interfacePathConverter
-
getPath
Description copied from interface:PathConverterReturns aConvertedPathbased on the passed in path and query string.- Specified by:
getPathin interfacePathConverter- Parameters:
path- the path relative to the servlet mappingqueryString- the query string- Returns:
- a
ConvertedPathrepresenting the path conversion
-