Package com.day.cq.wcm.msm.api
Interface Blueprint
- All Superinterfaces:
Adaptable,Blueprint,JSONItem,LabeledResource,Page
Defines the interface of a CQ MSM Blueprint.
A Blueprint is a Template for a Site, it defines the Pages that are part of
a Site and the
The support for the Page-Api is deprecated since 5.4.0 The Blueprint is no longer required to be a Page.
actions that should be applied upon a
rollout of a Page from the Site template.
Note:The support for the Page-Api is deprecated since 5.4.0 The Blueprint is no longer required to be a Page.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.since 5.4, Page Blueprint is not required to be a PagegetAbsoluteParent(int level) Deprecated.since 5.4, Page Blueprint is not required to be a PagegetBlueprintRolloutConfig(String relPath, boolean exact) Access the Configuration defined for a Page that is part of this Blueprint.Deprecated.since 5.4, access page insteadgetContentResource(String relPath) Deprecated.since 5.4, access page insteadintgetDepth()Deprecated.since 5.4, access page insteadReturns the path to an icon for this template ornullif this template does not provide an icon.getLanguage(boolean ignoreContent) Deprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, access page insteadDeprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PagegetParent(int level) Deprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PagegetProperties(String relPath) Deprecated.since 5.4, Page Blueprint is not required to be a PageReturns the ranking in the template list.Returns the site path of the blueprintTag[]getTags()Deprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, Page Blueprint is not required to be a PageReturns the path to a thumbnail for this template ornullif the template does not provide a thumbnail.Deprecated.since 5.4, Page Blueprint is not required to be a PagebooleanDeprecated.since 5.4, access page insteadbooleanDeprecated.since 5.4, Page Blueprint is not required to be a PagebooleanDeprecated.since 5.4, Page Blueprint is not required to be a PagebooleanisLocked()Deprecated.since 5.4, Page Blueprint is not required to be a PagebooleanisValid()Deprecated.since 5.4, Page Blueprint is not required to be a PageDeprecated.since 5.4, access page insteadlistChildren(Filter<Page> filter) Deprecated.since 5.4, access page insteadvoidlock()Deprecated.since 5.4, Page Blueprint is not required to be a PagelongDeprecated.since 5.4, Page Blueprint is not required to be a Pagevoidunlock()Deprecated.since 5.4, Page Blueprint is not required to be a PageMethods inherited from interface com.day.cq.commons.LabeledResource
getDescriptionMethods inherited from interface com.day.cq.wcm.api.Page
getDeleted, getDeletedBy, getLanguage, getName, getPath, getTitle, listChildren
-
Method Details
-
getIconPath
String getIconPath()Returns the path to an icon for this template ornullif this template does not provide an icon.- Specified by:
getIconPathin interfaceBlueprint- Returns:
- the path to an icon or
null
-
getThumbnailPath
String getThumbnailPath()Returns the path to a thumbnail for this template ornullif the template does not provide a thumbnail.- Specified by:
getThumbnailPathin interfaceBlueprint- Returns:
- the path to a thumbnail or
null
-
getRanking
Long getRanking()Returns the ranking in the template list.- Specified by:
getRankingin interfaceBlueprint- Returns:
- the ranking
-
getSitePath
String getSitePath()Returns the site path of the blueprint- Specified by:
getSitePathin interfaceBlueprint- Returns:
- path
-
getBlueprintRolloutConfig
Access the Configuration defined for a Page that is part of this Blueprint. Give the path path to the Page you are interested in relative to the Blueprintsroot. If you want to access the configuration for the root itself passnull. The method returns the RolloutConfig that is effective on the given path. If you only want to access the Config that is specified on the given Page set the exact argument to be true.
Note: It is not required that the path exists.- Parameters:
relPath- a Path relative to the Blueprint's Site root.exact- if false the configuration that is effective is returned, if true only the configuration configured at the path is returned- Returns:
- List of
RolloutConfigsfor the given Path ornullif none - Throws:
WCMException- in case of error accessing the Blueprint- Since:
- 5.4
-
getPageManager
Deprecated.since 5.4, access page insteadDescription copied from interface:PageConvenience method that returns the manager of this page.- Specified by:
getPageManagerin interfacePage- Returns:
- the page manager.
-
getContentResource
Deprecated.since 5.4, access page insteadDescription copied from interface:PageReturns the resource of the page's content ornullif the page has no content.- Specified by:
getContentResourcein interfacePage- Returns:
- resource or
null - See Also:
-
getContentResource
Deprecated.since 5.4, access page insteadDescription copied from interface:PageReturns the addressed resource of the page's content ornullif the respective resource does not exist. IfrelPathisnullor an empty string the toplevel content resource is returned.- Specified by:
getContentResourcein interfacePage- Parameters:
relPath- relative path into content- Returns:
- resource or
null
-
listChildren
Deprecated.since 5.4, access page insteadDescription copied from interface:PageReturns an iterator over all child resources that adapt to a page. other child resources are skipped.- Specified by:
listChildrenin interfacePage- Returns:
- iterator of child pages
-
listChildren
Deprecated.since 5.4, access page insteadDescription copied from interface:PageReturns an iterator over all child resources that adapt to a page and that are included in the given filter. other child resources are skipped.- Specified by:
listChildrenin interfacePage- Parameters:
filter- for iteration. may benull- Returns:
- iterator of child pages
-
hasChild
Deprecated.since 5.4, access page insteadDescription copied from interface:PageChecks if the page has a child page namedname -
getDepth
Deprecated.since 5.4, access page insteadDescription copied from interface:PageReturns the hierarchical depth of the page. The depth is the number ofPage.getParent()calls would be needed to reach the root node. -
getParent
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the parent page if it's resource adapts to page. -
getParent
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the relative parent page. If no page exists at that level,nullis returned. Example (this path == /content/geometrixx/en/products)| level | returned | | 0 | /content/geometrixx/en/products | | 1 | /content/geometrixx/en | | 2 | /content/geometrixx | | 3 | /content | | 4 | null |
-
getAbsoluteParent
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the absolute parent page. If no page exists at that level,nullis returned. Example (this path == /content/geometrixx/en/products)| level | returned | | 0 | /content | | 1 | /content/geometrixx | | 2 | /content/geometrixx/en | | 3 | /content/geometrixx/en/products | | 4 | null |
- Specified by:
getAbsoluteParentin interfacePage- Parameters:
level- hierarchy level of the parent page to retrieve- Returns:
- the respective parent page or
null
-
getProperties
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns a value map of the page content. If the page has no content an empty map is returned.- Specified by:
getPropertiesin interfacePage- Returns:
- a value map
- See Also:
-
getProperties
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns a value map of the address content of the page. If the addressed content does not exit,nullis returned. IfrelPathisnullor an empty string the toplevel content properties are returned.- Specified by:
getPropertiesin interfacePage- Parameters:
relPath- relative path to the content- Returns:
- a property map or
null
-
getPageTitle
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the page title of the page ornullif none defined.- Specified by:
getPageTitlein interfacePage- Returns:
- page title
-
hasContent
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageChecks if the page has content attached.- Specified by:
hasContentin interfacePage- Returns:
trueif the page has content;falseotherwise.
-
isValid
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageChecks if the page is valid. It is valid if it has content and if the on-/off time range spans the current time. -
timeUntilValid
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the number of milliseconds when this page gets valid. If the page is already valid,0is returned. If the page is out dated, i.e. the offTime is in the past, a negative number is returned. If this page has no contentLong.MIN_VALUEis returned.- Specified by:
timeUntilValidin interfacePage- Returns:
- milliseconds until page gets valid.
-
getOnTime
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns theonTimeof the page. The onTime defines after which time it is valid. If no onTime is specifiednullis returned and the onTime is not respected in thePage.isValid()calculation. -
getOffTime
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns theoffTimeof the page. The offTime defines before which time it is valid. If no offTime is specifiednullis returned and the offTime is not respected in thePage.isValid()calculation.- Specified by:
getOffTimein interfacePage- Returns:
- offTime or
null
-
getLastModifiedBy
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturn the user id that last modified the page ornullif this information is not available or if the page has no content.- Specified by:
getLastModifiedByin interfacePage- Returns:
- user id or
null
-
getLastModified
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the time when the page was last modified ornullif this information is not available or if the page has no content.- Specified by:
getLastModifiedin interfacePage- Returns:
- last modification date or
null
-
getVanityUrl
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the vanity url.- Specified by:
getVanityUrlin interfacePage- Returns:
- The vanity url for this page or
null
-
getTags
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the tags set on this page. -
lock
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageLock a page.- Specified by:
lockin interfacePage- Throws:
WCMException- if an error during this operation occurs.
-
isLocked
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageChecks if this page is locked. -
getLockOwner
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturn the lock owner of a page.- Specified by:
getLockOwnerin interfacePage- Returns:
- lock owner;
nullif the page is not locked
-
canUnlock
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturn a flag indicating whether the current user can unlock a page. -
unlock
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageUnlock a page.- Specified by:
unlockin interfacePage- Throws:
WCMException- if an error during this operation occurs.
-
getTemplate
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the template that was used to create this page ornullif none defined or the current user does not have read access to the template resource specified by the path in the page's template property. This is the case on publish instances using default ACL configuration (anonymous cannot read templates).- Specified by:
getTemplatein interfacePage- Returns:
- template or
null
-
getLanguage
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:PageReturns the content language of the page. The language is usually defined on the page content via ajcr:languageproperty containing the iso codes for language and country. if the property is not defined on this page all ancestors are search for such an property. If no language is defined at all, the path is examined if it contains a iso label. If no language can be found at all, the systems default locale is returned. IfignoreConentistrue, only the names of the path is used to determine the language. Note that this has nothing to do with i18n of the cq5 itself.- Specified by:
getLanguagein interfacePage- Parameters:
ignoreContent- iftrueonly the path is used to determine the language.- Returns:
- the language of the content
-