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 thePrimaryKey
of the page reachable via the given URL.getPreviewUrl
(String key) Returns the URL of the unpublished preview of thePage
with the given key.getPublishedUrl
(String key) Returns the URL of the published version of thePage
with the given key.
-
Method Details
-
getPreviewUrl
Returns the URL of the unpublished preview of thePage
with the given key.- Parameters:
key
- the stringifiedPrimaryKey
of thePage
entity- Returns:
- the stringified URL of the page live view
- Throws:
UnresolvableUriException
ContentException
-
getPublishedUrl
Returns the URL of the published version of thePage
with the given key.- Parameters:
key
- the stringifiedPrimaryKey
of thePage entity
.- Returns:
- the stringified URL of the published page version
-
getPageKey
Returns thePrimaryKey
of the page reachable via the given URL.- Parameters:
url
- the stringified URL of the page- Returns:
- the
PrimaryKey
of the page - Throws:
UnresolvableUriException
ContentException
-