Package de.espirit.firstspirit.agency
Interface PreviewUrlAgent.ContentProducerPreviewUrlBuilder
- All Superinterfaces:
PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.ContentProducerPreviewUrlBuilder>
- Enclosing interface:
- PreviewUrlAgent
public static interface PreviewUrlAgent.ContentProducerPreviewUrlBuilder
extends PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.ContentProducerPreviewUrlBuilder>
- Since:
- 5.2.190105
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getUrl
(@NotNull ContentProducer contentProducer) @NotNull PreviewUrl
getUrlObject
(@NotNull ContentProducer contentProducer) pageParams
(PageParams pageParams) Sets thePageParams
to use for rendering the preview url.templateSet
(TemplateSet templateSet) Selects theTemplateSet
to use for rendering the preview url.Methods inherited from interface de.espirit.firstspirit.agency.PreviewUrlAgent.PreviewUrlBuilder
forWebedit, fullQualified, language
-
Method Details
-
templateSet
@Contract("_ -> this") @NotNull @NotNull PreviewUrlAgent.ContentProducerPreviewUrlBuilder templateSet(TemplateSet templateSet) Selects theTemplateSet
to use for rendering the preview url. If noTemplateSet
is set, the builder will fall back to the first available (and possibly only) templateSet of the project.- Parameters:
templateSet
- The template set to use when rendering the preview url.- Returns:
- The builder itself.
- Since:
- 5.2.190105
-
pageParams
@Contract("_ -> this") @NotNull @NotNull PreviewUrlAgent.ContentProducerPreviewUrlBuilder pageParams(PageParams pageParams) Sets thePageParams
to use for rendering the preview url. This should be used to address specific sub pages of a content projection page.- Parameters:
pageParams
- The page params object to use when rendering the preview url.- Returns:
- The builder itself.
- Since:
- 5.2.190300
-
getUrl
- Parameters:
contentProducer
- the pageRef, page or documentGroup to return a url for.- Returns:
- The url as String.
- Since:
- 5.2.190105
-
getUrlObject
- Parameters:
contentProducer
- The pageRef, page or documentGroup to return a url for.- Returns:
- The preview url object
- Since:
- 5.2.190105
-