Class BlogPathConverter
java.lang.Object
com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
com.atlassian.confluence.servlet.simpledisplay.BlogPathConverter
- All Implemented Interfaces:
PathConverter
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
A Path converter that converts friendly blog path urls to a viewpage or viewblogposts action
if the dark feature confluence.readable.url is disabled. If the dark feature is enabled, it
will redirect the legacy display blog path urls to a more user-friendly one
This converter expects the url to have between 3 and 5 path elements and interprets them as:
- Space Key
- Year
- Month
- Day (Optional)
- Title (Optional)
If the day is not specified, this converter returns a pth that will show all posts for that month If the title is not specified, this converter returns a path that will show all posts for that day.
-
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
BlogPathConverter
(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 com.atlassian.confluence.servlet.simpledisplay.PathConverter
getPath, handles
-
Constructor Details
-
BlogPathConverter
protected BlogPathConverter(PathConverterManager pathConverterManager, PageManagerInternal pageManager, PermissionManager permissionManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Details
-
afterPropertiesSet
- Throws:
Exception
-
handles
-
getPath
Description copied from interface:PathConverter
Returns aConvertedPath
based on the passed in path and query string.- Parameters:
path
- the path relative to the servlet mappingqueryString
- the query string- Returns:
- a
ConvertedPath
representing the path conversion
-