Class PageViewActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.entityexplorer.PageViewActionServiceImpl
- All Implemented Interfaces:
PageViewActionService
Default implementation of
PageViewActionService.-
Constructor Summary
ConstructorsConstructorDescriptionPageViewActionServiceImpl(Context context, ContentTreeService contentTreeService) -
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.
-
Constructor Details
-
PageViewActionServiceImpl
-
-
Method Details
-
getPreviewUrl
Description copied from interface:PageViewActionServiceReturns the URL of the unpublished preview of thePagewith the given key.- Specified by:
getPreviewUrlin interfacePageViewActionService- Parameters:
key- the stringifiedPrimaryKeyof thePageentity- Returns:
- the stringified URL of the page live view
- Throws:
UnresolvableUriExceptionContentException
-
getPublishedUrl
Description copied from interface:PageViewActionServiceReturns the URL of the published version of thePagewith the given key.- Specified by:
getPublishedUrlin interfacePageViewActionService- Parameters:
key- the stringifiedPrimaryKeyof thePage entity.- Returns:
- the stringified URL of the published page version
-
getPageKey
Description copied from interface:PageViewActionServiceReturns thePrimaryKeyof the page reachable via the given URL.- Specified by:
getPageKeyin interfacePageViewActionService- Parameters:
url- the stringified URL of the page- Returns:
- the
PrimaryKeyof the page - Throws:
UnresolvableUriExceptionContentException
-