Issue
- We are looking for a way to determine how many web contents and documents are on our Liferay platform.
Environment
- DXP 7.3 DXP 7.4
Resolution
- Liferay Support is limited in providing a groovy script for this scenario as it would fall under our Consulting Services. However, the following resources may be useful in retrieving the metrics required:
[Web Contents]
-
-
JournalArticleLocalServiceUtil#getArticles
Returns all the web content articles present in the system. -
JournalArticleLocalServiceUtil#getJournalArticlesCount
Returns the number of journal articles.
-
JournalArticleLocalServiceUtil#getArticles
[Documents and Media]
-
-
DLFileEntryLocalServiceUtil#getDLFileEntries
Returns a range of all the document library file entries. -
DLFileEntryLocalServiceUtil#getDLFileEntriesCount
Returns the number of document library file entries.
-
DLFileEntryLocalServiceUtil#getDLFileEntries