Class TargetGroupSegmentsProvider

java.lang.Object
com.hybris.ymkt.personalization.segment.TargetGroupSegmentsProvider
All Implemented Interfaces:
de.hybris.platform.personalizationintegration.segment.CxProvider, de.hybris.platform.personalizationintegration.segment.UserSegmentsProvider

public class TargetGroupSegmentsProvider extends Object implements de.hybris.platform.personalizationintegration.segment.UserSegmentsProvider
This class will create segments in the personalization of SmartEdit by retrieving target group values from yMKT. This feature will only work for Logged In users that have the personalization consent approved. COOKIE_ID users is excluded here, because the API does not support "Shareable" origin IDs
  • Field Details

    • segmentPrefix

      protected String segmentPrefix
    • targetGroupEnabled

      protected boolean targetGroupEnabled
    • targetGroupService

      protected TargetGroupService targetGroupService
    • userContextService

      protected UserContextService userContextService
    • userService

      protected de.hybris.platform.servicelayer.user.UserService userService
  • Constructor Details

    • TargetGroupSegmentsProvider

      public TargetGroupSegmentsProvider()
  • Method Details

    • convert

      protected SegmentMappingData convert(String targetGroupId)
    • getUserSegments

      public List<SegmentMappingData> getUserSegments(UserModel user)
      Specified by:
      getUserSegments in interface de.hybris.platform.personalizationintegration.segment.UserSegmentsProvider
    • setSegmentPrefix

      public void setSegmentPrefix(String segmentPrefix)
    • setTargetGroupEnabled

      public void setTargetGroupEnabled(boolean targetGroupEnabled)
    • setTargetGroupService

      public void setTargetGroupService(TargetGroupService targetGroupService)
    • setUserContextService

      public void setUserContextService(UserContextService userContextService)
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)