com.ibm.commerce.marketing.commands.elements
Class CustomerIsInSegmentTriggerTaskCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
-
- com.ibm.commerce.marketing.commands.elements.CustomerIsInSegmentTriggerTaskCmdImpl
-
- All Implemented Interfaces:
- CustomerIsInSegmentTriggerTaskCmd, MarketingCampaignElementTaskCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CustomerIsInSegmentTriggerTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements CustomerIsInSegmentTriggerTaskCmd
This command validates the Customer is in Segment Trigger at activity activation, and raises triggers for customers who are in the specified segment.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The name of this class.static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from class com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
DM_FROM_FORWARD_TRIGGERS_FOR_PROCESSING, EMLPROMO_NAME_PREFIX, GENERIC_USER_ID
-
Fields inherited from interface com.ibm.commerce.marketing.commands.elements.CustomerIsInSegmentTriggerTaskCmd
defaultCommandClassName
-
-
Constructor Summary
Constructors Constructor and Description CustomerIsInSegmentTriggerTaskCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
forwardTriggersForProcessing()
This method finds all the customers in the customer segments associated with this Trigger element, and forwards the trigger to the marketing services for each customer.void
processUsersBelongingToSegmentTriggerInStore(java.lang.Integer storeId, MemberGroupAccessBean customerSegment, java.lang.Integer elementId, java.lang.Integer activityId)
This method finds all the users in the specified customer segment, and forwards the trigger for each user.java.util.List
validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for the campaign element.-
Methods inherited from class com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
addEMarketingSpotDataBean, forwardTriggersForProcessing, getActivity, getDataFromTriggerParameters, getElementId, getElementParameters, getEMarketingSpotDataBeans, getExperimentTestElements, getMarketingContent, getMarketingSpotBehavior, getMemberId, getMemberId, getMemberIdsForPersonalizationId, getMemberIdsForPersonalizationId, getNewElementParameters, getPersonalizationId, getPreviewReport, getRegisteredMemberIdForPersonalizationId, getReturnValue, getStoreId, getTemporarySharedData, getTemporarySharedDataObject, getTriggerParameters, getTriggerParametersMap, getUserDataForElement, isReadyToCallExecute, performExecute, putTemporarySharedDataObject, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setOutputProperties, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters, validateCategory, validateCustomerSegment, validateDates, validateElementIsFirstInActivity, validateEmailTemplate, validateMarketingContent, validateMarketingContent, validateMarketingSpot, validateProduct, validatePromotion, validatePromotionCodes, validatePromotionCodesOrCoupon, validatePromotionCoupon, validatePromotionDisplay, validateSubscription, validateTimes
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmd
getEMarketingSpotDataBeans, getMarketingSpotBehavior, getNewElementParameters, getReturnValue, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
The name of this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomerIsInSegmentTriggerTaskCmdImpl
public CustomerIsInSegmentTriggerTaskCmdImpl()
-
-
Method Detail
-
validateParameters
public java.util.List validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for the campaign element. It checks for segmentIdList.- Specified by:
validateParameters
in interfaceMarketingCampaignElementTaskCmd
- Overrides:
validateParameters
in classMarketingCampaignElementTaskCmdImpl
- Parameters:
elementParameters
- The name value pairs for this element.- Returns:
- This method returns a list of
ApplicationError
exceptions that contains any validation errors. The list may be empty or benull
.
-
forwardTriggersForProcessing
public void forwardTriggersForProcessing()
This method finds all the customers in the customer segments associated with this Trigger element, and forwards the trigger to the marketing services for each customer. If the activity is defined in a Storefront Asset Store, then the customer are found in each extended site that refers to the Storefront Asset Store with a 'com.ibm.commerce.campaigns' relationship.- Specified by:
forwardTriggersForProcessing
in interfaceMarketingCampaignElementTaskCmd
- Overrides:
forwardTriggersForProcessing
in classMarketingCampaignElementTaskCmdImpl
-
processUsersBelongingToSegmentTriggerInStore
public void processUsersBelongingToSegmentTriggerInStore(java.lang.Integer storeId, MemberGroupAccessBean customerSegment, java.lang.Integer elementId, java.lang.Integer activityId) throws java.lang.Exception
This method finds all the users in the specified customer segment, and forwards the trigger for each user. This method uses theListUsersInStoreMemberGroupCmd
command.- Parameters:
storeId
- The identifier of the store in which to find the users in the segment.customerSegment
- The access bean for the customer segment.elementId
- The identifier of the trigger element.activityId
- The identifier of the marketing activity.- Throws:
java.lang.Exception
-
-