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 Details

    • SiteStatisticsDAO

      public SiteStatisticsDAO()
  • Method Details

    • countPages

      public int countPages()
      Specified by:
      countPages in interface ISiteStatisticsDAO
      Returns:
      the number of pages of the site
    • countPagesRestrictedToRole

      public int countPagesRestrictedToRole()
      Specified by:
      countPagesRestrictedToRole in interface ISiteStatisticsDAO
      Returns:
      the number of pages restricted to a role
    • countPagesUpdatedSince

      public int countPagesUpdatedSince(Timestamp dateSince)
      Specified by:
      countPagesUpdatedSince in interface ISiteStatisticsDAO
      Parameters:
      dateSince - the date from which the changes count
      Returns:
      the number of pages changed since that date
    • countPortlets

      public int countPortlets()
      Specified by:
      countPortlets in interface ISiteStatisticsDAO
      Returns:
      the number of portlets of the site
    • countPortletsWithStatus

      public int countPortletsWithStatus(int nStatus)
      Specified by:
      countPortletsWithStatus in interface ISiteStatisticsDAO
      Parameters:
      nStatus - the status, Portlet.STATUS_PUBLISHED or Portlet.STATUS_UNPUBLISHED
      Returns:
      the number of portlets of that status