Interface PageViewActionService
- All Known Implementing Classes:
PageViewActionServiceImpl
public interface PageViewActionService
PageViewActionService provides functionality to load URLs based on a Page entity or it's key
and vice versa. Used for displaying the page's content during editing in various ways.-
Method Summary
Modifier and TypeMethodDescriptiongetPageKey(String url) Returns thePrimaryKeyof the page reachable via the given URL.getPreviewUrl(String key) Returns the URL of the unpublished preview of thePagewith the given key.getPublishedUrl(String key) Returns the URL of the published version of thePagewith the given key.
-
Method Details
-
getPreviewUrl
Returns the URL of the unpublished preview of thePagewith the given key.- Parameters:
key- the stringifiedPrimaryKeyof thePageentity- Returns:
- the stringified URL of the page live view
- Throws:
UnresolvableUriExceptionContentException
-
getPublishedUrl
Returns the URL of the published version of thePagewith the given key.- Parameters:
key- the stringifiedPrimaryKeyof thePage entity.- Returns:
- the stringified URL of the published page version
-
getPageKey
Returns thePrimaryKeyof the page reachable via the given URL.- Parameters:
url- the stringified URL of the page- Returns:
- the
PrimaryKeyof the page - Throws:
UnresolvableUriExceptionContentException
-