Class HTMLValdiatorInsightProvider
- java.lang.Object
-
- org.apache.sling.cms.core.insights.impl.BaseInsightProvider
-
- org.apache.sling.cms.core.insights.impl.providers.HTMLValdiatorInsightProvider
-
- All Implemented Interfaces:
InsightProvider
public class HTMLValdiatorInsightProvider extends org.apache.sling.cms.core.insights.impl.BaseInsightProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HTMLValdiatorInsightProvider.Config
-
Field Summary
Fields Modifier and Type Field Description static String
I18N_KEY_HTMLVALIDATOR_DANGER
static String
I18N_KEY_HTMLVALIDATOR_SUCCESS
static String
I18N_KEY_HTMLVALIDATOR_WARN
-
Constructor Summary
Constructors Constructor Description HTMLValdiatorInsightProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(HTMLValdiatorInsightProvider.Config config)
protected Insight
doEvaluateRequest(InsightRequest request)
Method for the extending classes to implement, this can safely throw exceptions and this will trigger a failure result to be returned.String
getId()
String
getTitle()
boolean
isEnabled(InsightRequest request)
-
-
-
Field Detail
-
I18N_KEY_HTMLVALIDATOR_DANGER
public static final String I18N_KEY_HTMLVALIDATOR_DANGER
- See Also:
- Constant Field Values
-
I18N_KEY_HTMLVALIDATOR_WARN
public static final String I18N_KEY_HTMLVALIDATOR_WARN
- See Also:
- Constant Field Values
-
I18N_KEY_HTMLVALIDATOR_SUCCESS
public static final String I18N_KEY_HTMLVALIDATOR_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate(HTMLValdiatorInsightProvider.Config config)
-
doEvaluateRequest
protected Insight doEvaluateRequest(InsightRequest request) throws Exception
Description copied from class:org.apache.sling.cms.core.insights.impl.BaseInsightProvider
Method for the extending classes to implement, this can safely throw exceptions and this will trigger a failure result to be returned.- Specified by:
doEvaluateRequest
in 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)
-
-