public class AddAttachmentAssetCmdImpl extends TaskCommandImpl implements AddAttachmentAssetCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Define the CLASSNAME.
|
Constructor and Description |
---|
AddAttachmentAssetCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | checkIsFileNeedUpdate()
Check if the file of the attachment need to be updated, when an attachment asset is created, if the fileId is not null(indicating the file with the cmFilePath has existed in the CMFILE table), the iboolSetAssetContent is false(indicating the content of the file is not needed to overwritten) and the associate is true(indicting the file has been associated to an attachment asset), then it will be considered to be that the related file need not to be updated and the logic in AddAttachmentAssentCmdImpl will not rewrite the ManageFile.
|
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.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.
|
public static final java.lang.String CLASSNAME
public java.lang.Long getAttachmentAssetId()
public java.lang.Long getAttachmentTargetId()
public java.lang.Integer getStoreentId()
public java.lang.String getAttachmentAssetPath()
public java.lang.String getImage1()
public java.lang.String getImage2()
public java.lang.String getMimeType()
public java.lang.String getMimeTypeEncoding()
public byte[] getContent()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected boolean checkIsFileNeedUpdate() throws ECException
public void reset()
public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
public void setStoreentId(java.lang.Integer anStoreentId)
public void setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
public void setImage1(java.lang.String astrImage1)
public void setImage2(java.lang.String astrImage2)
public void setMimeType(java.lang.String astrMimeType)
public void setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
public void setContent(byte[] abaAssetContent)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException
public java.lang.String[] getCatalogIdsForCacheInvalidations() throws ECException
public java.lang.String[] getCatentryIdsForCacheInvalidations() throws ECException
public java.lang.String[] getCatgroupIdsForCacheInvalidations() throws ECException
public java.lang.String[] getCollateralIdsForCacheInvalidations() throws ECException