Package org.ametys.web.site
Class GlobalStatisticsAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.web.site.SiteStatisticsAction
org.ametys.web.site.GlobalStatisticsAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Provides some statistics about all the sites, such as:
- Number of sites
- Number of live contents
- Number of orphaned contents
- Number of external contents
-
Field Summary
Fields inherited from class org.ametys.web.site.SiteStatisticsAction
_pageCacheHelper, _serviceExtPt, _siteManager
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert resources to JSONConvert sitemaps to JSONact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.web.site.SiteStatisticsAction
_contents2json, _processContents, _processPages, _processResources, _resources2json, _sitemap2json
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_ametysResolver
The ametys object resolver.
-
-
Constructor Details
-
GlobalStatisticsAction
public GlobalStatisticsAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSiteStatisticsAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Specified by:
act
in interfaceAction
- Overrides:
act
in classSiteStatisticsAction
- Throws:
Exception
-
_resources2json
Convert resources to JSON- Returns:
- the resources in JSON
-
_sitemaps2json
Convert sitemaps to JSON- Returns:
- the sitemaps in JSON
-