com.cognifide.slice.cq.impl
Class PageChildrenProviderImpl

java.lang.Object
  extended by com.cognifide.slice.cq.impl.PageChildrenProviderImpl
All Implemented Interfaces:
PageChildrenProvider

public class PageChildrenProviderImpl
extends Object
implements PageChildrenProvider


Constructor Summary
PageChildrenProviderImpl(com.day.cq.wcm.api.PageManager pageManger, ExecutionContextStack currentExecutionContext)
           
 
Method Summary
 List<String> getChildPages(String path, com.day.cq.commons.Filter<com.day.cq.wcm.api.Page> filter, RecursiveMode recurseMode)
          Returns child pages of a page under specified path.
 List<String> getChildPages(String path, RecursiveMode recurseMode)
          Returns child pages of a page under specified path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageChildrenProviderImpl

@Inject
public PageChildrenProviderImpl(com.day.cq.wcm.api.PageManager pageManger,
                                       ExecutionContextStack currentExecutionContext)
Method Detail

getChildPages

public List<String> getChildPages(String path,
                                  com.day.cq.commons.Filter<com.day.cq.wcm.api.Page> filter,
                                  RecursiveMode recurseMode)
Description copied from interface: PageChildrenProvider
Returns child pages of a page under specified path. If a page under specified path doesn't exist, empty list is returned. The result list is filtered using specified filter.

Specified by:
getChildPages in interface PageChildrenProvider
Parameters:
path - page path
filter - filter to limit the result list
recurseMode - defines if pages should be read recursively or only direct children should be returned
Returns:
filtered list of child pages

getChildPages

public List<String> getChildPages(String path,
                                  RecursiveMode recurseMode)
Description copied from interface: PageChildrenProvider
Returns child pages of a page under specified path. If a page under specified path doesn't exist, empty list is returned.

Specified by:
getChildPages in interface PageChildrenProvider
Parameters:
path - page path
recurseMode - defines if pages should be read recursively or only direct children should be returned
Returns:
filtered list of child pages


Copyright © 2012-2013 Cognifide Limited. All Rights Reserved.