Class DefaultSapQualtricsConfigurationFacade

java.lang.Object
de.hybris.platform.sapqualtricsaddon.webfacades.impl.DefaultSapQualtricsConfigurationFacade
All Implemented Interfaces:
SapQualtricsConfigurationFacade

public class DefaultSapQualtricsConfigurationFacade extends Object implements SapQualtricsConfigurationFacade
Default implementation for SapQualtricsConfigurationFacade.
  • Constructor Details

    • DefaultSapQualtricsConfigurationFacade

      public DefaultSapQualtricsConfigurationFacade()
  • Method Details

    • getQualtricsConfiguration

      public List<SapQualtricsConfigurationData> getQualtricsConfiguration()
      Get all the ConsumedDestinationModel with DestinationTargetModel id qualtricsDestinationTarget , formats it to fit into qualtrics javascript template. Reads all the ConsumedDestination with DestinationTarget id 'qualtricsDestinationTarget'. Multiple such configurations are can be handled. If projectId or brandId is missing, the method throws IllegalArgumentException.
      Specified by:
      getQualtricsConfiguration in interface SapQualtricsConfigurationFacade
      Returns:
      List<SapQualtricsConfigurationData> list of qualtrics configurations with content ID, project ID and project URL
    • isLoggedInCustomerConsentGiven

      public boolean isLoggedInCustomerConsentGiven()
      Check if the logged in customer has given consent for sending Qualtrics feedback surveys. If there is no consent given by the customer or if the customer has withdrawn the consent, return false. If there is an active consent available for the logged in customer, return true.
      Specified by:
      isLoggedInCustomerConsentGiven in interface SapQualtricsConfigurationFacade
      Returns:
      logged in customer consent status
    • getQualtricsSiteInterceptContentId

      protected String getQualtricsSiteInterceptContentId(String projectId)
      Parameters:
      projectId - Project ID
      Returns:
      Qualtrics ContentID for the page
    • getQualtricsSiteInterceptProjectId

      protected String getQualtricsSiteInterceptProjectId(String projectId)
      Parameters:
      projectId - Project ID
      Returns:
      Formatted project ID
    • getQualtricsSiteInterceptProjectUrl

      protected String getQualtricsSiteInterceptProjectUrl(String projectId, String brandId)
      Parameters:
      projectId - project ID
      brandId - brand ID
      Returns:
      project URL for Qualtrrics App/Website Feedback project
    • setCommerceConsentService

      public void setCommerceConsentService(de.hybris.platform.commerceservices.consent.CommerceConsentService commerceConsentService)
      Parameters:
      commerceConsentService - the commerceConsentService to set
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
      Parameters:
      userService - the userService to set
    • setBaseSiteService

      public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)
      Parameters:
      baseSiteService - the baseSiteService to set
    • setDestinationService

      public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)
      Parameters:
      destinationService - the destinationService to set