Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<PageDecorator> |
Accessible.getAsPage(String propertyName)
Get a page instance from the value of the given property.
|
com.google.common.base.Optional<PageDecorator> |
Inheritable.getAsPageInherited(String propertyName)
Get a page from the value of the given property, using inheritance if the value does not exist on this component.
|
Modifier and Type | Method and Description |
---|---|
PageDecorator |
PageManagerDecorator.copy(com.day.cq.wcm.api.Page page,
String destination,
String beforeName,
boolean shallow,
boolean resolveConflict)
Copies the given page to the new destination and automatically saves the modifications
|
PageDecorator |
PageManagerDecorator.copy(com.day.cq.wcm.api.Page page,
String destination,
String beforeName,
boolean shallow,
boolean resolveConflict,
boolean autoSave)
Copies the given page to the new destination
|
PageDecorator |
PageManagerDecorator.create(String parentPath,
String pageName,
String template,
String title)
Creates a new page at the given path using the provided template as content template.
|
PageDecorator |
PageManagerDecorator.create(String parentPath,
String pageName,
String template,
String title,
boolean autoSave)
Creates a new page at the given path using the provided template as content template.
|
PageDecorator |
PageDecorator.getAbsoluteParent(int level)
Returns the absolute parent page.
|
PageDecorator |
PageManagerDecorator.getContainingPage(org.apache.sling.api.resource.Resource resource)
Returns the page that contains this resource.
|
PageDecorator |
PageManagerDecorator.getContainingPage(String path)
Returns the page that contains the resource at the given path.
|
PageDecorator |
PageManagerDecorator.getPage(com.day.cq.wcm.api.Page page)
Decorate the given page.
|
PageDecorator |
PageManagerDecorator.getPage(String path)
Convenience method that returns the page at the given path.
|
PageDecorator |
PageDecorator.getParent()
Returns the parent page if it's resource adapts to page.
|
PageDecorator |
PageDecorator.getParent(int level)
Returns the relative parent page.
|
PageDecorator |
PageManagerDecorator.move(com.day.cq.wcm.api.Page page,
String destination,
String beforeName,
boolean shallow,
boolean resolveConflict,
String[] adjustRefs)
Moves the given page to the new destination.
|
PageDecorator |
PageManagerDecorator.move(com.day.cq.wcm.api.Page page,
String destination,
String beforeName,
boolean shallow,
boolean resolveConflict,
String[] adjustRefs,
String[] publishRefs)
Moves the given page to the new destination.
|
PageDecorator |
PageManagerDecorator.restore(String path,
String revisionId)
Restore a revision of some page.
|
PageDecorator |
PageManagerDecorator.restoreTree(String path,
Calendar date)
Restore a tree.
|
Modifier and Type | Method and Description |
---|---|
List<PageDecorator> |
PageManagerDecorator.findPages(String rootPath,
Collection<String> tagIds,
boolean matchOne)
Find all descendant pages of the given path containing the specified tags.
|
List<PageDecorator> |
PageManagerDecorator.findPages(String rootPath,
com.google.common.base.Predicate<PageDecorator> predicate)
Find all descendant pages of the given path that match the predicate.
|
List<PageDecorator> |
PageManagerDecorator.findPages(String rootPath,
String templatePath)
Find all descendant pages of the given path matching the template path.
|
com.google.common.base.Optional<PageDecorator> |
PageDecorator.getChild(String name)
Get the child page of the current page by name.
|
List<PageDecorator> |
PageDecorator.getChildren()
Get the child pages of the current page.
|
List<PageDecorator> |
PageDecorator.getChildren(boolean displayableOnly)
Get the child pages of the current page, excluding children that are not
"displayable" (i.e.
|
List<PageDecorator> |
PageDecorator.getChildren(com.google.common.base.Predicate<PageDecorator> predicate)
Get the child pages of the current page filtered using the given
predicate.
|
Iterator<PageDecorator> |
PageDecorator.listChildPages()
List children of the current page.
|
Iterator<PageDecorator> |
PageDecorator.listChildPages(com.google.common.base.Predicate<PageDecorator> predicate)
List child pages of the current page filtered using the given predicate.
|
Iterator<PageDecorator> |
PageDecorator.listChildPages(com.google.common.base.Predicate<PageDecorator> predicate,
boolean deep)
List child pages of the current page filtered using the given predicate.
|
List<PageDecorator> |
PageManagerDecorator.search(Query query)
Search for pages using a query.
|
List<PageDecorator> |
PageManagerDecorator.search(Query query,
int limit)
Search for pages using a query with the given result limit.
|
Modifier and Type | Method and Description |
---|---|
List<PageDecorator> |
PageManagerDecorator.findPages(String rootPath,
com.google.common.base.Predicate<PageDecorator> predicate)
Find all descendant pages of the given path that match the predicate.
|
List<PageDecorator> |
PageDecorator.getChildren(com.google.common.base.Predicate<PageDecorator> predicate)
Get the child pages of the current page filtered using the given
predicate.
|
Iterator<PageDecorator> |
PageDecorator.listChildPages(com.google.common.base.Predicate<PageDecorator> predicate)
List child pages of the current page filtered using the given predicate.
|
Iterator<PageDecorator> |
PageDecorator.listChildPages(com.google.common.base.Predicate<PageDecorator> predicate,
boolean deep)
List child pages of the current page filtered using the given predicate.
|
Modifier and Type | Method and Description |
---|---|
PageDecorator |
ComponentServletRequest.getCurrentPage() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<PageDecorator> |
AbstractComponent.getAsPage(String propertyName) |
com.google.common.base.Optional<PageDecorator> |
AbstractComponent.getAsPageInherited(String propertyName) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<PageDecorator> |
DelegateComponentNode.getAsPage(String propertyName) |
com.google.common.base.Optional<PageDecorator> |
DelegateComponentNode.getAsPageInherited(String propertyName) |
Copyright © 2019 ICF Next. All rights reserved.