private DavResourceLocator[] getChildPageResourceLocators() { DavResourceLocator locator = getLocator(); Page page = getPage(); List<Page> childrenPages = permissionManager.getPermittedEntities(AuthenticatedUserThreadLocal.getUser(), Permission.VIEW, page.getChildren()); StringBuffer contentPathBuffer = new StringBuffer(); List<DavResourceLocator> pageResourceLocators = new ArrayList<DavResourceLocator>(); String parentResourcePath = getParentResourcePath(); LOGGER.debug("Found " + (null == childrenPages ? 0 : childrenPages.size()) + " child pages of " + page + "."); for (Page childPage : childrenPages) { DavResourceLocator pageResourceLocator; contentPathBuffer.setLength(0); contentPathBuffer.append(parentResourcePath) .append('/').append(page.getTitle()) .append('/').append(childPage.getTitle()); LOGGER.debug("Found child page of \"" + page + "\", \"" + childPage + "\""); pageResourceLocator = locator.getFactory().createResourceLocator( locator.getPrefix(), locator.getWorkspacePath(), contentPathBuffer.toString(), false ); LOGGER.debug("Created a " + pageResourceLocator.getClass() + " with the following details:\"\n" + "\nPrefix: " + locator.getPrefix() + "\nWorkspace path: " + locator.getWorkspacePath() + "\nResource path: " + contentPathBuffer.toString()); pageResourceLocators.add(pageResourceLocator); } return pageResourceLocators.toArray(new DavResourceLocator[pageResourceLocators.size()]); }
if (bookmarksPage != null) Set<ContentEntityObject> bookmarkPages = new HashSet<ContentEntityObject>(bookmarksPage.getChildren());
resourceStates.hideContentExports(thisPage); } else { List<Page> childPages = new ArrayList<Page>(thisPage.getChildren()); @SuppressWarnings("unchecked") List<Attachment> attachments = new ArrayList<Attachment>(thisPage.getLatestVersionsOfAttachments());
List<Page> childPageChildren = childPage.getChildren(); addChild(childPageChildren, newChildPage);
List<Page> childPages = getPage().getChildren(); addChild(childPages, newPage);