Class ContentAssetInfoTO

java.lang.Object
org.craftercms.studio.api.v1.to.ContentAssetInfoTO
All Implemented Interfaces:
Serializable

public class ContentAssetInfoTO extends Object implements Serializable
This class contains content asset information that exists in the repository
Author:
hyanghee
See Also:
  • Field Details

    • FILE_SIZE_KB

      public static final String FILE_SIZE_KB
      See Also:
    • serialVersionUID

      protected static final long serialVersionUID
      See Also:
    • fileName

      protected String fileName
      asset file name
    • fileExtension

      protected String fileExtension
      asset file extension
    • size

      protected double size
      asset file size in KB
    • width

      protected int width
      the image width if the asset is an image
    • height

      protected int height
      the image height if the asset is an image
    • sizeUnit

      protected String sizeUnit
  • Constructor Details

    • ContentAssetInfoTO

      public ContentAssetInfoTO()
  • Method Details

    • getSizeUnit

      public String getSizeUnit()
    • setSizeUnit

      public void setSizeUnit(String sizeUnit)
    • getFileName

      public String getFileName()
      Returns:
      the fileName
    • setFileName

      public void setFileName(String fileName)
      Parameters:
      fileName - the fileName to set
    • getFileExtension

      public String getFileExtension()
      Returns:
      the fileExtension
    • setFileExtension

      public void setFileExtension(String fileExtension)
      Parameters:
      fileExtension - the fileExtension to set
    • getSize

      public double getSize()
      Returns:
      the size
    • setSize

      public void setSize(double size)
      Parameters:
      size - the size to set
    • getWidth

      public int getWidth()
      Returns:
      the width
    • setWidth

      public void setWidth(int width)
      Parameters:
      width - the width to set
    • getHeight

      public int getHeight()
      Returns:
      the height
    • setHeight

      public void setHeight(int height)
      Parameters:
      height - the height to set