Class PageViewActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.entityexplorer.PageViewActionServiceImpl
- All Implemented Interfaces:
PageViewActionService
Default implementation of
PageViewActionService
.-
Constructor Summary
ConstructorDescriptionPageViewActionServiceImpl
(Context context, ContentTreeService contentTreeService) -
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.
-
Constructor Details
-
PageViewActionServiceImpl
-
-
Method Details
-
getPreviewUrl
Description copied from interface:PageViewActionService
Returns the URL of the unpublished preview of thePage
with the given key.- Specified by:
getPreviewUrl
in interfacePageViewActionService
- Parameters:
key
- the stringifiedPrimaryKey
of thePage
entity- Returns:
- the stringified URL of the page live view
- Throws:
UnresolvableUriException
ContentException
-
getPublishedUrl
Description copied from interface:PageViewActionService
Returns the URL of the published version of thePage
with the given key.- Specified by:
getPublishedUrl
in interfacePageViewActionService
- Parameters:
key
- the stringifiedPrimaryKey
of thePage entity
.- Returns:
- the stringified URL of the published page version
-
getPageKey
Description copied from interface:PageViewActionService
Returns thePrimaryKey
of the page reachable via the given URL.- Specified by:
getPageKey
in interfacePageViewActionService
- Parameters:
url
- the stringified URL of the page- Returns:
- the
PrimaryKey
of the page - Throws:
UnresolvableUriException
ContentException
-