Class sap.ushell.services.SupportTicketModule: sap/ushell/services/SupportTicket


The Unified Shell's Support Ticket service


Since: 1.19.1.
Constructor Summary
new sap.ushell.services.SupportTicket(oAdapter, oContainerInterface, sParameters, oServiceConfiguration)This method MUST be called by the Unified Shell's container only, others MUST call sap.ushell.Container.getService("SupportTicket").
Method Summary
createTicket(oSupportTicketData)Creates a Support Ticket.
isEnabled()Checks if the service is enabled.
Constructor Detail
new sap.ushell.services.SupportTicket(oAdapter, oContainerInterface, sParameters, oServiceConfiguration)
This method MUST be called by the Unified Shell's container only, others MUST call sap.ushell.Container.getService("SupportTicket"). Constructs a new instance of the support ticket service.
Parameters:
{object}oAdapter the service adapter for the support ticket 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 disabled by default. It can be enabled explicitly in the bootstrap configuration of the start page:

window["sap-ushell-config"] = {
    services: {
        SupportTicket: {
            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
createTicket(oSupportTicketData) : object
Creates a Support Ticket. Forwards the given data (JSON object) to the associated adapter.
Parameters:
{JSON} oSupportTicketData JSON object containing the input fields required for the support ticket.
Since:
1.20.0
Returns:
{object} promise
isEnabled() : boolean
Checks if the service is enabled.

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

Since:
1.20.0
Returns:
{boolean} true if the service is enabled; false otherwise