Class ConvertContentAttachment2ImagesComponent

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

Implementation of a AbstractConvertDocument2ImagesComponent for a content attachment
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon ROLE.
  • Constructor Details

  • Method Details

    • doCache

      public String doCache(Resource resource, String contentName, String siteName) throws Exception
      Put the file in cache
      Parameters:
      resource - the resource
      contentName - the name of the content
      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(Content content, String siteName)
      Remove content attachments image stored in the flipbook cache for the given content and sitename
      Parameters:
      content - the linked content
      siteName - the sitename
    • doCleanCache

      public void doCleanCache(String path)
      Remove the image stored in cache that are associated with the resource path. If the provided resource path doesn't point to a content attachment, calling this method will have no effect.
      Parameters:
      path - the JCR path of the resource to clean