Class ConsumptionLayerUserSegmentsProvider
- java.lang.Object
-
- de.hybris.platform.personalizationyprofile.segment.ConsumptionLayerUserSegmentsProvider
-
- All Implemented Interfaces:
CxProvider,UserSegmentsProvider
public class ConsumptionLayerUserSegmentsProvider extends java.lang.Object implements UserSegmentsProvider
Implementation of {link UserSegmentsProvider} which read user segment information from yprofile consumption layer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringFIELD_SEPARATOR-
Fields inherited from interface de.hybris.platform.personalizationintegration.segment.CxProvider
DEFAULT_PROVIDER_ID
-
-
Constructor Summary
Constructors Constructor Description ConsumptionLayerUserSegmentsProvider()
-
Method Summary
-
-
-
Field Detail
-
FIELD_SEPARATOR
protected static final java.lang.String FIELD_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserSegments
public java.util.List<SegmentMappingData> getUserSegments(UserModel user)
Description copied from interface:UserSegmentsProviderMethod returning segments assigned to user- Specified by:
getUserSegmentsin interfaceUserSegmentsProvider- Parameters:
user- User model- Returns:
- segments assigned to user or null if segments should not be updated
-
getProviderId
public java.lang.String getProviderId()
Description copied from interface:CxProviderMethod returns provider identifier- Specified by:
getProviderIdin interfaceCxProvider- Returns:
- - provider identifier
-
normalizeAffinity
protected void normalizeAffinity(java.util.List<SegmentMappingData> mappingData)
-
getMappers
protected java.util.List<CxConsumptionLayerProfileMapper> getMappers()
-
setMappers
@Autowired(required=false) public void setMappers(java.util.List<CxConsumptionLayerProfileMapper> mappers)
-
getProfileFields
protected java.lang.String getProfileFields()
-
createProfileFields
protected java.lang.String createProfileFields()
-
resetFields
public void resetFields()
-
getCxProfileServiceClient
protected CxProfileServiceClient getCxProfileServiceClient()
-
setCxProfileServiceClient
public void setCxProfileServiceClient(CxProfileServiceClient cxProfileServiceClient)
-
getCxProfileIdentifierStrategy
protected CxProfileIdentifierStrategy getCxProfileIdentifierStrategy()
-
setCxProfileIdentifierStrategy
public void setCxProfileIdentifierStrategy(CxProfileIdentifierStrategy cxProfileIdentifierStrategy)
-
getCxIntegrationMappingService
protected CxIntegrationMappingService getCxIntegrationMappingService()
-
setCxIntegrationMappingService
public void setCxIntegrationMappingService(CxIntegrationMappingService cxIntegrationMappingService)
-
-