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
public class GlobalStatisticsAction extends SiteStatisticsAction
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 Modifier and Type Field Description protected AmetysObjectResolver
_ametysResolver
The ametys object resolver.-
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
Constructors Constructor Description GlobalStatisticsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>
_contents2json()
private Map<String,Object>
_global2json()
protected Map<String,Object>
_resources2json()
Convert resources to JSONprotected Map<String,Object>
_sitemaps2json()
Convert sitemaps to JSONMap
act(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 Detail
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The ametys object resolver.
-
-
Constructor Detail
-
GlobalStatisticsAction
public GlobalStatisticsAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- 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
-
_global2json
private Map<String,Object> _global2json()
-
_contents2json
private Map<String,Object> _contents2json() throws RepositoryException
- Throws:
RepositoryException
-
_resources2json
protected Map<String,Object> _resources2json()
Convert resources to JSON- Returns:
- the resources in JSON
-
_sitemaps2json
protected Map<String,Object> _sitemaps2json()
Convert sitemaps to JSON- Returns:
- the sitemaps in JSON
-
-