Package com.day.cq.wcm.msm.api
Interface Blueprint
-
- All Superinterfaces:
Adaptable
,Blueprint
,JSONItem
,LabeledResource
,Page
public interface Blueprint extends Blueprint, LabeledResource, Adaptable, JSONItem
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 theactions
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
canUnlock()
Deprecated.since 5.4, Page Blueprint is not required to be a PagePage
getAbsoluteParent(int level)
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.util.List<RolloutConfig>
getBlueprintRolloutConfig(java.lang.String relPath, boolean exact)
Access the Configuration defined for a Page that is part of this Blueprint.Resource
getContentResource()
Deprecated.since 5.4, access page insteadResource
getContentResource(java.lang.String relPath)
Deprecated.since 5.4, access page insteadint
getDepth()
Deprecated.since 5.4, access page insteadjava.lang.String
getIconPath()
Returns the path to an icon for this template ornull
if this template does not provide an icon.java.util.Locale
getLanguage(boolean ignoreContent)
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.util.Calendar
getLastModified()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.lang.String
getLastModifiedBy()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.lang.String
getLockOwner()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.lang.String
getNavigationTitle()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.util.Calendar
getOffTime()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.util.Calendar
getOnTime()
Deprecated.since 5.4, Page Blueprint is not required to be a PagePageManager
getPageManager()
Deprecated.since 5.4, access page insteadjava.lang.String
getPageTitle()
Deprecated.since 5.4, Page Blueprint is not required to be a PagePage
getParent()
Deprecated.since 5.4, Page Blueprint is not required to be a PagePage
getParent(int level)
Deprecated.since 5.4, Page Blueprint is not required to be a PageValueMap
getProperties()
Deprecated.since 5.4, Page Blueprint is not required to be a PageValueMap
getProperties(java.lang.String relPath)
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.lang.Long
getRanking()
Returns the ranking in the template list.java.lang.String
getSitePath()
Returns the site path of the blueprintTag[]
getTags()
Deprecated.since 5.4, Page Blueprint is not required to be a PageTemplate
getTemplate()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.lang.String
getThumbnailPath()
Returns the path to a thumbnail for this template ornull
if the template does not provide a thumbnail.java.lang.String
getVanityUrl()
Deprecated.since 5.4, Page Blueprint is not required to be a Pageboolean
hasChild(java.lang.String name)
Deprecated.since 5.4, access page insteadboolean
hasContent()
Deprecated.since 5.4, Page Blueprint is not required to be a Pageboolean
isHideInNav()
Deprecated.since 5.4, Page Blueprint is not required to be a Pageboolean
isLocked()
Deprecated.since 5.4, Page Blueprint is not required to be a Pageboolean
isValid()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagejava.util.Iterator<Page>
listChildren()
Deprecated.since 5.4, access page insteadjava.util.Iterator<Page>
listChildren(Filter<Page> filter)
Deprecated.since 5.4, access page insteadvoid
lock()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagelong
timeUntilValid()
Deprecated.since 5.4, Page Blueprint is not required to be a Pagevoid
unlock()
Deprecated.since 5.4, Page Blueprint is not required to be a Page-
Methods inherited from interface com.day.cq.commons.LabeledResource
getDescription
-
Methods inherited from interface com.day.cq.wcm.api.Page
getDeleted, getDeletedBy, getLanguage, getName, getPath, getTitle, listChildren
-
-
-
-
Method Detail
-
getIconPath
java.lang.String getIconPath()
Returns the path to an icon for this template ornull
if this template does not provide an icon.- Specified by:
getIconPath
in interfaceBlueprint
- Returns:
- the path to an icon or
null
-
getThumbnailPath
java.lang.String getThumbnailPath()
Returns the path to a thumbnail for this template ornull
if the template does not provide a thumbnail.- Specified by:
getThumbnailPath
in interfaceBlueprint
- Returns:
- the path to a thumbnail or
null
-
getRanking
java.lang.Long getRanking()
Returns the ranking in the template list.- Specified by:
getRanking
in interfaceBlueprint
- Returns:
- the ranking
-
getSitePath
java.lang.String getSitePath()
Returns the site path of the blueprint- Specified by:
getSitePath
in interfaceBlueprint
- Returns:
- path
-
getBlueprintRolloutConfig
java.util.List<RolloutConfig> getBlueprintRolloutConfig(java.lang.String relPath, boolean exact) throws WCMException
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
RolloutConfigs
for the given Path ornull
if none - Throws:
WCMException
- in case of error accessing the Blueprint- Since:
- 5.4
-
getPageManager
@Deprecated PageManager getPageManager()
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Convenience method that returns the manager of this page.- Specified by:
getPageManager
in interfacePage
- Returns:
- the page manager.
-
getContentResource
@Deprecated Resource getContentResource()
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Returns the resource of the page's content ornull
if the page has no content.- Specified by:
getContentResource
in interfacePage
- Returns:
- resource or
null
- See Also:
Page.hasContent()
-
getContentResource
@Deprecated Resource getContentResource(java.lang.String relPath)
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Returns the addressed resource of the page's content ornull
if the respective resource does not exist. IfrelPath
isnull
or an empty string the toplevel content resource is returned.- Specified by:
getContentResource
in interfacePage
- Parameters:
relPath
- relative path into content- Returns:
- resource or
null
-
listChildren
@Deprecated java.util.Iterator<Page> listChildren()
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Returns an iterator over all child resources that adapt to a page. other child resources are skipped.- Specified by:
listChildren
in interfacePage
- Returns:
- iterator of child pages
-
listChildren
@Deprecated java.util.Iterator<Page> listChildren(Filter<Page> filter)
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Returns 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:
listChildren
in interfacePage
- Parameters:
filter
- for iteration. may benull
- Returns:
- iterator of child pages
-
hasChild
@Deprecated boolean hasChild(java.lang.String name)
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Checks if the page has a child page namedname
-
getDepth
@Deprecated int getDepth()
Deprecated.since 5.4, access page insteadDescription copied from interface:Page
Returns the hierarchical depth of the page. The depth is the number ofPage.getParent()
calls would be needed to reach the root node.
-
getParent
@Deprecated Page getParent()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the parent page if it's resource adapts to page.
-
getParent
@Deprecated Page getParent(int level)
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the relative parent page. If no page exists at that level,null
is 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 Page getAbsoluteParent(int level)
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the absolute parent page. If no page exists at that level,null
is 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:
getAbsoluteParent
in interfacePage
- Parameters:
level
- hierarchy level of the parent page to retrieve- Returns:
- the respective parent page or
null
-
getProperties
@Deprecated ValueMap getProperties()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns a value map of the page content. If the page has no content an empty map is returned.- Specified by:
getProperties
in interfacePage
- Returns:
- a value map
- See Also:
Page.hasContent()
-
getProperties
@Deprecated ValueMap getProperties(java.lang.String relPath)
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns a value map of the address content of the page. If the addressed content does not exit,null
is returned. IfrelPath
isnull
or an empty string the toplevel content properties are returned.- Specified by:
getProperties
in interfacePage
- Parameters:
relPath
- relative path to the content- Returns:
- a property map or
null
-
getPageTitle
@Deprecated java.lang.String getPageTitle()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the page title of the page ornull
if none defined.- Specified by:
getPageTitle
in interfacePage
- Returns:
- page title
-
getNavigationTitle
@Deprecated java.lang.String getNavigationTitle()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the navigation title of the page ornull
if none defined. The navigation title is usually used when drawing navigation links.- Specified by:
getNavigationTitle
in interfacePage
- Returns:
- navigation title
-
isHideInNav
@Deprecated boolean isHideInNav()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the "hideInNav" flag orfalse
if non defined. The hideInNav flag is usually used to control if a page should be displayed in a navigation.- Specified by:
isHideInNav
in interfacePage
- Returns:
- hide in navigation flag
-
hasContent
@Deprecated boolean hasContent()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Checks if the page has content attached.- Specified by:
hasContent
in interfacePage
- Returns:
true
if the page has content;false
otherwise.
-
isValid
@Deprecated boolean isValid()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Checks 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 long timeUntilValid()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the number of milliseconds when this page gets valid. If the page is already valid,0
is 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_VALUE
is returned.- Specified by:
timeUntilValid
in interfacePage
- Returns:
- milliseconds until page gets valid.
-
getOnTime
@Deprecated java.util.Calendar getOnTime()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns theonTime
of the page. The onTime defines after which time it is valid. If no onTime is specifiednull
is returned and the onTime is not respected in thePage.isValid()
calculation.
-
getOffTime
@Deprecated java.util.Calendar getOffTime()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns theoffTime
of the page. The offTime defines before which time it is valid. If no offTime is specifiednull
is returned and the offTime is not respected in thePage.isValid()
calculation.- Specified by:
getOffTime
in interfacePage
- Returns:
- offTime or
null
-
getLastModifiedBy
@Deprecated java.lang.String getLastModifiedBy()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Return the user id that last modified the page ornull
if this information is not available or if the page has no content.- Specified by:
getLastModifiedBy
in interfacePage
- Returns:
- user id or
null
-
getLastModified
@Deprecated java.util.Calendar getLastModified()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the time when the page was last modified ornull
if this information is not available or if the page has no content.- Specified by:
getLastModified
in interfacePage
- Returns:
- last modification date or
null
-
getVanityUrl
@Deprecated java.lang.String getVanityUrl()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the vanity url.- Specified by:
getVanityUrl
in interfacePage
- Returns:
- The vanity url for this page or
null
-
getTags
@Deprecated Tag[] getTags()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the tags set on this page.
-
lock
@Deprecated void lock() throws WCMException
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Lock a page.- Specified by:
lock
in interfacePage
- Throws:
WCMException
- if an error during this operation occurs.
-
isLocked
@Deprecated boolean isLocked()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Checks if this page is locked.
-
getLockOwner
@Deprecated java.lang.String getLockOwner()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Return the lock owner of a page.- Specified by:
getLockOwner
in interfacePage
- Returns:
- lock owner;
null
if the page is not locked
-
canUnlock
@Deprecated boolean canUnlock()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Return a flag indicating whether the current user can unlock a page.
-
unlock
@Deprecated void unlock() throws WCMException
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Unlock a page.- Specified by:
unlock
in interfacePage
- Throws:
WCMException
- if an error during this operation occurs.
-
getTemplate
@Deprecated Template getTemplate()
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the template that was used to create this page ornull
if 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:
getTemplate
in interfacePage
- Returns:
- template or
null
-
getLanguage
@Deprecated java.util.Locale getLanguage(boolean ignoreContent)
Deprecated.since 5.4, Page Blueprint is not required to be a PageDescription copied from interface:Page
Returns the content language of the page. The language is usually defined on the page content via ajcr:language
property 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. IfignoreConent
istrue
, 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:
getLanguage
in interfacePage
- Parameters:
ignoreContent
- iftrue
only the path is used to determine the language.- Returns:
- the language of the content
-
-