childRefPage = directNodeService.getChildrenByName(siteRoot, ContentModel.ASSOC_CONTAINS, iterationPage); assocs.addAll(childRefPage); iterationPage.clear(); childRefPage = directNodeService.getChildrenByName(siteRoot, ContentModel.ASSOC_CONTAINS, iterationPage); assocs.addAll(childRefPage);
childRefPage = directNodeService.getChildrenByName(siteRoot, ContentModel.ASSOC_CONTAINS, iterationPage); assocs.addAll(childRefPage); iterationPage.clear(); childRefPage = directNodeService.getChildrenByName(siteRoot, ContentModel.ASSOC_CONTAINS, iterationPage); assocs.addAll(childRefPage);
@Override public List<ChildAssociationRef> doWork() throws Exception { return nodeService.getChildrenByName( archiveStoreRootNodeRef, ContentModel.ASSOC_ARCHIVE_USER_LINK, Collections.singletonList(AuthenticationUtil.getFullyAuthenticatedUser())); } };
public List<SiteInfo> listSites(Set<String> siteNames) { List<ChildAssociationRef> assocs = this.nodeService.getChildrenByName( getSiteRoot(), ContentModel.ASSOC_CONTAINS, siteNames); List<SiteInfo> result = new ArrayList<SiteInfo>(assocs.size()); for (ChildAssociationRef assoc : assocs) { // Ignore any node that is not a "site" type NodeRef site = assoc.getChildRef(); QName siteClassName = this.nodeService.getType(site); if (dictionaryService.isSubClass(siteClassName, SiteModel.TYPE_SITE)) { result.add(createSiteInfo(site)); } } return result; }
public List<SiteInfo> listSites(Set<String> siteNames) { List<ChildAssociationRef> assocs = this.nodeService.getChildrenByName( getSiteRoot(), ContentModel.ASSOC_CONTAINS, siteNames); List<SiteInfo> result = new ArrayList<SiteInfo>(assocs.size()); for (ChildAssociationRef assoc : assocs) { // Ignore any node that is not a "site" type NodeRef site = assoc.getChildRef(); QName siteClassName = this.nodeService.getType(site); if (dictionaryService.isSubClass(siteClassName, SiteModel.TYPE_SITE)) { result.add(createSiteInfo(site)); } } return result; }
List<ChildAssociationRef> childAssocRefs = nodeService.getChildrenByName(checkAbcRef, ASSOC_TYPE_QNAME_TEST_CONTAINS, namesList); assertEquals("Expected exactly 2 results", 2, childAssocRefs.size()); assertTrue("Expected result not included", childAssocRefs.contains(pathDefRef));