public class StatsGet
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
static String |
DATE_TIME_SUFFIX |
Constructor and Description |
---|
StatsGet() |
Modifier and Type | Method and Description |
---|---|
void |
addFacet(String facetKey,
String facetType)
Allows you to add a facet to the list of available facets for Solr Statistics
|
protected String |
buildQuery(SiteInfo siteInfo,
String facetKey,
org.alfresco.util.Pair<org.joda.time.LocalDate,org.joda.time.LocalDate> startEndDate) |
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
static org.alfresco.util.Pair<org.joda.time.LocalDate,org.joda.time.LocalDate> |
getStartAndEndDates(String start,
String end)
Parses ISO8601 formatted Date Strings.
|
void |
setFacets(Map<String,String> facets) |
void |
setPostProcessors(Map<String,? extends org.alfresco.service.cmr.search.StatsProcessor> postProcessors) |
void |
setSiteService(SiteService siteService) |
void |
setStats(org.alfresco.service.cmr.search.StatsService stats) |
void |
setStatsField(String statsField) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public static final String DATE_TIME_SUFFIX
public void setStatsField(String statsField)
public void setStats(org.alfresco.service.cmr.search.StatsService stats)
public void setSiteService(SiteService siteService)
public void setPostProcessors(Map<String,? extends org.alfresco.service.cmr.search.StatsProcessor> postProcessors)
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected String buildQuery(SiteInfo siteInfo, String facetKey, org.alfresco.util.Pair<org.joda.time.LocalDate,org.joda.time.LocalDate> startEndDate)
public static org.alfresco.util.Pair<org.joda.time.LocalDate,org.joda.time.LocalDate> getStartAndEndDates(String start, String end)
start
- If start is null then defaults to 1 monthend
- If end is null then it defaults to now();Copyright © 2005–2017 Alfresco Software. All rights reserved.