Interface StaticAsset
- All Superinterfaces:
MultiTenantCloneable<StaticAsset>
,Serializable
- All Known Subinterfaces:
ImageStaticAsset
- All Known Implementing Classes:
ImageStaticAssetImpl
,StaticAssetImpl
Created by bpolster.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the altText of this asset.Deprecated.Returns the file extension of the asset.Filesize of the asset.URL used to retrieve this asset.getId()
Returns the id of the static asset.Returns the mimeType of the asset.getName()
The name of the static asset.Returns how the underlying asset is stored.getTitle()
Returns the title of this asset.void
setAltText
(String altText) Set the altText of the static asset.void
setContentMessageValues
(Map<String, StaticAssetDescription> contentMessageValues) Deprecated.- UsesetTitle(String)
orsetAltText(String)
instead.void
setFileExtension
(String fileExtension) Sets the fileExtension of the asset.void
setFileSize
(Long fileSize) Sets the filesize of the assetvoid
setFullUrl
(String fullUrl) Sets the URL for the assetvoid
Sets the id of the static asset.void
setMimeType
(String mimeType) Sets the mimeType of the asset.void
Sets the name of the static asset.void
setStorageType
(StorageType storageType) Returns how the asset was stored in the backend (e.g.void
Set the title of the static asset.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Returns the id of the static asset.- Returns:
-
setId
Sets the id of the static asset.- Parameters:
id
-
-
getName
String getName()The name of the static asset.- Returns:
-
setName
Sets the name of the static asset. Used primarily for- Parameters:
name
-
-
getAltText
String getAltText()Returns the altText of this asset.- Returns:
-
setAltText
Set the altText of the static asset.- Parameters:
altText
-
-
getTitle
String getTitle()Returns the title of this asset.- Returns:
-
setTitle
Set the title of the static asset.- Parameters:
title
-
-
getFullUrl
String getFullUrl()URL used to retrieve this asset.- Returns:
-
setFullUrl
Sets the URL for the asset- Parameters:
fullUrl
-
-
getFileSize
Long getFileSize()Filesize of the asset.- Returns:
-
setFileSize
Sets the filesize of the asset- Parameters:
fileSize
-
-
getContentMessageValues
Map<String,StaticAssetDescription> getContentMessageValues()Deprecated.- UsegetTitle()
orgetAltText()
getAltText() instead.- Returns:
-
setContentMessageValues
Deprecated.- UsesetTitle(String)
orsetAltText(String)
instead.- Parameters:
contentMessageValues
-
-
getMimeType
String getMimeType()Returns the mimeType of the asset.- Returns:
-
setMimeType
Sets the mimeType of the asset. -
getFileExtension
String getFileExtension()Returns the file extension of the asset.- Returns:
-
setFileExtension
Sets the fileExtension of the asset.- Parameters:
fileExtension
-
-
getStorageType
StorageType getStorageType()Returns how the underlying asset is stored. Typically on the FileSystem or the Database.If null, this method returns
StorageType.DATABASE
for backwards compatibility.- Returns:
-
setStorageType
Returns how the asset was stored in the backend (e.g. DATABASE or FILESYSTEM)- Parameters:
storageType
-
-
getTitle()
orgetAltText()
getAltText() instead.