Package org.apache.sling.cms.insights
Interface InsightProvider
public interface InsightProvider
Interface for all of the Insight Provider services to implement.
-
Method Summary
Modifier and TypeMethodDescriptionevaluateRequest(InsightRequest request) Evaluate the request and return a response with the details.getId()Get the ID for a particular Insight Provider.getTitle()The title of the Insight ProviderbooleanisEnabled(InsightRequest request) Returns true if the provider is enabled for this request and false otherwise.
-
Method Details
-
evaluateRequest
Evaluate the request and return a response with the details.- Parameters:
request- the request to evaluate- Returns:
- the insights gathered
-
getId
String getId()Get the ID for a particular Insight Provider. This should be human readable and URL-safe.- Returns:
- the check ID
-
getTitle
String getTitle()The title of the Insight Provider- Returns:
- the user-displayed title
-
isEnabled
Returns true if the provider is enabled for this request and false otherwise.- Parameters:
request- the request to evaluate- Returns:
- true if enabled, false otherwise
-