AnsweredAssumed Answered

get and ignore fm:discussion association in alfresco

Question asked by ayushi.agrahari on Sep 13, 2017
Latest reply on Sep 13, 2017 by kalpesh.c2

I am trying to count the number of files present in a folder.It is working fine but the only problem that I am facing is that it also takes a comment as a file.So,the number of files increases on adding a comment and so it gives the wrong count of the number of files.

My java class for this is as follows-:

NodeSizeWebScript.java - Pastebin.com 

Further,what I have noticed is that a child association called fm:discussion of the parent folder is created that holds all the comments.So,plz tell me how to actually catch and ignore that child association of the parent folder in java

Outcomes