public class CampaignCollateralCreateCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements CampaignCollateralCreateCmd
CampaignCollateralCreateCmd
interface to provide the
task command that creates an ad copy. Different implementations of this interface can be
provided for different stores.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, Name
Constructor and Description |
---|
CampaignCollateralCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getCollateralId()
Returns the collateral ID of the newly created ad copy.
|
boolean |
isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void |
performExecute()
Performs the execution of the command.
|
void |
setCollateralDescriptionField1(java.lang.String field1)
Sets the collateral description field 1.
|
void |
setCollateralDescriptionField2(java.lang.String field2)
Sets the collateral description field 2.
|
void |
setCollateralField1(java.lang.String field1)
Sets the collateral custom field 1.
|
void |
setCollateralField2(java.lang.String field2)
Sets the collateral custom field 2.
|
void |
setCollateralLocation(java.lang.String location)
Sets the collateral image file location.
|
void |
setCollateralMarketingText(java.lang.String text)
Sets the collateral marketing text.
|
void |
setCollateralName(java.lang.String name)
Sets the name of the collateral.
|
void |
setCollateralType(java.lang.Integer type)
Sets the image type of the collateral.
|
void |
setCollateralUrl(java.lang.String url)
Sets the URL of the collateral.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public java.lang.Integer getCollateralId()
getCollateralId
in interface CampaignCollateralCreateCmd
public boolean isReadyToCallExecute()
false
if the collateral ID is null.isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
true
if the command is ready to go.public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand#performExecute()
public void setCollateralDescriptionField1(java.lang.String field1)
setCollateralDescriptionField1
in interface CampaignCollateralCreateCmd
field1
- The description field 1 of the collateral.public void setCollateralDescriptionField2(java.lang.String field2)
setCollateralDescriptionField2
in interface CampaignCollateralCreateCmd
field2
- The description field 2 of the collateral.public void setCollateralField1(java.lang.String field1)
setCollateralField1
in interface CampaignCollateralCreateCmd
field1
- The custom field 1 of the collateral.public void setCollateralField2(java.lang.String field2)
setCollateralField2
in interface CampaignCollateralCreateCmd
field2
- The custom field 2 of the collateral.public void setCollateralLocation(java.lang.String location)
setCollateralLocation
in interface CampaignCollateralCreateCmd
location
- The image file location of the collateral.public void setCollateralMarketingText(java.lang.String text)
setCollateralMarketingText
in interface CampaignCollateralCreateCmd
text
- The marketing text of the collateral.public void setCollateralName(java.lang.String name)
setCollateralName
in interface CampaignCollateralCreateCmd
name
- The name of the collateral.public void setCollateralType(java.lang.Integer type)
setCollateralType
in interface CampaignCollateralCreateCmd
type
- The image type of the collateral.public void setCollateralUrl(java.lang.String url)
setCollateralUrl
in interface CampaignCollateralCreateCmd
url
- The URL of the collateral.