Class sap.ushell.services.EndUserFeedbackModule: sap/ushell/services/EndUserFeedback


The Unified Shell's end user feedback service


Since: 1.25.1.
Constructor Summary
new sap.ushell.services.EndUserFeedback(oAdapter, oContainerInterface, sParameters, oServiceConfiguration)This method MUST be called by the Unified Shell's container only, others MUST call sap.ushell.Container.getService("EndUserFeedback").
Method Summary
getLegalText()Receives the legal text for the feedback dialog box
isEnabled()Checks if the service is enabled.
sendFeedback(JSON)Sends a feedback.
Constructor Detail
new sap.ushell.services.EndUserFeedback(oAdapter, oContainerInterface, sParameters, oServiceConfiguration)
This method MUST be called by the Unified Shell's container only, others MUST call sap.ushell.Container.getService("EndUserFeedback"). Constructs a new instance of the end user feedback service.
Parameters:
{object}oAdapter the service adapter for the end user feedback service, as already provided by the container
{object}oContainerInterface the interface provided by the container
{string}sParameters the runtime configuration specified in the sap.ushell.Container.getService() call (not evaluated yet)
{object}oServiceConfiguration the service configuration defined in the bootstrap configuration; the boolean property enabled controls the service enablement

This service is enabled by default. It can be disabled explicitly in the bootstrap configuration of the start page:

window["sap-ushell-config"] = {
    services: {
        EndUserFeedback: {
            config: {
                enabled: true
            }
        }
    }
}

Platform implementations can also enable it dynamically by modification of the
bootstrap configuration during boot time.
													
See:
sap.ushell.services.Container#getService
Method Detail
getLegalText()
Receives the legal text for the feedback dialog box
Parameters:
Since:
1.25.1
isEnabled() : Object
Checks if the service is enabled.

The service enablement depends on the configuration in the back-end system and the bootstrap configuration.

Since:
1.25.1
Returns:
{Object} Promise, done = if the service is enabled;
sendFeedback(JSON)
Sends a feedback. Forwards the given data (JSON object) to the associated adapter.
Parameters:
{JSON} JSON object containing the input fields required for the end user feedback.
Since:
1.25.1