Package org.ametys.web.site
Class SiteStatisticsGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
Provides some statistics about a
Site, such as :- Number of pages
- Number of live contents
- Number of orphaned contents
- Number of external contents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PageHelperThe page cache helper.protected ServiceExtensionPointThe service extension point.protected SiteManagerThe site manager.Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_saxSitemap(Sitemap sitemap) SAX statistics on a sitemap.voidgenerate()protected voidSAX statistics on a site.voidservice(ServiceManager sManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_siteManager
The site manager. -
_serviceExtPt
The service extension point. -
_pageCacheHelper
The page cache helper.
-
-
Constructor Details
-
SiteStatisticsGenerator
public SiteStatisticsGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableGenerator- Throws:
ServiceException
-
generate
-
saxSite
SAX statistics on a site.- Parameters:
site- the site to SAX statistics on.- Throws:
SAXException- if an error occurs while saxingProcessingException- if an error occurs
-
_saxSitemap
SAX statistics on a sitemap.- Parameters:
sitemap- the sitemap to SAX statistics on.- Throws:
SAXException- if an error occurs while saxing
-