Class TargetGroupService
java.lang.Object
com.hybris.ymkt.personalization.services.TargetGroupService
Service exposing target groups from API_MKT_TARGET_GROUP_SRV.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final org.apache.olingo.odata2.api.ep.EntityProviderReadPropertiesprotected ODataServiceprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected MKTTargetGroupcreateMKTTargetGroup(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) getCustomerTargetGroupIds(List<UUID> guids) Get all the Target Group objects containing more descriptive information from the GUIDs retrievedgetCustomerTargetGroups(List<UUID> guids) Get all the Target Group objects containing more descriptive information from the GUIDs retrievedprotected List<MKTTargetGroup>getCustomerTargetGroups(List<UUID> guids, int max) getCustomerTargetGroupsGUIDs(String contactId, String contactOrigin) Retrieves all the Target Group GUIDs from that specific interaction contact origin IdvoidsetODataService(ODataService oDataService)
-
Field Details
-
MAX
protected static final int MAX- See Also:
-
NO_READ_PROPERTIES
protected static final org.apache.olingo.odata2.api.ep.EntityProviderReadProperties NO_READ_PROPERTIES -
TARGET_GROUP_INTERACTION_CONTACTS_ENTITY_SET
- See Also:
-
TARGET_GROUP_UUID
- See Also:
-
TARGET_GROUPS_ENTITY_SET
- See Also:
-
guidIdCache
-
oDataService
-
-
Constructor Details
-
TargetGroupService
public TargetGroupService()
-
-
Method Details
-
partition
-
addTargetGroupToCache
-
createMKTTargetGroup
protected MKTTargetGroup createMKTTargetGroup(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) -
getCustomerTargetGroupIds
Get all the Target Group objects containing more descriptive information from the GUIDs retrieved- Parameters:
guids- Target Group GUIDs.- Returns:
ListofStringTarget Group IDs.- Throws:
IOException- if any error occurs.
-
getCustomerTargetGroups
Get all the Target Group objects containing more descriptive information from the GUIDs retrieved- Parameters:
guids- Target Group GUIDs.- Returns:
ListofMKTTargetGroup- Throws:
IOException- if any error occurs.
-
getCustomerTargetGroups
@Nonnull protected List<MKTTargetGroup> getCustomerTargetGroups(List<UUID> guids, int max) throws IOException - Throws:
IOException
-
getCustomerTargetGroupsGUIDs
@Nonnull public List<UUID> getCustomerTargetGroupsGUIDs(String contactId, String contactOrigin) throws IOException Retrieves all the Target Group GUIDs from that specific interaction contact origin Id- Parameters:
contactId- Contact Id value.contactOrigin- COOKIE_ID or SAP_HYBRIS_CONSUMER- Returns:
ListofMKTTargetGroup- Throws:
IOException- if any error occurs.
-
setODataService
-