Package org.craftercms.studio.api.v1.to
Class ContentAssetInfoTO
java.lang.Object
org.craftercms.studio.api.v1.to.ContentAssetInfoTO
- All Implemented Interfaces:
Serializable
This class contains content asset information that exists in the repository
- Author:
- hyanghee
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Stringasset file extensionprotected Stringasset file nameprotected intthe image height if the asset is an imageprotected static final longprotected doubleasset file size in KBprotected Stringprotected intthe image width if the asset is an image -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetSize()intgetWidth()voidsetFileExtension(String fileExtension) voidsetFileName(String fileName) voidsetHeight(int height) voidsetSize(double size) voidsetSizeUnit(String sizeUnit) voidsetWidth(int width)
-
Field Details
-
FILE_SIZE_KB
- See Also:
-
serialVersionUID
protected static final long serialVersionUID- See Also:
-
fileName
asset file name -
fileExtension
asset file extension -
size
protected double sizeasset file size in KB -
width
protected int widththe image width if the asset is an image -
height
protected int heightthe image height if the asset is an image -
sizeUnit
-
-
Constructor Details
-
ContentAssetInfoTO
public ContentAssetInfoTO()
-
-
Method Details
-
getSizeUnit
-
setSizeUnit
-
getFileName
- Returns:
- the fileName
-
setFileName
- Parameters:
fileName- the fileName to set
-
getFileExtension
- Returns:
- the fileExtension
-
setFileExtension
- 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
-