public class UpdateAttachmentAssetCmdImpl extends TaskCommandImpl implements UpdateAttachmentAssetCmd
AddAttachmnetAsset
.
WriteManagedFile
will be called. This will remove the link between the managed file
and the old attachment asset pathAttachmentAssetAccessBean
StoreEntityAccessBean
ManagedFileAccessBean
AddAttachmentAsset
WriteManagedFile
AttachmentHelper
AttachmentAssetHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
Constructor and Description |
---|
UpdateAttachmentAssetCmdImpl() |
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 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.
|
byte[] |
getContent()
Gets the content of the attachment asset if the mime type is not URI.
|
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
UpdatettachmentAsset |
void |
reset()
Resets all the parameters
|
void |
setAttachmentAssetId(java.lang.Long anAttachmentAssetId)
Sets the attachment asset ID.
|
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 |
setCreateMissing(java.lang.Boolean aboolCreateMissing)
Sets the option the create missing 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 UpdateAttachmentAssetCmd
public java.lang.Long getAttachmentTargetId()
getAttachmentTargetId
in interface UpdateAttachmentAssetCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface UpdateAttachmentAssetCmd
public java.lang.String getAttachmentAssetPath()
getAttachmentAssetPath
in interface UpdateAttachmentAssetCmd
public java.lang.String getImage1()
getImage1
in interface UpdateAttachmentAssetCmd
public java.lang.String getImage2()
getImage2
in interface UpdateAttachmentAssetCmd
public java.lang.String getMimeType()
getMimeType
in interface UpdateAttachmentAssetCmd
public java.lang.String getMimeTypeEncoding()
getMimeTypeEncoding
in interface UpdateAttachmentAssetCmd
public byte[] getContent()
getContent
in interface UpdateAttachmentAssetCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
UpdatettachmentAsset
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 setAttachmentAssetId(java.lang.Long anAttachmentAssetId)
setAttachmentAssetId
in interface UpdateAttachmentAssetCmd
anAttachmentAssetId
- The attachment asset IDpublic void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId
in interface UpdateAttachmentAssetCmd
anAttachmentTargetId
- The attachment target IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId
in interface UpdateAttachmentAssetCmd
anStoreentId
- The store entity IDpublic void setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
setAttachmentAssetPath
in interface UpdateAttachmentAssetCmd
astrAttachmentAssetPath
- The attachment asset pathpublic void setImage1(java.lang.String astrImage1)
setImage1
in interface UpdateAttachmentAssetCmd
astrImage1
- The image 1public void setImage2(java.lang.String astrImage2)
setImage2
in interface UpdateAttachmentAssetCmd
astrImage2
- The image 2public void setMimeType(java.lang.String astrMimeType)
setMimeType
in interface UpdateAttachmentAssetCmd
astrMimeType
- The attachment asset mimetypepublic void setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
setMimeTypeEncoding
in interface UpdateAttachmentAssetCmd
astrMimeTypeEncoding
- The encoding of the attachment asset mimetypepublic void setContent(byte[] abaAssetContent)
setContent
in interface UpdateAttachmentAssetCmd
abaAssetContent
- The attachment asset contentpublic void setCreateMissing(java.lang.Boolean aboolCreateMissing)
setCreateMissing
in interface UpdateAttachmentAssetCmd
aboolCreateMissing
- The create missing flagpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface UpdateAttachmentAssetCmd
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