Package com.thepluginpeople.jemhod.api
Interface ICustomerSatisfactionManager
public interface ICustomerSatisfactionManager
This manager is used by the JSD Version 2 template to create the customer satisfaction form (the five stars section) at the bottom of a notification.
Each start will open a html page form where the user can supply a comment to its feedback rating.
- Author:
- Fernando Boucquez
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The highest rating JSD allows.static final int
The lowest rating JSD allows. -
Method Summary
Modifier and TypeMethodDescriptioncreateLink
(Integer rating) Creates a secure link to the feedback html page form.default int
default int
boolean
shouldShowCustomerSatisfactionQuestion
(com.fasterxml.jackson.databind.JsonNode context) Evaluates if the user can provide a feedback to the current issue.
-
Field Details
-
MIN_RATING
static final int MIN_RATINGThe lowest rating JSD allows.- See Also:
-
MAX_RATING
static final int MAX_RATINGThe highest rating JSD allows.- See Also:
-
-
Method Details
-
getMinRating
default int getMinRating()- Returns:
- The lowest rating JSD allows.
-
getMaxRating
default int getMaxRating()- Returns:
- The highest rating JSD allows.
-
shouldShowCustomerSatisfactionQuestion
boolean shouldShowCustomerSatisfactionQuestion(com.fasterxml.jackson.databind.JsonNode context) Evaluates if the user can provide a feedback to the current issue.The feedback can be set if * The customer satisfaction is enabled in the notification ampping AND * The issue''s project is service desk AND * The issue has a resolution set (aka issue is closed)
- Parameters:
context
- the event context- Returns:
- true if the html should show the satisfaction form.
-
createLink
Creates a secure link to the feedback html page form.Each link is customized for the current recipient and issue. This will make the body different between different recipients generating different emails and consuming more data/messages.
- Parameters:
rating
- the rating of the link- Returns:
- the https url to the feedback form.
-