Interface StaticAsset

All Superinterfaces:
MultiTenantCloneable<StaticAsset>, Serializable
All Known Subinterfaces:
ImageStaticAsset
All Known Implementing Classes:
ImageStaticAssetImpl, StaticAssetImpl

public interface StaticAsset extends Serializable, MultiTenantCloneable<StaticAsset>
Created by bpolster.
  • Method Details

    • getId

      Long getId()
      Returns the id of the static asset.
      Returns:
    • setId

      void setId(Long id)
      Sets the id of the static asset.
      Parameters:
      id -
    • getName

      String getName()
      The name of the static asset.
      Returns:
    • setName

      void setName(String name)
      Sets the name of the static asset. Used primarily for
      Parameters:
      name -
    • getAltText

      String getAltText()
      Returns the altText of this asset.
      Returns:
    • setAltText

      void setAltText(String altText)
      Set the altText of the static asset.
      Parameters:
      altText -
    • getTitle

      String getTitle()
      Returns the title of this asset.
      Returns:
    • setTitle

      void setTitle(String title)
      Set the title of the static asset.
      Parameters:
      title -
    • getFullUrl

      String getFullUrl()
      URL used to retrieve this asset.
      Returns:
    • setFullUrl

      void setFullUrl(String fullUrl)
      Sets the URL for the asset
      Parameters:
      fullUrl -
    • getFileSize

      Long getFileSize()
      Filesize of the asset.
      Returns:
    • setFileSize

      void setFileSize(Long fileSize)
      Sets the filesize of the asset
      Parameters:
      fileSize -
    • getContentMessageValues

      Map<String,StaticAssetDescription> getContentMessageValues()
      Deprecated.
      - Use getTitle() or getAltText()getAltText() instead.
      Returns:
    • setContentMessageValues

      void setContentMessageValues(Map<String,StaticAssetDescription> contentMessageValues)
      Deprecated.
      Parameters:
      contentMessageValues -
    • getMimeType

      String getMimeType()
      Returns the mimeType of the asset.
      Returns:
    • setMimeType

      void setMimeType(String mimeType)
      Sets the mimeType of the asset.
    • getFileExtension

      String getFileExtension()
      Returns the file extension of the asset.
      Returns:
    • setFileExtension

      void setFileExtension(String fileExtension)
      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

      void setStorageType(StorageType storageType)
      Returns how the asset was stored in the backend (e.g. DATABASE or FILESYSTEM)
      Parameters:
      storageType -