Class SiteStatisticsDAO
java.lang.Object
fr.paris.lutece.portal.business.page.SiteStatisticsDAO
- All Implemented Interfaces:
ISiteStatisticsDAO
@ApplicationScoped
public final class SiteStatisticsDAO
extends Object
implements ISiteStatisticsDAO
The figures of the site, each one a count query
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintcountPagesUpdatedSince(Timestamp dateSince) intintcountPortletsWithStatus(int nStatus)
-
Constructor Details
-
SiteStatisticsDAO
public SiteStatisticsDAO()
-
-
Method Details
-
countPages
public int countPages()- Specified by:
countPagesin interfaceISiteStatisticsDAO- Returns:
- the number of pages of the site
-
countPagesRestrictedToRole
public int countPagesRestrictedToRole()- Specified by:
countPagesRestrictedToRolein interfaceISiteStatisticsDAO- Returns:
- the number of pages restricted to a role
-
countPagesUpdatedSince
- Specified by:
countPagesUpdatedSincein interfaceISiteStatisticsDAO- Parameters:
dateSince- the date from which the changes count- Returns:
- the number of pages changed since that date
-
countPortlets
public int countPortlets()- Specified by:
countPortletsin interfaceISiteStatisticsDAO- Returns:
- the number of portlets of the site
-
countPortletsWithStatus
public int countPortletsWithStatus(int nStatus) - Specified by:
countPortletsWithStatusin interfaceISiteStatisticsDAO- Parameters:
nStatus- the status, Portlet.STATUS_PUBLISHED or Portlet.STATUS_UNPUBLISHED- Returns:
- the number of portlets of that status
-