Package org.opencms.ui.apps.cacheadmin
Class CmsVariationBean
java.lang.Object
org.opencms.ui.apps.cacheadmin.CmsVariationBean
Bean for Variations im image resources.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsVariationBean(String variation) public constructor.CmsVariationBean(I_CmsImageCache imageCache, String name, long length) Creates a variation bean for an external image cache entry.CmsVariationBean(I_CmsImageCache imageCache, CmsImageCacheMaintenanceService maintenance, String name, long length) Creates a variation bean with lazy metadata access. -
Method Summary
Modifier and TypeMethodDescriptionReturns the formatted derivative last-modified time, if available.Gets the dimensions of the current variation.Get length of variation.getName()Gets path of variation.
-
Constructor Details
-
CmsVariationBean
public CmsVariationBean(I_CmsImageCache imageCache, CmsImageCacheMaintenanceService maintenance, String name, long length) Creates a variation bean with lazy metadata access.- Parameters:
imageCache- the external image cachemaintenance- the image cache maintenance servicename- the image cache entry namelength- the image cache entry length
-
CmsVariationBean
Creates a variation bean for an external image cache entry.- Parameters:
imageCache- the external image cachename- the image cache entry namelength- the image cache entry length
-
CmsVariationBean
public constructor.- Parameters:
variation- path to variation file to hold information for
-
-
Method Details
-
getDateLastModified
Returns the formatted derivative last-modified time, if available. -
getDimensions
Gets the dimensions of the current variation.- Returns:
- String representation of the dimensions
-
getLength
Get length of variation.- Returns:
- string representation of length
-
getName
Gets path of variation.- Returns:
- path
-