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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all theConsumedDestinationModelwithDestinationTargetModelid qualtricsDestinationTarget , formats it to fit into qualtrics javascript template.protected StringgetQualtricsSiteInterceptContentId(String projectId) protected StringgetQualtricsSiteInterceptProjectId(String projectId) protected StringgetQualtricsSiteInterceptProjectUrl(String projectId, String brandId) booleanCheck if the logged in customer has given consent for sending Qualtrics feedback surveys.voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) voidsetCommerceConsentService(de.hybris.platform.commerceservices.consent.CommerceConsentService commerceConsentService) voidsetDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
DefaultSapQualtricsConfigurationFacade
public DefaultSapQualtricsConfigurationFacade()
-
-
Method Details
-
getQualtricsConfiguration
Get all theConsumedDestinationModelwithDestinationTargetModelid qualtricsDestinationTarget , formats it to fit into qualtrics javascript template. Reads all theConsumedDestinationwithDestinationTargetid 'qualtricsDestinationTarget'. Multiple such configurations are can be handled. If projectId or brandId is missing, the method throwsIllegalArgumentException.- Specified by:
getQualtricsConfigurationin interfaceSapQualtricsConfigurationFacade- 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:
isLoggedInCustomerConsentGivenin interfaceSapQualtricsConfigurationFacade- Returns:
- logged in customer consent status
-
getQualtricsSiteInterceptContentId
- Parameters:
projectId- Project ID- Returns:
- Qualtrics ContentID for the page
-
getQualtricsSiteInterceptProjectId
- Parameters:
projectId- Project ID- Returns:
- Formatted project ID
-
getQualtricsSiteInterceptProjectUrl
- Parameters:
projectId- project IDbrandId- 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
-