Class ConvertResource2ImagesComponent

All Implemented Interfaces:
Initializable, Component, LogEnabled, Serviceable, ThreadSafe

  • Field Details

    • ROLE

      public static final String ROLE
      Avalon ROLE.
  • Constructor Details

  • Method Details

    • doCache

      public String doCache(Resource resource, String siteName) throws Exception
      Put the file in cache
      Parameters:
      resource - the resource to cache
      siteName - the name of the site
      Returns:
      The absolute cache path
      Throws:
      Exception - if an error occurs while caching the file
    • doCleanCache

      public void doCleanCache(String path, String resourcePath)
      Remove a resource from the flipbook cache. This method will first try to determine if the provided path either point to shared resource or a site resource. If it's neither, the method won't do anything as this component only handle resource
      Parameters:
      path - the JCR path of the resource
      resourcePath - the resource path (as return by Resource:getResourcePath)