public class AddAttachmentAssetCmdImpl extends TaskCommandImpl implements AddAttachmentAssetCmd
WriteManagedFile
command will be called. This will create the Managed File.AttachmentAssetAccessBean
StoreEntityAccessBean
ManagedFileAccessBean
WriteManagedFile
AttachmentHelper
AttachmentAssetHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
Constructor and Description |
---|
AddAttachmentAssetCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttachmentAssetId()
Gets the attachment asset ID.
|
java.lang.String |
getAttachmentAssetPath()
Gets the path for the attachment asset.
|
java.lang.Long |
getAttachmentTargetId()
Gets the attachment target ID that owns the attachment asset.
|
java.lang.String[] |
getCatalogIdsForCacheInvalidations()
Gets the array of catalog IDs for cache invalidations.
|
java.lang.String[] |
getCatentryIdsForCacheInvalidations()
Gets the array of catalog entry IDs for cache invalidations.
|
java.lang.String[] |
getCatgroupIdsForCacheInvalidations()
Gets the array of catalog group IDs for cache invalidations.
|
java.lang.String[] |
getCollateralIdsForCacheInvalidations()
Gets the list of collateral IDs for cache invalidations.
|
byte[] |
getContent()
Gets the content of the attachment asset.
|
java.util.Collection |
getEMarketingSpotNamesForCacheInvalidations()
Gets the list of e-Marketing Spot names for cache invalidations.
|
java.lang.String |
getImage1()
Gets the image 1 of the attachment asset.
|
java.lang.String |
getImage2()
Gets the image 2 of the attachment asset.
|
java.lang.String |
getMimeType()
Gets the mime type of the attachment asset.
|
java.lang.String |
getMimeTypeEncoding()
Gets the encoding of the mime type of the attachment asset.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.Integer |
getStoreentId()
Gets the store entity ID.
|
void |
performExecute()
Main execution for
AddAttachmentAsset |
void |
reset()
Resets all the parameters
|
void |
setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
Sets the path of the attachment asset.
|
void |
setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
Sets the attachment target ID.
|
void |
setContent(byte[] abaAssetContent)
Sets the content of the attachment asset.
|
void |
setImage1(java.lang.String astrImage1)
Sets the image 1 of the attachment asset.
|
void |
setImage2(java.lang.String astrImage2)
Sets the image 2 of the attachment asset.
|
void |
setMimeType(java.lang.String astrMimeType)
Sets the mime type of the attachment asset.
|
void |
setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
Sets the encoding of the mime type of the attachment asset.
|
void |
setRequestProperties(TypedProperty reqParms)
Sets the request properties.
|
void |
setStoreentId(java.lang.Integer anStoreentId)
Sets the store entity ID.
|
void |
validateParameters()
Validates the parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentAssetId()
getAttachmentAssetId
in interface AddAttachmentAssetCmd
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface AddAttachmentAssetCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface AddAttachmentAssetCmd
public java.lang.String getAttachmentAssetPath()
getAttachmentAssetPath
in interface AddAttachmentAssetCmd
public java.lang.String getImage1()
getImage1
in interface AddAttachmentAssetCmd
public java.lang.String getImage2()
getImage2
in interface AddAttachmentAssetCmd
public java.lang.String getMimeType()
getMimeType
in interface AddAttachmentAssetCmd
public java.lang.String getMimeTypeEncoding()
getMimeTypeEncoding
in interface AddAttachmentAssetCmd
public byte[] getContent()
getContent
in interface AddAttachmentAssetCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
AddAttachmentAsset
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 AddAttachmentAssetCmd
anAttachmentTargetId
- The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface AddAttachmentAssetCmd
anStoreentId
- The store entity IDpublic void setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
setAttachmentAssetPath
in interface AddAttachmentAssetCmd
astrAttachmentAssetPath
- The attachment asset pathpublic void setImage1(java.lang.String astrImage1)
setImage1
in interface AddAttachmentAssetCmd
astrImage1
- The image 1public void setImage2(java.lang.String astrImage2)
setImage2
in interface AddAttachmentAssetCmd
astrImage2
- The image 2public void setMimeType(java.lang.String astrMimeType)
setMimeType
in interface AddAttachmentAssetCmd
astrMimeType
- The attachment asset mimetypepublic void setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
setMimeTypeEncoding
in interface AddAttachmentAssetCmd
astrMimeTypeEncoding
- The encoding of the attachment asset mimetypepublic void setContent(byte[] abaAssetContent)
setContent
in interface AddAttachmentAssetCmd
abaAssetContent
- The attachment asset contentpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface AddAttachmentAssetCmd
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