public interface WebCmsPageService
WebCmsPage instances.| Modifier and Type | Method and Description |
|---|---|
Optional<WebCmsPage> |
findByCanonicalPath(String canonicalPath)
Find a single page by its unique canonical path.
|
Optional<WebCmsPage> |
findByCanonicalPathAndDomain(String canonicalPath,
WebCmsDomain domain)
Find a single page by its canonicalPath within the specified domain.
|
WebCmsPageType |
getPageType(String objectId)
Get the
WebCmsPageType with the specified object id. |
WebCmsPageType |
getPageTypeByKey(String typeKey)
Get the
WebCmsPageType with the specified type key, attached to the current domain. |
WebCmsPageType |
getPageTypeByKey(String typeKey,
WebCmsDomain domain)
Get the
WebCmsPageType with the specified type key, attached to the specified domain. |
Map<ModificationType,ModificationReport<PrepareModificationType,Object>> |
prepareForSaving(WebCmsPage page)
Prepares a
WebCmsPage for saving. |
WebCmsPageType getPageType(String objectId)
WebCmsPageType with the specified object id.objectId - the page type should havenullWebCmsPageType getPageTypeByKey(String typeKey)
WebCmsPageType with the specified type key, attached to the current domain.
Will take the multi-domain configuration into account when looking for the page type:
will also inspect no-domain if allowed for WebCmsPageType.typeKey - the page type should havenull if not foundWebCmsPageType getPageTypeByKey(String typeKey, WebCmsDomain domain)
WebCmsPageType with the specified type key, attached to the specified domain.
Will take the multi-domain configuration into account when looking for the page type:
will also inspect no-domain if allowed for WebCmsPageType.typeKey - the page type should havedomain - the page type is requested fornull if not foundOptional<WebCmsPage> findByCanonicalPath(String canonicalPath)
findByCanonicalPathAndDomain(java.lang.String, com.foreach.across.modules.webcms.domain.domain.WebCmsDomain) to retrieve the page.
The domain used in looking up the page will be retrieved from the WebCmsMultiDomainServicecanonicalPath - unique pathOptional<WebCmsPage> findByCanonicalPathAndDomain(String canonicalPath, WebCmsDomain domain)
canonicalPath - the unique path within the domaindomain - the domainMap<ModificationType,ModificationReport<PrepareModificationType,Object>> prepareForSaving(WebCmsPage page)
WebCmsPage for saving. This will check the different settings on the page,
and will generate the fields that need generating. The instance passed as a parameter will be updated
with the new values. If the new values are different, a ModificationReport will be returned
for the action taken.
Note: this method does not perform actual validation on the properties.page - to updateCopyright © 2020. All rights reserved.