public class AttachmentAddCmdImpl extends ControllerCommandImpl implements AttachmentAddCmd
AttachmentAddCmd
is a URL and controller command that:
AttachmentTargetDescriptionDataBean
will be used to create multiple target descriptions.AttachmentAssetDataBean
will be used to create multiple assets and all the asset languages.AttachmentAssetDataBean
is set, then it will be written to the Managed File.AttachmentTargetDescriptionDataBean
AttachmentAssetDataBean
AttachmentTargetAccessBean
AttachmentTargetDescriptionAccessBean
AttachmentAssetAccessBean
AttachmentAssetLanguageAccessBean
AttachmentTargetDescriptionDataBean
AttachmentAssetDataBean
AddAttachmentTargetCmd
AddAttachmentAssetCmd
AttachmentHelper
AttachmentAssetHelper
AttachmentTargetHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
AttachmentAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
getAttachmentAssets()
Gets the vector of
AttachmentAssetDataBean |
java.util.Vector |
getAttachmentTargetDescriptions()
Gets the vector of
AttachmentTargetDescriptionDataBean |
java.lang.Long |
getAttachmentTargetId()
Gets the attachment target ID.
|
java.lang.String |
getAttachmentUsageId()
Gets the attachment usage ID of the attachment target.
|
java.lang.String[] |
getCatalogIdsForCacheInvalidations()
Gets the list of catalog IDs for cache invalidations.
|
java.lang.String[] |
getCatentryIdsForCacheInvalidations()
Gets the list of catalog entry IDs for cache invalidations.
|
java.lang.String[] |
getCatgroupIdsForCacheInvalidations()
Gets the list of catalog group IDs for cache invalidations.
|
java.lang.String[] |
getCollateralIdsForCacheInvalidations()
Gets the list of collateral IDs for cache invalidations.
|
java.util.Collection |
getEMarketingSpotNamesForCacheInvalidations()
Gets the list of e-Marketing Spot names for cache invalidations.
|
java.lang.Long |
getField1()
Gets the customizable field 1 in the attachment target.
|
java.lang.Double |
getField2()
Gets the customizable field 2 in the attachment target.
|
java.lang.String |
getField3()
Gets the customizable field 3 in the attachment target.
|
java.lang.String |
getField4()
Gets the customizable field 4 in the attachment target.
|
java.lang.String |
getIdentifier()
Gets the identifier of the attachment target.
|
java.lang.Long |
getMemberId()
Gets the owner of the attachment target.
|
java.lang.Integer |
getStoreentId()
Gets the store entity ID that owns the attachment target.
|
void |
performExecute()
Creates the attachment target if the attachment target ID is not specified,
creates attachment target descriptions, attachment assets, and attachment asset languages
|
void |
reset()
Resets the variables used.
|
void |
setAttachmentAssets(java.util.Vector avAttachmentAssetDataBeans)
Sets the vector of
AttachmentAssetDataBean to be created as the attachment assets for the attachment target. |
void |
setAttachmentTargetDescriptions(java.util.Vector avAttachmentTargetDescriptionDataBeans)
Sets the vector of
AttachmentTargetDescriptionDataBean to be created as the description for the attachment target. |
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID.
|
void |
setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
Sets the attachment usage ID used in the attachment target.
|
void |
setField1(java.lang.Long anField1)
Sets the customizable field 1 of the attachment target.
|
void |
setField2(java.lang.Double adField2)
Sets the customizable field 2 of the attachment target.
|
void |
setField3(java.lang.String astrField3)
Sets the customizable field 3 of the attachment target.
|
void |
setField4(java.lang.String astrField4)
Sets the customizable field 4 of the attachment target.
|
void |
setIdentifier(java.lang.String astrIdentifier)
Sets the identifier of the attachment target.
|
void |
setMemberId(java.lang.Long anMemberId)
Override this method to set the owner of the attachment target.
|
void |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
setStoreentId(java.lang.Integer anStoreentId)
Sets the store entity ID.
|
void |
setURL(java.lang.String astrURL)
Sets the redirect URL.
|
void |
validateParameters()
Validate the parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface AttachmentAddCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface AttachmentAddCmd
public java.lang.Long getMemberId()
getMemberId
in interface AttachmentAddCmd
public java.lang.String getIdentifier()
getIdentifier
in interface AttachmentAddCmd
public java.lang.String getAttachmentUsageId()
getAttachmentUsageId
in interface AttachmentAddCmd
public java.lang.Long getField1()
getField1
in interface AttachmentAddCmd
public java.lang.Double getField2()
getField2
in interface AttachmentAddCmd
public java.lang.String getField3()
getField3
in interface AttachmentAddCmd
public java.lang.String getField4()
getField4
in interface AttachmentAddCmd
public java.util.Vector getAttachmentTargetDescriptions()
AttachmentTargetDescriptionDataBean
getAttachmentTargetDescriptions
in interface AttachmentAddCmd
AttachmentTargetDescriptionDataBean
public java.util.Vector getAttachmentAssets()
AttachmentAssetDataBean
getAttachmentAssets
in interface AttachmentAddCmd
AttachmentAssetDataBean
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in interface AttachmentAddCmd
anAttachmentTargetId
- The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface AttachmentAddCmd
anStoreentId
- The store entity IDpublic void setMemberId(java.lang.Long anMemberId)
setMemberId
in interface AttachmentAddCmd
anMemberId
- The owner of the attachment targetpublic void setIdentifier(java.lang.String astrIdentifier)
setIdentifier
in interface AttachmentAddCmd
astrIdentifier
- The identifier of the attachment targetpublic void setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
setAttachmentUsageId
in interface AttachmentAddCmd
astrAttachmentUsageId
- The attachment usage IDpublic void setField1(java.lang.Long anField1)
setField1
in interface AttachmentAddCmd
anField1
- The customizable field 1public void setField2(java.lang.Double adField2)
setField2
in interface AttachmentAddCmd
adField2
- The customizable field 2public void setField3(java.lang.String astrField3)
setField3
in interface AttachmentAddCmd
astrField3
- The customizable field 3public void setField4(java.lang.String astrField4)
setField4
in interface AttachmentAddCmd
astrField4
- The customizable field 4public void setAttachmentAssets(java.util.Vector avAttachmentAssetDataBeans)
AttachmentAssetDataBean
to be created as the attachment assets for the attachment target.setAttachmentAssets
in interface AttachmentAddCmd
avAttachmentAssetDataBeans
- The list of AttachmentAssetDataBean
public void setAttachmentTargetDescriptions(java.util.Vector avAttachmentTargetDescriptionDataBeans)
AttachmentTargetDescriptionDataBean
to be created as the description for the attachment target.setAttachmentTargetDescriptions
in interface AttachmentAddCmd
avAttachmentTargetDescriptionDataBeans
- The list of AttachmentTargetDescriptionDataBean
public void setURL(java.lang.String astrURL)
setURL
in interface AttachmentAddCmd
astrURL
- The redirect URLpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- The request propertiesECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public java.lang.String[] getCatalogIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCatentryIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCatgroupIdsForCacheInvalidations() throws ECException
ECException
public java.lang.String[] getCollateralIdsForCacheInvalidations() throws ECException
ECException
public java.util.Collection getEMarketingSpotNamesForCacheInvalidations() throws ECException
ECException