08-28-2014 06:24 AM
List<ChildAssociationRef> filesFolderList = nodeService.getChildAssocs(folderNodeRef);
for (ChildAssociationRef file : filesFolderList) {
NodeRef childRef = file.getChildRef();
FileInfo fileInfo = fileFolderService.getFileInfo(childRef);
if(fileInfo != null && !nodeService.hasAspect(childRef, Prop.MY_ASPECT)
&& !nodeService.hasAspect(childRef, Prop.MY_SECOND_ASPECT)
&& !fileInfo.isFolder()
&& !childRef.equals(actualDocumentRef)){
//do something
}
}
08-29-2014 06:51 AM
08-29-2014 07:19 AM
08-29-2014 07:57 AM
08-29-2014 10:22 AM
Set<QName> types = new HashSet<QName>(1, 1.0f);
types.add(ContentModel.TYPE_CONTENT);
List<ChildAssociationRef> filesFolderList = nodeService.getChildAssocs(parentNodeRef, types);
09-01-2014 07:41 AM
09-01-2014 01:07 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.