public class ReadabilityInsightProvider extends BaseInsightProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
I18N_KEY_READABILITY_DETAIL |
static java.lang.String |
I18N_KEY_READABILITY_RESULT_DANGER |
static java.lang.String |
I18N_KEY_READABILITY_RESULT_SUCCESS |
static java.lang.String |
I18N_KEY_READABILITY_RESULT_WARN |
static java.lang.String |
I18N_KEY_READABILITY_STATS |
static java.lang.String |
READABILITY_CA_CONFIG |
Constructor and Description |
---|
ReadabilityInsightProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.sling.cms.insights.Insight |
doEvaluateRequest(org.apache.sling.cms.insights.InsightRequest request)
Method for the extending classes to implement, this can safely throw
exceptions and this will trigger a failure result to be returned.
|
java.lang.String |
getId() |
java.lang.String |
getTitle() |
boolean |
isEnabled(org.apache.sling.cms.insights.InsightRequest request) |
evaluateRequest
public static final java.lang.String I18N_KEY_READABILITY_DETAIL
public static final java.lang.String I18N_KEY_READABILITY_RESULT_DANGER
public static final java.lang.String I18N_KEY_READABILITY_RESULT_SUCCESS
public static final java.lang.String I18N_KEY_READABILITY_RESULT_WARN
public static final java.lang.String I18N_KEY_READABILITY_STATS
public static final java.lang.String READABILITY_CA_CONFIG
protected org.apache.sling.cms.insights.Insight doEvaluateRequest(org.apache.sling.cms.insights.InsightRequest request) throws java.lang.Exception
doEvaluateRequest
in class BaseInsightProvider
request
- the request to evaluatejava.lang.Exception
- any exceptionpublic java.lang.String getId()
public java.lang.String getTitle()
public boolean isEnabled(org.apache.sling.cms.insights.InsightRequest request)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.