java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.segmentation.SegmentSaveControllerCmdImpl
This class implements the SegmentSaveControllerCmd interface to provide the controller command that saves a segment. This controller command is mapped to the SegmentSave URL. Access beans used within the implementation: MemberGroupAccessBean, MemberAccessBean, MemberGroupUsageAccessBean, RecognizedMemberGroupAccessBean.
Field Summary | |
---|---|
protected
java.util.Vector |
_conditionsVector A vector of condition objects. |
protected
java.lang.String |
_error Contains the error condition detected by this controller command. |
protected
boolean |
_forceSave This flag indicates that the controller command should try to force the save. |
protected
java.lang.Long |
_ownerId Member group owner ID. |
protected
SegmentNotebookDataBean |
_segment An instance of SegmentNotebookDataBean. |
protected
java.lang.Long |
_segmentId Member group ID. |
protected
java.lang.String |
_segmentProfile An XML document describing the member group conditions. |
protected
java.lang.String |
_xmlFile XML document that describes the customer profile. |
static java.lang.String |
COPYRIGHT Copyright. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.segmentation. SegmentSaveControllerCmd |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.tools.command. ToolsControllerCommand |
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
SegmentSaveControllerCmdImpl() |
Method Summary | |
---|---|
protected
Condition |
constructAccountAmountSpentCondition() Constructs the account amount spent condition object. |
protected
Condition |
constructAccountBusinessCondition() Constructs the account business condition object. |
protected
Condition |
constructAccountCountriesCondition() Constructs the account countries condition object. |
protected
Condition |
constructAccountCreditCondition() Constructs the account credit condition object. |
protected
Condition |
constructAccountIndustryCondition() Constructs the account industry condition object. |
protected
Condition |
constructAccountLocationCondition() Constructs the account location condition object. |
protected
Condition |
constructAccountsCondition() Constructs the accounts condition object. |
protected
Condition |
constructAccountSizeCondition() Constructs the account size condition object. |
protected
Condition |
constructAgeCondition() Constructs the age condition object. |
protected
Condition |
constructAmountSpentCondition() Constructs the amount spent condition object. |
protected
Condition |
constructChildrenCondition() Constructs the children condition object. |
protected
Condition |
constructCityCondition() Constructs the city condition object. |
protected
Condition |
constructCompanyCondition() Constructs the company condition object. |
protected
void |
constructConditionsVector() Populates the vector in _conditionsVector with Condition objects that will be collected together in an AndListCondition object. |
protected
Condition |
constructCountryCondition() Constructs the country condition object. |
protected
Condition |
constructCurrencyCondition() Constructs the currency condition object. |
protected
Condition |
constructEMailCondition() Constructs the e-mail condition object. |
protected
Condition |
constructGenderCondition() Constructs the gender condition object. |
protected
Condition |
constructHouseholdCondition() Constructs the household condition object. |
protected
Condition |
constructIncomeCondition() Constructs the income condition object. |
protected
Condition |
constructInterestsCondition() Constructs the interests condition object. |
protected
Condition |
constructJobFunctionCondition() Constructs the job function condition object. |
protected
Condition |
constructLanguageCondition() Constructs the language condition object. |
protected
Condition |
constructLastPurchaseDateCondition() Constructs the last purchase date condition object. |
protected
Condition |
constructLastVisitDateCondition() Constructs the last visit date condition object. |
protected
Condition |
constructMaritalStatusCondition() Constructs the marital status condition object. |
protected
Condition |
constructOrdersCondition() Constructs the orders condition object. |
protected
Condition |
constructOrgCondition() Constructs the role condition object. |
protected
Condition |
constructPhoneCondition() Constructs the phone condition object. |
protected
Condition |
constructPreferredCommunicationCondition() Constructs the preferred communication condition object. |
protected
void |
constructProfile() Constructs the XML document that is saved in the CONDITIONS column of the MBRGRPCOND table. |
protected
Condition |
constructRegistrationChangeDateCondition() Constructs the registration change date condition object. |
protected
Condition |
constructRegistrationDateCondition() Constructs the registration date condition object. |
protected
Condition |
constructRegistrationStatusCondition() Constructs the registration status condition object. |
protected
Condition |
constructRoleCondition() Constructs the role condition object. |
protected
void |
constructSegmentNotebookDataBean() Constructs an instance of SegmentNotebookDataBean and stores it in _segment. |
protected
Condition |
constructSegmentsCondition() Constructs the segments condition object. |
protected
Condition |
constructStateCondition() Constructs the state condition object. |
protected
Condition |
constructStatusCondition() Constructs the role condition object. |
protected
Condition |
constructZipCodeCondition() Constructs the ZIP code condition object. |
AccessVector |
getResources() Gets the resources that are accessed by this controller command. |
void |
performExecute() The performExecute method is called when the marketing manager asks to save a customer segment. |
void |
validateParameters() Parses and validates the parameters passed to this controller command. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String _xmlFile
protected SegmentNotebookDataBean _segment
protected java.util.Vector _conditionsVector
protected java.lang.String _segmentProfile
protected boolean _forceSave
protected java.lang.String _error
protected java.lang.Long _segmentId
protected java.lang.Long _ownerId
Constructor Detail |
---|
public SegmentSaveControllerCmdImpl()
Method Detail |
---|
public void validateParameters() throws ECException
xml
- An XML document that describes the customer
profile.
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
protected void constructSegmentNotebookDataBean()
protected void constructProfile()
protected void constructConditionsVector()
protected Condition constructRegistrationStatusCondition()
protected Condition constructRegistrationDateCondition()
protected Condition constructRegistrationChangeDateCondition()
protected Condition constructGenderCondition()
protected Condition constructAgeCondition()
protected Condition constructIncomeCondition()
protected Condition constructMaritalStatusCondition()
protected Condition constructChildrenCondition()
protected Condition constructHouseholdCondition()
protected Condition constructCityCondition()
protected Condition constructStateCondition()
protected Condition constructCountryCondition()
protected Condition constructZipCodeCondition()
protected Condition constructPhoneCondition()
protected Condition constructEMailCondition()
protected Condition constructCurrencyCondition()
protected Condition constructLanguageCondition()
protected Condition constructAmountSpentCondition()
protected Condition constructOrdersCondition()
protected Condition constructLastPurchaseDateCondition()
protected Condition constructLastVisitDateCondition()
protected Condition constructCompanyCondition()
protected Condition constructInterestsCondition()
protected Condition constructSegmentsCondition()
protected Condition constructPreferredCommunicationCondition()
protected Condition constructJobFunctionCondition()
protected Condition constructAccountsCondition()
protected Condition constructAccountSizeCondition()
protected Condition constructAccountLocationCondition()
protected Condition constructAccountCountriesCondition()
protected Condition constructAccountIndustryCondition()
protected Condition constructAccountBusinessCondition()
protected Condition constructAccountCreditCondition()
protected Condition constructAccountAmountSpentCondition()
protected Condition constructRoleCondition()
protected Condition constructOrgCondition()
protected Condition constructStatusCondition()