How to calculate Files,folder count in document library and datalist with size using java api?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 08:06 AM
I am trying to calculate the total folder and file count along with total fize size(folders+files in it) in a document library using java. Also, need to calculate the count of total records in a given datalist. I found a public api which returns the folder,file count with size of items in it but I am not able to hit the uri with java code due to authentication issue.
The URL is - /alfresco/service/slingshot/doclib/doclist/{type}/site/{site}/{container}/{path}
Is there any other way (e.g. a java public api) that can be used to address this kind of requirement.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 10:18 AM
I have not verified these, but there are some simliar posts in the hub related to doing this - maybe check them out:
https://hub.alfresco.com/t5/alfresco-content-services-forum/find-number-of-files-in-repository-folde...
and
