Class ReadabilityInsightProvider
- java.lang.Object
-
- org.apache.sling.cms.core.insights.impl.BaseInsightProvider
-
- org.apache.sling.cms.core.insights.impl.providers.ReadabilityInsightProvider
-
- All Implemented Interfaces:
InsightProvider
public class ReadabilityInsightProvider extends org.apache.sling.cms.core.insights.impl.BaseInsightProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StringI18N_KEY_READABILITY_RESULT_DANGERstatic StringI18N_KEY_READABILITY_RESULT_SUCCESSstatic StringI18N_KEY_READABILITY_RESULT_WARNstatic StringI18N_KEY_READABILITY_STATSstatic StringREADABILITY_CA_CONFIG
-
Constructor Summary
Constructors Constructor Description ReadabilityInsightProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InsightdoEvaluateRequest(InsightRequest request)Method for the extending classes to implement, this can safely throw exceptions and this will trigger a failure result to be returned.StringgetId()StringgetTitle()booleanisEnabled(InsightRequest request)
-
-
-
Field Detail
-
I18N_KEY_READABILITY_RESULT_DANGER
public static final String I18N_KEY_READABILITY_RESULT_DANGER
- See Also:
- Constant Field Values
-
I18N_KEY_READABILITY_RESULT_SUCCESS
public static final String I18N_KEY_READABILITY_RESULT_SUCCESS
- See Also:
- Constant Field Values
-
I18N_KEY_READABILITY_RESULT_WARN
public static final String I18N_KEY_READABILITY_RESULT_WARN
- See Also:
- Constant Field Values
-
I18N_KEY_READABILITY_STATS
public static final String I18N_KEY_READABILITY_STATS
- See Also:
- Constant Field Values
-
READABILITY_CA_CONFIG
public static final String READABILITY_CA_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
doEvaluateRequest
protected Insight doEvaluateRequest(InsightRequest request) throws Exception
Method for the extending classes to implement, this can safely throw exceptions and this will trigger a failure result to be returned.- Specified by:
doEvaluateRequestin classorg.apache.sling.cms.core.insights.impl.BaseInsightProvider- Parameters:
request- the request to evaluate- Returns:
- the result of evaluation
- Throws:
Exception- any exception
-
getId
public String getId()
-
getTitle
public String getTitle()
-
isEnabled
public boolean isEnabled(InsightRequest request)
-
-