public class AttachmentAssetDataBean
extends com.ibm.commerce.attachment.objects.AttachmentAssetAccessBean
AttachmentDataBean
when displaying the attachment. | Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
| Constructor and Description |
|---|
AttachmentAssetDataBean()
Constructs an empty
AttachmentAssetDataBean. |
AttachmentAssetDataBean(com.ibm.commerce.attachment.objects.AttachmentAssetAccessBean abAttachmentAsset,
CommandContext context)
Constructs and populates an
AttachmentAssetDataBean from a AttachmentAssetAccessBean. |
| Modifier and Type | Method and Description |
|---|---|
AttachmentAssetLanguageDataBean[] |
getAssetLanguages()
Gets the list of
AttachmentAssetLanguageDataBean of the attachment asset. |
java.lang.String |
getAttachmentAssetId()
Gets the attachment asset ID.
|
java.lang.String |
getAttachmentAssetPath()
Gets the path of the attachment asset.
|
java.lang.String |
getAttachmentTargetId()
Gets the attachment target ID.
|
CommandContext |
getCommandContext()
Gets the command context set within this bean.
|
byte[] |
getContent()
Gets the content of the attachment asset.
|
java.lang.String |
getDirectoryPath()
Gets the directory path 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.Integer[] |
getLanguages()
Gets the list of languages supported by 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.
|
java.lang.String |
getObjectPath()
Gets the path to attachment asset object based on the store ID in the attachment asset.
|
TypedProperty |
getRequestProperties()
Gets the request property set within this bean.
|
java.lang.String |
getStoreentId()
Gets the store entity ID.
|
void |
populate()
Fetches and populates information needed by the bean.
|
void |
reset()
Resets the databean
|
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 |
setCommandContext(CommandContext commandContext)
Sets the command context passed in at run time.
|
void |
setContent(byte[] abaContent)
Sets the attachment asset file content.
|
void |
setDirectoryPath(java.lang.String astrDirectoryPath)
Sets the directory path 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 |
setLanguages(java.lang.Integer[] aarnLanguages)
Sets the list of languages supported by 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 param)
Sets the request property and populates the parameters that are needed by the bean.
|
void |
setStoreentId(java.lang.Integer anStoreentId)
Sets the store entity ID.
|
findByAssetPath, findByAssetPathAndStoreentId, findByAttachmentTargetIdAndLanguageId, findByDirectoryPath, findByDirectoryPathAndStoreentId, findByStoreentId, findByStoreentIdAndMimeType, findByStoreentIdAndTargetId, findByStoreentIdAndTargetIdAndAssetPath, findByTargetId, getAttachmentAssetIdInEntityType, getAttachmentAssetLanguages, getAttachmentTargetIdInEntityType, getEntity, getStoreentIdInEntityType, getTimeCreated, getTimeCreatedInEntityType, getTimeUpdated, getTimeUpdatedInEntityType, instantiateEntity, setAttachmentTargetId, setInitKey_attachmentAssetId, setStoreentId, setTimeCreated, setTimeCreated, setTimeUpdated, setTimeUpdatedpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public AttachmentAssetDataBean()
AttachmentAssetDataBean.public AttachmentAssetDataBean(com.ibm.commerce.attachment.objects.AttachmentAssetAccessBean abAttachmentAsset,
CommandContext context)
AttachmentAssetDataBean from a AttachmentAssetAccessBean.
If error then the databean will be reset. All the variables become null.abAttachmentAsset - The AttachmentAssetAccessBeancontext - The command contextpublic java.lang.String getAttachmentAssetId()
getAttachmentAssetId in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getAttachmentTargetId()
getAttachmentTargetId in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getStoreentId()
getStoreentId in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getAttachmentAssetPath()
getAttachmentAssetPath in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getObjectPath()
public java.lang.String getDirectoryPath()
getDirectoryPath in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getImage1()
getImage1 in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getImage2()
getImage2 in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getMimeType()
getMimeType in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.String getMimeTypeEncoding()
getMimeTypeEncoding in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanpublic java.lang.Integer[] getLanguages()
public byte[] getContent()
public CommandContext getCommandContext()
CommandContext object.public TypedProperty getRequestProperties()
null is always returned.public void reset()
public AttachmentAssetLanguageDataBean[] getAssetLanguages()
AttachmentAssetLanguageDataBean of the attachment asset.AttachmentAssetLanguageDataBeanpublic void populate()
Any - exception capturedpublic void setCommandContext(CommandContext commandContext)
aCommandContext - The command context as CommandContext object.public void setLanguages(java.lang.Integer[] aarnLanguages)
aarnLanguages - The list of languages supported by the attachment assetpublic void setContent(byte[] abaContent)
abaContent - The content of the attachment assetpublic void setRequestProperties(TypedProperty param)
param - The request property as TypedProperty object.public void setAttachmentAssetId(java.lang.Long anAttachmentAssetId)
anAttachmentAssetId - The attachment asset IDpublic void setStoreentId(java.lang.Integer anStoreentId)
setStoreentId in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeananStoreentId - The store entity IDpublic void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
setAttachmentTargetId in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeananAttachmentTargetId - The attachment target IDpublic void setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
setAttachmentAssetPath in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrAttachmentAssetPath - The attachment asset pathpublic void setDirectoryPath(java.lang.String astrDirectoryPath)
setDirectoryPath in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrDirectoryPath - The attachment asset directory pathpublic void setImage1(java.lang.String astrImage1)
setImage1 in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrImage1 - The attachment asset image 1public void setImage2(java.lang.String astrImage2)
setImage2 in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrImage2 - The attachment asset image 2public void setMimeType(java.lang.String astrMimeType)
setMimeType in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrMimeType - The mime type of the attachment assetpublic void setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
setMimeTypeEncoding in class com.ibm.commerce.attachment.objects.AttachmentAssetAccessBeanastrMimeTypeEncoding - The mime type encoding of the attachment asset