public class CreateSegmentFromXMLCmdImpl extends ControllerCommandImpl implements CreateSegmentFromXMLCmd
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
static java.lang.String |
GET_REG_USERS_QUERY
The Query executed to get the list of users present in the segment xml
|
static java.lang.String |
GUEST_USER_TYPE
The User Registration type
|
static java.lang.String |
STATUS_MSG_ALL_OK
Status message - All actions completed successfully
|
static java.lang.String |
STATUS_MSG_DUPLICATE_MEMBERS_WARNING
Status message - Duplicate members
|
static java.lang.String |
STATUS_MSG_EMPTY_MEMBER_LIST_ERROR
Status message - Empty member list failure
|
static java.lang.String |
STATUS_MSG_EMPTY_SEGMENT_WARNING
Status message - Warning, segment created but with no members
|
static java.lang.String |
STATUS_MSG_INPUT_VALIDATION_ERROR
Status message - Input parameters (logonId, encryptedPassword, XML) are
missing or invalid
|
static java.lang.String |
STATUS_MSG_LOGOFF_ERROR
Status message - Logoff failure
|
static java.lang.String |
STATUS_MSG_LOGON_ERROR
Status message - Logon failure
|
static java.lang.String |
STATUS_MSG_LOGON_HEX_WARNING
Status message - Warning, possible use of Hex password instead of Ascii
|
static java.lang.String |
STATUS_MSG_SEGMENT_CREATE_ERROR
Status message - Error creating segment(s)
|
static java.lang.String |
STATUS_MSG_SEGMENT_XML_ERROR
Status message - Segment XML markup is invalid
|
static java.lang.String |
STATUS_MSG_UNKNOWN_ERROR
Status message - Unknown error occurred
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateSegmentFromXMLCmdImpl()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGeneric()
Whether or not a generic user is permitted to execute this command
|
void |
performExecute()
Execute the command.
|
void |
setRequestProperties(TypedProperty reqParms)
Extracts and stores the relevant information from the web request.
|
void |
validateParameters()
Validates input parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String STATUS_MSG_ALL_OK
public static final java.lang.String STATUS_MSG_UNKNOWN_ERROR
public static final java.lang.String STATUS_MSG_LOGON_ERROR
public static final java.lang.String STATUS_MSG_SEGMENT_CREATE_ERROR
public static final java.lang.String STATUS_MSG_INPUT_VALIDATION_ERROR
public static final java.lang.String STATUS_MSG_SEGMENT_XML_ERROR
public static final java.lang.String STATUS_MSG_EMPTY_SEGMENT_WARNING
public static final java.lang.String STATUS_MSG_LOGOFF_ERROR
public static final java.lang.String STATUS_MSG_EMPTY_MEMBER_LIST_ERROR
public static final java.lang.String STATUS_MSG_LOGON_HEX_WARNING
public static final java.lang.String STATUS_MSG_DUPLICATE_MEMBERS_WARNING
public static final java.lang.String GUEST_USER_TYPE
public static final java.lang.String GET_REG_USERS_QUERY
public CreateSegmentFromXMLCmdImpl()
public void setRequestProperties(TypedProperty reqParms)
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqParms - This is an object that represents the request properties.ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)public void validateParameters()
The XML must be in the following format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<segmentation>
<chart name="Chart Title" store_id="1234">
<segment name="Segment 1" description="Description for Segment 1">
<members>1000, 1001, 1002</members>
</segment>
<segment name="Segment 2" description="Description for Segment 2">
<members>2000, 2001, 2002</members>
</segment>
</chart>
</segmentation>
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic boolean isGeneric()
isGeneric in interface ControllerCommandisGeneric in class ControllerCommandImpl