Class CmsVariationBean

java.lang.Object
org.opencms.ui.apps.cacheadmin.CmsVariationBean

public class CmsVariationBean extends Object
Bean for Variations im image resources.

  • 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 cache
      maintenance - the image cache maintenance service
      name - the image cache entry name
      length - the image cache entry length
    • CmsVariationBean

      public CmsVariationBean(I_CmsImageCache imageCache, String name, long length)
      Creates a variation bean for an external image cache entry.

      Parameters:
      imageCache - the external image cache
      name - the image cache entry name
      length - the image cache entry length
    • CmsVariationBean

      public CmsVariationBean(String variation)
      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

      public String getLength()
      Get length of variation.

      Returns:
      string representation of length
    • getName

      public String getName()
      Gets path of variation.

      Returns:
      path