public class UpdateAttachmentAssetCmdImpl extends TaskCommandImpl implements UpdateAttachmentAssetCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Define the CLASSNAME.
|
Constructor and Description |
---|
UpdateAttachmentAssetCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | checkIsFileNeedUpdate(java.lang.String originalAttachmentAssetPath)
Check if the file of the attachment need to be updated, when the file is copyed to another attachment, if the istrAttachmentAssetPath is equal to originalAttachmentAssetPath(indicating the attachment asset path is not updated), the iboolSetAssetContent is false(indicating the content of the file is not needed to overwritten), the fileId is not null(indicating the file with the originalFilePath has existed in the CMFILE table), and the associated property of the file 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 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.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.
|
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(java.lang.String originalAttachmentAssetPath) throws ECException
public void reset()
public void setAttachmentAssetId(java.lang.Long anAttachmentAssetId)
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 setCreateMissing(java.lang.Boolean aboolCreateMissing)
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