cancel
Showing results for 
Search instead for 
Did you mean: 

determine if node is space or document in Java?

esource
Champ on-the-rise
Champ on-the-rise
how can we determine if a node is space or document in Java? Java version of isDocument or isContainer?
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
Look at the code in ScriptNode.java which supplies those APIs?

Thanks,
Mike

gyro_gearless
Champ in-the-making
Champ in-the-making
For server-side code, FileFolderService#getFileInfo() and FileInfo#isFolder() are your friends 🙂

See http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/model/FileFolderServi... for for details

HTH
Gyro

esource
Champ on-the-rise
Champ on-the-rise
thank you for your posts.  Very helpful!